]> git.ipfire.org Git - thirdparty/glibc.git/blame - ChangeLog
CVE-2017-15670: glob: Fix one-byte overflow [BZ #22320]
[thirdparty/glibc.git] / ChangeLog
CommitLineData
c369d66e
PE
12017-10-20 Paul Eggert <eggert@cs.ucla.edu>
2
3 [BZ #22320]
4 CVE-2017-15670
5 * posix/glob.c (__glob): Fix one-byte overflow.
6
6d43de4b
WD
72017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
8
9 * malloc/malloc.c (sysdep-cancel.h): Add include.
10
a15d53e2
WD
112017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
12
13 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
14
b9a558e7
WH
152017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
16
17 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
18 (tests): Remove $(objpfx)ga_test depdendency.
19 * resolv/ga_test.c: Remove file.
20
b6b08b8e
MF
212017-10-20 Mike FABIAN <mfabian@redhat.com>
22
23 [BZ #18812]
24 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
25 * localedata/locales/kab_DZ: New file.
26
9ba7e810
L
272017-10-20 H.J. Lu <hongjiu.lu@intel.com>
28
29 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
30 _dl_relocate_static_pie instead of _dl_start to compute load
31 address in static PIE.
32
4027a4fd
L
332017-10-20 H.J. Lu <hongjiu.lu@intel.com>
34
35 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
36
2f9314b4
MF
372017-10-20 Mike FABIAN <mfabian@redhat.com>
38
39 [BZ #13605]
40 * localedata/SUPPORTED: Add shn_MM/UTF-8.
41 * localedata/locales/shn_MM: New file.
42
63b4baa4
FW
432017-10-20 Florian Weimer <fweimer@redhat.com>
44
45 [BZ #22321]
46 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
47 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
48 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
49 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
50 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
51 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
52
95ccb619
L
532017-10-19 H.J. Lu <hongjiu.lu@intel.com>
54
55 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
56
37bb78cb
JM
572017-10-19 Joseph Myers <joseph@codesourcery.com>
58
76f2ed92
JM
59 * sysdeps/mips/ieee754/bits/floatn.h: New file.
60
37bb78cb
JM
61 [BZ #22322]
62 * sysdeps/mips/bits/long-double.h: Move to ....
63 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
64
d74e6f6c
WD
652017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
66
67 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
68
4d916f0f
L
692017-10-19 Valery Reznic <valery_reznic@yahoo.com>
70 H.J. Lu <hongjiu.lu@intel.com>
71
72 [BZ #22299]
73 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
74 GLRO(dl_platform) to NULL.
75 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
76 (modules-names): Add tst-platformmod-1 and
77 x86_64/tst-platformmod-2.
78 (CFLAGS-tst-platform-1.c): New.
79 (CFLAGS-tst-platformmod-1.c): Likewise.
80 (CFLAGS-tst-platformmod-2.c): Likewise.
81 (LDFLAGS-tst-platformmod-2.so): Likewise.
82 ($(objpfx)tst-platform-1): Likewise.
83 ($(objpfx)tst-platform-1.out): Likewise.
84 (tst-platform-1-ENV): Likewise.
85 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
86 * sysdeps/x86_64/tst-platform-1.c: New file.
87 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
88 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
89
4b0fa403
MF
902017-10-19 Mike FABIAN <mfabian@redhat.com>
91
92 [BZ #13994]
93 * locale/iso-639.def: Add Karbi.
94 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
95 * localedata/locales/mjw_IN: New file.
96
81325b12
JM
972017-10-18 Joseph Myers <joseph@codesourcery.com>
98
99 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
100 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
101 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
102 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
103 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
104 (libm_alias_ldouble_other_r): Also create _Float128 alias.
105 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
106 <bits/floatn.h>.
107 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
108 (libm_alias_ldouble_other_r): Also create _Float128 alias.
109 * manual/math.texi (Mathematics): Document additional architecture
110 support for _Float128.
111 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
112 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
113 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
114 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
115 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
116 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
117 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
118 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
119 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
120 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
121 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
122 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
123 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
124 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
125 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
126
a68ba2f3
SN
1272017-10-18 Renlin Li <renlin.li@arm.com>
128
129 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
130 _DYNAMIC symbol to calculate load address.
131
346729f6
PC
1322017-10-18 Paul A. Clarke <pc@us.ibm.com>
133
134 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
135 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
136 summary bits.
137 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
138 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
139
508b1e71
MF
1402017-10-18 Mike FABIAN <mfabian@redhat.com>
141
142 [BZ #16777]
143 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
144 and improve readability by using more ASCII.
145 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
146 and improve readability by using more ASCII.
147
2c2245b9
WD
1482017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
149
150 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
151 not all targets support atomics on bool.
152
13c92696
JM
1532017-10-17 Joseph Myers <joseph@codesourcery.com>
154
155 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
156 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
157 __f128.
158 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
159 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
160 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
161 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
162 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
163 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
164
71d85045
AZ
1652017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
166
167 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
168 defines.
169
3381be5c
WD
1702017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
171
172 [BZ #22159]
173 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
174 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
175 (do_check_remalloced_chunk): Fix build bug.
176 (do_check_malloc_state): Add assert that checks arena->top.
177 (malloc_consolidate): Remove initialization.
178 (int_mallinfo): Remove call to malloc_consolidate.
179 (__libc_mallopt): Clarify why malloc_consolidate is needed.
180
e956075a
WD
1812017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
182
183 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
184 (have_fastchunks): Remove.
185 (clear_fastchunks): Remove.
186 (set_fastchunks): Remove.
187 (malloc_state): Add have_fastchunks.
188 (malloc_init_state): Use have_fastchunks.
189 (do_check_malloc_state): Remove incorrect invariant checks.
190 (_int_malloc): Use have_fastchunks.
191 (_int_free): Likewise.
192 (malloc_consolidate): Likewise.
193
e4dd4ace
WD
1942017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
195
196 * malloc/malloc.c (tcache_put): Inline.
197 (tcache_get): Inline.
198
5bf58bc7
AJ
1992017-10-17 Jordi Mallach <jordi@gnu.org>
200
201 Aurelien Jarno <aurelien@aurel32.net>
202 [BZ #2522]
203 * localedata/locales/ca_ES@valencia: New file.
204 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
205
386e1c26
RN
2062017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
207
208 [BZ #22296]
209 * math/math.h: Let signbit use the builtin in C++ mode with gcc
210 < 6.x
211
4e17c78e
AZ
2122017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
213
3d265601
AZ
214 * scripts/build-many-glibcs.py (Context.add_all_configs):
215 Add arm-linux-gnueabihf multiarch extra_glibcs.
216
4e17c78e
AZ
217 * sysdeps/generic/ifunc-init.h: New file.
218 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
219
56a752ab
MF
2202017-10-17 Mike FABIAN <mfabian@redhat.com>
221
222 [BZ #22019]
223 * localedata/locales/el_GR: Set n_cs_precedes to 0.
224 * localedata/locales/el_CY: copy "el_GR" because it is identical.
225 * stdlib/tst-strfmon_l.c: adapt test case.
226
c38a4bfd
JM
2272017-10-16 Joseph Myers <joseph@codesourcery.com>
228
229 * sysdeps/generic/float128-abi.h: New file.
230 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
231 non-__prefixed symbols to ....
232 * math/Versions: ... here. Include <float128-abi.h>.
233 * stdlib/Versions ... and here. Include <float128-abi.h>
234
76009b26
FW
2352017-10-16 Florian Weimer <fweimer@redhat.com>
236
237 * version.h (VERSION): Switch to ".9000" as the development
238 version suffix.
239
7ece6cd5
FW
2402017-10-16 Florian Weimer <fweimer@redhat.com>
241
242 [BZ #22050]
243 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
244 compat_symbol_reference to access non-default version.
245
d8287b36
FW
2462017-10-16 Florian Weimer <fweimer@redhat.com>
247
248 * malloc/Makefile (others-extras): Set to mcheck-init.o.
249
3480ddc4
CD
2502017-10-16 Carlos O'Donell <carlos@redhat.com>
251
252 * include/shlib-compat.h (compat_symbol_reference): Update
253 comment.
254
02010e79
JM
2552017-10-16 Joseph Myers <joseph@codesourcery.com>
256
596f7013
JM
257 * math/Makefile (test-types): Add
258 $(type-float128-$(float128-alias-fcts)).
259 * math/test-float128.h (TYPE_STR): Define conditional on
260 [FLT128_MANT_DIG == LDBL_MANT_DIG].
261 (ULP_IDX): Likewise.
262 (ULP_I_IDX): Likewise.
263
02010e79
JM
264 * stdlib/strtold.c: Include <bits/floatn.h>
265 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
266 and later undefine as macro. Define as weak alias if
267 [!USE_WIDE_CHAR].
268 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
269 and later undefine as macro. Define as weak alias if
270 [USE_WIDE_CHAR].
271 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
272 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
273 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
274 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
275 Define and later undefine as macro. Define as weak alias if
276 [USE_WIDE_CHAR].
277 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
278 <bits/floatn.h>.
279 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
280 Define and later undefine as macro. Define as weak alias if
281 [!USE_WIDE_CHAR].
282 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
283 Define and later undefine as macro. Define as weak alias if
284 [USE_WIDE_CHAR].
285
ea91c315
CD
2862017-10-15 Carlos O'Donell <carlos@redhat.com>
287
288 * localedata/collate-test.c (allocate_arrays): Don't use \n in
289 record_verbose messages.
290
8e57c943
L
2912017-10-15 H.J. Lu <hongjiu.lu@intel.com>
292
293 [BZ #22052]
294 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
295 to silence -O3 -Wall warning with GCC 7.
296
a4777c46
L
2972017-10-14 H.J. Lu <hongjiu.lu@intel.com>
298
299 * Makeconfig (+link-static-before-libc): Use the first of
300 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
301 * gmon/Makefile (tests): Add tst-gmon-static.
302 (tests-static): Likewise.
303 (CFLAGS-tst-gmon-static.c): New.
304 (CRT-tst-gmon-static): Likewise.
305 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
306 (tst-gmon-static-ENV): Likewise.
307 (tests-special): Likewise.
308 ($(objpfx)tst-gmon-static.out): Likewise.
309 (clean-tst-gmon-static-data): Likewise.
310 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
311 * gmon/tst-gmon-static-gprof.sh: New file.
312 * gmon/tst-gmon-static.c: Likewise.
313
bc3821bb
CD
3142017-10-13 Carlos O'Donell <carlos@redhat.com>
315
316 [BZ #22295]
317 * locale/programs/linereader.c (get_string): Don't warn on
318 non-symbolic character.
319
a3e23a2c
CD
3202017-10-13 Carlos O'Donell <carlos@redhat.com>
321
322 [BZ #22294]
323 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
324 int_curr_symbol.
325
f16491eb
CD
3262017-10-13 Carlos O'Donell <carlos@redhat.com>
327
328 [BZ #22292]
329 * locale/programs/record-status.h: New file
330 * locale/programs/locale.c: Add comment.
331 * locale/programs/charmap-dir.c: Don't include error.h.
332 (charmap_opendir): Use record_error.
333 * locale/programs/charmap.c: Don't include error.h.
334 (charmap_read): Use record_error, and record_warning.
335 (parse_charmap): Likewise.
336 * locale/programs/ld-address.c: Don't include error.h.
337 (address_finish): Use record_error, and record_warning.
338 * locale/programs/ld-collate.c: Don't include error.h.
339 (collate_finish): Use record_error, and record_error_at_line.
340 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
341 (ctype_class_new): Likewise.
342 (ctype_map_new): Likewise.
343 (set_one_default): Likewise.
344 (set_class_defaults): Likewise.
345 (translit_flatten): Likewise.
346 (allocate_arrays): Use record_error, and record_verbose.
347 * locale/programs/ld-identification.c: Don't include error.h.
348 (indentation_finish): Use record_error and record_warning.
349 * locale/programs/ld-measurement.c: Don't include error.h.
350 (measurement_finish): Use record_error.
351 * locale/programs/ld-messages.c
352 (message_finish): Likewise.
353 * locale/programs/ld-monetary.c
354 (monetary_finish): Likewise.
355 * locale/programs/ld-name.c (name_finish): Use record_error
356 and record_warning.
357 * locale/programs/ld-numeric.c
358 (numeric_finish): Use record_error.
359 * locale/programs/ld-paper.c: Don't include error.h.
360 (paper_finish): Use record_error.
361 * locale/programs/ld-telephone.c: Don't include error.h.
362 (telephone_finish): Use record_error.
363 * locale/programs/ld-time.c (time_finish): Likewise.
364 * locale/programs/linereader.h (lr_error): Make inline func.
365 * locale/programs/localedef.c: Define recorded_warning_count,
366 and recorded_error_count.
367 (main): Use record_error. Use recorded_error_count and
368 recorded_warning_count to issue correct error returns.
369 (add_to_readlist): Use record_error.
370 (find_locale): Likewise.
371 (load_locale): Likewise.
372 * locale/programs/localedef.h: Remove be_quiet
373 and WITH_CUR_LOCALE.
374 * locale/programs/locarchive.c (compare_from_file): Use
375 record_error.
376 * locale/programs/locfile.c (write_locale_data): Use
377 record_error.
378 * locale/programs/repertoire.c: Dont include error.h.
379 (repertoire_complain): Use record_error.
380 * localedata/tst-fmon.sh: Expect failures from localedef.
381 * localedata/tst-locale.sh: Likewise.
382 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
383
8dc8be75
CD
3842017-10-12 Carlos O'Donell <carlos@redhat.com>
385
386 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
387 (REPORTS): Likewise.
388 (check): Likewise.
389 (i18n): Rename to...
390 (i18n_ctype): ...this.
391 (i18n-report): Rename to...
392 (i18n_ctype-report): ...this.
393 * localedata/locales/i18n_ctype: Regenerate.
394 * localedata/locales/i18n: copy i18n_ctype.
395
f8718a9e
JM
3962017-10-13 Joseph Myers <joseph@codesourcery.com>
397
18c08b96
JM
398 * stdlib/strfroml.c: Include <bits/floatn.h>.
399 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
400 Define before include of <stdlib.h> and undefine afterwards, then
401 define as weak alias.
402
f8718a9e
JM
403 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
404 Undefine and restore default definition. Use
405 libm_alias_ldouble_other.
406
e4f530da
PZ
4072017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
408
409 [BZ #22153]
410 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
411 in coredumps.
412
86445888
JC
4132017-10-13 James Clarke <jrtc27@jrtc27.com>
414
415 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
416 Assign sym_map to be map for local symbols, as TLS relocations
417 use sym_map to determine whether the symbol is defined and to
418 extract the TLS information.
419 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
420 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
421
179dcdb7
TMQMF
4222017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
423
e8dbd6a3
TMQMF
424 [BZ #22189]
425 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
426 (math_force_eval): Add powerpc version.
427
179dcdb7
TMQMF
428 [BZ #22142]
429 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
430 -DBL_MAX.
431 (do_test): Likewise.
432 * stdio-common/tst-printf.sh: Likewise.
433 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
434 ifdef clause in order to set the carry bit right. Replace r0 by
435 0 without changing the behavior.
436
7d25d410
JM
4372017-10-13 Joseph Myers <joseph@codesourcery.com>
438
006e7664
JM
439 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
440 <libm-alias-ldouble.h>.
441 (fabsl): Define using libm_alias_ldouble.
442 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
443 <libm-alias-ldouble.h>.
444 (fabsl): Define using libm_alias_ldouble.
445
1def91b3
JM
446 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
447 Remove conditional code.
448
7d25d410
JM
449 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
450 Rename to __clog10_internal_l.
451 (__clog10_internal_l): Define aliases using
452 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
453 with __clog10.
454
077ee129
RS
4552017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
456
457 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
458 * benchtests/sincosf-inputs: New file.
459 * benchtests/cosf-inputs: New file.
460 * benchtests/sinf-inputs: New file.
461
5ba41de9
SN
4622017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
463
464 * posix/tst-spawn.c (do_test): Wait for both children.
465
d165ca64
L
4662017-10-12 H.J. Lu <hongjiu.lu@intel.com>
467
468 [BZ #22284]
469 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
470 tests-pie): Add tst-gmon-pie.
471 (CFLAGS-tst-gmon-pie.c): New.
472 (CRT-tst-gmon-pie): Likewise.
473 (tst-gmon-pie-ENV): Likewise.
474 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
475 ($(objpfx)tst-gmon-pie.out): Likewise.
476 (clean-tst-gmon-pie-data): Likewise.
477 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
478 * gmon/gmon.c [PIC]: Include <link.h>.
479 [PIC] (callback): New function.
480 (write_hist): Add an argument for load address. Subtract load
481 address from PCs.
482 (write_call_graph): Likewise.
483 (write_gmon): Call __dl_iterate_phdr to get load address, pass
484 it to write_hist and write_call_graph.
7bacdcfc 485 * gmon/tst-gmon-pie.c: New file.
d165ca64 486
bc9620d0
JM
4872017-10-11 Joseph Myers <joseph@codesourcery.com>
488
489 * math/Makefile (test-types-basic): New variable.
490 (test-types): Likewise.
491 (libm-test-support): Use $(test-types) instead of $(types).
492 (libm-tests-base-normal): Likewise.
493 (libm-tests-base-finite): Likewise.
494 (libm-tests-base-inline): Likewise.
495 (generated): Likewise.
496 ($(objpfx)libm-test-support-$(t).c): Likewise.
497 (libm-tests-for-type iterator): Likewise.
498 (libm-test-support iterator): Likewise.
499 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
500 (ulp_idx): Use ULP_IDX.
501 * math/test-ldouble.h: Include <float.h>.
502 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
503 (ULP_IDX): New macro.
504 (ULP_I_IDX): Likewise.
505 * math/test-double.h (ULP_IDX): Likewise.
506 (ULP_I_IDX): Likewise.
507 * math/test-float.h (ULP_IDX): Likewise.
508 (ULP_I_IDX): Likewise.
509 * math/test-float128.h (ULP_IDX): Likewise.
510 (ULP_I_IDX): Likewise.
511
09c76a74
AZ
5122017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
513
514 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
515 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
516 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
517 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
518 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
519 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
520 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
521 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
522 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
523 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
524 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
525 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
526 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
527 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
528 (SINGLE_THREAD_BY_GLOBAL): Define.
529 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
530 Likewise.
531 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
532 Likewise.
533 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
534 Likewise.
535 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
536 Likewise.
537 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
538 (SINGLE_THREAD_BY_GLOBAL): Likewise.
539 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
540 Likewise.
541
2faa42da
AS
5422017-10-11 Andreas Schwab <schwab@suse.de>
543
544 * nis/Makefile (aux): Remove.
545 * nscd/Makefile (aux): Add nscd_hash.
546 (nscd-modules): Likewise.
547 ($(objpfx)nscd): Don't depend on libnsl.
548 * nscd/nscd_hash.c: New file.
549 * nscd/nscd_hash.h: Likewise.
550 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
551 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
552 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
553 instead of <nis/rpcsvc/nis.h>.
554 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
555
d8425e11
FW
5562017-10-11 Florian Weimer <fweimer@redhat.com>
557
558 [BZ #22078]
559 Avoid large NSS buffers with many addresses, aliases.
560 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
561 using dynarrays and struct alloc_buffer.
562 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
563 (tst-nss-files-hosts-multi): Link with -ldl.
564 * nss/tst-nss-files-hosts-multi.c: New file.
565
78e806fd
FW
5662017-10-11 Florian Weimer <fweimer@redhat.com>
567
568 [BZ #18023]
569 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
570 scratch_buffer. Eliminate gotos.
571
541f19ba
JM
5722017-10-11 Joseph Myers <joseph@codesourcery.com>
573
0ff64d3a
JM
574 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
575 libm_alias_ldouble_other.
576 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
577 undefine and redefine.
578 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
579 (exp10l): Do not define here.
580 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
581 (weak_alias): Undefine and redefine.
582 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
583 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
584 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
585 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
586
541f19ba
JM
587 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
588 [!__fma] (fma): Define using libm_alias_double.
589 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
590 [!__fmaf] (fmaf): Define using libm_alias_float.
591 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
592 (fmal): Define using libm_alias_ldouble.
593
24b6515d
JM
5942017-10-10 Joseph Myers <joseph@codesourcery.com>
595
596 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
597 New macro.
598 (libm_alias_double_other): Likewise.
599 (libm_alias_double_r): Use libm_alias_double_other_r.
600 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
601 New macro.
602 (libm_alias_float_other): Likewise.
603 (libm_alias_float_r): Use libm_alias_float_other_r.
604 * sysdeps/generic/libm-alias-float128.h
605 (libm_alias_float128_other_r): New macro.
606 (libm_alias_float128_other): Likewise.
607 (libm_alias_float128_r): Use libm_alias_float128_other_r.
608 * sysdeps/generic/libm-alias-ldouble.h
609 (libm_alias_ldouble_other_r): New macro.
610 (libm_alias_ldouble_other): Likewise.
611 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
612 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
613 (libm_alias_double_other_r): New macro.
614 (libm_alias_double_other): Likewise.
615 (libm_alias_double_r): Use libm_alias_double_other_r.
616 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
617 (libm_alias_ldouble_other_r): New macro.
618 (libm_alias_ldouble_other): Likewise.
619 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
620 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
621 [!USE_AS_COMPAT]: Use libm_alias_double_other.
622 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
623 [!USE_AS_COMPAT]: Use libm_alias_float_other.
624 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
625 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
626 * math/w_exp2f.c: Use libm_alias_float_other.
627 * math/w_expf.c: Likewise.
628 * math/w_log2f.c: Likewise.
629 * math/w_logf.c: Likewise.
630 * math/w_powf.c: Likewise.
631 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
632 [!__exp2f]: Use libm_alias_float_other.
633 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
634 [!__expf]: Use libm_alias_float_other.
635 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
636 [!__log2f]: Use libm_alias_float_other.
637 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
638 [!__logf]: Use libm_alias_float_other.
639 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
640 [!__powf]: Use libm_alias_float_other.
641
8ed70de2
FW
6422017-10-10 Florian Weimer <fweimer@redhat.com>
643
644 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
645 function.
646 (_nss_files_gethostbyname3_r): Call it.
647
a8dce619
JM
6482017-10-09 Joseph Myers <joseph@codesourcery.com>
649
650 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
651 error. Remove default definition of declare_mgen_alias.
652 [!declare_mgen_alias_r]: Likewise.
653 * sysdeps/generic/math-type-macros-double.h
654 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
655 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
656 (declare_mgen_alias_r): Likewise.
657 * sysdeps/generic/math-type-macros-float128.h
658 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
659 * sysdeps/generic/math-type-macros-ldouble.h
660 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
661 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
662 macro.
663 (declare_mgen_alias_r_s): Likewise.
664 (declare_mgen_alias_r): Likewise.
665 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
666 (lgamma_r): Define using libm_alias_double_r.
667 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
668 (lgammaf_r): Define using libm_alias_float_r.
669 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
670 (lgammal_r): Define using libm_alias_ldouble_r.
671 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
672 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
673
bedac136
AZ
6742017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
675
676 * lib/glob.c (__glob_pattern_type): Remove now-spurious
677 extern declaration.
678
c7509db2
JM
6792017-10-09 Joseph Myers <joseph@codesourcery.com>
680
681 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
682
d6c064e9
JW
6832017-10-09 Jonathan Wakely <jwakely@redhat.com>
684
685 [BZ #21326]
686 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
687 [__cplusplus >= 201103] (__USE_ISOC99): Define.
688 * math/Makefile (test-math-cxx11): New test.
689 * math/test-math-cxx11.cc: New file.
690
98e07420
CB
6912017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
692
693 * login/openpty.c (openpty): Close slave pty file descriptor on error.
694
645ac9aa
CB
695 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
696 call to allocate the slave pty file descriptor.
697
fd3b4e7c
JM
6982017-10-06 Joseph Myers <joseph@codesourcery.com>
699
f85a176f
JM
700 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
701 [!__fma] (fma): Define using libm_alias_double.
702 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
703 [!__fma] (fma): Define using libm_alias_double.
704
fd3b4e7c
JM
705 * sysdeps/ieee754/float128/float128_private.h: Include
706 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
707 (libm_alias_ldouble_r): Undefine and redefine.
708 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
709 <libm-alias-ldouble.h>.
710 (asinhl): Define using libm_alias_ldouble.
711 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
712 <libm-alias-ldouble.h>.
713 (atanl): Define using libm_alias_ldouble.
714 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
715 <libm-alias-ldouble.h>.
716 (cbrtl): Define using libm_alias_ldouble.
717 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
718 <libm-alias-ldouble.h>.
719 (ceill): Define using libm_alias_ldouble.
720 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
721 <libm-alias-ldouble.h>.
722 (copysignl): Define using libm_alias_ldouble.
723 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
724 <libm-alias-ldouble.h>.
725 (cosl): Define using libm_alias_ldouble.
726 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
727 <libm-alias-ldouble.h>.
728 (erfl): Define using libm_alias_ldouble.
729 (erfcl): Likewise.
730 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
731 <libm-alias-ldouble.h>.
732 (expm1l): Define using libm_alias_ldouble.
733 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
734 <libm-alias-ldouble.h>.
735 (fabsl): Define using libm_alias_ldouble.
736 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
737 <libm-alias-ldouble.h>.
738 (floorl): Define using libm_alias_ldouble.
739 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
740 <libm-alias-ldouble.h>.
741 (fmal): Define using libm_alias_ldouble.
742 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
743 <libm-alias-ldouble.h>.
744 (frexpl): Define using libm_alias_ldouble.
745 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
746 libm_alias_ldouble.
747 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
748 <libm-alias-ldouble.h>.
749 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
750 libm_alias_ldouble.
751 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
752 <libm-alias-ldouble.h>.
753 (getpayloadl): Define using libm_alias_ldouble.
754 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
755 <libm-alias-ldouble.h>.
756 (llrintl): Define using libm_alias_ldouble.
757 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
758 <libm-alias-ldouble.h>.
759 (llroundl): Define using libm_alias_ldouble.
760 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
761 <libm-alias-ldouble.h>.
762 (logbl): Define using libm_alias_ldouble.
763 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
764 <libm-alias-ldouble.h>.
765 (lrintl): Define using libm_alias_ldouble.
766 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
767 <libm-alias-ldouble.h>.
768 (lroundl): Define using libm_alias_ldouble.
769 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
770 <libm-alias-ldouble.h>.
771 (modfl): Define using libm_alias_ldouble.
772 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
773 <libm-alias-ldouble.h>.
774 (nearbyintl): Define using libm_alias_ldouble.
775 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
776 <libm-alias-ldouble.h>.
777 (nextafterl): Define using libm_alias_ldouble.
778 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
779 <libm-alias-ldouble.h>.
780 (nextupl): Define using libm_alias_ldouble.
781 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
782 <libm-alias-ldouble.h>.
783 (remquol): Define using libm_alias_ldouble.
784 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
785 <libm-alias-ldouble.h>.
786 (rintl): Define using libm_alias_ldouble.
787 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
788 <libm-alias-ldouble.h>.
789 (roundevenl): Define using libm_alias_ldouble.
790 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
791 <libm-alias-ldouble.h>.
792 (roundl): Define using libm_alias_ldouble.
793 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
794 using libm_alias_ldouble.
795 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
796 <libm-alias-ldouble.h>.
797 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
798 Define using libm_alias_ldouble.
799 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
800 <libm-alias-ldouble.h>.
801 (sincosl): Define using libm_alias_ldouble.
802 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
803 <libm-alias-ldouble.h>.
804 (sinl): Define using libm_alias_ldouble.
805 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
806 <libm-alias-ldouble.h>.
807 (tanhl): Define using libm_alias_ldouble.
808 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
809 <libm-alias-ldouble.h>.
810 (tanl): Define using libm_alias_ldouble.
811 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
812 <libm-alias-ldouble.h>.
813 (totalorderl): Define using libm_alias_ldouble.
814 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
815 <libm-alias-ldouble.h>.
816 (totalordermagl): Define using libm_alias_ldouble.
817 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
818 <libm-alias-ldouble.h>.
819 (truncl): Define using libm_alias_ldouble.
820 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
821 libm_alias_ldouble.
822 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
823 libm_alias_ldouble.
824 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
825 <libm-alias-ldouble.h>.
826 (weak_alias): Do not undefine and redefine.
827 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
828 (copysignl): Define with long_double_symbol only if [IS_IN
829 (libc)].
830 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
831 <libm-alias-ldouble.h>.
832 (weak_alias): Do not undefine and redefine.
833 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
834 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
835 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
836 <libm-alias-ldouble.h>.
837 (weak_alias): Do not undefine and redefine.
838 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
839 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
840 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
841 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
842 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
843 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
844 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
845 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
846 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
847 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
848 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
849 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
850 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
851 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
852 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
853 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
854 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
855 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
856 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
857 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
858 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
859 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
860 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
861 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
862 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
863 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
864
1e26d351
CD
8652017-10-06 Carlos O'Donell <carlos@redhat.com>
866
867 [BZ #22111]
868 * malloc/malloc.c (tcache_shutting_down): Use bool type.
869 (tcache_thread_freeres): Set tcache_shutting_down before
870 freeing the tcache.
871 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
872 * malloc/tst-malloc-tcache-leak.c: New file.
873
d1386762
RS
8742017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
875
876 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
877 back to powerpc32 file.
878 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
879 (memrchr): Add __memrchr_power8 to ifunc list.
880 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
881 extra bytes for unaligned inputs.
882
6dff1983
JM
8832017-10-06 Joseph Myers <joseph@codesourcery.com>
884
885 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
886 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
887 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
888 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
889 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
890
86f9568a
JM
8912017-10-05 Joseph Myers <joseph@codesourcery.com>
892
0db0b931
JM
893 * sysdeps/arm/libm-test-ulps: Update.
894
86f9568a
JM
895 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
896 <libm-alias-ldouble.h>.
897 (asinhl): Define using libm_alias_ldouble.
898 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
899 <libm-alias-ldouble.h>.
900 (cbrtl): Define using libm_alias_ldouble.
901 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
902 <libm-alias-ldouble.h>.
903 (copysignl): Define using libm_alias_ldouble.
904 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
905 <libm-alias-ldouble.h>.
906 (cosl): Define using libm_alias_ldouble.
907 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
908 <libm-alias-ldouble.h>.
909 (erfl): Define using libm_alias_ldouble.
910 (erfcl): Likewise.
911 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
912 <libm-alias-ldouble.h>.
913 (fmal): Define using libm_alias_ldouble.
914 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
915 <libm-alias-ldouble.h>.
916 (frexpl): Define using libm_alias_ldouble.
917 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
918 libm_alias_ldouble.
919 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
920 <libm-alias-ldouble.h>.
921 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
922 libm_alias_ldouble.
923 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
924 <libm-alias-ldouble.h>.
925 (getpayloadl): Define using libm_alias_ldouble.
926 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
927 <libm-alias-ldouble.h>.
928 (llrintl): Define using libm_alias_ldouble.
929 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
930 <libm-alias-ldouble.h>.
931 (llroundl): Define using libm_alias_ldouble.
932 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
933 <libm-alias-ldouble.h>.
934 (lrintl): Define using libm_alias_ldouble.
935 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
936 <libm-alias-ldouble.h>.
937 (lroundl): Define using libm_alias_ldouble.
938 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
939 <libm-alias-ldouble.h>.
940 (modfl): Define using libm_alias_ldouble.
941 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
942 <libm-alias-ldouble.h>.
943 (nextupl): Define using libm_alias_ldouble.
944 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
945 <libm-alias-ldouble.h>.
946 (remquol): Define using libm_alias_ldouble.
947 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
948 <libm-alias-ldouble.h>.
949 (roundevenl): Define using libm_alias_ldouble.
950 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
951 <libm-alias-ldouble.h>.
952 (roundl): Define using libm_alias_ldouble.
953 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
954 using libm_alias_ldouble.
955 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
956 <libm-alias-ldouble.h>.
957 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
958 <libm-alias-ldouble.h>.
959 (setpayloadsigl): Define using libm_alias_ldouble.
960 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
961 <libm-alias-ldouble.h>.
962 (sincosl): Define using libm_alias_ldouble.
963 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
964 <libm-alias-ldouble.h>.
965 (sinl): Define using libm_alias_ldouble.
966 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
967 <libm-alias-ldouble.h>.
968 (tanhl): Define using libm_alias_ldouble.
969 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
970 <libm-alias-ldouble.h>.
971 (tanl): Define using libm_alias_ldouble.
972 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
973 <libm-alias-ldouble.h>.
974 (totalorderl): Define using libm_alias_ldouble.
975 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
976 <libm-alias-ldouble.h>.
977 (totalordermagl): Define using libm_alias_ldouble.
978 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
979 libm_alias_ldouble.
980 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
981 libm_alias_ldouble.
982
9ec87fd2
SP
9832017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
984
dd5bc7f1
SP
985 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
986 memmove_falkor.
987 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
988 (__libc_ifunc_impl_list): Likewise.
989 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
990 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
991
5bfb0404
SP
992 * benchtests/bench-memmove-walk.c: New file.
993 * benchtests/Makefile (string-benchset): Add it.
994
36bb8edf
SP
995 * benchtests/bench-memset-walk.c: New file.
996 * benchtests/Makefile (string-benchset): Add it.
997
9ec87fd2
SP
998 * benchtests/bench-memcpy-walk.c: New file.
999 * benchtests/Makefile (string-benchset): Add it.
1000
1e9522c6
FW
10012017-10-05 Florian Weimer <fweimer@redhat.com>
1002
1003 nscd: Eliminate compilation time dependency in the build output.
1004 * nscd/nscd_stat.c (STATDATA_VERSION)
1005 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
1006 (STATDATA_VERSION_FULL): New macro definitions.
1007 (compilation): Remove.
1008 (struct statdata): Adjust version member.
1009 (send_stats): Set version from STATDATA_VERSION_FULL.
1010 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
1011
644d3857
JM
10122017-10-05 Joseph Myers <joseph@codesourcery.com>
1013
1014 * configure.ac (--enable-add-ons): Remove option.
1015 (machine): Do not mention add-ons in comment.
1016 (LIBC_PRECONFIGURE): Likewise.
1017 (add_ons): Remove variable and sanity checks and logic to locate
1018 add-ons.
1019 (add_ons_automatic): Remove variable.
1020 (configured_add_ons): Likewise.
1021 (add_ons_sfx): Likewise.
1022 (add_ons_pfx): Likewise.
1023 (add_on_subdirs): Likewise.
1024 (sysnames_add_ons): Likewise. Remove loop over add-ons and
1025 consideration of add-ons in Implies handling.
1026 (sysdeps_add_ons): Likewise.
1027 * configure: Regenerated.
1028 * libidn/configure.ac: Remove.
1029 * libidn/configure: Likewise.
1030 * sysdeps/unix/inet/configure.ac: New file.
1031 * sysdeps/unix/inet/configure: New generated file.
1032 * sysdeps/unix/inet/Subdirs: Add libidn.
1033 * Makeconfig (sysdeps-srcdirs): Remove variable.
1034 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
1035 ($(common-objpfx)config.status): Do not depend on add-on files.
1036 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
1037 comment.
1038 (all-subdirs): Do not include $(add-on-subdirs).
1039 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
1040 * config.make.in (add-ons): Remove variable.
1041 (add-on-subdirs): Likewise.
1042 (sysdeps-add-ons): Likewise.
1043 * manual/Makefile (add-chapters): Remove.
1044 ($(objpfx)texis): Do not depend on $(add-chapters).
1045 (nonexamples): Do not handle $(add-chapters).
1046 (examples): Do not handle $(add-ons).
1047 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
1048 libc-texinfo.sh.
1049 * manual/install.texi (Installation): Do not mention add-ons.
1050 (--enable-add-ons): Do not document configure option.
1051 * INSTALL: Regenerated.
1052 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
1053 * manual/maint.texi (Hierarchy Conventions): Do not mention
1054 add-ons.
1055 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
1056 --enable-add-ons.
1057 * scripts/gen-sorted.awk: Do not handle Subdirs files from
1058 add-ons.
1059 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
1060 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
1061
19f82f35
AS
10622017-10-05 Andreas Schwab <schwab@suse.de>
1063
1064 [BZ #15142]
1065 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
1066 (_IO_flush_all_lockp): Always lock list_all_lock.
1067 (_IO_flush_all_linebuffered): Likewise.
1068 (_IO_unbuffer_all): Likewise.
1069
91e7cf98
FW
10702017-10-05 Florian Weimer <fweimer@redhat.com>
1071
1072 [BZ #15436]
1073 Do not flush stdio streams on abort.
1074 * stdlib/abort.c (fflush): Remove macro definition.
1075 (abort): Remove stages related to stdio flushing.
1076
0c251257
FW
10772017-10-05 Florian Weimer <fweimer@redhat.com>
1078
1079 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
1080
7ea59e3e
SL
10812017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
1082
1083 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
1084
84d0e6f0
FW
10852017-10-05 Florian Weimer <fweimer@redhat.com>
1086
1087 * support/support_format_hostent.c (support_format_hostent): Add
1088 more error information for NETDB_INTERNAL.
1089
ee417882
L
10902017-10-04 H.J. Lu <hongjiu.lu@intel.com>
1091
1092 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
1093 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
1094 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
1095 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
1096 AC_DEFINE if multi-arch is enabled.
1097 * sysdeps/i386/configure: Regenerated.
1098
a67029ff
L
10992017-10-04 H.J. Lu <hongjiu.lu@intel.com>
1100
1101 * Makeconfig (+link-static-before-libc): Use
1102 $(DEFAULT-LDFLAGS-$(@F)).
1103 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
1104 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
1105 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
1106
5dba84b3
L
11072017-10-04 H.J. Lu <hongjiu.lu@intel.com>
1108
1109 * elf/Makefile (tests): Add tst-main1.
1110 (modules-names): Add tst-main1mod.
1111 ($(objpfx)tst-main1): New.
1112 (CRT-tst-main1): Likewise.
1113 (LDFLAGS-tst-main1): Likewise.
1114 (LDLIBS-tst-main1): Likewise.
1115 (tst-main1mod.so-no-z-defs): Likewise.
1116 * elf/tst-main1.c: New file.
1117 * elf/tst-main1mod.c: Likewise.
1118
758f1bfa
L
11192017-10-04 H.J. Lu <hongjiu.lu@intel.com>
1120
1121 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
1122
7e16a5d1
JM
11232017-10-04 Joseph Myers <joseph@codesourcery.com>
1124
1125 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
1126 (fma): Define using libm_alias_double.
1127 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
1128 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
1129 <math_ldbl_opt.h>.
1130 (fmal): Do not define as compat symbol here.
1131 * sysdeps/alpha/fpu/s_fma.c: New file.
1132
db4f87ba
SN
11332017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
1134
1135 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
1136
72d13ed1
JM
11372017-10-04 Joseph Myers <joseph@codesourcery.com>
1138
32d372d5
JM
1139 [BZ #22229]
1140 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
1141 <math_ldbl_opt.h>
1142 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
1143 and libc.
1144 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
1145 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
1146 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
1147 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
1148 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
1149 Include <math_ldbl_opt.h>
1150 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
1151 and libc.
1152 (compat_symbol): Undefine and redefine.
1153 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
1154 <math_ldbl_opt.h>
1155 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
1156 (compat_symbol): Undefine and redefine.
1157 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
1158 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
1159 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
1160 GLIBC_2_1 for libm.
1161 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
1162 GLIBC_2.0 copysignl symbol.
1163 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
1164 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
1165
72d13ed1
JM
1166 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
1167
11c4f501
FW
11682017-10-04 Florian Weimer <fweimer@redhat.com>
1169
1170 * scripts/check-local-headers.sh: Ignore nspr4 header file
1171 directory in addition to nspr.
1172
57b4af19
GT
11732017-10-04 Guido Trentalancia <guido@trentalancia.net>
1174
1175 [BZ #17956]
1176 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
1177 * configure: Regenerate.
1178 * crypt/Makefile (nss-cpp-flags): New variable.
1179 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
1180 (CPPFLAGS-md5-crypt.c): Use it.
1181 * scripts/check-local-headers.sh: Ignore nspr header file
1182 directory.
1183
64d1e08e
AS
11842017-10-04 Andreas Schwab <schwab@suse.de>
1185
1186 * nis/Makefile (services): Remove compat.
1187 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
1188 ($(objpfx)libnss_compat.so): Remove rule.
1189 * nis/Versions (libnss_compat): Remove.
1190 * nss/Makefile (services): Add compat.
1191 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
1192 * nss/Versions (libnss_compat): Define.
1193 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
1194 Don't include <rpc/types.h>. Replace bool_t by bool.
1195 * nss/nss_compat/compat-initgroups.c: Likewise.
1196 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
1197 instead of <rpcsrv/ypclnt.h>.
1198 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
1199 yp_get_default_domain.
1200 * nss/nss_compat/compat-pwd.c: Likewise.
1201 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
1202 yp_get_default_domain.
1203 * nss/nss_compat/nisdomain.c: New file.
1204 * nss/nss_compat/nisdomain.h: Likewise.
1205
86c27ade
SN
12062017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
1207
1208 [BZ #22244]
1209 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
1210 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
1211
8f8f8ef7
SN
12122017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
1213
1214 [BZ #22243]
1215 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
1216 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
1217
95577475
L
12182017-10-03 H.J. Lu <hongjiu.lu@intel.com>
1219
1220 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
1221 "movl main@GOTOFF(%ebx), %eax".
1222
02d2d892
L
12232017-10-03 H.J. Lu <hongjiu.lu@intel.com>
1224
1225 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
1226 allow undefined _DYNAMIC in PIE libc.a.
1227 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
1228 Likewse.
1229
0c609d19
L
12302017-10-03 H.J. Lu <hongjiu.lu@intel.com>
1231
1232 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
1233 check _DYNAMIC.
1234
c34a19ed
L
12352017-10-03 H.J. Lu <hongjiu.lu@intel.com>
1236
1237 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
1238 check _DYNAMIC.
1239
cdd4155d
L
12402017-10-03 H.J. Lu <hongjiu.lu@intel.com>
1241
1242 * math/test-math-iscanonical.cc (error): Replace bool with int.
1243
4699cb8b
JM
12442017-10-03 Joseph Myers <joseph@codesourcery.com>
1245
d8f619b3
JM
1246 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
1247 (modf): Define using libm_alias_double, only if [!__modf].
1248 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
1249 <libm-alias-double.h>.
1250 (modf): Define using libm_alias_double, only if [!__modf].
1251 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
1252 compat symbol here.
1253 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
1254 (weak_alias): Do not undefine and redefine.
1255 (strong_alias): Likewise.
1256 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
1257 (weak_alias): Likewise.
1258 (strong_alias): Likewise.
1259
4699cb8b
JM
1260 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
1261 (logb): Define using libm_alias_double, only if [!__logb].
1262 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
1263 <libm-alias-double.h>.
1264 (logb): Define using libm_alias_double, only if [!__logb].
1265 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
1266 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
1267 (weak_alias): Do not undefine and redefine.
1268 (strong_alias): Likewise.
1269 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
1270 (weak_alias): Likewise.
1271 (strong_alias): Likewise.
1272
bcc4e4bb
L
12732017-10-03 H.J. Lu <hongjiu.lu@intel.com>
1274
1275 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
1276 Check SHARED instead PIC.
1277
39793865
JM
12782017-10-03 Joseph Myers <joseph@codesourcery.com>
1279
7f1cbdf8
JM
1280 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
1281 [!__fmaf] (fmaf): Define using libm_alias_float.
1282
39793865
JM
1283 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
1284 (frexp): Define using libm_alias_double.
1285 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
1286 <libm-alias-double.h>.
1287 (frexp): Define using libm_alias_double.
1288 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
1289 compat symbol here.
1290
aa0235df
GG
12912017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1292
1293 [BZ #22235]
1294 * math/math.h: Trivial fix for unbalanced parentheses in comment.
1295 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
1296 (CFLAGS-test-math-iscanonical.cc): New variable.
1297 * math/test-math-iscanonical.cc: New file.
1298 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
1299 Provide a C++ implementation based on function overloading,
1300 rather than using __MATH_TG, which uses C-only builtins.
1301 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
1302 Likewise.
1303 * sysdeps/powerpc/powerpc64le/Makefile
1304 (CFLAGS-test-math-iscanonical.cc): New variable.
1305
a1132b5e
JM
13062017-10-03 Joseph Myers <joseph@codesourcery.com>
1307
1308 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
1309 (ceil): Define using libm_alias_double.
1310 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
1311 (floor): Define using libm_alias_double.
1312 * sysdeps/ieee754/dbl-64/s_llround.c: Include
1313 <libm-alias-double.h>.
1314 (llround): Define using libm_alias_double.
1315 * sysdeps/ieee754/dbl-64/s_lround.c: Include
1316 <libm-alias-double.h>.
1317 (lround): Define using libm_alias_double.
1318 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
1319 <libm-alias-double.h>.
1320 (nearbyint): Define using libm_alias_double.
1321 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
1322 <libm-alias-double.h>.
1323 (remquo): Define using libm_alias_double.
1324 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
1325 (rint): Define using libm_alias_double.
1326 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
1327 (round): Define using libm_alias_double.
1328 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
1329 (trunc): Define using libm_alias_double.
1330 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
1331 <libm-alias-double.h>.
1332 (ceil): Define using libm_alias_double.
1333 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
1334 <libm-alias-double.h>.
1335 (floor): Define using libm_alias_double.
1336 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
1337 <libm-alias-double.h>.
1338 (llround): Define using libm_alias_double.
1339 [_LP64] (lround): Likewise.
1340 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
1341 <libm-alias-double.h>.
1342 [!_LP64] (lround): Define using libm_alias_double.
1343 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
1344 <libm-alias-double.h>.
1345 (nearbyint): Define using libm_alias_double.
1346 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
1347 <libm-alias-double.h>.
1348 (remquo): Define using libm_alias_double.
1349 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
1350 <libm-alias-double.h>.
1351 (rint): Define using libm_alias_double.
1352 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
1353 <libm-alias-double.h>.
1354 (round): Define using libm_alias_double.
1355 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
1356 <libm-alias-double.h>.
1357 (trunc): Define using libm_alias_double.
1358 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
1359 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
1360 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
1361 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
1362 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
1363 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
1364 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
1365 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
1366 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
1367
f275f64e
SN
13682017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
1369
1370 * math/w_remainder.c: New file.
1371 * math/w_remainderf.c: New file.
1372 * math/w_remainderl.c: New file.
1373
b8818ab5
L
13742017-10-03 H.J. Lu <hongjiu.lu@intel.com>
1375
1376 * elf/rtld.c (BOOTSTRAP_MAP): New.
1377 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
1378 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
1379 Likewise.
1380 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
1381 Likewise.
1382 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
1383 Likewise.
1384
3d1870fa
ST
13852017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
1386
1387 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
1388 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
1389 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
1390 rtld_hidden_data_ver): Define to empty.
1391 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
1392 __assert_perror_fail): Likewise.
1393 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
1394 (__rewinddir): Likewise.
1395 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
1396 (__profile_frequency): Likewise.
1397 * include/setjmp.h (__sigsetjmp): Likewise.
1398 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
1399 __libc_sigaction): Likewise.
1400 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
1401 not set hidden attribute.
1402 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
1403 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
1404 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
1405 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
1406 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
1407 __fxstatat64): Likewise.
1408 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
1409 (__uname): Likewise.
1410 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
1411 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
1412 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
1413 (NO_RTLD_HIDDEN): Set.
1414 * sysdeps/mach/hurd/configure: Refresh.
1415 * config.h.in: Refresh.
1416
527cd19c
JM
14172017-10-02 Joseph Myers <joseph@codesourcery.com>
1418
38722448
JM
1419 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
1420 (atan): Define using libm_alias_double.
1421 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
1422 (tan): Define using libm_alias_double.
1423 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
1424 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
1425
527cd19c
JM
1426 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
1427 define as weak alias of __atan. Do not define any aliases if
1428 [__atan].
1429 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
1430 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
1431 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
1432 as weak alias of __tan. Do not define any aliases if [__tan].
1433 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
1434 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
1435 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
1436 __atan.
1437 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
1438 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
1439 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
1440 and define as weak alias of __atan.
1441 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
1442 __atan.
1443 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
1444 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
1445 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
1446 define as weak alias of __tan.
1447
bdc5c592
SN
14482017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
1449
1450 * math/w_lgamma.c: New file.
1451 * math/w_lgammaf.c: New file.
1452 * math/w_lgammal.c: New file.
1453
bd4430c2
SN
14542017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
1455
1456 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
1457 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
1458 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
1459 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
1460 * sysdeps/ieee754/flt-32/w_logf.c: New file.
1461 * sysdeps/ieee754/flt-32/w_powf.c: New file.
1462 * sysdeps/i386/fpu/w_log2f.c: New file.
1463 * sysdeps/i386/fpu/w_logf.c: New file.
1464 * sysdeps/i386/fpu/w_powf.c: New file.
1465 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
1466 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
1467 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
1468
f7a0b063
SN
14692017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
1470 H.J. Lu <hongjiu.lu@intel.com>
1471
1472 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
1473 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
1474 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
1475 * sysdeps/ieee754/flt-32/w_expf.c: New file.
1476 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
1477 the new expf code.
1478 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
1479 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
1480 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
1481 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
1482 * sysdeps/i386/fpu/w_exp2f.c: New file.
1483 * sysdeps/i386/fpu/w_expf.c: New file.
1484 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
1485 * sysdeps/x86_64/fpu/w_expf.c: New file.
1486
72d3d281
SN
14872017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
1488
1489 * math/Versions (logf): New libm symbol at GLIBC_2.27.
1490 (log2f): Likewise.
1491 (powf): Likewise.
1492 * math/w_log2f.c: New file.
1493 * math/w_logf.c: New file.
1494 * math/w_powf.c: New file.
1495 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
1496 * math/w_logf_compat.c (__logf_compat): Likewise.
1497 * math/w_powf_compat.c (__powf_compat): Likewise.
1498 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
1499 * sysdeps/ia64/fpu/e_logf.S: Likewise.
1500 * sysdeps/ia64/fpu/e_powf.S: Likewise.
1501 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
1502 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
1503 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
1504 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
1505 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
1506 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
1507 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
1508 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
1509 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
1510 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
1511 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
1512 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
1513 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
1514 Likewise.
1515 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
1516 Likewise.
1517 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
1518 Likewise.
1519 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
1520 Likewise.
1521 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
1522 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
1523 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
1524 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
1525 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
1526 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
1527 Likewise.
1528 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
1529 Likewise.
1530 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
1531 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
1532 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
1533
59ba2d2b
RS
15342017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
1535
1536 * sysdeps/powerpc/powerpc64/multiarch/Makefile
1537 (sysdep_routines): Add memrchr_power8.
1538 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
1539 (memrchr): Add __memrchr_power8 to list of memrchr functions.
1540 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
1541 New file.
1542 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
1543 (memrchr): Add __memrchr_power8 to ifunc list.
1544 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
1545
397286ea
L
15462017-10-01 H.J. Lu <hongjiu.lu@intel.com>
1547
1548 [BZ #18822]
1549 * sysdeps/unix/sysv/linux/posix_fadvise64.c
1550 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
1551 libc_hidden_def.
1552 * sysdeps/unix/sysv/linux/posix_fallocate64.c
1553 (__posix_fallocate64_l64): Likewise.
1554
d0a4512b
L
15552017-10-01 H.J. Lu <hongjiu.lu@intel.com>
1556
1557 [BZ #18822]
1558 * sysdeps/unix/sysv/linux/sched_setaffinity.c
1559 (__sched_setaffinity_new): Add libc_hidden_proto and
1560 libc_hidden_def.
1561
c0769f70
L
15622017-10-01 H.J. Lu <hongjiu.lu@intel.com>
1563
1564 [BZ #18822]
1565 * include/glob.h (__glob64): Add libc_hidden_proto.
1566 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
1567 libc_hidden_def.
1568
0e7d5b6e
L
15692017-10-01 H.J. Lu <hongjiu.lu@intel.com>
1570
1571 [BZ #18822]
1572 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
1573 attribute_hidden.
1574
bde06c87
L
15752017-10-01 H.J. Lu <hongjiu.lu@intel.com>
1576
1577 [BZ #18822]
1578 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
1579
fa426590
L
15802017-10-01 H.J. Lu <hongjiu.lu@intel.com>
1581
1582 [BZ #18822]
1583 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
1584 libc_hidden_def.
1585
2f8a05d8
L
15862017-10-01 H.J. Lu <hongjiu.lu@intel.com>
1587
1588 [BZ #18822]
1589 * csu/version.c (__libc_print_version): Add attribute_hidden.
1590
7bfd08ac
L
15912017-10-01 H.J. Lu <hongjiu.lu@intel.com>
1592
1593 [BZ #18822]
1594 * include/libc-internal.h (__init_misc): Add attribute_hidden.
1595
0e1fd06c
L
15962017-10-01 H.J. Lu <hongjiu.lu@intel.com>
1597
1598 [BZ #18822]
1599 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
1600
36e7ae1e
L
16012017-10-01 H.J. Lu <hongjiu.lu@intel.com>
1602
1603 [BZ #18822]
1604 * nscd/nscd_helper.c (__nis_hash): New prototype.
1605
87078544
L
16062017-10-01 H.J. Lu <hongjiu.lu@intel.com>
1607
1608 [BZ #18822]
1609 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
1610 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
1611 libc_hidden_def.
1612 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
1613 * termios/tcgetattr.c (__tcgetattr): Likewise.
1614
dd3121df
L
16152017-10-01 H.J. Lu <hongjiu.lu@intel.com>
1616
1617 [BZ #18822]
1618 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
1619 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
1620 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
1621 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
1622 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
1623
047d1a81
L
16242017-10-01 H.J. Lu <hongjiu.lu@intel.com>
1625
1626 [BZ #18822]
1627 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
1628
fd331b11
L
16292017-10-01 H.J. Lu <hongjiu.lu@intel.com>
1630
1631 [BZ #18822]
1632 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
1633 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
1634
57f859bd
L
16352017-10-01 H.J. Lu <hongjiu.lu@intel.com>
1636
1637 [BZ #18822]
1638 * intl/hash-string.h (__hash_string): Add attribute_hidden.
1639
d1903329
L
16402017-10-01 H.J. Lu <hongjiu.lu@intel.com>
1641
1642 [BZ #18822]
1643 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
1644 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
1645
b4744101
L
16462017-10-01 H.J. Lu <hongjiu.lu@intel.com>
1647
1648 [BZ #18822]
1649 * include/ifreq.h: New file.
1650 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
1651 (__ifreq): Likewise.
1652 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
1653 (__ifreq): Likewise.
1654
43b7dfd1
L
16552017-10-01 H.J. Lu <hongjiu.lu@intel.com>
1656
1657 [BZ #18822]
1658 * include/idna.h: New file.
1659 * inet/getnameinfo.c: Include <idna.h> instead of
1660 <libidn/idna.h>.
1661 (__idna_to_unicode_lzlz): Removed.
1662 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
1663 <libidn/idna.h>.
1664 (__idna_to_ascii_lz): Removed.
1665 (__idna_to_unicode_lzlz): Likewise.
1666
2c0cd8f8
L
16672017-10-01 H.J. Lu <hongjiu.lu@intel.com>
1668
1669 [BZ #18822]
1670 * include/plural-exp.h: New file.
1671 * intl/plural-exp.c: Include <plural-exp.h> instead of
1672 "plural-exp.h".
1673
8369d216
L
16742017-10-01 H.J. Lu <hongjiu.lu@intel.com>
1675
1676 [BZ #18822]
1677 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
1678 "getsourcefilter.h".
1679 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
1680 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
1681 "getsourcefilter.h".
1682 (__get_sol): Removed.
1683
a0aef783
L
16842017-10-01 H.J. Lu <hongjiu.lu@intel.com>
1685
1686 [BZ #18822]
1687 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
1688 to ...
1689 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
1690
3ee8209b
L
16912017-10-01 H.J. Lu <hongjiu.lu@intel.com>
1692
1693 [BZ #18822]
1694 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
1695 attribute_hidden.
1696
6036fc38
L
16972017-10-01 H.J. Lu <hongjiu.lu@intel.com>
1698
1699 [BZ #18822]
1700 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
1701
fe84fed0
L
17022017-10-01 H.J. Lu <hongjiu.lu@intel.com>
1703
1704 [BZ #18822]
1705 * include/search.h (__tdestroy): Add libc_hidden_proto.
1706 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
1707
048dd681
L
17082017-10-01 H.J. Lu <hongjiu.lu@intel.com>
1709
1710 [BZ #18822]
1711 * include/assert.h (__assert_fail_base): Add attribute_hidden.
1712
6e342af6
L
17132017-10-01 H.J. Lu <hongjiu.lu@intel.com>
1714
1715 [BZ #18822]
1716 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
1717 attribute_hidden.
1718
6a088436
L
17192017-10-01 H.J. Lu <hongjiu.lu@intel.com>
1720
1721 [BZ #18822]
1722 * include/signal.h (__kill): Add libc_hidden_proto.
1723 (__sigblock): Likewise.
1724 (__sigprocmask): Likewise.
1725 (__sigaltstack): Likewise.
1726 * signal/kill.c (__kill): Add libc_hidden_def.
1727 * signal/sigblock.c (__sigblock): Likewise.
1728 * signal/sigprocmask.c (__sigprocmask): Likewise.
1729 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
1730 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
1731 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
1732 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
1733 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
1734 Likewise.
1735 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
1736 Likewise.
1737 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
1738 (__sigprocmask): Likewise.
1739 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
1740 Likewise.
1741 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
1742 (__sigprocmask): Likewise.
1743 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
1744 Likewise.
1745
78cf1d74
L
17462017-10-01 H.J. Lu <hongjiu.lu@intel.com>
1747
1748 [BZ #18822]
1749 * include/string.h (__strsep): Add libc_hidden_proto.
1750 * string/strsep.c (__strsep): Add libc_hidden_def.
1751
85b35894
L
17522017-10-01 H.J. Lu <hongjiu.lu@intel.com>
1753
1754 [BZ #18822]
1755 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
1756 attribute_hidden.
1757 (__spawni): Likewise.
1758
225f7eec
L
17592017-10-01 H.J. Lu <hongjiu.lu@intel.com>
1760
1761 [BZ #18822]
1762 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
1763 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
1764 libc_hidden_def.
1765
372fe247
L
17662017-10-01 H.J. Lu <hongjiu.lu@intel.com>
1767
1768 [BZ #18822]
1769 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
1770
9e5ee8b8
L
17712017-10-01 H.J. Lu <hongjiu.lu@intel.com>
1772
1773 [BZ #18822]
1774 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
1775 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
1776 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
1777 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
1778 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
1779 Likewise.
1780 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
1781 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
1782
2ff16592
L
17832017-10-01 H.J. Lu <hongjiu.lu@intel.com>
1784
1785 [BZ #18822]
1786 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
1787 (__dcigettext): Likewise.
1788
b5648377
L
17892017-10-01 H.J. Lu <hongjiu.lu@intel.com>
1790
1791 [BZ #18822]
1792 * include/sys/sysinfo.h (__get_nprocs_conf): Add
1793 libc_hidden_proto.
1794 (__get_nprocs): Likewise.
1795 (__get_phys_pages): Likewise.
1796 (__get_avphys_pages): Likewise.
1797 (__get_child_max): Add attribute_hidden.
1798 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
1799 (__get_nprocs): Likewise.
1800 (__get_phys_pages): Likewise.
1801 (__get_avphys_pages): Likewise.
1802 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
1803 libc_hidden_def.
1804 (__get_nprocs): Likewise.
1805 (__get_phys_pages): Likewise.
1806 (__get_avphys_pages): Likewise.
1807 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
1808 libc_hidden_def.
1809 (__get_nprocs_conf): Likewise.
1810 (__get_phys_pages): Likewise.
1811 (__get_avphys_pages): Likewise.
1812
0389a6aa
L
18132017-10-01 H.J. Lu <hongjiu.lu@intel.com>
1814
1815 [BZ #18822]
1816 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
1817 attribute_hidden.
1818 (__netlink_close): Likewise.
1819 (__netlink_free_handle): Likewise.
1820 (__netlink_request): Likewise.
1821
d48354d8
L
18222017-10-01 H.J. Lu <hongjiu.lu@intel.com>
1823
1824 [BZ #18822]
1825 * include/rpc/rpc.h (__rpc_thread_variables): Add
1826 attribute_hidden.
1827 (__rpc_thread_svc_cleanup): Likewise.
1828 (__rpc_thread_clnt_cleanup): Likewise.
1829 (__rpc_thread_key_cleanup): Likewise.
1830
d6daff12
L
18312017-10-01 H.J. Lu <hongjiu.lu@intel.com>
1832
1833 [BZ #18822]
1834 * include/sys/uio.h (__readv): Add libc_hidden_proto.
1835 (__writev): Likewise.
1836 * misc/readv.c (__readv): Add libc_hidden_def.
1837 * misc/writev.c (__writev): Likewise.
1838 * sysdeps/posix/readv.c (__readv): Likewise.
1839 * sysdeps/posix/writev.c (__writev): Likewise.
1840 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
1841 (__readv): Likewise.
1842 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
1843 (__writev): Likewise.
1844
b68f8620
L
18452017-10-01 H.J. Lu <hongjiu.lu@intel.com>
1846
1847 [BZ #18822]
1848 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
1849 (__regcomp): Add libc_hidden_proto.
1850 (__regexec): Likewise.
1851 (__regfree): Likewise.
1852 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
1853 (__regfree): Likewise.
1854 * posix/regexec.c (__regexec): Likewise.
1855
59c04e67
L
18562017-10-01 H.J. Lu <hongjiu.lu@intel.com>
1857
1858 [BZ #18822]
1859 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
1860 (__getutent): Likewise.
1861 (__getutid): Likewise.
1862 (__getutline): Likewise.
1863 (__pututline): Likewise.
1864 (__getutent_r): Likewise.
1865 (__getutid_r): Likewise.
1866 (__getutline_r): Likewise.
1867 (__utmpname): Add attribute_hidden.
1868 (__setutent): Likewise.
1869 (__endutent): Likewise.
1870 * login/getutent.c (__getutent): Add libc_hidden_def.
1871 * login/getutent_r.c (__getutent_r): Likewise.
1872 (__pututline): Likewise.
1873 * login/getutid.c (__getutid): Likewise.
1874 * login/getutid_r.c (__getutid_r): Likewise.
1875 * login/getutline.c (__getutline): Likewise.
1876 * login/getutline_r.c (__getutline_r): Likewise.
1877 * login/updwtmp.c (__updwtmp): Likewise.
1878
4587a421
L
18792017-10-01 H.J. Lu <hongjiu.lu@intel.com>
1880
1881 [BZ #18822]
1882 * include/dirent.h (__opendir): Always add attribute_hidden.
1883 (__fdopendir): Likewise.
1884 (__closedir): Likewise.
1885 (__readdir): Likewise.
1886 (__readdir64): Add libc_hidden_proto.
1887 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
1888 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
1889 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
1890 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
1891 New alias.
1892
9635ce69
L
18932017-10-01 H.J. Lu <hongjiu.lu@intel.com>
1894
1895 [BZ #18822]
1896 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
1897 * include/netdb.h (__gethostbyaddr_r): Likewise.
1898 (__gethostbyname_r): Likewise.
1899 (__gethostbyname2_r): Likewise.
1900 (__getnetbyaddr_r): Likewise.
1901 (__getnetbyname_r): Likewise.
1902 (__getservbyname_r): Likewise.
1903 (__getservbyport_r): Likewise.
1904 (__getprotobyname_r): Likewise.
1905 (__getprotobynumber_r): Likewise.
1906 (__getnetgrent_r): Likewise.
1907 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
1908 (__getrpcbynumber_r): Likewise.
1909 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
1910
2e0a6909
L
19112017-10-01 H.J. Lu <hongjiu.lu@intel.com>
1912
1913 [BZ #18822]
1914 * include/stdio.h (__fcloseall): Add attribute_hidden.
1915 (__getline): Likewise.
1916 (__path_search): Likewise.
1917 (__gen_tempname): Likewise.
1918 (__libc_message): Likewise.
1919 (__flockfile): Likewise.
1920 (__funlockfile): Likewise.
1921 (__fxprintf): Likewise.
1922 (__fxprintf_nocancel): Likewise.
1923
94fd682c
L
19242017-10-01 H.J. Lu <hongjiu.lu@intel.com>
1925
1926 [BZ #18822]
1927 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
1928 (__sgetsgent_r): Likewise.
1929
e1b33bba
L
19302017-10-01 H.J. Lu <hongjiu.lu@intel.com>
1931
1932 [BZ #18822]
1933 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
1934 (__statfs64): Likewise.
1935 (__fstatfs64): Likewise.
1936 * include/sys/statvfs.h (__statvfs64): Likewise.
1937 (__fstatvfs64): Likewise.
1938 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
1939 (__statfs_filesize_max): Likewise.
1940 (__statfs_symlinks): Likewise.
1941 (__statfs_chown_restricted): Likewise.
1942
b0f56784
L
19432017-10-01 H.J. Lu <hongjiu.lu@intel.com>
1944
1945 [BZ #18822]
1946 * include/time.h (__tzstring): Add attribute_hidden.
1947 (__tzfile_read): Likewise.
1948 (__tzfile_compute): Likewise.
1949 (__tzfile_default): Likewise.
1950 (__tzset_parse_tz): Likewise.
1951 (__offtime): Likewise.
1952 (__asctime_r): Likewise.
1953 (__tzset): Likewise.
1954 (__tz_convert): Likewise.
1955 (__getdate_r): Likewise.
1956 (__getclktck): Likewise.
1957
a4338d99
L
19582017-10-01 H.J. Lu <hongjiu.lu@intel.com>
1959
1960 [BZ #18822]
1961 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
1962 (__nscd_unmap): Likewise.
1963 (__nscd_cache_search): Likewise.
1964 (__nscd_get_nl_timestamp): Likewise.
1965 (__nscd_getpwnam_r): Likewise.
1966 (__nscd_getpwuid_r): Likewise.
1967 (__nscd_getgrnam_r): Likewise.
1968 (__nscd_getgrgid_r): Likewise.
1969 (__nscd_gethostbyname_r): Likewise.
1970 (__nscd_gethostbyname2_r): Likewise.
1971 (__nscd_gethostbyaddr_r): Likewise.
1972 (__nscd_getai): Likewise.
1973 (__nscd_getgrouplist): Likewise.
1974 (__nscd_getservbyname_r): Likewise.
1975 (__nscd_getservbyport_r): Likewise.
1976 (__nscd_innetgr): Likewise.
1977 (__nscd_setnetgrent): Likewise.
1978
a2ca1652
L
19792017-10-01 H.J. Lu <hongjiu.lu@intel.com>
1980
1981 [BZ #18822]
1982 * include/gmp.h: Declare internal functions only if _ISOMAC is
1983 undefined.
1984 (__mpn_extract_double): Add attribute_hidden.
1985 (__mpn_extract_long_double): Likewise.
1986 (__mpn_extract_float128): Likewise.
1987 (__mpn_construct_float): Likewise.
1988 (__mpn_construct_double): Likewise.
1989 (__mpn_construct_long_double): Likewise.
1990 (__mpn_construct_float128): Likewise.
1991 (mpn_add_1): Likewise.
1992 (mpn_addmul_1): Likewise.
1993 (mpn_add_n): Likewise.
1994 (mpn_cmp): Likewise.
1995 (mpn_divrem): Likewise.
1996 (mpn_lshift): Likewise.
1997 (mpn_mul): Likewise.
1998 (mpn_mul_1): Likewise.
1999 (mpn_rshift): Likewise.
2000 (mpn_sub_1): Likewise.
2001 (mpn_submul_1): Likewise.
2002 (mpn_sub_n): Likewise.
2003
44af8a32
L
20042017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2005
2006 [BZ #18822]
2007 * include/wchar.h (__wcsnlen): Add attribute_hidden.
2008 (__wcscat): Likewise.
2009 (__btowc): Likewise.
2010 (__wcrtomb): Likewise.
2011 (__mbsrtowcs): Likewise.
2012 (__wcsrtombs): Likewise.
2013 (__mbsnrtowcs): Likewise.
2014 (__wcsnrtombs): Likewise.
2015 (__wcsncpy): Likewise.
2016 (__wcpncpy): Likewise.
2017 (__wmemcpy): Likewise.
2018 (__wmempcpy): Likewise.
2019 (__wmemmove): Likewise.
2020 (__wcschrnul): Likewise.
2021 (__vfwscanf): Likewise.
2022 (__vswprintf): Likewise.
2023 (__fwprintf): Likewise.
2024 (__vfwprintf): Likewise.
2025
783cd767
L
20262017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2027
2028 [BZ #18822]
2029 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
2030 (__getgrgid_r): Likewise.
2031 (__getgrnam_r): Likewise.
2032 * include/pwd.h (__getpwuid_r): Likewise.
2033 (__getpwnam_r): Likewise.
2034 (__fgetpwent_r): Likewise.
2035 * include/shadow.h (__getspnam_r): Likewise.
2036 (__sgetspent_r): Likewise.
2037 (__fgetspent_r): Likewise.
2038
7ec4b39a
L
20392017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2040
2041 [BZ #18822]
2042 * include/unistd.h (__access): Add attribute_hidden.
2043 (__lseek64): Likewise.
2044 (__libc_pread64): Likewise.
2045 (__pipe2): Likewise.
2046 (__sleep): Likewise.
2047 (__chdir): Likewise.
2048 (__fchdir): Likewise.
2049 (__getcwd): Likewise.
2050 (__rmdir): Likewise.
2051 (__execvpe): Likewise.
2052 (__execve): Likewise.
2053 (__setsid): Likewise.
2054 (__getuid): Likewise.
2055 (__geteuid): Likewise.
2056 (__getgid): Likewise.
2057 (__getegid): Likewise.
2058 (__getgroups): Likewise.
2059 (__group_member): Likewise.
2060 (__ttyname_r): Likewise.
2061 (__isatty): Likewise.
2062 (__readlink): Likewise.
2063 (__unlink): Likewise.
2064 (__gethostname): Likewise.
2065 (__profil): Likewise.
2066 (__getdtablesize): Likewise.
2067 (__brk): Likewise.
2068 (__ftruncate): Likewise.
2069 (__ftruncate64): Likewise.
2070
8345a760
L
20712017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2072
2073 [BZ #18822]
2074 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
2075 * argp/argp-fs-xinl.c: Likewise.
2076 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
2077 * argp/argp-parse.c: Include <argp.h>.
2078 * argp/argp-xinl.c: Likewise.
2079 * include/argp-fmtstream.h: New file.
2080 * include/argp.h (__argp_error): Add attribute_hidden.
2081 (__argp_failure): Likewise.
2082 (__argp_input): Likewise.
2083 (__argp_state_help): Likewise.
2084
c26dd7c6
L
20852017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2086
2087 [BZ #18822]
2088 * include/wchar.h (____wcstof_l_internal): New prototype.
2089 (____wcstod_l_internal): Likewise.
2090 (____wcstold_l_internal): Likewise.
2091 (____wcstol_l_internal): Likewise.
2092 (____wcstoul_l_internal): Likewise.
2093 (____wcstoll_l_internal): Likewise.
2094 (____wcstoull_l_internal): Likewise.
2095 (____wcstof128_l_internal): Likewise.
2096 * sysdeps/ieee754/float128/wcstof128.c
2097 (____wcstof128_l_internal): Removed.
2098 * sysdeps/ieee754/float128/wcstof128_l.c
2099 (____wcstof128_l_internal): Likewise.
2100 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
2101 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
2102 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
2103 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
2104 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
2105 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
2106 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
2107 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
2108 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
2109 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
2110
3aff5644
L
21112017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2112
2113 [BZ #18822]
2114 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
2115 instead of <sys/statvfs.h>.
2116 (__internal_statvfs): Removed.
2117 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
2118 instead of <sys/statvfs.h>.
2119 (__internal_statvfs64): Removed.
2120 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
2121 "internal_statvfs.h" instead of <sys/statvfs.h>.
2122 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
2123 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
2124 instead of <sys/statvfs.h>.
2125 (__internal_statvfs): Removed.
2126 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
2127 instead of <sys/statvfs.h>.
2128 (__internal_statvfs64): Removed.
2129
8bcdb7e0
L
21302017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2131
2132 [BZ #18822]
2133 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
2134 (__gconv_close): Likewise.
2135 (__gconv): Likewise.
2136 (__gconv_find_transform): Likewise.
2137 (__gconv_lookup_cache): Likewise.
2138 (__gconv_compare_alias_cache): Likewise.
2139 (__gconv_load_cache): Likewise.
2140 (__gconv_get_path): Likewise.
2141 (__gconv_close_transform): Likewise.
2142 (__gconv_release_cache): Likewise.
2143 (__gconv_find_shlib): Likewise.
2144 (__gconv_release_shlib): Likewise.
2145 (__gconv_get_builtin_trans): Likewise.
2146 (__gconv_compare_alias): Likewise.
2147 * include/dlfcn.h (_dlerror_run): Likewise.
2148 * include/stdio.h (__fortify_fail_abort): Likewise.
2149 * include/time.h (__tz_compute): Likewise.
2150 (__strptime_internal): Likewise.
2151 * intl/gettextP.h (_nl_find_domain): Likewise.
2152 (_nl_load_domain): Likewise.
2153 (_nl_find_msg): Likewise.
2154 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
2155 (EXTRACT_PLURAL_EXPRESSION): Likewise.
2156 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
2157 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
2158 (__gai_find_request): Likewise.
2159 (__gai_remove_request): Likewise.
2160 (__gai_notify): Likewise.
2161 (__gai_notify_only): Likewise.
2162 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
2163 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
2164 (_dl_non_dynamic_init): Likewise.
2165 (_dl_aux_init): Likewise.
2166 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
2167 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
2168 Likewise.
2169 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
2170 (__wcsmbs_clone_conv): Likewise.
2171 (__wcsmbs_named_conv): Likewise.
2172
8ed3b643
L
21732017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2174
2175 [BZ #18822]
2176 * include/stdlib.h (__random): Add attribute_hidden.
2177 (__random_r): Likewise.
2178 (__srandom_r): Likewise.
2179 (__initstate_r): Likewise.
2180 (__setstate_r): Likewise.
2181 (__erand48_r): Likewise.
2182 (__nrand48_r): Likewise.
2183 (__jrand48_r): Likewise.
2184 (__srand48_r): Likewise.
2185 (__seed48_r): Likewise.
2186 (__lcong48_r): Likewise.
2187 (__drand48_iterate): Likewise.
2188 (__setenv): Likewise.
2189 (__unsetenv): Likewise.
2190 (__clearenv): Likewise.
2191 (__ptsname_r): Likewise.
2192 (__posix_openpt): Likewise.
2193 (__add_to_environ): Likewise.
2194 (__realpath): Add libc_hidden_proto.
2195 (__ecvt_r): Likewise.
2196 (__fcvt_r): Likewise.
2197 (__qecvt_r): Likewise.
2198 (__qfcvt_r): Likewise.
2199 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
2200 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
2201
ef9b6f73
L
22022017-10-01 H.J. Lu <hongjiu.lu@intel.com>
2203
2204 [BZ #18822]
2205 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
2206 * include/time.h (__mktime_internal): Likewise.
2207 * libio/iolibio.h (__fopen_internal): Likewise.
2208
8da92e72
JDA
22092017-10-01 John David Anglin <danglin@gcc.gnu.org>
2210
2211 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
2212 pointer in frame.
2213 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
2214 Correct offset used to restore PIC register.
2215
388784cf
JDA
22162017-09-30 John David Anglin <danglin@gcc.gnu.org>
2217
2218 [BZ libc/22165]
2219 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
2220 code to load address of __getcontext_ret when generating PIC code.
2221
2000067a
L
22222017-09-30 H.J. Lu <hongjiu.lu@intel.com>
2223
2224 * elf/Makefile (tests-static-internal): Add
2225 tst-tls1-static-non-pie.
2226 (LDFLAGS-tst-tls1-static-non-pie): New.
2227 * elf/tst-tls1-static-non-pie.c: New file.
2228
1e2bffd0
JM
22292017-09-29 Joseph Myers <joseph@codesourcery.com>
2230
2231 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
2232 (asinh): Define using libm_alias_double.
2233 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
2234 (cbrt): Define using libm_alias_double.
2235 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
2236 <libm-alias-double.h>.
2237 (copysign): Define using libm_alias_double.
2238 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
2239 (erf): Define using libm_alias_double.
2240 (erfc): Likewise.
2241 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
2242 (expm1): Define using libm_alias_double.
2243 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
2244 (fabs): Define using libm_alias_double.
2245 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
2246 libm_alias_double.
2247 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
2248 <libm-alias-double.h>.
2249 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
2250 libm_alias_double.
2251 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
2252 <libm-alias-double.h>.
2253 (getpayload): Define using libm_alias_double.
2254 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
2255 <libm-alias-double.h>.
2256 (llrint): Define using libm_alias_double.
2257 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
2258 (lrint): Define using libm_alias_double.
2259 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
2260 <libm-alias-double.h>.
2261 (nextup): Define using libm_alias_double.
2262 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
2263 <libm-alias-double.h>.
2264 (roundeven): Define using libm_alias_double.
2265 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
2266 libm_alias_double.
2267 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
2268 <libm-alias-double.h>.
2269 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
2270 using libm_alias_double.
2271 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
2272 (cos): Define using libm_alias_double.
2273 (sin): Likewise.
2274 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
2275 <libm-alias-double.h>.
2276 (sincos): Define using libm_alias_double.
2277 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
2278 (tanh): Define using libm_alias_double.
2279 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
2280 <libm-alias-double.h>.
2281 (totalorder): Define using libm_alias_double.
2282 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
2283 <libm-alias-double.h>.
2284 (totalordermag): Define using libm_alias_double.
2285 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
2286 libm_alias_double.
2287 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
2288 libm_alias_double.
2289 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
2290 <libm-alias-double.h>.
2291 (getpayload): Define using libm_alias_double.
2292 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
2293 <libm-alias-double.h>.
2294 (roundeven): Define using libm_alias_double.
2295 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
2296 <libm-alias-double.h>.
2297 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
2298 <libm-alias-double.h>.
2299 (totalorder): Define using libm_alias_double.
2300 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
2301 <libm-alias-double.h>.
2302 (totalordermag): Define using libm_alias_double.
2303 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
2304 libc compat symbol here.
2305 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
2306 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
2307 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
2308 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
2309 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
2310 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
2311 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
2312 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
2313 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
2314 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
2315
8172aad9
L
23162017-09-29 H.J. Lu <hongjiu.lu@intel.com>
2317
2318 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
2319 _dl_relocate_static_pie instead of _dl_start to compute load
2320 address in static PIE. Return 0 if _DYNAMIC is undefined for
2321 static executable.
2322
54464e74
L
23232017-09-29 H.J. Lu <hongjiu.lu@intel.com>
2324
2325 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
2326 _DYNAMIC is undefined for static executable.
2327
f6c5e5bc
L
23282017-09-29 H.J. Lu <hongjiu.lu@intel.com>
2329
2330 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
2331
2f92505d
JM
23322017-09-29 Joseph Myers <joseph@codesourcery.com>
2333
2334 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2335
bd8d53bb
WD
23362017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
2337
2338 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
2339 (__ieee754_lgamma_r): Use fabs rather than __fabs.
2340 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
2341 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
2342 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
2343 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
2344 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
2345 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
2346 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
2347 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
2348 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
2349 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
2350 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
2351 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
2352 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
2353 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
2354 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
2355
fffb1507
WD
23562017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
2357
2358 * math/bits/cmathcalls.h (cimag): Remove inline.
2359 (creal): Remove inline.
2360 (conj): Remove inline.
2361
4ea49f4c
SN
23622017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
2363
2364 * math/Makefile (type-float-routines): Add e_powf_log2_data.
2365 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
2366 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
2367 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
2368 (issignalingf_inline): Likewise.
2369 (POWF_LOG2_TABLE_BITS): Likewise.
2370 (POWF_LOG2_POLY_ORDER): Likewise.
2371 (POWF_SCALE_BITS): Likewise.
2372 (POWF_SCALE): Likewise.
2373 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
2374 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
2375 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
2376
875c76c7
SN
23772017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
2378
2379 * math/Makefile (type-float-routines): Add e_log2f_data.
2380 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
2381 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
2382 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
2383 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
2384 * sysdeps/i386/fpu/e_log2f_data.c: New file.
2385 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
2386 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
2387
90c42e40
SN
23882017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
2389
2390 * math/Makefile (type-float-routines): Add e_logf_data.
2391 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
2392 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
2393 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
2394 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
2395 * sysdeps/i386/fpu/e_logf_data.c: New file.
2396 * sysdeps/ia64/fpu/e_logf_data.c: New file.
2397 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
2398
4088d8dd
L
23992017-09-28 H.J. Lu <hongjiu.lu@intel.com>
2400
2401 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
2402 undefined _DYNAMIC in PIE libc.a.
2403 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
2404 Likewse.
2405
4d3693ec
WD
24062017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
2407
2408 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
2409 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
2410 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
2411 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
2412 (__signbit): Remove.
2413 (__signbitl): Remove.
2414 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
2415 (__signbit): Remove.
2416 (__signbitl): Remove.
2417 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
2418 (__signbit): Remove.
2419 (__signbitl): Remove.
2420 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
2421 (__signbit): Remove.
2422 (__signbitl): Remove.
2423 * sysdeps/tile/bits/mathinline.h: Delete file.
2424 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
2425 (__signbit): Remove.
2426 (__signbitl): Remove.
2427
1e6d0723
WD
24282017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
2429
2430 * math/math.h: Improve handling of C99 isgreater macros.
2431 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
2432 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
2433 * sysdeps/powerpc/bits/mathinline.h: Likewise.
2434 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
2435 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
2436
b2f03cf3
SN
24372017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
2438
2439 * sysdeps/aarch64/libm-test-ulps: Update.
2440
f124cb38
JM
24412017-09-28 Joseph Myers <joseph@codesourcery.com>
2442
2443 [BZ #22225]
2444 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
2445 math_opt_barrier on argument when doing arithmetic on it.
2446 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
2447 Likewise. Use math_force_eval not math_opt_barrier after
2448 arithmetic.
2449 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
2450 math_opt_barrier on argument when doing arithmetic on it.
2451 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
2452 Likewise.
2453
7edd0691
L
24542017-09-27 H.J. Lu <hongjiu.lu@intel.com>
2455
2456 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
2457 libc_hidden_def.
2458 (__freeifaddrs): Likewise.
2459
2c7bbfaf
ST
24602017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
2461
2462 * include/dirent.h (__dirfd): New declaration.
2463 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
2464 alias.
2465 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
2466 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
2467 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
52a1f181
ST
2468 * include/unistd.h (__revoke): New declaration.
2469 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
2470 alias.
2471 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
2472 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
2473 revoke.
64a4af28
ST
2474 * include/dirent.h (__seekdir): New declaration.
2475 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
2476 redefine as weak alias.
2477 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
2478 of seekdir.
4009ddc6
ST
2479 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
2480 and use libc_hidden_def on them.
2481 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
2482 them.
2483 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
2484 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
2485 instead of getifaddrs and freeifaddrs.
2c7bbfaf 2486
825adeee
L
24872017-09-26 H.J. Lu <hongjiu.lu@intel.com>
2488
2489 [BZ #18822]
2490 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
2491 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
2492 (__dso_handle): Remove declaration.
2493 * dlfcn/tstatexit.c (__dso_handle): Removed.
2494 (main): Don't check __dso_handle.
2495 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
2496 (main): Don't check __dso_handle.
2497 * include/dso_handle.h: New file.
2498 * malloc/mtrace.c: Include <dso_handle.h>.
2499 (mtrace): Pass __dso_handle directly.
2500 * nptl/pthread_atfork.c: Include <dso_handle.h>.
2501 (__dso_handle): Remove declaration.
2502 (__pthread_atfork): Pass __dso_handle directly.
2503 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
2504 (__dso_handle): Removed.
2505 * posix/wordexp-test.c: Include <dso_handle.h>.
2506 (__dso_handle): Remove declaration.
2507 (__app_register_atfork): Pass __dso_handle directly.
2508 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
2509 (__dso_handle): Remove declaration.
2510 (at_quick_exit): Pass __dso_handle directly.
2511 * stdlib/atexit.c: Include <dso_handle.h>.
2512 (__dso_handle): Remove declaration.
2513 (atexit): Pass __dso_handle directly.
2514 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
2515 (__dso_handle): Removed.
2516
bfb0deb3
JM
25172017-09-26 Joseph Myers <joseph@codesourcery.com>
2518
2519 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
2520 using VDSO.
2521
cebcb9f8
AM
25222017-09-26 Alexey Makhalov <amakhalov@vmware.com>
2523
2524 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
2525 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
2526 values to correct default value for given type.
2527
592d5c75
L
25282017-09-26 H.J. Lu <hongjiu.lu@intel.com>
2529
2530 [BZ #22101]
2531 * elf/Makefile (tests): Add tst-debug1.
2532 ($(objpfx)tst-debug1): New.
2533 ($(objpfx)tst-debug1.out): Likewise.
2534 ($(objpfx)tst-debug1mod1.so): Likewise.
2535 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
2536 with p_filesz == 0.
2537 * elf/tst-debug1.c: New file.
2538
2d9193f2
JM
25392017-09-26 Joseph Myers <joseph@codesourcery.com>
2540
2541 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
2542 Define using __ifunc.
2543
4c5a7a02
TMQMF
25442017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
2545
2546 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
2547 exp2f() values.
2548
12ef66c4
JM
25492017-09-26 Joseph Myers <joseph@codesourcery.com>
2550
2551 [BZ #22156]
2552 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
2553
44dade71
FW
25542017-09-26 Florian Weimer <fweimer@redhat.com>
2555
2556 * resolv/Makefile (tests-internal): Fix typo in comment.
2557
eaca16f1
FW
25582017-09-26 Florian Weimer <fweimer@redhat.com>
2559
2560 * resolv/nss_dns/dns-host.c: Fix typo in comment.
2561
ccf970c7
AZ
25622017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2563
5f9f31ad
AZ
2564 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
2565 Use an union instead of a max_align_t array for __space,
2566 so that __space is the same size on all platforms.
2567 * malloc/scratch_buffer_grow_preserve.c
2568 (__libc_scratch_buffer_grow_preserve): Likewise.
2569
ccf970c7
AZ
2570 [BZ #22183]
2571 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
2572 version to 2.
2573 * posix/Makefile (routines): Add glob-lstat-compat and
2574 glob64-lstat-compat.
2575 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
2576 * posix/glob-lstat-compat.c: New file.
2577 * posix/glob64-lstat-compat.c: Likewise.
2578 * posix/tst-glob_lstat_compat.c: Likewise.
2579 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
2580 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
2581 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
2582 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
2583 Likewise.
2584 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
2585 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
2586 * posix/glob.c (glob_lstat): New function.
2587 (glob): Rename to __glob and add versioned symbol to 2.27.
2588 (glob_in_dir): Use glob_lstat.
2589 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
2590 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
2591 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
2592 2.27.
2593 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
2594 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
2595 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
2596 gl_lstat on glob call.
2597 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
2598 and glob64 symbols.
2599 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
2600 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
2601 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
2602 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
2603 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
2604 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
2605 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
2606 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
2607 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
2608 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
2609 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
2610 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
2611 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
2612 Likewise.
2613 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
2614 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
2615 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2616 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2617 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
2618 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2619 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
2620 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
2621 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
2622 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
2623 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
2624 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
2625
b4396163
L
26262017-09-25 H.J. Lu <hongjiu.lu@intel.com>
2627
2628 * configure.ac (AS): Require binutils 2.25 or later.
2629 * configure: Regenerated.
2630
8f834987
PP
26312017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
2632
2633 [BZ #22207]
2634 * stdlib/test-atexit-race-common.c (do_test): Minimize required
2635 VM size.
2636
3de93d19
DD
26372017-09-25 DJ Delorie <dj@redhat.com>
2638
2639 [BZ #22161]
2640 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
2641 resetting timeout.
2642
9947638d
SL
26432017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
2644
2645 * sysdeps/ieee754/dbl-64/sincos32.h
2646 [SINCCOS32_H]: Remove define.
2647 [SINCOS32_H]: Define.
2648
f5f0f526
SN
26492017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
2650
2651 * math/Versions (expf): New libm symbol at GLIBC_2.27.
2652 (exp2f): Likewise.
2653 * math/w_exp2f.c: New file.
2654 * math/w_expf.c: New file.
2655 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
2656 * math/w_expf_compat.c (__expf_compat): Likewise.
2657 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
2658 * sysdeps/ia64/fpu/e_expf.S: Likewise.
2659 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
2660 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
2661 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
2662 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
2663 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
2664 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
2665 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
2666 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
2667 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
2668 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
2669 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
2670 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
2671 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
2672 Likewise.
2673 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
2674 Likewise.
2675 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
2676 Likewise.
2677 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
2678 Likewise.
2679 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
2680 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
2681 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
2682 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
2683 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
2684 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
2685 Likewise.
2686 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
2687 Likewise.
2688 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
2689 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
2690 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
2691
72aa6233
SN
26922017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
2693
2694 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
2695 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
2696 (roundtoint, converttoint): Likewise.
2697 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
2698 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
2699 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
2700 * sysdeps/ieee754/flt-32/math_config.h: New file.
2701 * sysdeps/ieee754/flt-32/math_errf.c: New file.
2702 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
2703 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
2704 * sysdeps/i386/fpu/math_errf.c: New file.
2705 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
2706 * sysdeps/ia64/fpu/math_errf.c: New file.
2707 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
2708 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
2709
5e6f3253
ST
27102017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
2711
2712 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
2713 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
2714 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
2715 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
2716 to make sure that these symbols are defined.
b38a42a0
ST
2717 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
2718 of <limits.h>
2719 (__need_NULL): Do not define.
2720 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
2721 alignment.
2722 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
2723 CMGROUP_MAX, cmsgcred): Do not define.
2724 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
2725 NULL.
2726 * bits/socket.h: Likewise.
fcafcd16
ST
2727 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
2728 __gettimeofday instead of gettimeofday.
2729 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
2730 instead of settimeofday.
5e6f3253 2731
2f49ce7d
JM
27322017-09-22 Joseph Myers <joseph@codesourcery.com>
2733
2734 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
2735 (asinhf): Define using libm_alias_float.
2736 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
2737 (atanf): Define using libm_alias_float.
2738 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
2739 (cbrtf): Define using libm_alias_float.
2740 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
2741 (ceilf): Define using libm_alias_float.
2742 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
2743 <libm-alias-float.h>.
2744 (copysignf): Define using libm_alias_float.
2745 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
2746 (cosf): Define using libm_alias_float.
2747 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
2748 (erff): Define using libm_alias_float.
2749 (erfcf): Likewise.
2750 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
2751 (expm1f): Define using libm_alias_float.
2752 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
2753 (fabsf): Define using libm_alias_float.
2754 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
2755 (floorf): Define using libm_alias_float.
2756 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
2757 (frexpf): Define using libm_alias_float.
2758 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
2759 libm_alias_float.
2760 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
2761 <libm-alias-float.h>.
2762 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
2763 libm_alias_float.
2764 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
2765 <libm-alias-float.h>.
2766 (getpayloadf): Define using libm_alias_float.
2767 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
2768 <libm-alias-float.h>.
2769 (llrintf): Define using libm_alias_float.
2770 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
2771 <libm-alias-float.h>.
2772 (llroundf): Define using libm_alias_float.
2773 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
2774 (logbf): Define using libm_alias_float.
2775 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
2776 (lrintf): Define using libm_alias_float.
2777 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
2778 (lroundf): Define using libm_alias_float.
2779 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
2780 (modff): Define using libm_alias_float.
2781 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
2782 <libm-alias-float.h>.
2783 (nearbyintf): Define using libm_alias_float.
2784 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
2785 <libm-alias-float.h>.
2786 (nextafterf): Define using libm_alias_float.
2787 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
2788 <libm-alias-float.h>.
2789 (nextupf): Define using libm_alias_float.
2790 * sysdeps/ieee754/flt-32/s_remquof.c: Include
2791 <libm-alias-float.h>.
2792 (remquof): Define using libm_alias_float.
2793 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
2794 (rintf): Define using libm_alias_float.
2795 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
2796 <libm-alias-float.h>.
2797 (roundevenf): Define using libm_alias_float.
2798 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
2799 (roundf): Define using libm_alias_float.
2800 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
2801 using libm_alias_float.
2802 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
2803 <libm-alias-float.h>.
2804 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
2805 Define using libm_alias_float.
2806 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
2807 <libm-alias-float.h>.
2808 (sincosf): Define using libm_alias_float.
2809 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
2810 (sinf): Define using libm_alias_float.
2811 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
2812 (tanf): Define using libm_alias_float.
2813 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
2814 (tanhf): Define using libm_alias_float.
2815 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
2816 <libm-alias-float.h>.
2817 (totalorderf): Define using libm_alias_float.
2818 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
2819 <libm-alias-float.h>.
2820 (totalordermagf): Define using libm_alias_float.
2821 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
2822 (truncf): Define using libm_alias_float.
2823 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
2824 libm_alias_float.
2825 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
2826 libm_alias_float.
2827
c5c4a626
GG
28282017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2829
2830 [BZ #22146]
2831 math/math.h: Let fpclassify use the builtin in C++ mode, even
2832 when optimazing for size.
2833
23947846
JM
28342017-09-22 Joseph Myers <joseph@codesourcery.com>
2835
2836 * csu/Makefile (generated): Do not add version-info.h.
2837 (before-compile): Likewise.
2838 (all-Banner-files): Remove variable.
2839 ($(objpfx)version-info.h): Remove rule.
2840 * csu/version.c (banner): Do not include "version-info.h".
2841 * libidn/Banner: Remove.
2842 * manual/contrib.texi (Simon Josefsson): New entry.
2843
9ac3c682
GG
28442017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2845
2846 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
2847 Remove conditionals on LDBL_MANT_DIG.
2848 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
2849 (__ieee754_lgammal_r): Likewise.
2850
d2f0ed09
GG
28512017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2852
2853 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
2854 _Float128 and L().
2855 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
2856 _Float128 and L(). Replace _Float128 with long double and L(x)
2857 with xL, throughout the file.
2858 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
2859 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
2860 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
2861 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
2862
c5c2e667
GG
28632017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2864
2865 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
2866 sysdeps/ieee754/ldbl-128ibm.
2867 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
2868 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
2869 of including it. Keep _Float128 and L() intact. These will be
2870 reviewed by a separate patch.
2871 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
2872 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
2873 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
2874 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
2875
e010deb2
GG
28762017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2877
2878 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
2879 (__finitef128): Define to __redirect___finitef128.
2880 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
2881 (__isinff128): Define to __redirect___isinff128.
2882 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
2883 (__isnanf128): Define to __redirect___isnanf128.
2884
ffa44804
GG
28852017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2886
2887 * sysdeps/powerpc/powerpc64le/Makefile
2888 (CFLAGS-tst-strtod-nan-locale.c): New variable.
2889 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
2890
e5e4d7cc
PP
28912017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
2892 Carlos O'Donell <carlos@redhat.com>
2893
2894 [BZ #22180]
2895 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
2896 * stdlib/test-dlclose-exit-race.c: New file.
2897 * stdlib/test-dlclose-exit-race-helper.c: New file.
2898 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
2899
c10c5267
JM
29002017-09-21 Joseph Myers <joseph@codesourcery.com>
2901
2902 * crypt/Banner: Remove file.
2903 * nptl/Banner: Likewise.
2904 * resolv/Banner: Likewise.
2905 * soft-fp/Banner: Likewise.
2906 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
2907 ($(objpfx)version.d): Remove dependency on banner.h.
2908 ($(objpfx)version.os): Likewise.
2909 * nptl/version.c (banner): Do not include banner.h.
2910 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
2911 Jelinek and BIND code.
2912
1cc9e59a
PP
29132017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
2914 Carlos O'Donell <carlos@redhat.com>
2915
2916 * support/xdlfcn.h: New file.
2917 * support/xdlfcn.c: New file.
2918 * support/Makefile (libsupport-routines): Add xdlfcn.
2919 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
2920
ae8372d7
JM
29212017-09-20 Joseph Myers <joseph@codesourcery.com>
2922
2923 [BZ #20142]
2924 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
2925 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
2926 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
2927 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
2928 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
2929 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
2930 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
2931 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
2932
26e70aec
PP
29332017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
2934 Ricky Zhou <rickyz@google.com>
2935 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
2936
2937 [BZ #14333]
2938 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
2939 Remove atomics.
2940 (__new_exitfn): Fail registration when we finished at_exit processing.
2941 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
2942 * stdlib/on_exit.c (__on_exit): Likewise.
2943 * stdlib/exit.c (__exit_funcs_done): New variable.
2944 (__run_exit_handlers): Use __exit_funcs_lock.
2945 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
2946 declarations.
2947 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
2948 (test-cxa_atexit-race, test-on_exit-race): New tests.
2949 * stdlib/test-atexit-race-common.c: New file.
2950 * stdlib/test-atexit-race.c: New file.
2951 * stdlib/test-at_quick_exit-race.c: New file.
2952 * stdlib/test-cxa_atexit-race.c: New file.
2953 * stdlib/test-on_exit-race.c: New file.
2954
0525ce48
SN
29552017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
2956
2957 * benchtests/Makefile: Add exp2f and log2f benchmarks.
2958 * benchtests/exp2f-inputs: Copy of expf-inputs.
2959 * benchtests/log2f-inputs: Copy of logf-inputs.
2960
d82468d1
JM
29612017-09-19 Joseph Myers <joseph@codesourcery.com>
2962
2963 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
2964 Explicitly take address of first element of array arguments in
2965 call to INLINE_SYSCALL.
2966
43ffc53a
AS
29672017-09-19 Andreas Schwab <schwab@suse.de>
2968
2969 [BZ #22134]
2970 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
2971 execveat first.
2972 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
2973 unimplemented.
2974 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
2975 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
2976 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
2977 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
2978 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
2979 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
2980 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
2981 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
2982 * posix/Makefile (tests): Add tst-fexecve.
2983 * posix/tst-fexecve.c: New file.
2984
a5dcc87e
WD
29852017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
2986
2987 * benchtests/Makefile: Add logf benchmark.
2988 * benchtests/logf-inputs: Add reduced trace from wrf_r.
2989
7024d544
WD
29902017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
2991
2992 * benchtests/Makefile: Add expf benchmark.
2993 * benchtests/expf-inputs: Add reduced trace from wrf_r.
2994
ca3a382e
WD
29952017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
2996
2997 * csu/Makefile: Add -funwind-tables to libc-start.c.
2998 * debug/Makefile: Add -funwind-tables to backtrace.c.
2999 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
3000 * sysdeps/arm/Makefile: Likewise.
3001 * sysdeps/i386/Makefile: Likewise.
3002 * sysdeps/m68k/Makefile: Likewise.
3003 * sysdeps/mips/Makefile: Likewise.
3004 * sysdeps/nios2/Makefile: Likewise.
3005 * sysdeps/sh/Makefile: Likewise.
3006 * sysdeps/sparc/Makefile: Likewise.
3007
eb375def
JM
30082017-09-19 Joseph Myers <joseph@codesourcery.com>
3009
3010 * benchtests/Makefile (bench-math): Add trunc and truncf.
3011 (CFLAGS-bench-trunc.c): New variable.
3012 (CFLAGS-bench-truncf.c): Likewise.
3013 * benchtests/trunc-inputs: New file.
3014 * benchtests/truncf-inputs: Likewise.
3015
bd17ba29
RS
30162017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
3017
3018 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
3019
92892fdb
JM
30202017-09-18 Joseph Myers <joseph@codesourcery.com>
3021
6d9b0b5a
JM
3022 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
3023 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
3024 redefine.
3025 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
3026 (exp10l): Define as weak alias.
3027 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
3028 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
3029 and redefine.
3030 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
3031 (remainderl): Define as weak alias.
3032
92892fdb
JM
3033 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
3034 (fmal): Define using libm_alias_ldouble.
3035 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
3036 (acoshl): Define using libm_alias_ldouble.
3037 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
3038 (acosl): Define using libm_alias_ldouble.
3039 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
3040 (asinl): Define using libm_alias_ldouble.
3041 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
3042 (atan2l): Define using libm_alias_ldouble.
3043 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
3044 (atanhl): Define using libm_alias_ldouble.
3045 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
3046 (coshl): Define using libm_alias_ldouble.
3047 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
3048 (exp10l): Define using libm_alias_ldouble.
3049 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
3050 (exp2l): Define using libm_alias_ldouble.
3051 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
3052 (expl): Define using libm_alias_ldouble.
3053 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
3054 (fmodl): Define using libm_alias_ldouble.
3055 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
3056 (hypotl): Define using libm_alias_ldouble.
3057 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
3058 (j0l): Define using libm_alias_ldouble.
3059 (y0l): Likewise.
3060 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
3061 (j1l): Define using libm_alias_ldouble.
3062 (y1l): Likewise.
3063 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
3064 (jnl): Define using libm_alias_ldouble.
3065 (ynl): Likewise.
3066 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
3067 (log10l): Define using libm_alias_ldouble.
3068 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
3069 (log2l): Define using libm_alias_ldouble.
3070 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
3071 (logl): Define using libm_alias_ldouble.
3072 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
3073 (powl): Define using libm_alias_ldouble.
3074 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
3075 (remainderl): Define using libm_alias_ldouble.
3076 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
3077 (sinhl): Define using libm_alias_ldouble.
3078 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
3079 (sqrtl): Define using libm_alias_ldouble.
3080 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
3081 (tgammal): Define using libm_alias_ldouble.
3082 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
3083 (exp10l): Do not use long_double_symbol here.
3084 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
3085 [LIBM_SVID_COMPAT] (remainderl): Likewise.
3086 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
3087 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
3088 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
3089 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
3090 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
3091 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
3092 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
3093 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
3094 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
3095 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
3096 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
3097 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
3098 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
3099 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
3100 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
3101 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
3102 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
3103 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
3104 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
3105 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
3106
6cd380dd
WB
31072017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
3108
3109 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
3110 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
3111
1c6d89e9
ST
31122017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
3113
3114 * io/read.c (read): Add libc_hidden_weak.
3115 * sysdeps/mach/hurd/read.c (read): Likewise.
3116 * io/write.c (write): Likewise.
3117 * sysdeps/mach/hurd/write.c (write): Likewise.
3118 * io/pread64.c (__pread64): Likewise.
3119 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
3120 * posix/pread64.c (__pread64): Add libc_hidden_def.
3121
06b1de23
SP
31222017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
3123
140647ea
SP
3124 * benchtests/scripts/compare_strings.py: New option -g.
3125 (draw_graph): Print a message that a graph is being generated.
3126 (process_results): Generate graph only if -g is passed.
3127 (main): Process option -g.
3128
5a6547b7
SP
3129 * benchtests/scripts/compare_strings.py (process_results):
3130 Better spacing for output.
3131
06b1de23
SP
3132 * benchtests/scripts/compare_strings.py: Use argparse.
3133 * benchtests/README: Document existence of compare_strings.py.
3134
c67a2328
JM
31352017-09-15 Joseph Myers <joseph@codesourcery.com>
3136
9ac44708
JM
3137 * math/s_fma.c: Include <libm-alias-double.h>.
3138 (fma): Define using libm_alias_double.
3139 * math/s_nextafter.c: Include <libm-alias-double.h>.
3140 (nextafter): Define using libm_alias_double.
3141 * math/w_acos_compat.c: Include <libm-alias-double.h>.
3142 (acos): Define using libm_alias_double.
3143 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
3144 (aocsh): Define using libm_alias_double.
3145 * math/w_asin_compat.c: Include <libm-alias-double.h>.
3146 (asin): Define using libm_alias_double.
3147 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
3148 (atan2): Define using libm_alias_double.
3149 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
3150 (atanh): Define using libm_alias_double.
3151 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
3152 (cosh): Define using libm_alias_double.
3153 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
3154 (exp10): Define using libm_alias_double.
3155 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
3156 (exp2): Define using libm_alias_double.
3157 * math/w_exp_compat.c: Include <libm-alias-double.h>.
3158 (exp): Define using libm_alias_double.
3159 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
3160 (fmod): Define using libm_alias_double.
3161 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
3162 (hypot): Define using libm_alias_double.
3163 * math/w_j0_compat.c: Include <libm-alias-double.h>.
3164 (j0): Define using libm_alias_double.
3165 (y0): Likewise.
3166 * math/w_j1_compat.c: Include <libm-alias-double.h>.
3167 (j1): Define using libm_alias_double.
3168 (y1): Likewise.
3169 * math/w_jn_compat.c: Include <libm-alias-double.h>.
3170 (jn): Define using libm_alias_double.
3171 (yn): Likewise.
3172 * math/w_log10_compat.c: Include <libm-alias-double.h>.
3173 (log10): Define using libm_alias_double.
3174 * math/w_log2_compat.c: Include <libm-alias-double.h>.
3175 (log2): Define using libm_alias_double.
3176 * math/w_log_compat.c: Include <libm-alias-double.h>.
3177 (log): Define using libm_alias_double.
3178 * math/w_pow_compat.c: Include <libm-alias-double.h>.
3179 (pow): Define using libm_alias_double.
3180 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
3181 (remainder): Define using libm_alias_double.
3182 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
3183 (sinh): Define using libm_alias_double.
3184 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
3185 (sqrt): Define using libm_alias_double.
3186 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
3187 (tgamma): Define using libm_alias_double.
3188 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
3189 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
3190 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
3191 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
3192 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
3193 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
3194 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
3195 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
3196 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
3197 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
3198 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
3199 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
3200 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
3201 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
3202 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
3203 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
3204 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
3205 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
3206 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
3207 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
3208 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
3209 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
3210 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
3211 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
3212 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
3213
c67a2328
JM
3214 * math/e_acoshl.c: Remove.
3215 * math/e_acosl.c: Likewise.
3216 * math/e_asinl.c: Likewise.
3217 * math/e_atan2l.c: Likewise.
3218 * math/e_atanhl.c: Likewise.
3219 * math/e_coshl.c: Likewise.
3220 * math/e_expl.c: Likewise.
3221 * math/e_fmodl.c: Likewise.
3222 * math/e_gammal_r.c: Likewise.
3223 * math/e_hypotl.c: Likewise.
3224 * math/e_j0l.c: Likewise.
3225 * math/e_j1l.c: Likewise.
3226 * math/e_jnl.c: Likewise.
3227 * math/e_lgammal_r.c: Likewise.
3228 * math/e_log10l.c: Likewise.
3229 * math/e_log2l.c: Likewise.
3230 * math/e_logl.c: Likewise.
3231 * math/e_powl.c: Likewise.
3232 * math/e_rem_pio2l.c: Likewise.
3233 * math/e_sinhl.c: Likewise.
3234 * math/e_sqrtf128.c: Likewise.
3235 * math/e_sqrtl.c: Likewise.
3236 * math/k_cosl.c: Likewise.
3237 * math/k_sinl.c: Likewise.
3238 * math/k_tanl.c: Likewise.
3239 * math/s_asinhl.c: Likewise.
3240 * math/s_atanl.c: Likewise.
3241 * math/s_cbrtl.c: Likewise.
3242 * math/s_erfl.c: Likewise.
3243 * math/s_expm1l.c: Likewise.
3244 * math/s_log1pl.c: Likewise.
3245 * math/s_tanhl.c: Likewise.
3246
61c45f25
TMQMF
32472017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
3248
3249 [BZ #21745]
3250 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
3251 [$(subdir) = math] (sysdep_calls): New variable. Has the
3252 previous contents of sysdep_routines, but re-sorted..
3253 [$(subdir) = math] (sysdep_routines): Re-use the contents from
3254 sysdep_calls.
3255 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
3256 defined in sysdep_calls and replace by the respective m_* names.
3257 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
3258 (compat_symbol): Undefine to avoid duplicated compat symbols in
3259 libc.
3260
5bcdb315
JM
32612017-09-15 Joseph Myers <joseph@codesourcery.com>
3262
3263 * math/s_fmaf.c: Include <libm-alias-float.h>.
3264 (fmaf): Define using libm_alias_float.
3265 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
3266 (acosf): Define using libm_alias_float.
3267 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
3268 (acoshf): Define using libm_alias_float.
3269 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
3270 (asinf): Define using libm_alias_float.
3271 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
3272 (atan2f): Define using libm_alias_float.
3273 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
3274 (atanhf): Define using libm_alias_float.
3275 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
3276 (coshf): Define using libm_alias_float.
3277 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
3278 (exp10f): Define using libm_alias_float.
3279 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
3280 (fmodf): Define using libm_alias_float.
3281 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
3282 (hypotf): Define using libm_alias_float.
3283 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
3284 (j0f): Define using libm_alias_float.
3285 (y0f): Likewise.
3286 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
3287 (j1f): Define using libm_alias_float.
3288 (y1f): Likewise.
3289 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
3290 (jnf): Define using libm_alias_float.
3291 (ynf): Likewise.
3292 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
3293 (log10f): Define using libm_alias_float.
3294 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
3295 (log2f): Define using libm_alias_float.
3296 * math/w_logf_compat.c: Include <libm-alias-float.h>.
3297 (logf): Define using libm_alias_float.
3298 * math/w_powf_compat.c: Include <libm-alias-float.h>.
3299 (powf): Define using libm_alias_float.
3300 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
3301 (remainderf): Define using libm_alias_float.
3302 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
3303 (sinhf): Define using libm_alias_float.
3304 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
3305 (sqrtf): Define using libm_alias_float.
3306 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
3307 (tgammaf): Define using libm_alias_float.
3308
01f28812
JM
33092017-09-14 Joseph Myers <joseph@codesourcery.com>
3310
3311 * include/math.h (roundeven): Change hidden_proto call to
3312 __roundeven.
3313 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
3314 alias.
3315 [NO_LONG_DOUBLE] (__j0l): New strong alias.
3316 (y0): Rename to __y0 and define as weak alias.
3317 [NO_LONG_DOUBLE] (__y0l): New strong alias.
3318 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
3319 alias.
3320 (y0f): Rename to __y0f and define as weak alias.
3321 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
3322 alias.
3323 [NO_LONG_DOUBLE] (__j1l): New strong alias.
3324 (y1): Rename to __y1 and define as weak alias.
3325 [NO_LONG_DOUBLE] (__y1l): New strong alias.
3326 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
3327 alias.
3328 (y1f): Rename to __y1f and define as weak alias.
3329 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
3330 alias.
3331 [NO_LONG_DOUBLE] (__jnl): New strong alias.
3332 (yn): Rename to __yn and define as weak alias.
3333 [NO_LONG_DOUBLE] (__ynl): New strong alias.
3334 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
3335 alias.
3336 (ynf): Rename to __ynf and define as weak alias.
3337 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
3338 (fromfp): Define as weak alias.
3339 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
3340 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
3341 (fromfpx): Define as weak alias.
3342 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
3343 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
3344 __getpayload and define as weak alias.
3345 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
3346 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
3347 __roundeven and define as weak alias.
3348 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
3349 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
3350 __setpayload.
3351 (setpayload): Define as weak alias.
3352 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
3353 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
3354 __setpayloadsig.
3355 (setpayloadsig): Define as weak alias.
3356 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
3357 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
3358 __totalorder and define as weak alias.
3359 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
3360 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
3361 to __totalordermag and define as weak alias.
3362 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
3363 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
3364 (ufromfp): Define as weak alias.
3365 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
3366 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
3367 __ufromfpx.
3368 (ufromfpx): Define as weak alias.
3369 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
3370 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
3371 Rename to __getpayload and define as weak alias.
3372 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
3373 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
3374 Rename to __roundeven and define as weak alias.
3375 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
3376 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
3377 Rename to __totalorder and define as weak alias.
3378 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
3379 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
3380 (totalordermag): Rename to __totalordermag and define as weak
3381 alias.
3382 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
3383 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
3384 macro.
3385 (__roundevenl): Likewise.
3386 (__totalorderl): Likewise.
3387 (__totalordermagl): Likewise
3388 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
3389 __fromfpf128.
3390 (fromfpf128): Define as weak alias.
3391 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
3392 __fromfpxf128.
3393 (fromfpxf128): Define as weak alias.
3394 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
3395 __setpayloadf128.
3396 (setpayloadf128): Define as weak alias.
3397 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
3398 __setpayloadsigf128.
3399 (setpayloadsigf128): Define as weak alias.
3400 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
3401 __ufromfpf128.
3402 (ufromfpf128): Define as weak alias.
3403 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
3404 __ufromfpxf128.
3405 (ufromfpxf128): Define as weak alias.
3406 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
3407 (fromfpf): Define as weak alias.
3408 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
3409 __fromfpxf.
3410 (fromfpxf): Define as weak alias.
3411 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
3412 __getpayloadf and define as weak alias.
3413 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
3414 __roundevenf and define as weak alias.
3415 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
3416 __setpayloadf.
3417 (setpayloadf): Define as weak alias.
3418 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
3419 __setpayloadsigf.
3420 (setpayloadsigf): Define as weak alias.
3421 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
3422 __totalorderf and define as weak alias.
3423 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
3424 Rename to __totalordermagf and define as weak alias.
3425 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
3426 __ufromfpf.
3427 (ufromfpf): Define as weak alias.
3428 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
3429 __ufromfpxf.
3430 (ufromfpxf): Define as weak alias.
3431 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
3432 __fromfpl.
3433 (fromfpl): Define as weak alias.
3434 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
3435 __fromfpxl.
3436 (fromfpxl): Define as weak alias.
3437 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
3438 to __getpayloadl and define as weak alias.
3439 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
3440 __roundevenl and define as weak alias.
3441 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
3442 __setpayloadl.
3443 (setpayloadl): Define as weak alias.
3444 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
3445 __setpayloadsigl.
3446 (setpayloadsigl): Define as weak alias.
3447 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
3448 to __totalorderl and define as weak alias.
3449 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
3450 Rename to __totalordermagl and define as weak alias.
3451 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
3452 __ufromfpl.
3453 (ufromfpl): Define as weak alias.
3454 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
3455 __ufromfpxl.
3456 (ufromfpxl): Define as weak alias.
3457 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
3458 __fromfpl.
3459 (fromfpl): Define as weak alias.
3460 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
3461 __fromfpxl.
3462 (fromfpxl): Define as weak alias.
3463 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
3464 Rename to __getpayloadl and define as weak alias.
3465 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
3466 to __roundevenl and define as weak alias. Call __roundeven
3467 instead of roundeven.
3468 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
3469 __setpayloadl.
3470 (setpayloadl): Define as weak alias.
3471 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
3472 __setpayloadsigl.
3473 (setpayloadsigl): Define as weak alias.
3474 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
3475 Rename to __totalorderl and define as weak alias.
3476 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
3477 Rename to __totalordermagl and define as weak alias.
3478 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
3479 __ufromfpl.
3480 (ufromfpl): Define as weak alias.
3481 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
3482 __ufromfpxl.
3483 (ufromfpxl): Define as weak alias.
3484 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
3485 __fromfpl.
3486 (fromfpl): Define as weak alias.
3487 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
3488 __fromfpxl.
3489 (fromfpxl): Define as weak alias.
3490 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
3491 __getpayloadl and define as weak alias.
3492 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
3493 __roundevenl and define as weak alias.
3494 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
3495 __setpayloadl.
3496 (setpayloadl): Define as weak alias.
3497 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
3498 __setpayloadsigl.
3499 (setpayloadsigl): Define as weak alias.
3500 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
3501 __totalorderl and define as weak alias.
3502 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
3503 Rename to __totalordermagl and define as weak alias.
3504 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
3505 __ufromfpl.
3506 (ufromfpl): Define as weak alias.
3507 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
3508 __ufromfpxl.
3509 (ufromfpxl): Define as weak alias.
3510
29c933fb
SP
35112017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
3512
503c92c3
SP
3513 * benchtests/bench-string.h (realloc_bufs): New function.
3514 (test_init): Call it.
3515 * benchtests/bench-memset-large.c (do_test): Likewise.
3516 * benchtests/bench-memset.c (do_test): Likewise.
3517
29c933fb
SP
3518 * benchtests/bench-memset-large.c: Print output in JSON
3519 format.
3520 * benchtests/bench-memset.c: Likewise.
3521
799c8d69
MF
35222017-09-14 Mike FABIAN <mfabian@redhat.com>
3523
3524 [BZ #21084]
3525 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
3526 * iconvdata/Makefile: Add IBM858.
3527 * iconvdata/gconv-modules: Likewise.
3528 * iconvdata/tst-tables.sh: Likewise.
3529 * iconvdata/ibm858.c: New file.
3530 * localedata/charmaps/IBM858: Likewise.
3531
c207f7ce 35322017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
fcc82c06
AK
3533
3534 [BZ #22023]
3535 * locales/niu_NZ (LC_TIME): copy "niu_NU".
3536 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
3537
f28a0926
AK
35382017-09-14 Mike FABIAN <mfabian@redhat.com>
3539
3540 [BZ #22112]
3541 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
3542 and add tel_int_fmt.
3543
02093e62
JM
35442017-09-14 Joseph Myers <joseph@codesourcery.com>
3545
3546 * sysdeps/generic/libm-alias-float128.h: New file.
3547 * sysdeps/generic/math-type-macros-float128.h: Include
3548 <libm-alias-float128.h>.
3549 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
3550
1aae75ef
JM
35512017-09-13 Joseph Myers <joseph@codesourcery.com>
3552
3553 * sysdeps/generic/libm-alias-ldouble.h: New file.
3554 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
3555 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
3556 * sysdeps/generic/math-type-macros-ldouble.h: Include
3557 <libm-alias-ldouble.h>.
3558 [!declare_mgen_alias] (declare_mgen_alias): Define to use
3559 libm_alias_ldouble.
3560
bcea7ad6
SN
35612017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
3562
3563 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
3564 * math/w_exp_compat.c: ... here.
3565 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
3566 * math/w_expf_compat.c: ... here.
3567 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
3568 * math/w_expl_compat.c: ... here.
3569 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
3570 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
3571 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
3572 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
3573
0fc56478
JM
35742017-09-13 Joseph Myers <joseph@codesourcery.com>
3575
3576 * math/w_scalbln_template.c (strong_alias): Do not undefine and
3577 redefine.
3578 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
3579 macro.
3580 (ldexpl): Only define as compat symbol for libc, not libm.
3581 (scalbnl): Define as compat symbol for libc here.
3582 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
3583 define for [IS_IN (libc)].
3584 (__ldexpl_2): Remove alias.
3585 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
3586 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
3587 name in long_double_symbol call.
3588 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
3589 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
3590 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
3591 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
3592 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
3593 Remove macro.
3594 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
3595 Define as compat symbol.
3596
3ca622e4
AZ
35972017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3598
3599 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
3600 * sysdeps/unix/sysv/linux/alpha/Makefile
3601 [$(subdir) = csu] (sysdep_routines): Remove rule.
3602
620ff9ee
JM
36032017-09-13 Joseph Myers <joseph@codesourcery.com>
3604
3605 * sysdeps/generic/libm-alias-double.h: New file.
3606 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
3607 * sysdeps/generic/math-type-macros-double.h: Include
3608 <libm-alias-double.h>.
3609 [declare_mgen_alias] (declare_mgen_alias): Define to use
3610 libm_alias_double.
3611 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
3612 (M_LIBM_NEED_COMPAT): Remove macro.
3613 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
3614 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
3615 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
3616 code.
3617 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3618 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3619 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3620 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3621 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3622 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3623 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3624 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3625 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3626 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3627 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3628 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3629 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3630 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3631 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3632 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3633 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3634 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3635 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3636 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3637 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3638 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3639 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3640 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3641 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3642 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3643 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
3644 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
3645 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
3646 macro.
3647 (declare_mgen_alias): New macro.
3648 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
3649 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
3650 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
3651 (M_LIBM_NEED_COMPAT): Remove macro.
3652 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
3653 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
3654 <first-versions.h>.
3655 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
3656 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
3657
a891caff
JM
36582017-09-12 Joseph Myers <joseph@codesourcery.com>
3659
3660 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
3661 (declare_mgen_alias_2): Remove.
3662 * sysdeps/generic/math-type-macros-double.h
3663 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
3664 Likewise.
3665 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
3666 alias.
3667 (ldexp): Define with declare_mgen_alias.
3668 (scalbn): Likewise.
3669
a1a78204
SE
36702017-09-12 Steve Ellcey <sellcey@cavium.com>
3671
3672 * grp/initgroups.c: Include config.h.
3673 (DEFAULT_CONFIG): New macro.
3674 (internal_getgrouplist): Use DEFAULT_CONFIG.
3675 * nscd/initgrcache.c (addinitgroupsX): Likewise.
3676 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
3677 (DEFAULT_DEFCONFIG): New macro.
3678 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
3679 * nss/grp-lookup.c: Include config.h
3680 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
3681 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
3682 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
3683 * manual/nss.texi: Update default values section.
3684
ef8adeb0
L
36852017-09-12 H.J. Lu <hongjiu.lu@intel.com>
3686
3687 [BZ #21967]
3688 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
3689 New.
3690 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
3691 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
3692 Handle MathVec_Prefer_No_AVX512.
3693 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
3694 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
3695 is set.
3696
a166531f
ST
36972017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
3698
3699 * posix/sched_primax.c (__sched_get_priority_max): Add
3700 libc_hidden_def.
3701 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
3702 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
3703 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
3704 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
3705 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
3706 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
3707 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
3708 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
3709 Add aliases.
3710
4b7d1efb
JM
37112017-09-11 Joseph Myers <joseph@codesourcery.com>
3712
3713 * sysdeps/generic/libm-alias-float.h: New file.
3714 * sysdeps/generic/math-type-macros-float.h: Include
3715 <libm-alias-float.h>.
3716 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
3717
45ff3463
L
37182017-09-11 H.J. Lu <hongjiu.lu@intel.com>
3719
3720 [BZ #22093]
3721 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
3722 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
3723 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
3724 (HWCAP_IMPORTANT): Likewise.
3725 (HWCAP_X86_64): New enum.
3726 (HWCAP_X86_AVX512_1): Updated.
3727 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
3728 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
3729 (modules-names): Add x86_64/tst-x86_64mod-1.
3730 (LDFLAGS-tst-x86_64mod-1.so): New.
3731 ($(objpfx)tst-x86_64-1): Likewise.
3732 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
3733 (tst-x86_64-1-clean): Likewise.
3734 * sysdeps/x86_64/tst-x86_64-1.c: New file.
3735 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
3736
891abfd3
SP
37372017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
3738
3739 * po/sv.po: Update translations.
3740 * po/fr.po: Likewise.
3741
00c3da43
ST
37422017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
3743
3744 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
3745 seconds.
3bdfd9fb
ST
3746 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
3747 seconds.
65b22ebc 3748 * elf/rtld-Rules: Fix $(error) use.
00c3da43 3749
96480903
MF
37502017-09-09 Mike FABIAN <mfabian@redhat.com>
3751
3752 [BZ #14925]
3753 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
3754 * locale/iso-639.def: Change “Bengali” to “Bangla”.
3755 * localedata/locales/bn_BD: “Bengali” was still used in some
3756 comments. Change it to “Bangla”.
3757
4c03a696
MT
37582017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
3759
3760 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
3761
9c9ec581
SE
37622017-09-08 Steve Ellcey <sellcey@cavium.com>
3763
3764 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
3765 thunderx2t99p1 to list of cpu names.
3766 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
3767 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
3768
f00bce74
SE
37692017-09-08 Steve Ellcey <sellcey@cavium.com>
3770
3771 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
3772 Use strcmp instead of tunable_is_name.
3773
27342d17
JM
37742017-09-08 Joseph Myers <joseph@codesourcery.com>
3775
af1b7c8c
JM
3776 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
3777 (F_GET_RW_HINT): New macro.
3778 [__USE_GNU] (F_SET_RW_HINT): Likewise.
3779 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
3780 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
3781 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
3782 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
3783 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
3784 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
3785 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
3786 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
3787
27342d17
JM
3788 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
3789 (F_ADD_SEALS): New macro.
3790 [__USE_GNU] (F_GET_SEALS): Likewise.
3791 [__USE_GNU] (F_SEAL_SEAL): Likewise.
3792 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
3793 [__USE_GNU] (F_SEAL_GROW): Likewise.
3794 [__USE_GNU] (F_SEAL_WRITE): Likewise.
3795
c66c9082
AZ
37962017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3797
07b4f49d
AZ
3798 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
3799 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
3800 * posix/glob_internal.h (__glob_pattern_type):
3801 * posix/glob.c (glob):
3802 * posix/glob_pattern_p.c (__glob_pattern_p):
3803 Use them.
3804
116f1c64
AZ
3805 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
3806 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
3807 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
3808 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
3809 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
3810 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
3811 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
3812 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
3813 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
3814 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
3815 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
3816 * sysdeps/wordsize-64/glob.c: Likewise.
3817 * sysdeps/wordsize-64/glob64.c: Likewise.
3818 * sysdeps/wordsize-64/globfree.c: Likewise.
3819 * sysdeps/wordsize-64/globfree64.c: Likewise.
3820 * sysdeps/unix/sysv/linux/glob.c: New file.
3821 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
3822 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
3823 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
3824 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
3825 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
3826 adds !GLOB_NO_OLD_VERSION as an extra condition.
3827 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
3828 using relative path instead of absolute one.
3829 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
3830 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
3831 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
3832 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
3833 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
3834 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
3835
ffca8901
AZ
3836 [BZ #1062]
3837 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
3838 (glob): Use the same scratch buffer for both getlogin_r and
3839 getpwnam_r. Don’t require preallocation of the login name. This
3840 simplifies storage allocation, and corrects the handling of
3841 long login names.
3842
5a79f975
AZ
3843 [BZ #1062]
3844 * posix/glob.c (glob): Port recent patches to platforms
3845 lacking getpwnam_r.
3846 (glob): Fix longstanding misuse of errno after getpwnam_r, which
3847 returns an error number rather than setting errno.
3848
e00f2425
AZ
3849 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
3850 instead of GCC extension.
3851 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
3852 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
3853 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
3854
5554304f
AZ
3855 [BZ #866]
3856 [BZ #1062]
3857 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
3858 * posix/bug-glob1.c: Remove file.
3859 * posix/tst-glob_symlinks.c: New file.
3860 * posix/glob.c (__lstat64): New macro.
3861 (is_dir): New function.
3862 (glob, glob_in_dir): Match symlinks even if they are dangling.
3863 (link_stat, link_exists_p): Remove. All uses removed.
3864
686f2ea1
AZ
3865 [BZ #1062]
3866 [BZ #19971]
3867 * posix/glob.c (struct readdir_result): Remove skip_entry member.
3868 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
3869 All uses removed.
3870
c66c9082
AZ
3871 [BZ #1062]
3872 * posix/Makefile (routines): Add globfree, globfree64, and
3873 glob_pattern_p.
3874 * posix/flexmember.h: New file.
3875 * posix/glob_internal.h: Likewise.
3876 * posix/glob_pattern_p.c: Likewise.
3877 * posix/globfree.c: Likewise.
3878 * posix/globfree64.c: Likewise.
3879 * sysdeps/gnu/globfree64.c: Likewise.
3880 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
3881 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
3882 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
3883 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
3884 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
3885 * sysdeps/wordsize-64/globfree.c: Likewise.
3886 * sysdeps/wordsize-64/globfree64.c: Likewise.
3887 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
3888 [NDEBUG): Remove comments.
3889 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
3890 (dirent_type): New type. Use uint_fast8_t not
3891 uint8_t, as C99 does not require uint8_t.
3892 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
3893 (struct readdir_result): Use dirent_type. Do not define skip_entry
3894 unless it is needed; this saves a byte on platforms lacking d_ino.
3895 (readdir_result_type, readdir_result_skip_entry):
3896 New functions, replacing ...
3897 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
3898 these functions, which were removed. This makes the callers
3899 easier to read. All callers changed.
3900 (D_INO_TO_RESULT): Now empty if there is no d_ino.
3901 (size_add_wrapv, glob_use_alloca): New static functions.
3902 (glob, glob_in_dir): Check for size_t overflow in several places,
3903 and fix some size_t checks that were not quite right.
3904 Remove old code using SHELL since Bash no longer
3905 uses this.
3906 (glob, prefix_array): Separate MS code better.
3907 (glob_in_dir): Remove old Amiga and VMS code.
3908 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
3909 separate files.
3910 (glob_in_dir): Do not rely on undefined behavior in accessing
3911 struct members beyond their bounds. Use a flexible array member
3912 instead
3913 (link_stat): Rename from link_exists2_p and return -1/0 instead of
3914 0/1. Caller changed.
3915 (glob): Fix memory leaks.
3916 * posix/glob64 (globfree64): Move to separate file.
3917 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
3918 (globfree64): Remove hidden alias.
3919 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
3920 oldglob.
3921 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
3922 separate file.
3923 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
3924 define.
3925 Move compat code to separate file.
3926 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
3927 separate file.
3928
78bfa877
L
39292017-09-07 H.J. Lu <hongjiu.lu@intel.com>
3930
3931 * resolv/tst-resolv-qtypes.c (domain): Changed to
3932 "const char domain[] =".
3933
05f0011f
JM
39342017-09-07 Joseph Myers <joseph@codesourcery.com>
3935
85bec0f2
JM
3936 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
3937 version to 3.1.6.
3938
5c23ee6e
JM
3939 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
3940 (TCP_MD5SIG_EXT): Likewise.
3941 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
3942 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
3943 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
3944
05f0011f
JM
3945 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
3946
7c9c5be9
MF
39472017-09-07 Mike FABIAN <mfabian@redhat.com>
3948
3949 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
3950
c207f7ce 39512017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
ae214523
AK
3952
3953 [BZ #22100]
3954 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
3955
507fe027
ST
39562017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
3957
3958 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
3959 before assuming that the file is empty. Avoid testing buffer content
3960 when nread == 0.
3961
65687ac7
AZ
39622017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3963
7bbbb4b9 3964 [BZ #18858]
65687ac7
AZ
3965 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
3966 Remove define.
3967 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
3968 Likewise.
3969 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
3970 Likewise.
3971 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
3972 Likewise.
3973 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
3974 Likewise.
3975 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
3976 Likewise.
3977 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
3978 Likewise.
3979
ab5ac271
FW
39802017-09-06 Florian Weimer <fweimer@redhat.com>
3981
3982 * malloc/dynarray_emplace_enlarge.c
3983 (__libc_dynarray_emplace_enlarge): Add missing else.
3984
a8304730
FW
39852017-09-06 Florian Weimer <fweimer@redhat.com>
3986
3987 [BZ #22096]
3988 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
3989 case of failure to obtain the global conf object.
3990
5670c4ab
FW
39912017-09-06 Florian Weimer <fweimer@redhat.com>
3992
3993 [BZ #22095]
3994 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
3995 dynarray allocation failure.
3996
c77eb969
FW
39972017-09-06 Florian Weimer <fweimer@redhat.com>
3998
3999 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
4000 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
4001 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
4002 New functions.
4003 (response): Call them. Add 'p', '6' flag processing.
4004 (test_reverse): New function.
4005 (test_get2_any): Call it.
4006 (test_no_inet6): Add 'p' test.
4007 (test_inet6): Likewise.
4008
5e9c4d17
FW
40092017-09-06 Florian Weimer <fweimer@redhat.com>
4010
4011 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
4012 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
4013 the QNAME.
4014 (test_gai): Adjust query names. Add additional tests.
4015 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
4016 test_get2. Adjust query names. Add additional tests.
4017 (test_no_inet6): New function, extracted from threadfunc.
4018 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
4019 Add additional tests.
4020
2ae5be04
MF
40212017-09-06 Mike FABIAN <mfabian@redhat.com>
4022
4023 [BZ #22070]
4024 * localedata/unicode-gen/utf8_gen.py: Set the width for
4025 characters with Prepended_Concatenation_Mark property to 1
4026 * localedata/charmaps/UTF-8: Updated using the improved script.
4027
af83ed5c
MF
40282017-09-06 Mike FABIAN <mfabian@redhat.com>
4029
4030 [BZ #21750]
4031 * localedata/unicode-gen/utf8_gen.py: Improve the script to
4032 use the range notation for all ranges of neighbouring characters
4033 with the same width.
4034
4f3647e4
JM
40352017-09-05 Joseph Myers <joseph@codesourcery.com>
4036
4037 * sysdeps/generic/math-type-macros-double.h: Include
4038 <math-svid-compat.h>.
4039 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
4040 * sysdeps/generic/math-type-macros-float.h: Include
4041 <math-svid-compat.h>.
4042 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
4043 * sysdeps/generic/math-type-macros-ldouble.h: Include
4044 <math-svid-compat.h>.
4045 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
4046 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
4047 condition.
4048 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
4049 * math/w_acosf_compat.c: Likewise.
4050 * math/w_acosh_compat.c: Likewise.
4051 * math/w_acoshf_compat.c: Likewise.
4052 * math/w_acoshl_compat.c: Likewise.
4053 * math/w_acosl_compat.c: Likewise.
4054 * math/w_asin_compat.c: Likewise.
4055 * math/w_asinf_compat.c: Likewise.
4056 * math/w_asinl_compat.c: Likewise.
4057 * math/w_atan2_compat.c: Likewise.
4058 * math/w_atan2f_compat.c: Likewise.
4059 * math/w_atan2l_compat.c: Likewise.
4060 * math/w_atanh_compat.c: Likewise.
4061 * math/w_atanhf_compat.c: Likewise.
4062 * math/w_atanhl_compat.c: Likewise.
4063 * math/w_cosh_compat.c: Likewise.
4064 * math/w_coshf_compat.c: Likewise.
4065 * math/w_coshl_compat.c: Likewise.
4066 * math/w_exp10_compat.c: Likewise.
4067 * math/w_exp10f_compat.c: Likewise.
4068 * math/w_exp10l_compat.c: Likewise.
4069 * math/w_exp2_compat.c: Likewise.
4070 * math/w_exp2f_compat.c: Likewise.
4071 * math/w_exp2l_compat.c: Likewise.
4072 * math/w_fmod_compat.c: Likewise.
4073 * math/w_fmodf_compat.c: Likewise.
4074 * math/w_fmodl_compat.c: Likewise.
4075 * math/w_hypot_compat.c: Likewise.
4076 * math/w_hypotf_compat.c: Likewise.
4077 * math/w_hypotl_compat.c: Likewise.
4078 * math/w_j0_compat.c: Likewise.
4079 * math/w_j0f_compat.c: Likewise.
4080 * math/w_j0l_compat.c: Likewise.
4081 * math/w_j1_compat.c: Likewise.
4082 * math/w_j1f_compat.c: Likewise.
4083 * math/w_j1l_compat.c: Likewise.
4084 * math/w_jn_compat.c: Likewise.
4085 * math/w_jnf_compat.c: Likewise.
4086 * math/w_jnl_compat.c: Likewise.
4087 * math/w_lgamma_r_compat.c: Likewise.
4088 * math/w_lgammaf_r_compat.c: Likewise.
4089 * math/w_lgammal_r_compat.c: Likewise.
4090 * math/w_log10_compat.c: Likewise.
4091 * math/w_log10f_compat.c: Likewise.
4092 * math/w_log10l_compat.c: Likewise.
4093 * math/w_log2_compat.c: Likewise.
4094 * math/w_log2f_compat.c: Likewise.
4095 * math/w_log2l_compat.c: Likewise.
4096 * math/w_log_compat.c: Likewise.
4097 * math/w_logf_compat.c: Likewise.
4098 * math/w_logl_compat.c: Likewise.
4099 * math/w_pow_compat.c: Likewise.
4100 * math/w_powf_compat.c: Likewise.
4101 * math/w_powl_compat.c: Likewise.
4102 * math/w_remainder_compat.c: Likewise.
4103 * math/w_remainderf_compat.c: Likewise.
4104 * math/w_remainderl_compat.c: Likewise.
4105 * math/w_sinh_compat.c: Likewise.
4106 * math/w_sinhf_compat.c: Likewise.
4107 * math/w_sinhl_compat.c: Likewise.
4108 * math/w_sqrt_compat.c: Likewise.
4109 * math/w_sqrtf_compat.c: Likewise.
4110 * math/w_sqrtl_compat.c: Likewise.
4111 * math/w_tgamma_compat.c: Likewise.
4112 * math/w_tgammaf_compat.c: Likewise.
4113 * math/w_tgammal_compat.c: Likewise.
4114 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
4115 [LIBM_SVID_COMPAT].
4116 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
4117 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
4118 [LIBM_SVID_COMPAT].
4119 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
4120 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
4121 [LIBM_SVID_COMPAT].
4122 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
4123 * sysdeps/i386/fpu/w_sqrt.c: New file.
4124 * sysdeps/ia64/fpu/w_acos.c: Likewise.
4125 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
4126 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
4127 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
4128 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
4129 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
4130 * sysdeps/ia64/fpu/w_asin.c: Likewise.
4131 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
4132 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
4133 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
4134 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
4135 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
4136 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
4137 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
4138 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
4139 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
4140 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
4141 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
4142 * sysdeps/ia64/fpu/w_exp.c: Likewise.
4143 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
4144 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
4145 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
4146 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
4147 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
4148 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
4149 * sysdeps/ia64/fpu/w_expf.c: Likewise.
4150 * sysdeps/ia64/fpu/w_expl.c: Likewise.
4151 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
4152 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
4153 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
4154 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
4155 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
4156 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
4157 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
4158 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
4159 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
4160 * sysdeps/ia64/fpu/w_log.c: Likewise.
4161 * sysdeps/ia64/fpu/w_log10.c: Likewise.
4162 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
4163 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
4164 * sysdeps/ia64/fpu/w_log2.c: Likewise.
4165 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
4166 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
4167 * sysdeps/ia64/fpu/w_logf.c: Likewise.
4168 * sysdeps/ia64/fpu/w_logl.c: Likewise.
4169 * sysdeps/ia64/fpu/w_pow.c: Likewise.
4170 * sysdeps/ia64/fpu/w_powf.c: Likewise.
4171 * sysdeps/ia64/fpu/w_powl.c: Likewise.
4172 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
4173 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
4174 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
4175 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
4176 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
4177 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
4178 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
4179 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
4180 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
4181 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
4182 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
4183 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
4184 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
4185 [LIBM_SVID_COMPAT].
4186 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
4187 * sysdeps/ieee754/k_standard.c: Likewise.
4188 * sysdeps/ieee754/k_standardf.c: Likewise.
4189 * sysdeps/ieee754/k_standardl.c: Likewise.
4190 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
4191 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
4192 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
4193 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
4194 long_double_symbol call on [LIBM_SVID_COMPAT].
4195 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
4196 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
4197 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
4198 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
4199 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
4200 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
4201 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
4202 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
4203 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
4204 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
4205 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
4206 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
4207 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
4208 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
4209 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
4210 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
4211 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
4212 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
4213 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
4214 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
4215 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
4216 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
4217
05b38d64
SE
42182017-09-05 Steve Ellcey <sellcey@cavium.com>
4219
4220 * include/shlib-compat.h (TEST_COMPAT): New Macro.
4221 * malloc/tst-mallocstate.c: Convert from test-skeleton
4222 to test-driver. Ifdef code using TEST_COMPAT macro.
4223 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
4224 * math/test-matherr.c: Likewise.
4225
99d67918
JM
42262017-09-05 Joseph Myers <joseph@codesourcery.com>
4227
4228 [BZ #22086]
4229 * debug/pcprofiledump.c (main): Use byte-swapped mask when
4230 comparing word with byte-swapped constant.
4231
c207f7ce 42322017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
3f802aeb
MF
4233
4234 [BZ #20498]
4235 * locale/iso-639.def: add Miskito.
4236 * localedata/SUPPORTED: Add miq_NI/UTF-8.
4237 * localedata/locales/miq_NI: New file.
4238
0a587a8a
L
42392017-09-04 H.J. Lu <hongjiu.lu@intel.com>
4240
4241 [BZ #18822]
4242 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
4243 (__mkdir): Likewise.
4244 * io/chmod.c (__chmod): Add libc_hidden_def.
4245 * io/mkdir.c (__mkdir): Likewise.
4246 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
4247 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
4248 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
4249 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
4250
f3a129b8
JM
42512017-09-04 Joseph Myers <joseph@codesourcery.com>
4252
1650e192
JM
4253 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
4254 version to 4.13.
4255
f3a129b8
JM
4256 [BZ #22082]
4257 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
4258 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
4259
b38042f5
FW
42602017-09-04 Florian Weimer <fweimer@redhat.com>
4261
4262 * math/math.h: Issue warning if log is defined.
4263
059b6404
JM
42642017-09-04 Joseph Myers <joseph@codesourcery.com>
4265
4266 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
4267 kernel version to 4.13.
4268
b794e16b
ST
42692017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
4270
4271 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
06cf9d31
ST
4272 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
4273 parameter.
01969395
ST
4274 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
4275 just <bits/types.h>.
dd2b31de 4276 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
ed95bf56 4277 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
dd2b31de 4278 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
ed95bf56 4279 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
2263ca7c
ST
4280 * misc/preadv2.c: Include <errno.h>.
4281 * misc/preadv64v2.c: Include <errno.h>.
4282 * misc/pwritev2.c: Include <errno.h>.
4283 * misc/pwritev64v2.c: Include <errno.h>.
4284 * sysdeps/posix/preadv2.c: Include <errno.h>.
4285 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
4286 Fix <unistd.h> inclusion.
4287 * sysdeps/posix/pwritev2.c: Include <errno.h>.
4288 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
cae3d712
ST
4289 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
4290 __strtoul_internal): New functions.
127e7773
ST
4291 * sysdeps/posix/pause.c: Include <sigsetops.h>.
4292 * sysdeps/posix/system.c: Include <sigsetops.h>.
f85958a7
ST
4293 * sysdeps/mach/hurd/i386/Makefile
4294 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
4295 [$(subdir) = csu] (sysdep-only-routines): Likewise.
4296 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
1946d950
ST
4297 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
4298 __feraiseexcept_renamed to feraiseexcept instead of
4299 __GI_feraiseexcept.
56bf5497 4300 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
2ce1f9ef 4301 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
492cbbed
ST
4302 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
4303 RWF_NOWAIT): Define to 0 if undefined already.
4304 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
4305 boils down to 0.
6547ec0a
ST
4306 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
4307 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
b794e16b 4308
5a80d39d
JM
43092017-09-01 Joseph Myers <joseph@codesourcery.com>
4310
4311 * manual/math.texi (pow10): Do not document.
4312 (pow10f): Likewise.
4313 (pow10l): Likewise.
4314 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
4315 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
4316 * math/libm-test-exp10.inc (pow10_test): Remove.
4317 (do_test): Do not call pow10.
4318 * math/w_exp10_compat.c (pow10): Make into compat symbol.
4319 [NO_LONG_DOUBLE] (pow10l): Likewise.
4320 * math/w_exp10f_compat.c (pow10f): Likewise.
4321 * math/w_exp10l_compat.c (pow10l): Likewise.
4322 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
4323 (pow10): Make into compat symbol.
4324 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
4325 (pow10f): Make into compat symbol.
4326 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
4327 (pow10l): Make into compat symbol.
4328 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
4329 pow10.
4330 (CFLAGS-nldbl-pow10.c): Remove variable..
4331 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
4332 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
4333 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
4334 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
4335 Undefine and redefine.
4336 (pow10l): Make into compat symbol.
4337 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
4338 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
4339 * sysdeps/arm/libm-test-ulps: Likewise.
4340 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
4341 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
4342 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
4343 * sysdeps/microblaze/libm-test-ulps: Likewise.
4344 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
4345 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
4346 * sysdeps/nios2/libm-test-ulps: Likewise.
4347 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
4348 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
4349 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
4350 * sysdeps/sh/libm-test-ulps: Likewise.
4351 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
4352 * sysdeps/tile/libm-test-ulps: Likewise.
4353 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4354
3824fc38
PP
43552017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
4356
4357 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
4358
b3008279
L
43592017-09-01 H.J. Lu <hongjiu.lu@intel.com>
4360
4361 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
4362 "../ChangeLog.old/ChangeLog.8".
4363 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
4364 "../ChangeLog.old/ChangeLog.14".
4365
136fa185
L
43662017-09-01 H.J. Lu <hongjiu.lu@intel.com>
4367
4368 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
4369 Threads Library.
4370
c18d50a2
JM
43712017-09-01 Joseph Myers <joseph@codesourcery.com>
4372
4373 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
4374
bedbd859
L
43752017-09-01 H.J. Lu <hongjiu.lu@intel.com>
4376
4377 * csu/version.c (banner): Remove "by Roland McGrath et al.".
4378 * nptl/Banner: Remove "by Ulrich Drepper et al.".
4379
50c66c7a
PP
43802017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
4381
4382 * stdlib/tst-atexit-common.c (do_test): Test support for at least
4383 32 atexit handlers.
4384
a617bd11
ZW
43852017-09-01 Zack Weinberg <zackw@panix.com>
4386
4387 * math/math.h (HUGE_VAL): Improve commentary.
4388
e0d2eb5a
AZ
43892017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4390 Andreas Schwab <schwab@suse.de>
4391
4392 [BZ #21530]
4393 * include/stdio.h (__gen_tempfd): New function.
4394 * stdio-common/Makefile (routines): Add gentempfd.
4395 * stdio-common/gentempfd.c: New file.
4396 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
4397 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
4398 unnamed file first.
4399
f4a6be25
FW
44002017-09-01 Florian Weimer <fweimer@redhat.com>
4401
4402 [BZ #21915]
4403 [BZ #21922]
4404 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
4405 result to determine success or failure, not the errno value.
4406 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
4407 (tst-nss-files-hosts-erange): Link with -ldl.
4408 * nss/tst-nss-files-hosts-erange.c: New file.
4409 * nss/tst-resolv-basic.c (response): Handle nodata.example.
4410 (do_test): Add NO_DATA tests.
4411 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
4412 (do_test): Call it.
4413
5f8340f5
FW
44142017-09-01 Florian Weimer <fweimer@redhat.com>
4415
4416 [BZ #21922]
4417 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
4418 coming from gethostbyname2_r.
4419
65329bd2
FW
44202017-09-01 Florian Weimer <fweimer@redhat.com>
4421
4422 * support/namespace.h (struct support_chroot_configuration): Add
4423 hosts, host_conf.
4424 (struct support_chroot): Add path_hosts, path_host_conf.
4425 * support/support_chroot.c (write_file): New function.
4426 (support_chroot_create): Call it to process /etc/resolv.conf,
4427 /etc/hosts, /etc/host.conf.
4428 (support_chroot_free): Update.
4429
a2881ef0
FW
44302017-09-01 Florian Weimer <fweimer@redhat.com>
4431
4432 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
4433 status indicates it is set.
4434
ad816a5e
FW
44352017-09-01 Florian Weimer <fweimer@redhat.com>
4436
4437 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
4438 function lookup failures more reliable.
4439
53250a21
FW
44402017-09-01 Florian Weimer <fweimer@redhat.com>
4441
4442 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
4443 (getcanonname): Likewise.
4444 (gaih_inet): Likewise.
4445
924b121c
FW
44462017-09-01 Florian Weimer <fweimer@redhat.com>
4447
4448 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
4449 (getcanonname): Likewise.
4450 (gaih_inet): Likewise.
4451
d9ff799a
SE
44522017-08-31 Steve Ellcey <sellcey@cavium.com>
4453 Richard Henderson <rth@twiddle.net>
4454
4455 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
4456 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
4457 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
4458 (IREG_SIZE, OREG_SIZE): New macros.
4459 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
4460 (IREG_SIZE, OREG_SIZE): New macros.
4461 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
4462 (IREG_SIZE): New macro.
4463 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
4464 (IREG_SIZE): New macro.
4465 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
4466 New includes.
4467 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
4468 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
4469 (__CONCATX): Handle exceptions correctly on large values that may
4470 set FE_INVALID.
4471 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
4472 Initialize if not already set.
4473 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
4474
102dde84
AZ
44752017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4476
4477 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
4478 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
4479 Likewise.
4480 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
4481 Likewise.
4482 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
4483 Likewise.
4484 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
4485 Likewise.
4486 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
4487 Likewise.
4488 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
4489 Likewise.
4490 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
4491 Likewise.
4492 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
4493 (NO_CANCELLATION): Likewise.
4494 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
4495 Likewise.
4496 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
4497 Likewise.
4498 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
4499 Likewise.
4500 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
4501 (NO_CANCELLATION): Likewise.
4502 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
4503 (NO_CANCELLATION): Likewise.
4504 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
4505 Likewise
4506 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
4507 Likewise.
4508 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
4509 Likewise.
4510 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
4511 Likewise.
4512 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
4513 hidden prototype.
4514 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
4515 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
4516
9eee633b
SE
45172017-08-31 Steve Ellcey <sellcey@cavium.com>
4518
4519 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
4520 in resolver call.
4521
65284eb7
FW
45222017-08-31 Florian Weimer <fweimer@redhat.com>
4523
4524 * include/libc-symbols.h (internal_function): Remove.
4525
41ad5ca6
FW
45262017-08-31 Florian Weimer <fweimer@redhat.com>
4527
4528 * stdlib/fmtmsg.c (internal_addseverity): Remove
4529 internal_function.
4530
2fa6d086
FW
45312017-08-31 Florian Weimer <fweimer@redhat.com>
4532
4533 * stdio-common/printf_fp.c (group_number): Remove
4534 internal_function.
4535 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
4536
b41bd5bc
FW
45372017-08-31 Florian Weimer <fweimer@redhat.com>
4538
4539 * posix/fnmatch.c (internal_function): Remove definition.
4540 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
4541 * posix/regcomp.c (peek_token, init_word_char)
4542 (duplicate_node_closure, fetch_token, peek_token)
4543 (peek_token_bracket, build_range_exp, build_collating_symbol):
4544 Likewise.
4545 * posix/regex_internal.c (re_string_construct_common)
4546 (create_ci_newstate, create_cd_newstate, re_string_allocate)
4547 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
4548 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
4549 (re_string_translate_buffer, re_string_reconstruct)
4550 (re_string_peek_byte_case, re_string_fetch_byte_case)
4551 (re_string_destruct, re_string_context_at, re_node_set_alloc)
4552 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
4553 (re_node_set_add_intersect, re_node_set_init_union)
4554 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
4555 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
4556 (re_dfa_add_node, calc_state_hash, re_acquire_state)
4557 (re_acquire_state_context): Likewise.
4558 * posix/regex_internal.h (internal_function): Remove definition.
4559 (re_string_realloc_buffers, build_wcs_buffer)
4560 (build_wcs_upper_buffer, build_upper_buffer)
4561 (re_string_translate_buffer, re_string_context_at)
4562 (re_string_char_size_at, re_string_wchar_at)
4563 (re_string_elem_size_at): Likewise.
4564 * posix/regexec.c (match_ctx_init, match_ctx_clean)
4565 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
4566 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
4567 (re_search_internal, re_search_2_stub, re_search_stub)
4568 (re_copy_regs, prune_impossible_nodes, check_matching)
4569 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
4570 (free_fail_stack_return, sift_states_iter_mb)
4571 (sift_states_backward, build_sifted_states)
4572 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
4573 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
4574 (check_subexp_limits, sift_states_bkref, merge_state_array)
4575 (find_recover_state, transit_state, merge_state_with_log)
4576 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
4577 (transit_state_mb, transit_state_bkref, get_subexp)
4578 (get_subexp_sub, find_subexp_node, check_arrival)
4579 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
4580 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
4581 (check_node_accept_bytes, find_collation_sequence_value)
4582 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
4583 (acquire_init_state_context, check_halt_node_context)
4584 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
4585 (sub_epsilon_src_nodes): Likewise.
4586 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
4587 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
4588 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
4589 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
4590 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
4591 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
4592 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
4593 * sysdeps/posix/ttyname.c (getttyname): Likewise.
4594 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
4595 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
4596 (PREADV): Likewise.
4597 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
4598 (PREADV): Likewise.
4599 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
4600 (PWRITEV): Likewise.
4601 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
4602 (PWRITEV): Likewise.
4603 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
4604 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
4605
83b09837
FW
46062017-08-31 Florian Weimer <fweimer@redhat.com>
4607
4608 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
4609 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
4610 Remove internal_function.
4611 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
4612 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
4613 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
4614 (__deallocate_stack, __libc_pthread_init)
4615 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
4616 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
4617 (__libc_disable_asynccancel, __librt_disable_asynccancel):
4618 Likewise.
4619 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
4620 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
4621 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
4622 Likewise.
4623 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
4624 (__pthread_mutex_unlock_usercnt): Likewise.
4625
116ac301
FW
46262017-08-31 Florian Weimer <fweimer@redhat.com>
4627
4628 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
4629 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
4630 (fts_safe_changedir): Remove internal_function.
4631 * io/ftw.c (internal_function): Remove definition.
4632 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
4633
9da93bd7
FW
46342017-08-31 Florian Weimer <fweimer@redhat.com>
4635
4636 * inet/deadline.c (__deadline_current_time)
4637 (__deadline_from_timeval, __deadline_to_ms): Remove
4638 internal_function.
4639 * inet/getnameinfo.c (nrl_domainname): Likewise.
4640 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
4641 * inet/inet6_option.c (add_pad): Likewise.
4642 * inet/net-internal.h (__deadline_current_time)
4643 (__deadline_from_timeval, __deadline_to_ms): Likewise.
4644 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
4645 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
4646 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
4647
a60eca2e
JM
46482017-08-31 Joseph Myers <joseph@codesourcery.com>
4649
c0c49d60
JM
4650 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
4651 include <bits/nan.h>.
4652 * math/Makefile (headers): Remove bits/nan.h.
4653 * bits/nan.h: Remove.
4654 * sysdeps/ieee754/bits/nan.h: Likewise.
4655 * sysdeps/mips/bits/nan.h: Likewise.
4656
5ef1b213
JM
4657 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
4658 not include <bits/inf.h>.
4659 * math/Makefile (headers): Remove bits/inf.h.
4660 * bits/inf.h: Remove.
4661 * sysdeps/ieee754/bits/inf.h: Likewise.
4662
a60eca2e
JM
4663 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
4664 bits/huge_vall.h or bits/huge_val_flt128.h.
4665 (HUGE_VAL): Define directly here.
4666 [__USE_ISOC99] (HUGE_VALF): Likewise.
4667 [__USE_ISOC99] (HUGE_VALL): Likewise.
4668 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
4669 (HUGE_VAL_F128): Likewise.
4670 * math/Makefile (headers): Remove bits/huge_val.h,
4671 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
4672 * bits/huge_val.h: Remove.
4673 * bits/huge_val_flt128.h: Likewise.
4674 * bits/huge_valf.h: Likewise.
4675 * bits/huge_vall.h: Likewise.
4676 * sysdeps/ia64/bits/huge_vall.h: Likewise.
4677 * sysdeps/ieee754/bits/huge_val.h: Likewise.
4678 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
4679 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
4680 * sysdeps/sh/bits/huge_val.h: Likewise.
4681 * sysdeps/sparc/bits/huge_vall.h: Likewise.
4682 * sysdeps/x86/bits/huge_vall.h: Likewise.
4683
17e00cc6
FW
46842017-08-31 Florian Weimer <fweimer@redhat.com>
4685
4686 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
4687 internal_function.
4688 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
4689 Likewise.
4690 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
4691 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
4692 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
4693 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
4694 * elf/dl-fini.c (_dl_sort_fini): Likewise.
4695 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
4696 * elf/dl-libc.c (dlerror_run): Likewise.
4697 * elf/dl-load.c (add_name_to_object, decompose_rpath)
4698 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
4699 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
4700 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
4701 Likewise.
4702 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
4703 (_dl_higher_prime_number, _dl_strtoul): Likewise.
4704 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
4705 * elf/dl-profile.c (_dl_start_profile): Likewise.
4706 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
4707 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
4708 Likewise.
4709 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
4710 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
4711 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
4712 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
4713 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
4714 (_dl_allocate_tls_storage): Likewise.
4715 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
4716 (_dl_check_all_versions): Likewise.
4717 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
4718 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
4719 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
4720 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
4721 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
4722 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
4723 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
4724 internal_function from __dl_start.
4725 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
4726 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
4727 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
4728 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
4729 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
4730 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
4731 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
4732 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
4733 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
4734 (_dl_next_ld_env_entry, _dl_important_hwcaps)
4735 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
4736 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
4737 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
4738 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
4739 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
4740 Likewise.
4741 (struct rtld_global_ro): Remove internal_function from the
4742 _dl_lookup_symbol_x member.
4743 (_dl_symbol_value): Remove. No longer defined anywhere.
4744 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
4745 internal_function.
4746 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
4747 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
4748 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
4749 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
4750 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
4751 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
4752 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
4753 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
4754 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
4755 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
4756 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
4757 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
4758
8d2f9410
FW
47592017-08-31 Florian Weimer <fweimer@redhat.com>
4760
4761 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
4762 Remove internal_function.
4763 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
4764 Likewise.
4765 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
4766 Likewise.
4767
86e4919f
FW
47682017-08-31 Florian Weimer <fweimer@redhat.com>
4769
4770 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
4771 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
4772 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
4773
59bd52b0
FW
47742017-08-31 Florian Weimer <fweimer@redhat.com>
4775
4776 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
4777 (__gai_enqueue_request): Remove internal_function.
4778 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
4779 (__gai_remove_request, __gai_notify, __gai_notify_only)
4780 (__gai_sigqueue): Likewise.
4781 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
4782 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
4783 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
4784 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
4785 Likewise.
4786
fc3d9497
FW
47872017-08-31 Florian Weimer <fweimer@redhat.com>
4788
4789 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
4790 * include/dirent.h (__opendirat, __getdents, __getdents64)
4791 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
4792 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
4793 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
4794 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
4795 Likewise.
4796 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
4797
18c54fac
FW
47982017-08-31 Florian Weimer <fweimer@redhat.com>
4799
4800 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
4801 internal_function.
4802 (GETCWD_RETURN_TYPE): Likewise.
4803
7e01f080
FW
48042017-08-31 Florian Weimer <fweimer@redhat.com>
4805
4806 * include/time.h (__tz_compute, __strptime_internal): Remove
4807 internal_function.
4808 * time/strptime_l.c (__strptime_internal): Likewise.
4809 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
4810
d7ccc6c9
FW
48112017-08-31 Florian Weimer <fweimer@redhat.com>
4812
4813 * iconv/gconv.c (__gconv): Remove internal_function.
4814 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
4815 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
4816 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
4817 (__gconv_release_cache): Likewise.
4818 * iconv/gconv_close.c (__gconv_close): Likewise.
4819 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
4820 (read_conf_file, __gconv_get_path): Likewise.
4821 * iconv/gconv_db.c (derivation_lookup, add_derivation)
4822 (__gconv_release_step, gen_steps, increment_counter)
4823 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
4824 (__gconv_close_transform, free_modules_db): Likewise.
4825 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
4826 Likewise.
4827 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
4828 (__gconv_find_transform, __gconv_lookup_cache)
4829 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
4830 (__gconv_close_transform, __gconv_release_cache)
4831 (__gconv_loaded_object, __gconv_release_shlib)
4832 (__gconv_compare_alias): Likewise.
4833 * iconv/gconv_open.c (__gconv_open): Likewise.
4834 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
4835 * iconv/iconvconfig.c (add_module): Likewise.
4836 * intl/dcigettext.c (plural_lookup, guess_category_value)
4837 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
4838 * intl/eval-plural.h (plural_eval): Likewise.
4839 * intl/finddomain.c (_nl_find_domain): Likewise.
4840 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
4841 (_nl_load_domain, _nl_find_msg): Likewise.
4842 (internal_function): Remove definition.
4843 * intl/loadinfo.h (internal_function): Likewise.
4844 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
4845 internal_function.
4846 * intl/localealias.c (internal_function): Remove definition.
4847 (read_alias_file): Remove internal_function.
4848 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
4849 * intl/plural-exp.h (internal_function): Remove definition.
4850 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
4851 internal_function.
4852 * intl/plural.c: Regenerate.
4853 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
4854 * locale/coll-lookup.c (__collidx_table_lookup)
4855 (__collseq_table_lookup): Likewise.
4856 * locale/coll-lookup.h (__collidx_table_lookup)
4857 (__collseq_table_lookup): Likewise.
4858 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
4859 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
4860 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
4861 (_nl_unload_locale): Likewise.
4862 * locale/localeinfo.h (struct __locale_data): Remove
4863 internal_function from cleanup member.
4864 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
4865 (_nl_remove_locale, _nl_load_locale_from_archive)
4866 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
4867 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
4868 (_nl_cleanup_time): Remove internal_function.
4869 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
4870 (_nl_parse_alt_digit): Likewise.
4871 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
4872 (_nl_select_era_entry): Likewise.
4873 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
4874 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
4875 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
7e01f080
FW
4876 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
4877 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
d7ccc6c9 4878
dab0eece
FW
48792017-08-31 Florian Weimer <fweimer@redhat.com>
4880
4881 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
4882 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
4883 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
4884 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
4885 Likewise.
4886 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
4887 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
4888 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
4889 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
4890 Likewise.
4891 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
4892
ab5bf7cf
FW
48932017-08-31 Florian Weimer <fweimer@redhat.com>
4894
4895 * misc/getttyent.c (skip, value): Remove internal_function.
4896 * misc/syslog.c (openlog_internal): Likewise.
4897 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
4898
75b3047e
FW
48992017-08-31 Florian Weimer <fweimer@redhat.com>
4900
4901 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
4902 (__nss_rewrite_field): Remove internal_function.
4903 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
4904 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
4905 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
4906 * nss/nsswitch.c (nss_parse_file, nss_getline)
4907 (nss_parse_service_list, nss_new_service): Likewise.
4908 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
4909 * nss/valid_field.c (__nss_valid_field): Likewise.
4910 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
4911
0c71122c
FW
49122017-08-31 Florian Weimer <fweimer@redhat.com>
4913
4914 * malloc/arena.c (__malloc_fork_lock_parent)
4915 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
4916 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
4917 internal_function from defintions.
4918 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
4919 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
4920 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
4921 internal_function from declarations.
4922 * malloc/malloc.c (internal_function): Do not define.
4923 (mem2mem_check): Remove internal_function from declaration.
4924 (munmap_chunk, mremap_chunk): Remove internal_function.
4925 * malloc/mtrace.c (tr_where): Likewise.
4926
ca4ec803
FW
49272017-08-31 Florian Weimer <fweimer@redhat.com>
4928
4929 * include/rpc/pmap_clnt.h (__get_socket): Remove
4930 internal_function.
4931 * sunrpc/auth_des.c (synchronize): Likewise.
4932 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
4933 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
4934 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
4935 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
4936 (key_call): Likewise.
4937 * sunrpc/pm_getport.c (__get_socket): Likewise.
4938 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
4939 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
4940 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
4941 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
4942 (invalidate): Likewise.
4943 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
4944 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
4945 (set_input_fragment, get_input_bytes): Likewise.
4946
24cffce7
FW
49472017-08-31 Florian Weimer <fweimer@redhat.com>
4948
4949 * malloc/malloc.c (_int_free): Remove locked variable and related
4950 asserts.
4951
ecd0747d
L
49522017-08-31 H.J. Lu <hongjiu.lu@intel.com>
4953
4954 [BZ #22051]
4955 * Makerules (build-module-helper-objlist): Filter out
4956 $(elf-objpfx)sofini.os.
4957 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
4958 needed.
4959
5f0704b6
FW
49602017-08-31 Florian Weimer <fweimer@redhat.com>
4961
4962 * libio/fcloseall.c: Assume weak_alias is defined.
4963 * libio/feof.c: Likewise.
4964 * libio/fileno.c: Likewise.
4965 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
4966 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
4967 definitions.
4968 (_IO_file_open): Call __open directly.
4969 (_IO_new_file_sync): Assume ESPIPE is defined.
4970 (_IO_file_seekoff_maybe_mmap): Call __read directly.
4971 (_IO_new_file_write): Call __write directly.
4972 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
4973 * libio/ftello64.c (__ftello64): Assume EIO is defined.
4974 * libio/genops.c: Assume _LIBC is defined.
4975 (save_for_backup): Remove internal_function.
4976 * libio/getc.c: Assume weak_alias is defined.
4977 * libio/getwc.c: Likewise.
4978 * libio/iofclose.c: Assume _LIBC is defined.
4979 * libio/iofdopen.c: Likewise.
4980 (_IO_fcntl): Remove macro definition.
4981 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
4982 Call __fcntl directly.
4983 * libio/iofflush.c: Assume weak_alias is defined.
4984 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
4985 defined.
4986 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
4987 * libio/iofgets.c: Likewise.
4988 * libio/iofopen.c: Assume _LIBC is defined.
4989 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
4990 * libio/iofputs.c: Assume weak_alias is defined.
4991 * libio/iofread.c: Likewise.
4992 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
4993 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
4994 * libio/ioftell.c: Assume weak_alias is defined.
4995 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
4996 * libio/iofwide.c: Assume _LIBC is defined.
4997 (_IO_fwide): Drop SHARED conditional because it is implied by
4998 SHLIB_COMPAT.
4999 * libio/iofwrite.c: Assume weak_alias is defined.
5000 * libio/iogetdelim.c: Likewise.
5001 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
5002 * libio/iogetwline.c (wmemcpy): Remove macro definition.
5003 (_IO_getwline): Call __wmemcpy directly.
5004 * libio/iopopen.c: Assume _LIBC is defined.
5005 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
5006 (_IO_close): Remove macro definitions.
5007 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
5008 _exit directly.
5009 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
5010 directly.
5011 * libio/ioputs.c: Assume weak_alias is defined.
5012 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
5013 * libio/iosetbuffer.c: Assume weak_alias is defined.
5014 * libio/iosetvbuf.c: Likewise.
5015 * libio/ioungetc.c: Likewise.
5016 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
5017 libc_hidden_def, libc_hidden_weak, NULL are defined.
5018 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
5019 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
5020 defined.
5021 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
5022 definitions.
5023 (_IO_old_file_init_internal): Drop SHARED conditional because it
5024 is implied by SHLIB_COMPAT.
5025 (_IO_old_file_fopen): Call __open directly.
5026 (_IO_old_file_sync): Assume ESPIPE is defined.
5027 (_IO_old_file_write): Call __write directly.
5028 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
5029 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
5030 Call __fcntl directly.
5031 * libio/oldiofgetpos.c: Assume weak_alias is defined.
5032 (_IO_old_fgetpos): Assume EIO is defined.
5033 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
5034 (_IO_old_fgetpos64): Assume EIO is defined.
5035 * libio/oldiofsetpos.c: Assume weak_alias is defined.
5036 (_IO_old_fsetpos): Assume EIO is defined.
5037 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
5038 (_IO_old_fsetpos64): Assume EIO is defined.
5039 * libio/oldiopopen.c: Assume _LIBC is defined.
5040 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
5041 (_IO_close): Remove macro definitions.
5042 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
5043 directly.
5044 (_IO_old_proc_close): Call __close, __waitpid directly.
5045 * libio/put.c: Assume weak_alias is defined.
5046 * libio/stdfiles.c: Assume _LIBC is defined.
5047 * libio/stdio.c: Likewise.
5048 * libio/wfileops.c: Likewise.
5049 (_IO_wfile_sync): Assume ESPIPE is defined.
5050 * libio/wgenops.c: Assume _LIBC is defined.
5051 (save_for_wbackup): Remove internal_function.
5052
5129873a
FW
50532017-08-31 Florian Weimer <fweimer@redhat.com>
5054
5055 * malloc/malloc.c (top_check): Change return type to void. Remove
5056 internal_function.
5057 * malloc/hooks.c (top_check): Likewise.
5058 (malloc_check, realloc_check, memalign_check): Adjust.
5059
4fa9b3bf
JM
50602017-08-30 Joseph Myers <joseph@codesourcery.com>
5061
5062 [BZ #21457]
5063 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
5064 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
5065 sigcontext and namespace requirements.
5066 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
5067 * sysdeps/m68k/sys/ucontext.h: Likewise.
5068 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
5069 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
5070 <bits/sigcontext.h>.
5071 (__ctx): Define earlier.
5072 (mcontext_t): Define structure contents rather than using struct
5073 sigcontext.
5074 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
5075 __glibc_reserved1 instead of __reserved.
5076 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
5077 <bits/sigcontext.h>.
5078 (__ctx): Define earlier.
5079 (mcontext_t): Define structure contents rather than using struct
5080 sigcontext.
5081 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
5082 mcontext_t instead of struct sigcontext.
5083 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
5084 <bits/sigcontext.h>.
5085 (__ctx): Define earlier.
5086 (mcontext_t): Define structure contents rather than using struct
5087 sigcontext.
5088 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
5089 <bits/sigcontext.h>.
5090 (__ctx): Define earlier.
5091 (mcontext_t): Define structure contents rather than using struct
5092 sigcontext.
5093 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
5094 mcontext_t instead of struct sigcontext.
5095 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
5096 mcontext_t instead of struct sigcontext.
5097 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
5098 <bits/sigcontext.h>.
5099 (__ctx): New macro.
5100 (struct __ia64_fpreg_mcontext): New type.
5101 (mcontext_t): Define structure contents rather than using struct
5102 sigcontext.
5103 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
5104 (uc_sigmask): Define using __ctx.
5105 (uc_stack): Likewise.
5106 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
5107 <bits/sigcontext.h>.
5108 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
5109 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
5110 <bits/sigcontext.h>.
5111 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
5112 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
5113 <bits/sigcontext.h>.
5114 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
5115 <bits/sigcontext.h>.
5116 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
5117 <bits/sigcontext.h>.
5118 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
5119 <bits/sigcontext.h>.
5120 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
5121 <bits/sigcontext.h>.
5122 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
5123 <bits/sigcontext.h>.
5124 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
5125 <bits/sigcontext.h>.
5126 (__ctx): Define earlier.
5127 (mcontext_t): Define structure contents rather than using struct
5128 sigcontext.
5129 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
5130 <bits/sigcontext.h>. Include <bits/types.h>.
5131 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
5132 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
5133 (test-xfail-XPG42/ucontext.h/conform): Likewise.
5134 (test-xfail-UNIX98/signal.h/conform): Likewise.
5135 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
5136 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
5137 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
5138 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
5139 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
5140 (test-xfail-POSIX2008/signal.h/conform): Likewise.
5141 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
5142 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
5143 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
5144
5898f454
FW
51452017-08-30 Florian Weimer <fweimer@redhat.com>
5146
5147 * malloc/dynarray_emplace_enlarge.c
5148 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
5149 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
5150 * malloc/tst-dynarray.c (test_long_overflow): New function.
5151 (do_test): Call it.
5152
a9da0bb2
FW
51532017-08-30 Florian Weimer <fweimer@redhat.com>
5154
5155 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
5156 (set_arena_corrupt): Remove definitions.
5157 (mtrim): Do not check for corrupt arena.
5158 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
5159 Likewise.
5160
ac3ed168
FW
51612017-08-30 Florian Weimer <fweimer@redhat.com>
5162
5163 [BZ #21754]
5164 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
5165 check_action.
5166 (ptmalloc_init): Do not set or use check_action.
5167 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
5168 call to malloc_printerr. Remove return statement.
5169 (free_check): Likewise. Remove arena unlock.
5170 (top_check): Update comment. Adjust call to malloc_printerr.
5171 Remove heap repair code.
5172 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
5173 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
5174 (sysmalloc): Adjust call to malloc_printerr.
5175 (munmap_chunk, __libc_realloc): Likewise. Remove return
5176 statement.
5177 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
5178 Remove errout label and corresponding gotos.
5179 (_int_free): Likewise. Remove arena unlock.
5180 (do_set_mallopt_check): Do not set check_action.
5181 (malloc_printerr): Adjust parameter list. Do not mark arena as
5182 corrupt.
5183 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
5184 comment.
5185 * manual/probes.texi (Memory Allocation Probes): Remove
5186 memory_mallopt_check_action.
5187
44bcba80
SE
51882017-08-30 Steve Ellcey <sellcey@cavium.com>
5189
5190 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
5191 Use pointer to uint64_t instead of long int for sp.
5192
ec2c1fce
FW
51932017-08-30 Florian Weimer <fweimer@redhat.com>
5194
5195 [BZ #21754]
5196 * malloc/malloc.c (malloc_printerr): Always terminate the process,
5197 without printing a backtrace. Do not leak any information in the
5198 error message.
5199 * manual/memory.texi (Heap Consistency Checking): Update.
5200 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
5201
9ce673b6
FW
52022017-08-30 Florian Weimer <fweimer@redhat.com>
5203
5204 Do not scale NPTL tests with available number of CPUs.
5205 * nptl/tst-cond16.c (count): Set to constant value of 8.
5206 * nptl/tst-cond18.c (count): Likewise.
5207
2f1aef19
JM
52082017-08-29 Joseph Myers <joseph@codesourcery.com>
5209
5210 [BZ #22035]
5211 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
5212 Define to take a second argument that is a macro that
5213 concatentates a suffix, not the suffix itself.
5214 (__CONCAT_d): New macro.
5215 (__CONCAT_f): Likewise.
5216 (__CONCAT_l): Likewise.
5217
8325b477
PP
52182017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
5219
5220 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
5221 by child.
5222
319cbbf6
AZ
52232017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5224 Aurelien Jarno <aurelien@aurel32.net>
5225 Maciej W. Rozycki <macro@imgtec.com>
5226
5227 [BZ #21956]
5228 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
5229 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
5230 `mips16-syscall6' and `mips16-syscall7'.
5231 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
5232 (CFLAGS-mips16-syscall7.c): Remove.
5233 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
5234 Remove `__mips16_syscall5', `__mips16_syscall6' and
5235 `__mips16_syscall7'.
5236 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
5237 (__mips16_syscall0): Rename `__mips16_syscall_return' to
5238 `__mips_syscall_return'.
5239 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
5240 (__mips16_syscall1): Likewise.
5241 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
5242 (__mips16_syscall2): Likewise.
5243 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
5244 (__mips16_syscall3): Likewise.
5245 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
5246 (__mips16_syscall4): Likewise.
5247 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
5248 Remove.
5249 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
5250 Remove.
5251 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
5252 Remove.
5253 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
5254 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
5255 `__mips16_syscall5'. Remove prototype.
5256 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
5257 `__mips16_syscall6'. Remove prototype.
5258 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
5259 `__mips16_syscall7'. Remove prototype.
5260 (__nomips16, __mips16_syscall_return): Move to...
5261 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
5262 (__nomips16, __mips_syscall_return): ... here.
5263 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
5264 `__mips16_syscall_return' to `__mips_syscall_return'.
5265 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
5266 `internal_syscall##nr'.
5267 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
5268 `internal_syscall##nr'.
5269 (FORCE_FRAME_POINTER): Remove.
5270 (__mips_syscall5): New prototype.
5271 (internal_syscall5): Rewrite to call `__mips_syscall5'.
5272 (__mips_syscall6): New prototype.
5273 (internal_syscall6): Rewrite to call `__mips_syscall6'.
5274 (__mips_syscall7): New prototype.
5275 (internal_syscall7): Rewrite to call `__mips_syscall7'.
5276 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
5277 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
5278 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
5279 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
5280 (sysdep_routines): Add libc-do-syscall.
5281 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
5282 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
5283
01b87c65
AZ
52842017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5285
5286 [BZ #21672]
5287 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
5288 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
5289 (advise_stack_range): New function.
5290 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
5291 stack non required to advise_stack_range at allocatestack.c
5292
16f138a4
SN
52932017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
5294
5295 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
5296
251bccfa
FW
52972017-08-29 Florian Weimer <fweimer@redhat.com>
5298
5299 [BZ #22026]
5300 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
5301 __end_fct. Mangle __end_fct after setting it to NULL.
5302 * iconv/Makefile (tests): Add tst-gconv-init-failure.
5303 (modules-names, modules-names-tests): Add
5304 tst-gconv-init-failure-mod.
5305 (gconv-modules): New target.
5306 (tst-gconv-init-failure-mod.so): Link against libsupport.
5307 (tst-gconv-init-failure): Depend on gconv-modules,
5308 tst-gconv-init-failure-mod.so.
5309 * iconv/tst-gconv-init-failure-mod.c: New file.
5310 * iconv/tst-gconv-init-failure.c: Likewise.
5311 * iconv/test-gconv-modules: Likewise.
5312
e7c18b9d
FW
53132017-08-29 Florian Weimer <fweimer@redhat.com>
5314
5315 [BZ #22025]
5316 * iconv/gconv_db.c (free_derivation): Remove redundant
5317 parentheses.
5318 (gen_steps): Unconditionally mangle __btowc_fct after
5319 initialization.
5320 (increment_counter): Likewise. Do not call init_fct for internal
5321 modules.
5322
7daada03
JM
53232017-08-29 Joseph Myers <joseph@codesourcery.com>
5324
5325 [BZ #22028]
5326 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
5327 (_MSUF_): Remove macro.
5328 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
5329 Likewise.
5330 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
5331 (__REDIRFROM_X): New macro.
5332 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
5333 Likewise.
5334 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
5335 (__REDIRTO_X): Likewise.
5336 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
5337 arguments.
5338 (__MATH_REDIRCALL_2): Likewise.
5339 (__MATH_REDIRCALL_INTERNAL): Likewise.
5340 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
5341 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
5342 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
5343 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
5344 * math/test-finite-macros.c: New file.
5345 * math/Makefile (tests): Add test-finite-macros.
5346 (CFLAGS-test-finite-macros.c): New variable.
5347
1cf1232c
PF
53482017-08-29 Patsy Franklin <pfrankli@redhat.com>
5349 Jeff Law <law@redhat.com>
5350
5351 [BZ #22025]
5352 Mangle NULL pointers in iconv/gconv.
5353 * iconv/gconv_cache.c (find_module): Demangle init_fct before
5354 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
5355 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
5356 is non-NULL before demangling the end_fct. Check for NULL
5357 end_fct after demangling.
5358 (__gconv_release_step): Demangle the end_fct before checking
5359 it for NULL. Remove assert on __shlibc_handle != NULL.
5360 (gen_steps): Don't check btowc_fct for NULL before mangling.
5361 Demangle init_fct before checking for NULL.
5362 (increment_counter): Likewise.
5363 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
5364 end_fct for NULL before mangling.
5365 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
5366 for NULL.
5367
c207f7ce 53682017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
f8de9568
AK
5369
5370 [BZ #21971]
5371 * locale/iso-639.def: add Morisyen.
5372
42496114
GG
53732017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
5374
5375 [BZ #21930]
5376 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
5377 (iszero): New C++ implementation that does not use
5378 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
5379 signaling nans are enabled, since __builtin_types_compatible_p
5380 is a C-only feature.
5381 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
5382 defined, include ieee754_float128.h for access to the union and
5383 member ieee854_float128.ieee.
5384 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
5385 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
5386 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
5387 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
5388 options of test-math-zero on powerpc64le.
5389
5e2bc4ff
L
53902017-08-28 H.J. Lu <hongjiu.lu@intel.com>
5391
5392 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
5393 Change double to float.
5394
a48c0fb4
JM
53952017-08-28 Joseph Myers <joseph@codesourcery.com>
5396
5397 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
5398 unconditional.
5399 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
5400 conditional code; define contents only for [LIBM_SVID_COMPAT].
5401
ee17d4e9
FW
54022017-08-28 Florian Weimer <fweimer@redhat.com>
5403
5404 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
5405 (abi-lp64_be-options): Remove.
5406 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
5407 (abi-hard-options): Likewise.
5408 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
5409 (abi-o32_hard-options, abi-o32_soft_2008-options)
5410 (abi-o32_hard_2008-options, abi-n32_soft-options)
5411 (abi-n32_hard-options, abi-n32_soft_2008-options)
5412 (abi-n32_hard_2008-options, abi-n64_soft-options)
5413 (abi-n64_hard-options, abi-n64_soft_2008-options)
5414 (abi-n64_hard_2008-options): Likewise.
5415 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
5416 (abi-64-v1-options, abi-64-v2-options): Likewise.
5417 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
5418 (abi-64-options): Likewise.
5419 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
5420 (abi-64-options): Likewise.
5421 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
5422 (abi-64-options): Likewise.
5423 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
5424 (abi-64-options, abi-x32-options): Likewise.
5425
2dba5ce7
FW
54262017-08-28 Florian Weimer <fweimer@redhat.com>
5427
5428 Store supported list of SYS_* system calls in the source tree.
5429 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
5430 (bits/syscall.h): Generate from list file.
5431 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
5432 [$(subdir) = misc] (tests): Add tst-syscall-list.
5433 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
5434 [$(subdir) = misc] (tst-syscall-list-macros.list)
5435 [$(subdir) = misc] (tst-syscall-list-nr.list)
5436 (tst-syscall-list-sys.list): Helper targets for new
5437 tst-syscall-list test.
5438 [$(subdir) = misc] (tst-syscall-list.out): Run test script
5439 tst-syscall-list.sh.
5440 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
5441 target. Do not include bits/syscall.d.
5442 [$(subdir) = misc] (generated): Do not update.
5443 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
5444 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
5445 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
5446 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
5447
5f3b183d
PP
54482017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
5449
5450 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
5451 (tst-cxa_atexit, tst-on_exit): Likewise.
5452 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
5453 tst-cxa_atexit, and tst-on_exit.
5454 * stdlib/tst-atexit-common.c: New file.
5455 * stdlib/tst-atexit.c: New file.
5456 * stdlib/tst-at_quick_exit.c: New file.
5457 * stdlib/tst-cxa_atexit.c: New file.
5458 * stdlib/tst-on_exit.c: New file.
5459
2ef8d469
ST
54602017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
5461
5462 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
97e02ad2
ST
5463 * mach/stack_chk_fail_local.c: New file.
5464 * hurd/stack_chk_fail_local.c: New file.
5465 * mach/Machrules ($(interface-library)-routines): Add
5466 stack_chk_fail_local.
99ee4d26
ST
5467 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
5468 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
5469 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
5470 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
5471 * hurd/Makefile (CFLAGS-hurdstartup.o,
5472 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
2ef8d469 5473
7ab70c98
L
54742017-08-25 H.J. Lu <hongjiu.lu@intel.com>
5475
5476 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
5477 (index_cpu_*, index_arch_*): Removed.
5478
39e7a5a6
SN
54792017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
5480
5481 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
5482 Use uint64_t instead of unsigned long.
5483
bba5c930
JM
54842017-08-25 Joseph Myers <joseph@codesourcery.com>
5485
a6ccdb08
JM
5486 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
5487 [__HAVE_DISTINCT_FLOAT128].
5488
23761119
JM
5489 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
5490 of <bits/math-finite.h>.
5491 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
5492 inclusion of <bits/math-finite.h>.
5493 * math/bits/math-finite.h (__REDIRTO_X): Do not define
5494 conditionally on [__MATH_DECLARING_LDOUBLE && defined
5495 __NO_LONG_DOUBLE_MATH].
5496 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
5497 (__MATH_REDIRCALL_2): Likewise.
5498 (__MATH_REDIRCALL_INTERNAL): Likewise.
5499 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
5500 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
5501 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
5502
bba5c930
JM
5503 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
5504 Remove file.
5505 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
5506 Likewise.
5507 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
5508 Likewise.
5509 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
5510 Likewise.
5511 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
5512 Likewise.
5513 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
5514 Likewise.
5515 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
5516 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
5517 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
5518 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
5519 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
5520 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
5521 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
5522 w_sqrtf_compat-ppc32.
5523
3d7b66f6
GG
55242017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
5525
5526 * math/math.h [defined __cplusplus] (issignaling): In the long
5527 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
5528 is not defined. Call __issignaling, otherwise.
5529
ebd6f007
AZ
55302017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5531
5532 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
5533 syscall definitions and replace __builtin_expect with __glibc_likely.
5534 * sysdeps/unix/syscall-template.S: Update comment about cancellable
5535 syscall.
5536 (SYSCALL_CANCELLABLE): Removedefinition
5537 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
5538 definition.
5539 (PSEUDO_END): Likewise.
5540 [IS_IN (libpthread)] (CENABLE): Likewise.
5541 [IS_IN (libpthread)] (CDISABLE): Likewise.
5542 [IS_IN (libc)] (CENABLE): Likewise.
5543 [IS_IN (libc)] (CENABLE): Likewise.
5544 [IS_IN (librt)] (CDISABLE): Likewise.
5545 [IS_IN (librt)] (CDISABLE): Likewise.
5546 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
5547 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
5548 definition.
5549 (PSEUDO_END): Likewise.
5550 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
5551 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
5552 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
5553 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
5554 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
5555 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
5556 (CENABLE): Likewise.
5557 (CDISABLE): Likewise.
5558 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
5559 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
5560 defintion.
5561 (PSEUDO_END): Likewise.
5562 [IS_IN (libpthread)] (CENABLE): Likewise.
5563 [IS_IN (libpthread)] (CDISABLE): Likewise.
5564 [IS_IN (libc)] (CENABLE): Likewise.
5565 [IS_IN (libc)] (CENABLE): Likewise.
5566 [IS_IN (librt)] (CDISABLE): Likewise.
5567 [IS_IN (librt)] (CDISABLE): Likewise.
5568 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
5569 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
5570 definition.
5571 (PSEUDO_END): Likewise.
5572 [IS_IN (libpthread)] (CENABLE): Likewise.
5573 [IS_IN (libpthread)] (CDISABLE): Likewise.
5574 [IS_IN (libc)] (CENABLE): Likewise.
5575 [IS_IN (libc)] (CENABLE): Likewise.
5576 [IS_IN (librt)] (CDISABLE): Likewise.
5577 [IS_IN (librt)] (CDISABLE): Likewise.
5578 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
5579 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
5580 definition.
5581 (PSEUDO_END): Likewise.
5582 [IS_IN (libpthread)] (CENABLE): Likewise.
5583 [IS_IN (libpthread)] (CDISABLE): Likewise.
5584 [IS_IN (libc)] (CENABLE): Likewise.
5585 [IS_IN (libc)] (CENABLE): Likewise.
5586 [IS_IN (librt)] (CDISABLE): Likewise.
5587 [IS_IN (librt)] (CDISABLE): Likewise.
5588 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
5589 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
5590 definition.
5591 (PSEUDO_END): Likewise.
5592 [IS_IN (libpthread)] (CENABLE): Likewise.
5593 [IS_IN (libpthread)] (CDISABLE): Likewise.
5594 [IS_IN (libc)] (CENABLE): Likewise.
5595 [IS_IN (libc)] (CENABLE): Likewise.
5596 [IS_IN (librt)] (CDISABLE): Likewise.
5597 [IS_IN (librt)] (CDISABLE): Likewise.
5598 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
5599 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
5600 definition.
5601 (PSEUDO_END): Likewise.
5602 [IS_IN (libpthread)] (CENABLE): Likewise.
5603 [IS_IN (libpthread)] (CDISABLE): Likewise.
5604 [IS_IN (libc)] (CENABLE): Likewise.
5605 [IS_IN (libc)] (CENABLE): Likewise.
5606 [IS_IN (librt)] (CDISABLE): Likewise.
5607 [IS_IN (librt)] (CDISABLE): Likewise.
5608 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
5609 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
5610 definition.
5611 (PSEUDO_END): Likewise.
5612 [IS_IN (libpthread)] (CENABLE): Likewise.
5613 [IS_IN (libpthread)] (CDISABLE): Likewise.
5614 [IS_IN (libc)] (CENABLE): Likewise.
5615 [IS_IN (libc)] (CENABLE): Likewise.
5616 [IS_IN (librt)] (CDISABLE): Likewise.
5617 [IS_IN (librt)] (CDISABLE): Likewise.
5618 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
5619 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
5620 Remove definition.
5621 (PSEUDO_END): Likewise.
5622 [IS_IN (libpthread)] (CENABLE): Likewise.
5623 [IS_IN (libpthread)] (CDISABLE): Likewise.
5624 [IS_IN (libc)] (CENABLE): Likewise.
5625 [IS_IN (libc)] (CENABLE): Likewise.
5626 [IS_IN (librt)] (CDISABLE): Likewise.
5627 [IS_IN (librt)] (CDISABLE): Likewise.
5628 (SINGLE_THREAD_P): Likewise.
5629 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
5630 definition.
5631 (PSEUDO_END): Likewise.
5632 [IS_IN (libpthread)] (CENABLE): Likewise.
5633 [IS_IN (libpthread)] (CDISABLE): Likewise.
5634 [IS_IN (libc)] (CENABLE): Likewise.
5635 [IS_IN (libc)] (CENABLE): Likewise.
5636 [IS_IN (librt)] (CDISABLE): Likewise.
5637 [IS_IN (librt)] (CDISABLE): Likewise.
5638 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
5639 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
5640 definition.
5641 (PSEUDO_END): Likewise.
5642 [IS_IN (libpthread)] (CENABLE): Likewise.
5643 [IS_IN (libpthread)] (CDISABLE): Likewise.
5644 [IS_IN (libc)] (CENABLE): Likewise.
5645 [IS_IN (libc)] (CENABLE): Likewise.
5646 [IS_IN (librt)] (CDISABLE): Likewise.
5647 [IS_IN (librt)] (CDISABLE): Likewise.
5648 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
5649 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
5650 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
5651 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
5652 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
5653 definition.
5654 (PSEUDO_END): Likewise.
5655 [IS_IN (libpthread)] (CENABLE): Likewise.
5656 [IS_IN (libpthread)] (CDISABLE): Likewise.
5657 [IS_IN (libc)] (CENABLE): Likewise.
5658 [IS_IN (libc)] (CENABLE): Likewise.
5659 [IS_IN (librt)] (CDISABLE): Likewise.
5660 [IS_IN (librt)] (CDISABLE): Likewise.
5661 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
5662 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
5663 definition.
5664 (PSEUDO_END): Likewise.
5665 [IS_IN (libpthread)] (CENABLE): Likewise.
5666 [IS_IN (libpthread)] (CDISABLE): Likewise.
5667 [IS_IN (libc)] (CENABLE): Likewise.
5668 [IS_IN (libc)] (CENABLE): Likewise.
5669 [IS_IN (librt)] (CDISABLE): Likewise.
5670 [IS_IN (librt)] (CDISABLE): Likewise.
5671 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
5672 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
5673 definition.
5674 (PSEUDO_END): Likewise.
5675 [IS_IN (libpthread)] (CENABLE): Likewise.
5676 [IS_IN (libpthread)] (CDISABLE): Likewise.
5677 [IS_IN (libc)] (CENABLE): Likewise.
5678 [IS_IN (libc)] (CENABLE): Likewise.
5679 [IS_IN (librt)] (CDISABLE): Likewise.
5680 [IS_IN (librt)] (CDISABLE): Likewise.
5681 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
5682 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
5683 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
5684 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
5685 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
5686 definition.
5687 (PSEUDO_END): Likewise.
5688 [IS_IN (libpthread)] (CENABLE): Likewise.
5689 [IS_IN (libpthread)] (CDISABLE): Likewise.
5690 [IS_IN (libc)] (CENABLE): Likewise.
5691 [IS_IN (libc)] (CENABLE): Likewise.
5692 [IS_IN (librt)] (CDISABLE): Likewise.
5693 [IS_IN (librt)] (CDISABLE): Likewise.
5694 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
5695 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
5696 definition.
5697 (PSEUDO_END): Likewise.
5698 [IS_IN (libpthread)] (CENABLE): Likewise.
5699 [IS_IN (libpthread)] (CDISABLE): Likewise.
5700 [IS_IN (libc)] (CENABLE): Likewise.
5701 [IS_IN (libc)] (CENABLE): Likewise.
5702 [IS_IN (librt)] (CDISABLE): Likewise.
5703 [IS_IN (librt)] (CDISABLE): Likewise.
5704 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
5705
8aa48656
SN
57062017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
5707
5708 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
5709
fcaaca41
L
57102017-08-23 H.J. Lu <hongjiu.lu@intel.com>
5711
5712 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
5713
376b40a2
L
57142017-08-23 H.J. Lu <hongjiu.lu@intel.com>
5715
5716 [BZ #21982]
5717 * string/stratcliff.c (do_test): Declare size, nchars, inner,
5718 middle and outer with size_t instead of int. Repleace %d and
5719 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
5720 "MAX (outer, nchars - 64)" to support unsigned outer and
5721 nchars. Also exit loop when outer == 0.
5722
2b0b9a1c
AZ
57232017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5724
5725 * include/fcntl.h (__fcntl_nocancel): Remove definition.
5726 * include/signal.h (__sigsuspend_nocancel): Likewise.
5727 * include/time.h (__nanosleep_nocancel): Likewise.
5728 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
5729 * login/utmp_file.c: Include non cancellable syscall header.
5730 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
5731 prototype.
5732
b9eaca8f
L
57332017-08-23 H.J. Lu <hongjiu.lu@intel.com>
5734
5735 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
5736 .byte sequences with AVX512F instructions.
5737 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
5738 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
5739 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
5740 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
5741 Likewise.
5742 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
5743 Likewise.
5744
5a706f64
SE
57452017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
5746 Steve Ellcey <sellcey@cavium.com>
5747
5748 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
5749 Use PTR_REG macro in cmp instruction.
5750
b513da7e
GG
57512017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
5752
5753 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
5754 Change the return type of the ifunc resolver to match the return
5755 type of the target function.
5756
78ca091c
AZ
57572017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5758
b70b6026
AZ
5759 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
5760 (preadv64): Likewise.
5761 (pwrite64(: Likewise.
5762 (pwritev64): Likewise.
5763
78ca091c
AZ
5764 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
5765 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
5766 (LOAD_ARGS_0): Likewise.
5767 (LOAD_ARGS_1): Likewise.
5768 (LOAD_ARGS_2): Likewise.
5769 (LOAD_ARGS_3): Likewise.
5770 (LOAD_ARGS_4): Likewise.
5771 (LOAD_ARGS_5): Likewise.
5772 (LOAD_ARGS_6): Likewise.
5773 (LOAD_REGS_0): Likewise.
5774 (LOAD_REGS_1): Likewise.
5775 (LOAD_REGS_2): Likewise.
5776 (LOAD_REGS_3): Likewise.
5777 (LOAD_REGS_4): Likewise.
5778 (LOAD_REGS_5): Likewise.
5779 (LOAD_REGS_6): Likewise.
5780 (ASM_ARGS_0): Likewise.
5781 (ASM_ARGS_1): Likewise.
5782 (ASM_ARGS_2): Likewise.
5783 (ASM_ARGS_3): Likewise.
5784 (ASM_ARGS_4): Likewise.
5785 (ASM_ARGS_5): Likewise.
5786 (ASM_ARGS_6): Likewise.
5787 (LOAD_ARGS_TYPES_1): Likewise.
5788 (LOAD_ARGS_TYPES_2): Likewise.
5789 (LOAD_ARGS_TYPES_3): Likewise.
5790 (LOAD_ARGS_TYPES_4): Likewise.
5791 (LOAD_ARGS_TYPES_5): Likewise.
5792 (LOAD_ARGS_TYPES_6): Likewise.
5793 (LOAD_REGS_TYPES_1): Likewise.
5794 (LOAD_REGS_TYPES_2): Likewise.
5795 (LOAD_REGS_TYPES_3): Likewise.
5796 (LOAD_REGS_TYPES_4): Likewise.
5797 (LOAD_REGS_TYPES_5): Likewise.
5798 (LOAD_REGS_TYPES_6): Likewise.
5799 (TYPEFY): New define.
5800 (ARGIFY): Likewise.
5801 (internal_syscall0): Likewise.
5802 (internal_syscall1): Likewise.
5803 (internal_syscall2): Likewise.
5804 (internal_syscall3): Likewise.
5805 (internal_syscall4): Likewise.
5806 (internal_syscall5): Likewise.
5807 (internal_syscall6): Likewise.
5808 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
5809 (INTERNAL_SYSCALL_NCS): Remove define.
5810 (internal_syscall1): Add define.
5811
453a493d
GG
58122017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
5813
5814 * math/w_remainder_compat.c: Remove duplicate inclusion of
5815 math-svid-compat.h.
5816 * math/w_remainderf_compat.c: Likewise.
5817 * math/w_remainderl_compat.c: Likewise.
5818
f2f048a5
GG
58192017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
5820
5821 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5822
d9bef9c0
JM
58232017-08-22 Joseph Myers <joseph@codesourcery.com>
5824
5825 [BZ #21684]
5826 * math/tgmath.h (__floating_type): Simplify definitions.
5827 (__real_integer_type): New macro.
5828 (__complex_integer_type): Likewise.
5829 (__expr_is_real): Likewise.
5830 (__tgmath_real_type_sub): Update comment to describe handling of
5831 complex types.
5832 (__tgmath_complex_type_sub): New macro.
5833 (__tgmath_complex_type): Likewise.
5834 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
5835 (__TGMATH_CF128): Use __expr_is_real.
5836 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
5837 __expr_is_real.
5838 (__TGMATH_BINARY_REAL_IMAG): Likewise.
5839 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
5840 * math/gen-tgmath-tests.py (Type.create_type): Create complex
5841 integer types.
5842
08d6eb46
AZ
58432017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5844
988f991b
AZ
5845 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
5846 macro.
5847 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
5848 alias.
5849 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
5850 Likewise.
5851
6f33fd04
AZ
5852 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
5853 nanosleep_not_cancel with __nanosleep_nocancel.
5854 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
5855 (__nanosleep_nocancel): New macro.
5856 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
5857 function.
5858 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
5859 macro.
5860 (__nanosleep_nocancel): New prototype.
5861
08d6eb46
AZ
5862 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
5863 pause_not_cancel with __pause_nocancel.
5864 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
5865 (__pause_nocancel): New macro.
5866 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
5867 macro.
5868 (__pause_nocancel): New prototype.
5869 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
5870
ee4e992e
MS
58712017-08-22 Martin Sebor <msebor@redhat.com>
5872
5873 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
5874 to return a pointer to the same type as the target function.
5875
20962acb
L
58762017-08-22 H.J. Lu <hongjiu.lu@intel.com>
5877
5878 [BZ #18822]
5879 [BZ #21986]
5880 * include/printf.h (__printf_fphex): Add attribute_hidden.
5881 (__guess_grouping): New prototype.
5882 * stdio-common/printf_fp.c (__guess_grouping): Removed.
5883 * stdio-common/reg-printf.c (__register_printf_specifier): Add
5884 libc_hidden_proto and libc_hidden_def.
5885 * stdlib/strfmon_l.c (__guess_grouping): Removed.
5886 (__vstrfmon_l): Remove the third argument passed to
5887 __guess_grouping.
5888
a16e8bc0
GG
58892017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
5890
5891 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
5892 definition for issignaling that does not rely on __MATH_TG,
5893 since __MATH_TG uses __builtin_types_compatible_p, which is only
5894 available in C mode.
5895 (CFLAGS-test-math-issignaling.cc): New variable.
5896 * math/Makefile [CXX] (tests): Add test-math-issignaling.
5897 * math/test-math-issignaling.cc: New test for C++ implementation
5898 of type-generic issignaling.
5899 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
5900 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
5901 options of test-math-issignaling on powerpc64le.
5902
8d2ec553
L
59032017-08-22 H.J. Lu <hongjiu.lu@intel.com>
5904
5905 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
5906 building libc.a.
5907 (hidden_proto): Likewise.
5908 (hidden_tls_proto): Likewise.
5909 (__hidden_proto): Likewise.
5910
a4d57b79
FW
59112017-08-22 Florian Weimer <fweimer@redhat.com>
5912
5913 math: Statically link tests of internal functionality.
5914 * math/Makefile (tests): Remove atest-exp, atest-sincos,
5915 atest-exp2.
5916 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
5917 (gmp-objs): Remove assignment.
5918 (atest-exp, atest-sincos, atest-exp2): Remove targets.
5919
75dfe623
JM
59202017-08-22 Joseph Myers <joseph@codesourcery.com>
5921
80f91666
JM
5922 [BZ #21987]
5923 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
5924 and copy to ...
5925 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
5926 ... here.
5927 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
5928 ... and here.
5929
75dfe623
JM
5930 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
5931 variable definitions above inclusion of ../Rules.
5932
ea99fcd0
JM
59332017-08-21 Joseph Myers <joseph@codesourcery.com>
5934
5935 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
5936 case calling __builtin_unreachable.
5937
19926de9
AZ
59382017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5939
a8410a5f
AZ
5940 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
5941 __waitpid_nocancel.
5942 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
5943 (__waitpid_nocancel): New macro.
5944 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
5945 macro.
5946 (__waitpid_nocancel): Replace macro with a function.
5947 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
5948 function.
5949
7369800c
AZ
5950 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
5951 __fcntl_nocancel.
5952 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
5953 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
5954
19926de9
AZ
5955 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
5956 __writev_nocancel_nostatus.
5957 (write_call_graph): Likewise.
5958 (write_bb_counts): Likewise.
5959 * resolv/herror.c (herror): Likewise.
5960 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
5961 macro.
5962 (__writev_nocancel_nostatus): New macro.
5963 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
5964 Remove macro.
5965 (__writev_nocancel_nostatus): New function.
5966
813378e9
JM
59672017-08-21 Joseph Myers <joseph@codesourcery.com>
5968
df1deda6
JM
5969 Revert:
5970 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
5971
5972 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
5973 building libc.a.
5974 (hidden_proto): Likewise.
5975 (hidden_tls_proto): Likewise.
5976 (__hidden_proto): Likewise.
5977
831bbd55
JM
5978 [BZ #21973]
5979 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
5980 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
5981 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
5982 Likewise.
5983 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
5984 Likewise.
5985 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
5986 Likewise.
5987 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
5988 Likewise.
5989 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
5990 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
5991 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
5992 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
5993 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
5994 GLIBC_2.0 sqrtl symbol.
5995
813378e9
JM
5996 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
5997 [__USE_MISC] (_LIB_VERSION): Likewise.
5998 [__USE_MISC] (struct exception): Likewise.
5999 [__USE_MISC] (matherr): Likewise.
6000 [__USE_MISC] (DOMAIN): Likewise.
6001 [__USE_MISC] (SING): Likewise.
6002 [__USE_MISC] (OVERFLOW): Likewise.
6003 [__USE_MISC] (UNDERFLOW): Likewise.
6004 [__USE_MISC] (TLOSS): Likewise.
6005 [__USE_MISC] (PLOSS): Likewise.
6006 [__USE_MISC] (HUGE): Likewise.
6007 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
6008 * math/math-svid-compat.h: New file.
6009 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
6010 and matherrl.
6011 * include/math.h [!_ISOMAC] (__matherr): Remove.
6012 * manual/arith.texi (FP Exceptions): Do not document matherr.
6013 * math/Makefile (tests): Change test-matherr to test-matherr-3.
6014 (tests-internal): New variable.
6015 (install-lib): Do not add libieee.a.
6016 (non-lib.a): Likewise.
6017 (extra-objs): Do not add libieee.a and ieee-math.o.
6018 (CPPFLAGS-s_lib_version.c): Remove variable.
6019 ($(objpfx)libieee.a): Remove rule.
6020 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
6021 * math/ieee-math.c: Remove.
6022 * math/libm-test-support.c (matherr): Remove.
6023 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
6024 and license notices. Include <math-svid-compat.h> and
6025 <shlib-compat.h>.
6026 (matherr): Undefine as macro. Use compat_symbol_reference.
6027 (_LIB_VERSION): Likewise.
6028 * math/test-matherr-2.c: New file.
6029 * math/test-matherr-3.c: Likewise.
6030 * sysdeps/generic/math_private.h (__kernel_standard): Remove
6031 declaration.
6032 (__kernel_standard_f): Likewise.
6033 (__kernel_standard_l): Likewise.
6034 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
6035 <math_private.h>. Include <math-svid-compat.h>.
6036 (_LIB_VERSION): Undefine as macro.
6037 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
6038 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
6039 [LIBM_SVID_COMPAT], use compat_symbol.
6040 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
6041 <math_private.h>. Include <math-svid-compat.h>.
6042 (matherr): Undefine as macro.
6043 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
6044 compat_symbol.
6045 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
6046 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
6047 compat_symbol_reference.
6048 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
6049 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
6050 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
6051 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
6052 (MATHERR_D): Remove declaration.
6053 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
6054 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
6055 [LIBM_BUILD] (pmatherrf): Likewise.
6056 [LIBM_BUILD] (pmatherr): Likewise.
6057 [LIBM_BUILD] (pmatherrl): Likewise.
6058 (DOMAIN): Likewise.
6059 (SING): Likewise.
6060 (OVERFLOW): Likewise.
6061 (UNDERFLOW): Likewise.
6062 (TLOSS): Likewise.
6063 (PLOSS): Likewise.
6064 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
6065 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
6066 compat_symbol.
6067 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
6068 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
6069 compat_symbol.
6070 * math/lgamma-compat.h: Include <math-svid-compat.h>.
6071 * math/w_acos_compat.c: Likewise.
6072 * math/w_acosf_compat.c: Likewise.
6073 * math/w_acosh_compat.c: Likewise.
6074 * math/w_acoshf_compat.c: Likewise.
6075 * math/w_acoshl_compat.c: Likewise.
6076 * math/w_acosl_compat.c: Likewise.
6077 * math/w_asin_compat.c: Likewise.
6078 * math/w_asinf_compat.c: Likewise.
6079 * math/w_asinl_compat.c: Likewise.
6080 * math/w_atan2_compat.c: Likewise.
6081 * math/w_atan2f_compat.c: Likewise.
6082 * math/w_atan2l_compat.c: Likewise.
6083 * math/w_atanh_compat.c: Likewise.
6084 * math/w_atanhf_compat.c: Likewise.
6085 * math/w_atanhl_compat.c: Likewise.
6086 * math/w_cosh_compat.c: Likewise.
6087 * math/w_coshf_compat.c: Likewise.
6088 * math/w_coshl_compat.c: Likewise.
6089 * math/w_exp10_compat.c: Likewise.
6090 * math/w_exp10f_compat.c: Likewise.
6091 * math/w_exp10l_compat.c: Likewise.
6092 * math/w_exp2_compat.c: Likewise.
6093 * math/w_exp2f_compat.c: Likewise.
6094 * math/w_exp2l_compat.c: Likewise.
6095 * math/w_fmod_compat.c: Likewise.
6096 * math/w_fmodf_compat.c: Likewise.
6097 * math/w_fmodl_compat.c: Likewise.
6098 * math/w_hypot_compat.c: Likewise.
6099 * math/w_hypotf_compat.c: Likewise.
6100 * math/w_hypotl_compat.c: Likewise.
6101 * math/w_j0_compat.c: Likewise.
6102 * math/w_j0f_compat.c: Likewise.
6103 * math/w_j0l_compat.c: Likewise.
6104 * math/w_j1_compat.c: Likewise.
6105 * math/w_j1f_compat.c: Likewise.
6106 * math/w_j1l_compat.c: Likewise.
6107 * math/w_jn_compat.c: Likewise.
6108 * math/w_jnf_compat.c: Likewise.
6109 * math/w_jnl_compat.c: Likewise.
6110 * math/w_lgamma_main.c: Likewise.
6111 * math/w_lgamma_r_compat.c: Likewise.
6112 * math/w_lgammaf_main.c: Likewise.
6113 * math/w_lgammaf_r_compat.c: Likewise.
6114 * math/w_lgammal_main.c: Likewise.
6115 * math/w_lgammal_r_compat.c: Likewise.
6116 * math/w_log10_compat.c: Likewise.
6117 * math/w_log10f_compat.c: Likewise.
6118 * math/w_log10l_compat.c: Likewise.
6119 * math/w_log2_compat.c: Likewise.
6120 * math/w_log2f_compat.c: Likewise.
6121 * math/w_log2l_compat.c: Likewise.
6122 * math/w_log_compat.c: Likewise.
6123 * math/w_logf_compat.c: Likewise.
6124 * math/w_logl_compat.c: Likewise.
6125 * math/w_pow_compat.c: Likewise.
6126 * math/w_powf_compat.c: Likewise.
6127 * math/w_powl_compat.c: Likewise.
6128 * math/w_remainder_compat.c: Likewise.
6129 * math/w_remainderf_compat.c: Likewise.
6130 * math/w_remainderl_compat.c: Likewise.
6131 * math/w_scalb_compat.c: Likewise.
6132 * math/w_scalbf_compat.c: Likewise.
6133 * math/w_scalbl_compat.c: Likewise.
6134 * math/w_sinh_compat.c: Likewise.
6135 * math/w_sinhf_compat.c: Likewise.
6136 * math/w_sinhl_compat.c: Likewise.
6137 * math/w_sqrt_compat.c: Likewise.
6138 * math/w_sqrtf_compat.c: Likewise.
6139 * math/w_sqrtl_compat.c: Likewise.
6140 * math/w_tgamma_compat.c: Likewise.
6141 * math/w_tgammaf_compat.c: Likewise.
6142 * math/w_tgammal_compat.c: Likewise.
6143 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
6144 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
6145 * sysdeps/ieee754/k_standard.c: Likewise.
6146 * sysdeps/ieee754/k_standardf.c: Likewise.
6147 * sysdeps/ieee754/k_standardl.c: Likewise.
6148 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
6149 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
6150 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
6151 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
6152 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
6153 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
6154 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
6155 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
6156 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
6157 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
6158 Likewise.
6159 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
6160 Likewise.
6161 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
6162 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
6163 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
6164 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
6165
4504783c
FW
61662017-08-21 Florian Weimer <fweimer@redhat.com>
6167
6168 [BZ #21864]
6169 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
6170 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
6171 Move before inclusion of ../Rules.
6172
b5889d25
FW
61732017-08-21 Florian Weimer <fweimer@redhat.com>
6174
6175 [BZ #21972]
6176 * assert/assert.h (assert): Use static_cast (bool) for C++.
6177 Use the ternary operator in the warning branch for GNU C.
6178 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
6179 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
6180 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
6181 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
6182 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
6183
41e673c1
L
61842017-08-21 H.J. Lu <hongjiu.lu@intel.com>
6185
6186 [BZ #18822]
6187 * sysdeps/unix/sysv/linux/x86_64/init-first.c
6188 (__syscall_clock_gettime): Add attribute_hidden.
6189 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
6190 (__start_context): Likewise.
6191
568ff429
L
61922017-08-21 H.J. Lu <hongjiu.lu@intel.com>
6193
6194 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
6195 building libc.a.
6196 (hidden_proto): Likewise.
6197 (hidden_tls_proto): Likewise.
6198 (__hidden_proto): Likewise.
6199
7c41b4a1
L
62002017-08-21 H.J. Lu <hongjiu.lu@intel.com>
6201
6202 * include/libc-symbols.h (attribute_hidden): Enable hidden
6203 visibility in libc.a compiled with PIE.
6204
483d7068
L
62052017-08-21 H.J. Lu <hongjiu.lu@intel.com>
6206
6207 [BZ #18822]
6208 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
6209 Add attribute_hidden.
6210
62112017-08-21 H.J. Lu <hongjiu.lu@intel.com>
6212
6213 [BZ #21864]
6214 * Makerules (all-nonlib): Add $(others-extras).
6215 * catgets/Makefile (others-extras): New.
6216 * elf/Makefile (others-extras): Likewise.
6217 * nss/Makefile (others-extras): Likewise.
6218
54e4b8f2
L
62192017-08-21 H.J. Lu <hongjiu.lu@intel.com>
6220
6221 [BZ #18822]
6222 * csu/libc-start.c (__libc_multiple_libcs): Removed.
6223 * elf/dl-open.c: Include <libc-internal.h>.
6224 (__libc_multiple_libcs): Removed.
6225 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
6226 <hp-timing.h>.
6227 * include/libc-internal.h (__libc_multiple_libcs): New.
6228 * misc/sbrk.c: Include <libc-internal.h>.
6229 (__libc_multiple_libcs): Removed.
6230
1dbbb1ec
L
62312017-08-21 H.J. Lu <hongjiu.lu@intel.com>
6232
6233 [BZ #18822]
6234 * grp/initgroups.c (__nss_group_database): Removed.
6235 (__nss_initgroups_database): Likewise.
6236 * nscd/gai.c (__nss_hosts_database): Likewise.
6237 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
6238 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
6239 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
6240 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
6241 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
6242 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
6243 attribute_hidden.
6244 * nss/nsswitch.c (__nss_database_custom): Define only if
6245 USE_NSCD is defined.
6246 (__nss_configure_lookup): Use __nss_database_custom only if
6247 USE_NSCD is defined.
6248 * nss/nsswitch.h (__nss_database_custom): Declare only if
6249 USE_NSCD is defined. Add attribute_hidden.
6250 (__nss_setent): Add attribute_hidden.
6251 (__nss_endent): Likewise.
6252 (__nss_getent_r): Likewise.
6253 (__nss_getent): Likewise.
6254 (DEFINE_DATABASE): Declare __nss_##arg##_database.
6255
2585d7b8
L
62562017-08-20 H.J. Lu <hongjiu.lu@intel.com>
6257
6258 [BZ #18822]
6259 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
6260 libc_hidden_proto and libc_hidden_def.
6261
c8dfa99c
L
62622017-08-20 H.J. Lu <hongjiu.lu@intel.com>
6263
6264 [BZ #18822]
6265 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
6266 Add libc_hidden_proto.
6267 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
6268 Add libc_hidden_def.
6269
7ed87317
L
62702017-08-20 H.J. Lu <hongjiu.lu@intel.com>
6271
6272 [BZ #21974]
6273 * gmon/Makefile (routines): Remove bb_init_func and
6274 bb_exit_func.
6275 (elide-routines.os): Removed.
9476b904
L
6276 * gmon/bb_exit_func.c: Likewise.
6277 * gmon/bb_init_func.c: Likewise.
7ed87317
L
6278 * include/sys/gmon.h (__bb): Likewise.
6279 (__bb_init_func): Likewise.
6280 (__bb_exit_func): Likewise.
91695eb1 6281 * sysdeps/alpha/bb_init_func.S: Likewise.
7ed87317 6282
94e6ba15
L
62832017-08-20 H.J. Lu <hongjiu.lu@intel.com>
6284
6285 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
6286 * include/setjmp.h (____longjmp_chk): Here. Add
6287 attribute_hidden.
6288
7550717e
L
62892017-08-19 H.J. Lu <hongjiu.lu@intel.com>
6290
6291 [BZ #18822]
6292 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
6293 attribute_hidden.
6294 (__strspn_sse2): Likewise.
6295
0bb2fabc
AZ
62962017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6297
c181840c
AZ
6298 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
6299 (close_not_cancel_no_status): Likewise.
6300 (__close_nocancel): New macro.
6301 (__close_nocancel_nostatus): Likewise.
6302 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
6303 macro.
6304 (close_not_cancel): Likewise.
6305 (close_not_cancel_no_status): Likewise.
6306 (__close_nocancel): New prototype.
6307 (__close_nocancel_nostatus): New function.
6308 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
6309 * catgets/open_catalog.c (__open_catalog): Replace
6310 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
6311 * gmon/gmon.c (write_gmon): Likewise.
6312 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
6313 * intl/loadmsgcat.c (close): Likewise.
6314 * io/ftw.c (open_dir_stream): Likewise.
6315 (ftw_startup): Likewise.
6316 * libio/fileops.c (_IO_file_open): Likewise.
6317 (_IO_file_close_mmap): Likewise.
6318 (_IO_file_close): Likewise.
6319 * libio/iopopen.c (_IO_dup2): Likewise.
6320 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
6321 * locale/loadlocale.c (_nl_load_locale): Likewise.
6322 * login/utmp_file.c (pututline_file): Likewise.
6323 (endutent_file): Likewise.
6324 * misc/daemon.c (daemon): Likewise.
6325 * nscd/nscd_getai.c (__nscd_getai): Likewise.
6326 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
6327 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
6328 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
6329 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
6330 * nscd/nscd_helper.c (open_socket): Likewise.
6331 (__nscd_open_socket): Likewise.
6332 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
6333 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
6334 (__nscd_innetgr): Likewise.
6335 * nss/nss_db/db-open.c (internal_setent): Likewise.
6336 * resolv/res-close.c (__res_iclose): Likewise.
6337 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
6338 * sysdeps/posix/closedir.c (__closedir): Likewise.
6339 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
6340 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
6341 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
6342 (opendir_tail): Likewise.
6343 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
6344 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
6345 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
6346 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
6347 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
6348 (gethostid): Likewise.
6349 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
6350 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
6351 Likewise.
6352 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
6353 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
6354 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
6355 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
6356 Likewise.
6357 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
6358 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
6359 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
6360 Likewise.
6361 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
6362 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
6363 Likewise.
6364 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
6365 Likewise.
6366 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
6367 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
6368 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
6369 __close_nocancel.
6370
0bb2fabc
AZ
6371 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
6372 (openat_not_cancel_3): Likewise.
6373 (openat64_not_cancel_3): Likewise).
6374 (openat_not_cancel_3): Likewise).
6375 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
6376 macro.
6377 (openat_not_cancel_3): Likewise.
6378 (openat64_not_cancel): Likewise.
6379 (openat64_not_cancel_3): Likewise.
6380 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
6381 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
6382 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
6383 __open{64}_nocancel.
6384 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
6385 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
6386 * sysdeps/posix/opendir.c (__opendirat): Likewise.
6387
65a086db
L
63882017-08-18 H.J. Lu <hongjiu.lu@intel.com>
6389
6390 [BZ #18822]
6391 * include/argz.h (__argz_create_sep): New function prototype.
6392 (__argz_append): Likewise.
6393 (__argz_add): Likewise.
6394 (__argz_add_sep): Likewise.
6395 (__argz_delete): Likewise.
6396 (__argz_insert): Likewise.
6397 (__argz_replace): Likewise.
6398 * string/argz.h (__argz_create_sep): Removed.
6399 (__argz_append): Likewise.
6400 (__argz_add): Likewise.
6401 (__argz_add_sep): Likewise.
6402 (__argz_delete): Likewise.
6403 (__argz_insert): Likewise.
6404 (__argz_replace): Likewise.
6405
62753d2c
L
64062017-08-18 H.J. Lu <hongjiu.lu@intel.com>
6407
6408 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
6409 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
6410 (GNU_PROPERTY_STACK_SIZE): Likewie.
6411 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
6412 (GNU_PROPERTY_LOPROC): Likewise.
6413 (GNU_PROPERTY_HIPROC): Likewise.
6414 (GNU_PROPERTY_LOUSER): Likewise.
6415 (GNU_PROPERTY_HIUSER): Likewise.
6416 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
6417 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
6418 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
6419 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
6420 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
6421 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
6422 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
6423 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
6424 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
6425 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
6426 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
6427 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
6428 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
6429 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
6430 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
6431 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
6432 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
6433 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
6434 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
6435 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
6436 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
6437 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
6438 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
6439
6913ad65
GG
64402017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
6441
6442 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
6443 in C++ mode.
6444
47a67213
GG
64452017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
6446
6447 [BZ #21930]
6448 * math/math.h (isinf): Check if in C or C++ mode before using
6449 __builtin_types_compatible_p, since this is a C mode feature.
6450
a748eb31
AZ
64512017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6452
c647fb88
AZ
6453 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
6454 (__write_nocancel): New macro.
6455 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
6456 Rewrite as a function prototype.
6457 (write_not_cancel): Remove macro.
6458 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
6459 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
6460 (write_gmon): Likewise.
6461 * libio/fileops.c (_IO_new_file_write): Likewise.
6462 * login/utmp_file.c (pututline_file): Likewise.
6463 (updwtmp_file): Likewise.
6464 * stdio-common/psiginfo.c (psiginfo): Likewise.
6465 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
6466 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
6467 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
6468 Likewise.
6469 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
6470 Likewise.
6471
a748eb31
AZ
6472 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
6473 (__read_nocancel): New macro.
6474 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
6475 __read_nocancel.
6476 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
6477 macro.
6478 (__read_nocancel): New prototype.
6479 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
6480 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
6481 with __read_nocancel.
6482 * intl/loadmsgcat.c (read): Likewise.
6483 * libio/fileops.c (_IO_file_read): Likewise.
6484 * locale/loadlocale.c (_nl_load_locale): Likewise.
6485 * login/utmp_file.c (getutent_r_file): Likewise.
6486 (internal_getut_r): Likewise.
6487 (getutline_r_file): Likewise.
6488 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
6489 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
6490 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
6491 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
6492 Likewise.
6493 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
6494 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
6495 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
6496 Likewise.
6497 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
6498 Likewise.
6499 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
6500 Likewise.
6501 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
6502 Likewise.
6503 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
6504
098b9dd4
L
65052017-08-18 H.J. Lu <hongjiu.lu@intel.com>
6506
6507 [BZ #21966]
6508 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
6509 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
6510 usable.
6511
a3fe6a20
DD
65122017-08-17 DJ Delorie <dj@redhat.com>
6513
6514 * bug17079.c: Update to new test harness.
6515 * test-digits-dots.c: Likewise.
6516 * test-netdb.c: Likewise.
6517 * tst-field.c: Likewise.
6518 * tst-nss-getpwent.c: Likewise.
6519 * tst-nss-static.c: Likewise.
6520 * tst-nss-test1.c: Likewise.
6521 * tst-nss-test2.c: Likewise.
6522 * tst-nss-test3.c: Likewise.
6523 * tst-nss-test4.c: Likewise.
6524 * tst-nss-test5.c: Likewise.
6525
c2284574
AZ
65262017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6527
6528 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
6529 (open_not_cancel_2): Likewise.
6530 (open_nocancel): New macro.
6531 (open64_nocancel): Likewise.
6532 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
6533 (open_not_cancel_2): Likewise.
6534 (__open_nocancel): New prototype.
6535 (__open64_nocancel): Likewise.
6536 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
6537 __open_nocancel.
6538 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
6539 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
6540 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
6541 with __open_nocancel.
6542 * csu/check_fds.c (check_one_fd): Likewise.
6543 * gmon/gmon.c (write_gmon): Likewise.
6544 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
6545 * intl/loadmsgcat.c (open): Likewise.
6546 * libio/fileops.c (_IO_file_open): Likewise.
6547 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
6548 * locale/loadlocale.c (_nl_load_locale): Likewise.
6549 * login/utmp_file.c (setutent_file): Likewise.
6550 * misc/daemon.c (daemon): Likewise.
6551 * nss/nss_db/db-open.c (internal_setent): Likewise.
6552 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
6553 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
6554 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
6555 (__opendir): Likewise.
6556 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
6557 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
6558 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
6559 (gethostid): Likewise.
6560 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
6561 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
6562 Likewise.
6563 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
6564 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
6565 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
6566 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
6567 Likewise.
6568 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
6569 Likewise.
6570 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
6571 Likewise.
6572 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
6573 Likewise.
6574 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
6575 Likewise.
6576 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
6577 Likewise.
6578 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
6579 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
6580
d4505b89
WD
65812017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
6582
6583 * benchtests/bench-skeleton.c (main): Add support for
6584 latency benchmarking.
6585 * benchtests/scripts/bench.py: Add support for latency benchmarking.
6586
34d6a3cb
L
65872017-08-17 H.J. Lu <hongjiu.lu@intel.com>
6588
6589 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
6590 the startup object.
6591
038d1caf
FW
65922017-08-17 Florian Weimer <fweimer@redhat.com>
6593
6594 * include/sys/socket.h (__opensock): Remove internal_function.
6595 * socket/opensock.c (__opensock): Likewise.
6596 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
6597
67f0aff0
JM
65982017-08-16 Joseph Myers <joseph@codesourcery.com>
6599
6600 [BZ #21944]
6601 * signal/bits/types/__sigval_t.h: New file.
6602 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
6603 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
6604 and define sigval_t using __sigval_t.
6605 * include/bits/types/__sigval_t.h: New file.
6606 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
6607 instead of <bits/types/__sigval_t.h>.
6608 (struct sigevent): Use __sigval_t instead of sigval_t.
6609 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
6610 instead of <bits/types/__sigval_t.h>.
6611 (siginfo_t): Use __sigval_t instead of sigval_t.
6612 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
6613 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
6614 (struct sigevent): Use __sigval_t instead of sigval_t.
6615 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
6616 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
6617 (siginfo_t): Use __sigval_t instead of sigval_t.
6618 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
6619
87e7bf4d
L
66202017-08-16 H.J. Lu <hongjiu.lu@intel.com>
6621
6622 * NEWS: Remove "[Add new features here]" for 2.27.
6623
5047057f
JM
66242017-08-16 Joseph Myers <joseph@codesourcery.com>
6625
6626 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
6627 libc.so.
6628
20c7b195
L
66292017-08-16 H.J. Lu <hongjiu.lu@intel.com>
6630
6631 * NEWS: Mention x86-64 FMA optimization.
6632
24a2e658
L
66332017-08-16 H.J. Lu <hongjiu.lu@intel.com>
6634
6635 [BZ #21912]
6636 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
6637 Add e_expf-fma.
6638 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
6639 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
6640 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
6641
eedca977
AS
66422017-08-16 Andreas Schwab <schwab@suse.de>
6643
403143e1
FW
6644 [BZ #16750]
6645 CVE-2009-5064
eedca977
AS
6646 * elf/ldd.bash.in: Never run file directly.
6647
f59f7adb
L
66482017-08-15 H.J. Lu <hongjiu.lu@intel.com>
6649
6650 [BZ #21955]
6651 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
6652 (L(SP_INF_0)): Likewise.
6653
6b11a6ad
FW
66542017-08-15 Florian Weimer <fweimer@redhat.com>
6655
6656 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
6657 run-built-tests.
6658
bbf5c438
FW
66592017-08-15 Florian Weimer <fweimer@redhat.com>
6660
6661 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
6662 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
6663 BROKEN_THREAD_SIGNALS code.
6664 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
6665 request_list): Remove caller_pid member used for
6666 BROKEN_THREAD_SIGNALS.
6667 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
6668 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
6669 Remove BROKEN_THREAD_SIGNALS support.
6670 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
6671 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
6672
6014c65d
FW
66732017-08-15 Florian Weimer <fweimer@redhat.com>
6674
6675 * gmon/Makefile (tests): Add tst-gmon.
6676 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
6677 Set.
6678 (tests-special): Add tst-gmon-prof.out.
6679 (tst-gmon.out): Depend on clean-tst-gmon-data.
6680 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
6681 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
6682 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
6683 startup object.
6684 * aclocal.m4 (GPROF): Set and substitute.
6685 * config.amke.in (GPROF): Set.
6686 * configure: Regenerate.
6687
ee72219a
GR
66882017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
6689
6690 * elf/elf.h A (NT_PPC_TAR): New macro.
6691 (NT_PPC_PPR): Likewise.
6692 (NT_PPC_DSCR): Likewise.
6693 (NT_PPC_EBB): Likewise.
6694 (NT_PPC_PMU): Likewise.
6695 (NT_PPC_TM_CGPR): Likewise.
6696 (NT_PPC_TM_CFPR): Likewise.
6697 (NT_PPC_TM_CVMX): Likewise.
6698 (NT_PPC_TM_CVSX): Likewise.
6699 (NT_PPC_TM_SPR): Likewise.
6700 (NT_PPC_TM_CTAR): Likewise.
6701 (NT_PPC_TM_CPPR): Likewise.
6702 (NT_PPC_TM_CDSCR): Likewise.
6703
4ebf934e
FW
67042017-08-15 Florian Weimer <fweimer@redhat.com>
6705
6706 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
6707 regparm (2) instead of internal_function.
6708 (_MCOUNT_DECL): Adjust.
6709
e9f57484
SL
67102017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
6711
6712 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
6713 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
6714
88ff4d55
JM
67152017-08-14 Joseph Myers <joseph@codesourcery.com>
6716
6717 * conform/data/sys/wait.h-data (si_value): Do not expect for
6718 XPG42.
6719
c88ffc23
FW
67202017-08-14 Florian Weimer <fweimer@redhat.com>
6721
6722 [BZ #21962]
6723 NSS: Create stubs for accidentally exported lookup functions.
6724 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
6725 Remove declaration.
6726 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
6727 (ether_hostton): Call __nss_ethers_lookup2 instead.
6728 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
6729 (ether_ntohost): Call __nss_ethers_lookup2 instead.
6730 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
6731 (setup): Call __nss_netgroup_lookup2 instead.
6732 * nss/Makefile (routines): Add compat-lookup.
6733 * nss/Versions (GLIBC_2.27): Add symbol version.
6734 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
6735 (DB_COMPAT_FCT): Remove.
6736 * nss/compat-lookup.c: New file.
6737 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
6738 from databases.def.
6739 * nss/service-lookup.c (NO_COMPAT): Remove definition.
6740 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
6741 (netname2user): Call __nss_publickey_lookup2 instead.
6742 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
6743 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
6744 instead.
6745
35a29136 67462017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1f14d0c3
AZ
6747 Sergei Trofimovich <slyfox@inbox.ru>
6748
6749 [BZ #21908]
6750 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
6751 Rename to MMAP2_PAGE_UNIT.
6752 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
6753 __OFF_T_MATCHES_OFF64_T is not defined.
6754 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
6755 uint64_t.
6756 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
6757 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
6758
fbdc1e3e
FW
67592017-08-14 Florian Weimer <fweimer@redhat.com>
6760
6761 i386: Do not set internal_function.
6762 * config.h.in (USE_REGPARMS, internal_function): Remove.
6763 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
6764 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
6765
b3f85fd2
FW
67662017-08-14 Florian Weimer <fweimer@redhat.com>
6767
6768 * elf/dl-init.c (_dl_init): Remove internal_function.
6769 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
6770 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
6771
630bf491
FW
67722017-08-14 Florian Weimer <fweimer@redhat.com>
6773
6774 * elf/rtld.c (_dl_start): Remove internal_function.
6775 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
6776 _dl_start.
6777
9fa7449b
FW
67782017-08-14 Florian Weimer <fweimer@redhat.com>
6779
6780 * elf/dl-fini.c (_dl_fini): Remove internal_function
6781 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
6782
73322d5f
L
67832017-08-14 H.J. Lu <hongjiu.lu@intel.com>
6784
6785 * sysdeps/x86/cpu-features.h (bit_cpu_BIT): New.
6786 (bit_cpu_SHSTK): Likewise.
6787 (index_cpu_IBT): Likewise.
6788 (index_cpu_SHSTK): Likewise.
6789 (reg_IBT): Likewise.
6790 (reg_SHSTK): Likewise.
6791 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
6792 Handle index_cpu_IBT and index_cpu_SHSTK.
6793
dbc303ef
MF
67942017-08-14 Mike FABIAN <mfabian@redhat.com>
6795
6796 [BZ #19982]
6797 * po/fr.po: Fix spelling mistake.
6798
3012cfb0
FW
67992017-08-13 Florian Weimer <fweimer@redhat.com>
6800
6801 * elf/dl-addr.c (_dl_addr): Remove internal_function.
6802 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
6803 (_dl_catch_error, _dl_receive_error): Likewise.
6804 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
6805 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
6806 (_dl_deallocate_tls): Likewise.
6807 * include/dlfcn.h (_dl_addr): Likewise.
6808 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
6809 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
6810 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
6811 Likewise.
6812
52bcdf26
FW
68132017-08-13 Florian Weimer <fweimer@redhat.com>
6814
6815 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
6816 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
6817 internal_function.
6818 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
6819
e1d2ae8d
FW
68202017-08-13 Florian Weimer <fweimer@redhat.com>
6821
6822 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
6823 internal_function.
6824 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
6825 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
6826 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
6827 internal_function from _dl_make_stack_executable_hook member.
6828 (_dl_make_stack_executable): Remove internal_function.
6829 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
6830 Likewise.
6831 * sysdeps/unix/sysv/linux/dl-execstack.c
6832 (_dl_make_stack_executable): Likewise.
6833
c4ce0382
FW
68342017-08-13 Florian Weimer <fweimer@redhat.com>
6835
6836 * sysdeps/unix/sysv/linux/netlinkaccess.h
6837 (__netlink_assert_response): Remove internal_function.
6838 * sysdeps/unix/sysv/linux/netlink_assert_response.c
6839 (__netlink_assert_response): Likewise.
6840
c4d767f7
FW
68412017-08-13 Florian Weimer <fweimer@redhat.com>
6842
6843 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
6844 internal_function.
6845 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
6846
b2297409
FW
68472017-08-13 Florian Weimer <fweimer@redhat.com>
6848
6849 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
6850 internal_function.
6851 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
6852 * inet/netgroup.h (__internal_setnetgrent)
6853 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
6854 * inet/getnetgrent_r.c (__internal_setnetgrent)
6855 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
6856 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
6857 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
6858 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
6859 * nss/nsswitch.h (db_lookup_function): Likewise.
6860
1b0bfc69
FW
68612017-08-13 Florian Weimer <fweimer@redhat.com>
6862
6863 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
6864 Remove internal_function.
6865 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
6866 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
6867 message argument on the stack.
6868 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
6869 Likeweise.
6870
a6bd8722
MF
68712017-08-12 Mike FABIAN <mfabian@redhat.com>
6872
6873 Adapt test case data to the changes in the thousands
6874 separators.
6875
6876 [BZ #20756]
6877 * localedata/tst-langinfo.sh: Adapt test case data.
6878 * stdlib/tst-strfmon_l.c: Likewise.
6879 * stdlib/tst-strtod4.c: Likewise.
6880 * stdlib/tst-strtod5i.c: Likewise.
6881
8b2c63e4
FW
68822017-08-11 Florian Weimer <fweimer@redhat.com>
6883
6884 [BZ #21242]
6885 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
6886 Suppress pedantic warning resulting from statement expression.
6887 (__ASSERT_FUNCTION): Add missing __extension__.
6888
61c98291
SP
68892017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
6890
86c6519e
SP
6891 * benchtests/bench-memmove-large.c: Print output in JSON
6892 format.
6893 * benchtests/bench-memmove.c: Likewise.
6894
61c98291
SP
6895 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
6896 * benchtests/bench-memchr.c (do_one_test): Likewise.
6897 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
6898 * benchtests/bench-memcpy.c (do_one_test): Likewise.
6899 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
6900 * benchtests/bench-memmove.c (do_one_test): Likewise.
6901 * benchtests/bench-memset-large.c (do_one_test): Likewise.
6902 * benchtests/bench-memset.c (do_one_test): Likewise.
6903 * benchtests/bench-string.h (test_init): Remove memsets.
6904
925733a9
RJ
69052017-08-10 Rical Jasan <ricaljasan@pacific.net>
6906
6907 * manual/lang.texi
6908 (Computing the Width of an Integer Data Type): Rename section to
6909 "Width of an Integer Type". Remove inaccurate statement regarding
6910 lack of C language facilities for determining width of integer
6911 types, and reorder content to improve flow and context of
6912 discussion.
6913
4fcdfbfc
RJ
69142017-08-10 Rical Jasan <ricaljasan@pacific.net>
6915
6916 * lang.texi (va_copy): Change standard from ISO to C99.
6917 (__va_copy): Add standard and header annotation.
6918 Update description for clarity of origins and current use.
6919
4d98ace9
GG
69202017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
6921
6922 [BZ #21941]
6923 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
6924 xssqrtqp requires operands to be in Vector Registers
6925 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
6926 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
6927 (__ieee754_sqrtf128): Likewise.
6928
92236903
WD
69292017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
6930
6931 * sysdeps/aarch64/memcmp.S (memcmp):
6932 Rewrite of optimized memcmp.
6933
2449ae7b
FW
69342017-08-10 Florian Weimer <fweimer@redhat.com>
6935
6936 Introduce ld.so exceptions.
6937 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
6938 (_dl_exception_create, _dl_exception_create_format)
6939 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
6940 (_dl_catch_exception): Declare.
6941 (_dl_catch_error): Update comment.
6942 * elf/dl-error-skeleton.c (struct catch): Replace objname,
6943 errstring, malloced members with exception member.
6944 (_dl_out_of_memory): Remove.
6945 (fatal_error): New function, extracted from _dl_signal_error.
6946 (_dl_signal_exception, _dl_signal_cexception): New functions.
6947 (_dl_signal_error): Call _dl_exception_create to allocate an
6948 exception object.
6949 (_dl_catch_exception): New function, based on _dl_catch_error.
6950 (_dl_catch_error): Implement using _dl_catch_exception.
6951 * elf/dl-exception.c: New file.
6952 * elf/Makefile (dl-routines): Add dl-exception.
6953 (elide-routines.os): Likewise.
6954 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
6955 _dl_exception_create_format, _dl_exception_free.
6956 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
6957 _dl_signal_exception.
6958 * elf/dl-lookup.c (make_string): Remove.
6959 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
6960 _dl_signal_cexception, _dl_exception_free.
6961 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
6962 _dl_signal_exception.
6963 * elf/dl-sym.c (do_sym): Likewise.
6964 * elf/dl-version.c (make_string): Remove.
6965 (match_symbol): Use _dl_exception_create_format,
6966 _dl_signal_cexception, _dl_exception_free.
6967 (_dl_check_map_versions): Likewise.
6968 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
6969 _dl_catch_exception.
6970 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
6971 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
6972 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
6973 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
6974 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
6975 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
6976 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
6977 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
6978 Likewise.
6979 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
6980 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
6981 (ld.so): Likewise.
6982 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
6983 (ld.so): Likewise.
6984 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
6985 Likewise.
6986 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
6987 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
6988 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
6989 Likewise.
6990 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
6991 Likewise.
6992 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
6993
f87cc2bf
FW
69942017-08-10 Florian Weimer <fweimer@redhat.com>
6995
6996 * inet/net-internal.h (__inet6_scopeid_pton): Remove
6997 attribute_hidden, internal_function.
6998 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
6999 internal_function.
7000
eac43cbb
FW
70012017-08-10 Florian Weimer <fweimer@redhat.com>
7002
7003 * malloc/malloc.c (get_max_fast): Reimplement as an inline
7004 function which calls __builtin_unreachable.
7005
bd80111e
MF
70062017-08-10 Mike FABIAN <mfabian@redhat.com>
7007
7008 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
7009 Indian monetary formatting
7010 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
7011 test cases.
7012
60e2846e
DL
70132017-08-09 Dmitry V. Levin <ldv@altlinux.org>
7014
68dc02d1
DL
7015 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
7016 Fix typo in comment.
7017
60e2846e
DL
7018 [BZ #21928]
7019 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
7020 PTRACE_SEIZE_DEVEL): Remove.
7021 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
7022 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
7023 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
7024 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
7025 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
7026
3d452dab
JM
70272017-08-09 Joseph Myers <joseph@codesourcery.com>
7028
24d9f53a
JM
7029 * posix/bits/types.h (__qaddr_t): Remove.
7030
3d452dab
JM
7031 [BZ #21457]
7032 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
7033 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
7034 __glibc_reserved1.
7035 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
7036 (ucontext_t): Use __ctx with uc_flags.
7037 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
7038 (__ctxt): Likewise.
7039 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
7040 __glibc_reserved1.
7041 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
7042 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
7043 __glibc_reserved1.
7044 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
7045 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
7046 __glibc_reserved1.
7047 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
7048 macro.
7049 (ucontext_t): Use __ctx with uc_flags.
7050 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
7051 (ucontext_t): Use __ctx with uc_flags.
7052 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
7053 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
7054 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
7055 (ucontext_t): Use __ctx with uc_flags.
7056 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
7057 undefine further down.
7058 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
7059 __glibc_reserved1.
7060 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
7061 undefine further down.
7062 (ucontext_t): Use __ctx with uc_flags.
7063 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
7064 undefine further down.
7065 (ucontext_t): Use __ctx with uc_flags.
7066 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
7067 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
7068 Rename uc_pad to __glibc_reserved1.
7069 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
7070 undefine further down.
7071 (ucontext_t): Use __ctx with uc_flags.
7072 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
7073 further down.
7074 (ucontext_t): Use __ctx with uc_flags.
7075 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
7076 __ctx with uc_flags.
7077 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
7078 (ucontext_t): Use __ctx with uc_flags.
7079 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
7080 __ctx with uc_flags.
7081
30161498
FW
70822017-08-09 Florian Weimer <fweimer@redhat.com>
7083
7084 [BZ #21932]
7085 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
7086 before early return.
7087
5797b410
AS
70882017-08-09 Andreas Schwab <schwab@suse.de>
7089
139237a4 7090 [BZ #21041]
5797b410
AS
7091 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
7092 renamed alias.
7093
139237a4 7094 [BZ #21041]
40c06a3d
AS
7095 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
7096 tst-compat-forwarder.
7097 (modules-names): Add tst-compat-forwarder-mod.
7098 ($(objpfx)tst-compat-forwarder): Depend on
7099 $(objpfx)tst-compat-forwarder-mod.so.
7100 * nptl/tst-compat-forwarder.c: New file.
7101 * nptl/tst-compat-forwarder-mod.c: New file.
7102
36ada5f6
SP
71032017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
7104
0e02b510
SP
7105 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
7106 comments.
7107
36ada5f6
SP
7108 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
7109 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
7110 memcpy_falkor.
7111 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
7112 Bump.
7113 (__libc_ifunc_impl_list): Add __memcpy_falkor.
7114 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
7115 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
7116 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
7117 Add falkor.
7118 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
7119 New macro.
7120
9995c839
AZ
71212017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7122
7123 [BZ #759]
7124 * manual/setjmp.texi (getcontex): Document uc_stack value
7125 compatibility differences.
7126
f17a4233
JM
71272017-08-08 Joseph Myers <joseph@codesourcery.com>
7128
7129 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
7130 (old_malloc_hook): Likewise.
7131 (old_memalign_hook): Likewise.
7132 (old_realloc_hook): Likewise.
7133 (struct hdr): Likewise.
7134 (flood): Likewise.
7135 (freehook): Likewise.
7136 (mallochook): Likewise.
7137 (memalignhook): Likewise.
7138 (reallochook): Likewise.
7139 (mprobe): Likewise.
7140 * malloc/mtrace.c (mallwatch): Likewise.
7141 (tr_old_free_hook): Likewise.
7142 (tr_old_malloc_hook): Likewise.
7143 (tr_old_realloc_hook): Likewise.
7144 (tr_old_memalign_hook): Likewise.
7145 (tr_where): Likewise.
7146 (lock_and_info): Likewise.
7147 (tr_freehook): Likewise.
7148 (tr_mallochook): Likewise.
7149 (tr_reallochook): Likewise.
7150 (tr_memalignhook): Likewise.
7151 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
7152 * misc/mmap.c (__mmap): Likewise.
7153 * misc/mmap64.c (__mmap64): Likewise.
7154 * misc/mprotect.c (__mprotect): Likewise.
7155 * misc/msync.c (msync): Likewise.
7156 * misc/munmap.c (__munmap): Likewise.
7157 * posix/posix_madvise.c (posix_madvise): Likewise.
7158 * socket/send.c (__send): Likewise.
7159 * socket/sendto.c (__sendto): Likewise.
7160 * socket/setsockopt.c (__setsockopt): Likewise.
7161 * string/memcmp.c (__ptr_t): Remove macro.
7162 (MEMCMP): Use void * instead of ptr_t.
7163 * string/memrchr.c (__ptr_t): Remove macro.
7164 (__memrchr): Use void * instead of ptr_t.
7165 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
7166 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
7167 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
7168 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
7169 * sysdeps/mach/msync.c (msync): Likewise.
7170 * sysdeps/mach/munmap.c (__munmap): Likewise.
7171 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
7172 Likewise.
7173 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
7174 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
7175 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
7176 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
7177 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
7178 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
7179 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
7180 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
7181 Likewise.
7182 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
7183 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
7184 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
7185 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
7186 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
7187 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
7188 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
7189 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
7190 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
7191 Likewise.
7192 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
7193 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
7194 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
7195 (MEMCMP): Use void * instead of ptr_t.
7196 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
7197 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
7198
0df595b2
FW
71992017-08-08 Florian Weimer <fweimer@redhat.com>
7200
7201 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
7202 return statement.
7203
086df229
L
72042017-08-08 H.J. Lu <hongjiu.lu@intel.com>
7205
7206 [BZ #21913]
7207 * csu/libc-tls.c: Include <startup.h> first.
7208 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
7209 * elf/dl-tunables.c: Include <startup.h> first.
7210 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
7211 * sysdeps/generic/startup.h: New file.
7212 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
7213 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
7214 (I386_USE_SYSENTER): New. Defined to 0.
7215
fc5ad702
AS
72162017-08-08 Andreas Schwab <schwab@suse.de>
7217
7218 [BZ #21041]
7219 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
7220 * nptl/pt-system.c (system): Likewise.
7221
852d6312
AZ
72222017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7223
7224 [BZ #21780]
7225 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
7226 EOPNOTSUPP.
7227 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
7228 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
7229 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
7230 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
7231 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
7232 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
7233 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
7234
8b164787
JM
72352017-08-07 Joseph Myers <joseph@codesourcery.com>
7236
cd65836b
JM
7237 [BZ #21899]
7238 * bits/sigaction.h (struct sigaction): Define sa_handler and
7239 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
7240 (SA_ONSTACK): Change [__USE_UNIX98] condition to
7241 [__USE_XOPEN_EXTENDED].
7242 (SA_RESTART): Likewise.
7243 (SA_NODEFER): Likewise.
7244 (SA_RESETHAND): Likewise.
7245 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
7246 (struct sigaction): Define sa_handler and sa_sigaction using union
7247 also for [__USE_XOPEN_EXTENDED].
7248 (SA_ONSTACK): Change [__USE_UNIX98] condition to
7249 [__USE_XOPEN_EXTENDED].
7250 (SA_RESTART): Likewise.
7251 (SA_NODEFER): Likewise.
7252 (SA_RESETHAND): Likewise.
7253 * sysdeps/unix/sysv/linux/bits/sigaction.h
7254 (struct sigaction): Define sa_handler and sa_sigaction using union
7255 also for [__USE_XOPEN_EXTENDED].
7256 (SA_ONSTACK): Change [__USE_UNIX98] condition to
7257 [__USE_XOPEN_EXTENDED].
7258 (SA_RESTART): Likewise.
7259 (SA_NODEFER): Likewise.
7260 (SA_RESETHAND): Likewise.
7261 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
7262 (struct sigaction): Define sa_handler and sa_sigaction using union
7263 also for [__USE_XOPEN_EXTENDED].
7264 (SA_ONSTACK): Change [__USE_UNIX98] condition to
7265 [__USE_XOPEN_EXTENDED].
7266 (SA_RESTART): Likewise.
7267 (SA_NODEFER): Likewise.
7268 (SA_RESETHAND): Likewise.
7269 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
7270 (struct sigaction): Define sa_handler and sa_sigaction using union
7271 also for [__USE_XOPEN_EXTENDED].
7272 (SA_ONSTACK): Change [__USE_UNIX98] condition to
7273 [__USE_XOPEN_EXTENDED].
7274 (SA_RESTART): Likewise.
7275 (SA_NODEFER): Likewise.
7276 (SA_RESETHAND): Likewise.
7277 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
7278 (struct sigaction): Define sa_handler and sa_sigaction using union
7279 also for [__USE_XOPEN_EXTENDED].
7280 (SA_ONSTACK): Change [__USE_UNIX98] condition to
7281 [__USE_XOPEN_EXTENDED].
7282 (SA_RESTART): Likewise.
7283 (SA_NODEFER): Likewise.
7284 (SA_RESETHAND): Likewise.
7285 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
7286 (struct sigaction): Define sa_handler and sa_sigaction using union
7287 also for [__USE_XOPEN_EXTENDED].
7288 (SA_ONSTACK): Change [__USE_UNIX98] condition to
7289 [__USE_XOPEN_EXTENDED].
7290 (SA_RESTART): Likewise.
7291 (SA_NODEFER): Likewise.
7292 (SA_RESETHAND): Likewise.
7293 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
7294 (struct sigaction): Define sa_handler and sa_sigaction using union
7295 also for [__USE_XOPEN_EXTENDED].
7296 (SA_ONSTACK): Change [__USE_UNIX98] condition to
7297 [__USE_XOPEN_EXTENDED].
7298 (SA_RESTART): Likewise.
7299 (SA_NODEFER): Likewise. Define directly rather than as alias.
7300 (SA_RESETHAND): Likewise.
7301 (SA_INTERRUPT): Define only for [__USE_MISC].
7302 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
7303 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
7304 [__USE_MISC].
7305 (SA_STACK): Define only for [__USE_MISC].
7306 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
7307 (struct sigaction): Define sa_handler and sa_sigaction using union
7308 also for [__USE_XOPEN_EXTENDED].
7309 (SA_ONSTACK): Change [__USE_UNIX98] condition to
7310 [__USE_XOPEN_EXTENDED].
7311 (SA_RESTART): Likewise.
7312 (SA_NODEFER): Likewise.
7313 (SA_RESETHAND): Likewise.
7314 (SA_NOPTRACE): Define only for [__USE_MISC].
7315
d9fee042
JM
7316 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
7317 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
7318 (struct catalog_info): Likewise.
7319 * inet/htontest.c (lo): Likewise.
7320 (foo): Likewise.
7321 * inet/inet_lnaof.c (inet_lnaof): Likewise.
7322 * inet/inet_net.c (inet_network): Likewise.
7323 * inet/inet_netof.c (inet_netof): Likewise.
7324 * inet/rcmd.c (__ivaliduser): Likewise.
7325 (iruserok): Likewise.
7326 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
7327 * locale/programs/locale-spec.c (locale_special): Likewise.
7328 * nis/nis_findserv.c (struct findserv_req): Likewise.
7329 (__nis_findfastest_with_timeout): Likewise.
7330 * nss/test-netdb.c (test_network): Likewise.
7331 * resolv/inet_neta.c (inet_neta): Likewise.
7332 * resolv/ns_date.c (ns_datetosecs): Likewise.
7333 (SECS_PER_DAY): Likewise.
7334 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
7335 Likewise.
7336 * resolv/res_comp.c (__putlong): Likewise.
7337 (__putshort): Likewise.
7338 (_getlong): Likewise.
7339 (_getshort): Likewise.
7340 * resolv/res_debug.c (p_time): Likewise.
7341 (precsize_ntoa): Likewise.
7342 (precsize_aton): Likewise.
7343 (latlon2ul): Likewise.
7344 (loc_aton): Likewise.
7345 (loc_ntoa): Likewise.
7346 * resolv/res_hconf.c (struct netaddr): Likewise.
7347 (_res_hconf_reorder_addrs): Likewise.
7348 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
7349 (clnttcp_control): Likewise.
7350 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
7351 (clntudp_control): Likewise.
7352 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
7353 (clntunix_control): Likewise.
7354 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
7355 * sunrpc/rpc/auth.h (union des_block): Likewise.
7356 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
7357 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
7358 (xdrrec_create): Likewise.
7359 (xdrrec_endofrecord): Likewise.
7360 (flush_out): Likewise.
7361 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
7362 (xdrstdio_putlong): Likewise.
7363 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
7364 Likewise.
7365
8b164787
JM
7366 * misc/sys/cdefs.h (__long_double_t): Remove.
7367 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
7368 instead of __long_double_t,
7369 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
7370
7ee38e60
SP
73712017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
7372
dd3e86ad
SP
7373 * benchtests/scripts/compare_strings.py: Avoid display error when
7374 running on a text terminal.
7375
b115e819
SP
7376 * benchtests/scripts/compare_strings.py (main): Add an
7377 optional -base option.
7378 (process_results): New argument base_func.
7379
7ee38e60
SP
7380 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
7381 hardcoding memcpy.
7382 * benchtests/bench-memcpy-large.c (test_name): Likewise.
7383 * benchtests/bench-memcpy-random.c (test_name): Likewise.
7384
d5afb385
AS
73852017-08-07 Andreas Schwab <schwab@suse.de>
7386
7387 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
7388 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
7389 * intl/Makefile ($(objpfx)tst-gettext.out)
7390 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
7391 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
7392 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
7393 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
7394 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
7395 * posix/Makefile ($(objpfx)globtest.out)
7396 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
7397 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
7398 ($(objpfx)tst-printf.out): Likewise.
7399 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
7400 ($(objpfx)tst-setcontext3.out): Likewise.
7401
57a72fa3
L
74022017-08-07 H.J. Lu <hongjiu.lu@intel.com>
7403
7404 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
7405 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
7406 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
7407 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
7408 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
7409 and mptan-fma.
7410 (CFLAGS-doasin-fma.c): New.
7411 (CFLAGS-dosincos-fma.c): Likewise.
7412 (CFLAGS-e_asin-fma.c): Likewise.
7413 (CFLAGS-e_atan2-fma.c): Likewise.
7414 (CFLAGS-e_exp-fma.c): Likewise.
7415 (CFLAGS-e_log-fma.c): Likewise.
7416 (CFLAGS-e_pow-fma.c): Likewise.
7417 (CFLAGS-halfulp-fma.c): Likewise.
7418 (CFLAGS-mpa-fma.c): Likewise.
7419 (CFLAGS-mpatan-fma.c): Likewise.
7420 (CFLAGS-mpatan2-fma.c): Likewise.
7421 (CFLAGS-mpexp-fma.c): Likewise.
7422 (CFLAGS-mplog-fma.c): Likewise.
7423 (CFLAGS-mpsqrt-fma.c): Likewise.
7424 (CFLAGS-mptan-fma.c): Likewise.
7425 (CFLAGS-s_atan-fma.c): Likewise.
7426 (CFLAGS-sincos32-fma.c): Likewise.
7427 (CFLAGS-slowexp-fma.c): Likewise.
7428 (CFLAGS-slowpow-fma.c): Likewise.
7429 (CFLAGS-s_sin-fma.c): Likewise.
7430 (CFLAGS-s_tan-fma.c): Likewise.
7431 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
7432 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
7433 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
7434 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
7435 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
7436 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
7437 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
7438 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
7439 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
7440 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
7441 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
7442 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
7443 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
7444 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
7445 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
7446 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
7447 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
7448 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
7449 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
7450 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
7451 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
7452 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
7453 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
7454 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
7455 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
7456 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
7457 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
7458 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
7459 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
7460 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
7461 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
7462
219dd320
JM
74632017-08-04 Joseph Myers <joseph@codesourcery.com>
7464
7465 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
7466 (min_of_type_f): New macro.
7467 (min_of_type_): Likewise.
7468 (min_of_type_l): Likewise.
7469 (min_of_type_f128): Likewise.
7470 (min_of_type): Define using __MATH_TG and taking an expression
7471 argument.
7472 (math_check_force_underflow): Pass expression instead of type to
7473 min_of_type.
7474 (math_check_force_underflow_nonneg): Likewise.
7475
64d4dea6
L
74762017-08-04 H.J. Lu <hongjiu.lu@intel.com>
7477
7478 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
7479 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
7480 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
7481
973da22a
L
74822017-08-04 H.J. Lu <hongjiu.lu@intel.com>
7483
7484 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
7485 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
7486 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
7487 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
7488 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
7489 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
7490 memcpy_chk-nonshared, mempcpy_chk-nonshared,
7491 memmove_chk-nonshared and memset_chk-nonshared
7492 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
7493 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
7494 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
7495 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
7496 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
7497 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
7498 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
7499 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
7500 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
7501 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
7502 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
7503 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
7504 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
7505 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
7506 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
7507 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
7508 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
7509 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
7510 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
7511 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
7512 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
7513 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
7514 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
7515 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
7516 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
7517 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
7518 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
7519 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
7520 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
7521 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
7522 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
7523 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
7524 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
7525 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
7526 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
7527 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
7528 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
7529 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
7530 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
7531 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
7532 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
7533 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
7534 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
7535 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
7536 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
7537 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
7538 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
7539 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
7540 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
7541 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
7542 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
7543 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
7544 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
7545 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
7546 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
7547 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
7548 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
7549 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
7550 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
7551 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
7552 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
7553 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
7554 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
7555 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
7556 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
7557 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
7558 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
7559 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
7560 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
7561 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
7562 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
7563 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
7564 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
7565 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
7566 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
7567 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
7568 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
7569 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
7570 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
7571 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
7572 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
7573 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
7574 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
7575 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
7576 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
7577 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
7578 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
7579 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
7580 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
7581 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
7582 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
7583 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
7584 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
7585 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
7586 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
7587 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
7588 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
7589 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
7590 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
7591 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
7592 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
7593 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
7594 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
7595 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
7596 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
7597 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
7598 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
7599 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
7600
8537e0f6
L
76012017-08-04 H.J. Lu <hongjiu.lu@intel.com>
7602
7603 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
7604 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
7605 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
7606 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
7607 svml_d_log2_core-sse2, svml_d_log4_core-sse,
7608 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
7609 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
7610 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
7611 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
7612 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
7613 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
7614 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
7615 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
7616 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
7617 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
7618 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
7619 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
7620 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
7621 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
7622 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
7623 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
7624 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
7625 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
7626 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
7627 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
7628 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
7629 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
7630 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
7631 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
7632 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
7633 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
7634 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
7635 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
7636 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
7637 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
7638 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
7639 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
7640 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
7641 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
7642 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
7643 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
7644 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
7645 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
7646 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
7647 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
7648 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
7649 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
7650 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
7651 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
7652 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
7653 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
7654 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
7655 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
7656 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
7657 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
7658 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
7659 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
7660 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
7661 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
7662 ...
7663 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
7664 Don't include <sysdep.h> nor <init-arch.h>.
7665 (_ZGVbN2v_cos): Removed.
7666 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
7667 ...
7668 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
7669 Don't include <sysdep.h> nor <init-arch.h>.
7670 (_ZGVdN4v_cos): Removed.
7671 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
7672 ...
7673 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
7674 Don't include <sysdep.h> nor <init-arch.h>.
7675 (_ZGVeN8v_cos): Removed.
7676 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
7677 ...
7678 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
7679 Don't include <sysdep.h> nor <init-arch.h>.
7680 (_ZGVbN2v_exp): Removed.
7681 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
7682 ...
7683 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
7684 Don't include <sysdep.h> nor <init-arch.h>.
7685 (_ZGVdN4v_exp): Removed.
7686 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
7687 ...
7688 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
7689 Don't include <sysdep.h> nor <init-arch.h>.
7690 (_ZGVeN8v_exp): Removed.
7691 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
7692 ...
7693 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
7694 Don't include <sysdep.h> nor <init-arch.h>.
7695 (_ZGVbN2v_log): Removed.
7696 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
7697 ...
7698 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
7699 Don't include <sysdep.h> nor <init-arch.h>.
7700 (_ZGVdN4v_log): Removed.
7701 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
7702 ...
7703 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
7704 Don't include <sysdep.h> nor <init-arch.h>.
7705 (_ZGVeN8v_log): Removed.
7706 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
7707 ...
7708 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
7709 Don't include <sysdep.h> nor <init-arch.h>.
7710 (_ZGVbN2vv_pow): Removed.
7711 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
7712 ...
7713 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
7714 Don't include <sysdep.h> nor <init-arch.h>.
7715 (_ZGVdN4vv_pow): Removed.
7716 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
7717 ...
7718 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
7719 Don't include <sysdep.h> nor <init-arch.h>.
7720 (_ZGVeN8vv_pow): Removed.
7721 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
7722 ...
7723 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
7724 Don't include <sysdep.h> nor <init-arch.h>.
7725 (_ZGVbN2v_sin): Removed.
7726 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
7727 ...
7728 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
7729 Don't include <sysdep.h> nor <init-arch.h>.
7730 (_ZGVbN4v_sin): Removed.
7731 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
7732 ...
7733 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
7734 Don't include <sysdep.h> nor <init-arch.h>.
7735 (_ZGVbN8v_sin): Removed.
7736 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
7737 ...
7738 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
7739 Don't include <sysdep.h> nor <init-arch.h>.
7740 (_ZGVbN2vvv_sincos): Removed.
7741 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
7742 ...
7743 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
7744 Don't include <sysdep.h> nor <init-arch.h>.
7745 (_ZGVdN4vvv_sincos): Removed.
7746 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
7747 ...
7748 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
7749 Don't include <sysdep.h> nor <init-arch.h>.
7750 (_ZGVeN8vvv_sincos): Removed.
7751 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
7752 ...
7753 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
7754 Don't include <sysdep.h> nor <init-arch.h>.
7755 (_ZGVeN16v_cosf): Removed.
7756 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
7757 ...
7758 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
7759 Don't include <sysdep.h> nor <init-arch.h>.
7760 (_ZGVbN4v_cosf): Removed.
7761 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
7762 ...
7763 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
7764 Don't include <sysdep.h> nor <init-arch.h>.
7765 (_ZGVdN8v_cosf): Removed.
7766 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
7767 ...
7768 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
7769 Don't include <sysdep.h> nor <init-arch.h>.
7770 (_ZGVeN16v_expf): Removed.
7771 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
7772 ...
7773 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
7774 Don't include <sysdep.h> nor <init-arch.h>.
7775 (_ZGVbN4v_expf): Removed.
7776 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
7777 ...
7778 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
7779 Don't include <sysdep.h> nor <init-arch.h>.
7780 (_ZGVdN8v_expf): Removed.
7781 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
7782 ...
7783 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
7784 Don't include <sysdep.h> nor <init-arch.h>.
7785 (_ZGVeN16v_logf): Removed.
7786 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
7787 ...
7788 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
7789 Don't include <sysdep.h> nor <init-arch.h>.
7790 (_ZGVbN4v_logf): Removed.
7791 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
7792 ...
7793 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
7794 Don't include <sysdep.h> nor <init-arch.h>.
7795 (_ZGVdN8v_logf): Removed.
7796 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
7797 ...
7798 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
7799 Don't include <sysdep.h> nor <init-arch.h>.
7800 (_ZGVeN16vv_powf): Removed.
7801 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
7802 ...
7803 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
7804 Don't include <sysdep.h> nor <init-arch.h>.
7805 (_ZGVbN4vv_powf): Removed.
7806 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
7807 ...
7808 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
7809 Don't include <sysdep.h> nor <init-arch.h>.
7810 (_ZGVdN8vv_powf): Removed.
7811 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
7812 ...
7813 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
7814 Don't include <sysdep.h> nor <init-arch.h>.
7815 (_ZGVeN16vvv_sincosf): Removed.
7816 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
7817 ...
7818 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
7819 Don't include <sysdep.h> nor <init-arch.h>.
7820 (_ZGVbN4vvv_sincosf): Removed.
7821 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
7822 ...
7823 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
7824 Don't include <sysdep.h> nor <init-arch.h>.
7825 (_ZGVdN8vvv_sincosf): Removed.
7826 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
7827 ...
7828 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
7829 Don't include <sysdep.h> nor <init-arch.h>.
7830 (_ZGVeN16v_sinf): Removed.
7831 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
7832 ...
7833 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
7834 Don't include <sysdep.h> nor <init-arch.h>.
7835 (_ZGVbN4v_sinf): Removed.
7836 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
7837 ...
7838 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
7839 Don't include <sysdep.h> nor <init-arch.h>.
7840 (_ZGVdN8v_sinf): Removed.
7841
10a87ca4
L
78422017-08-04 H.J. Lu <hongjiu.lu@intel.com>
7843
7844 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
7845 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
7846 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
7847 s_rint-sse4_1 and s_rintf-sse4_1.
7848 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
7849 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
7850 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
7851 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
7852 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
7853 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
7854 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
7855 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
7856 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
7857 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
7858 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
7859 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
7860 (__ceil): Removed.
7861 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
7862 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
7863 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
7864 (__ceilf): Removed.
7865 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
7866 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
7867 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
7868 (__floor): Removed.
7869 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
7870 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
7871 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
7872 (__floorf): Removed.
7873 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
7874 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
7875 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
7876 (__nearbyint): Removed.
7877 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
7878 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
7879 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
7880 (__nearbyintf): Removed.
7881 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
7882 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
7883 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
7884 (__rint): Removed.
7885 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
7886 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
7887 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
7888 (__rintf): Removed.
7889
1e8e527d
L
78902017-08-04 H.J. Lu <hongjiu.lu@intel.com>
7891
7892 * sysdeps/i386/start.S (_start): Check Check PIC instead of
7893 SHARED. Avoid dynamic relocation against main in static PIE.
7894
e13daad7
L
78952017-08-04 H.J. Lu <hongjiu.lu@intel.com>
7896
7897 [BZ #21815]
7898 * elf/Makefile (CFLAGS-tst-prelink.c): New.
7899 (LDFLAGS-tst-prelink): Likewise.
7900
627c69c8
L
79012017-08-04 H.J. Lu <hongjiu.lu@intel.com>
7902
7903 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
7904 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
7905 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
7906 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
7907 (INTERNAL_SYSCALL_NCS): Likewise.
7908 (LOADARGS_1): Likewise.
7909 (LOADARGS_5): Likewise.
7910 (RESTOREARGS_1): Likewise.
7911 (RESTOREARGS_5): Likewise.
7912
fc11ff8d
L
79132017-08-04 H.J. Lu <hongjiu.lu@intel.com>
7914
7915 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
7916 (MEMPCPY_SYMBOL): Likewise.
7917 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
7918 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
7919 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
7920 in libc.a.
7921 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
7922 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
7923 Likewise.
7924 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
7925 (__hidden_ver1): Don't use in libc.a.
7926 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
7927 (__mempcpy): Don't create a weak alias in libc.a.
7928 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
7929 libc.a.
7930 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
7931 (__hidden_ver1): Don't use in libc.a.
7932
19f1a11e
L
79332017-08-04 H.J. Lu <hongjiu.lu@intel.com>
7934
7935 * config.make.in (have-insert): New.
7936 * configure.ac (libc_cv_insert): New. Set to yes if linker
7937 supports INSERT in linker script.
7938 (AC_SUBST(libc_cv_insert): New.
7939 * configure: Regenerated.
7940 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
7941 if $(have-insert) == yes.
7942
3093fd5e
L
79432017-08-04 H.J. Lu <hongjiu.lu@intel.com>
7944
7945 * elf/Makefile (tests): Add vismain only if
7946 $(have-protected-data) == yes.
7947 (tests-pie): Likewise.
7948
d2cf37c0
L
79492017-08-04 H.J. Lu <hongjiu.lu@intel.com>
7950
7951 [BZ #21871]
7952 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
7953 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
7954
c8a0e6ec
L
79552017-08-04 H.J. Lu <hongjiu.lu@intel.com>
7956
7957 [BZ #21790]
7958 * sysdeps/i386/i586/memset.S
7959 (__memset_zero_constant_len_parameter): Removed.
7960 * sysdeps/i386/i686/memset.S
7961 (__memset_zero_constant_len_parameter): Likewise.
7962 * sysdeps/i386/i686/multiarch/memset_chk.S
7963 (__memset_zero_constant_len_parameter): Likewise.
7964 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
7965 Likewise.
7966
2b34e271
AJ
79672017-08-03 Aurelien Jarno <aurelien@aurel32.net>
7968
7969 * stdlib/getentropy.c (getentropy): Change return type to int.
7970
144bdab0
AJ
79712017-08-03 Aurelien Jarno <aurelien@aurel32.net>
7972
7973 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
7974
24ab7723
JM
79752017-08-03 Joseph Myers <joseph@codesourcery.com>
7976
7977 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
7978 u_intN_t.
7979 * math/s_nexttowardf.c (__nexttowardf): Likewise.
7980 * sysdeps/generic/math_private.h (ieee_double_shape_type):
7981 Likewise.
7982 (ieee_float_shape_type): Likewise.
7983 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
7984 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
7985 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
7986 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
7987 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
7988 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
7989 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
7990 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
7991 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
7992 Likewise.
7993 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
7994 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
7995 (__ieee754_yn): Likewise.
7996 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
7997 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
7998 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
7999 Likewise.
8000 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
8001 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
8002 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
8003 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
8004 (__erfc): Likewise.
8005 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
8006 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
8007 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
8008 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
8009 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
8010 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
8011 Likewise.
8012 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
8013 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
8014 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
8015 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
8016 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
8017 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
8018 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
8019 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
8020 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
8021 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
8022 (__issignaling): Likewise.
8023 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
8024 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
8025 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
8026 Likewise.
8027 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
8028 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
8029 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
8030 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
8031 Likewise.
8032 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
8033 Likewise.
8034 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
8035 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
8036 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
8037 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
8038 (__erfcf): Likewise.
8039 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
8040 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
8041 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
8042 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
8043 Likewise.
8044 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
8045 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
8046 Likewise.
8047 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
8048 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
8049 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
8050 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
8051 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
8052 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
8053 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
8054 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
8055 Likewise.
8056 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
8057 Likewise.
8058 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
8059 Likewise.
8060 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
8061 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
8062 Likewise.
8063 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
8064 Likewise.
8065 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
8066 (__ieee754_ynl): Likewise.
8067 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
8068 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
8069 Likewise.
8070 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
8071 Likewise.
8072 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
8073 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
8074 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
8075 Likewise.
8076 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
8077 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
8078 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
8079 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
8080 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
8081 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
8082 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
8083 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
8084 Likewise.
8085 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
8086 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
8087 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
8088 Likewise.
8089 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
8090 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
8091 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
8092 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
8093 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
8094 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
8095 Likewise.
8096 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
8097 Likewise.
8098 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
8099 Likewise.
8100 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
8101 Likewise.
8102 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
8103 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
8104 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
8105 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
8106 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
8107 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
8108 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
8109 Likewise.
8110 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
8111 Likewise.
8112 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
8113 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
8114 Likewise.
8115 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
8116 (__ieee754_remainderl): Likewise.
8117 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
8118 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
8119 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
8120 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
8121 Likewise.
8122 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
8123 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
8124 Likewise.
8125 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
8126 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
8127 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
8128 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
8129 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
8130 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
8131 Likewise.
8132 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
8133 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
8134 (__ieee754_y0l): Likewise.
8135 (pzero): Likewise.
8136 (qzero): Likewise.
8137 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
8138 (__ieee754_y1l): Likewise.
8139 (pone): Likewise.
8140 (qone): Likewise.
8141 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
8142 (__ieee754_ynl): Likewise.
8143 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
8144 (__ieee754_lgammal_r): Likewise.
8145 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
8146 Likewise.
8147 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
8148 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
8149 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
8150 (__erfcl): Likewise.
8151 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
8152 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
8153 Likewise.
8154 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
8155 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
8156 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
8157 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
8158 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
8159 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
8160 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
8161 Likewise.
8162 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
8163 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
8164 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
8165 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
8166 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
8167 Likewise.
8168 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
8169 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
8170 Likewise.
8171 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
8172 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
8173 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
8174 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
8175 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
8176
964263bb
FW
81772017-08-03 Florian Weimer <fweimer@redhat.com>
8178
8179 [BZ #21885]
8180 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
8181 on memory allocation failure.
8182
e98c925f
AM
81832017-08-03 Alan Modra <amodra@gmail.com>
8184
8185 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
8186 tst-tlsopt-powerpc.c with function name change and no test harness.
8187 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
8188 Call tls_get_addr_opt_test.
8189 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
8190 (modules-names): Add mod-tlsopt-powerpc.
8191 (mod-tlsopt-powerpc.so-no-z-defs): Define.
8192 (tst-tlsopt-powerpc): Depend on .so.
8193 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
8194 define. Expand use in TLS_GD and TLS_LD.
8195
8ee1abdb
ST
81962017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
8197
8198 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
8199 function.
3da5756e 8200 * sysdeps/posix/shm_open.c: Include <pthread.h>.
8ee1abdb 8201
42df8d59
JM
82022017-08-02 Joseph Myers <joseph@codesourcery.com>
8203
8204 [BZ #21686]
8205 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
8206 comparing size with that of double.
8207 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
8208 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
8209 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
8210 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
8211 (__TGMATH_BINARY_REAL_IMAG): Likewise.
8212 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
8213 unsigned __int128 types.
8214
b7f95f49
SE
82152017-08-02 Steve Ellcey <sellcey@cavium.com>
8216
8217 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
8218 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
8219 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
8220 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
8221 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
8222
5b736bc9
L
82232017-08-02 H.J. Lu <hongjiu.lu@intel.com>
8224
8225 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
8226
dfc93c41
L
82272017-08-02 H.J. Lu <hongjiu.lu@intel.com>
8228
8229 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
8230 of SHARED.
8231 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
8232 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
8233 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
8234 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
8235 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
8236 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
8237 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
8238
2fee621d
JM
82392017-08-02 Joseph Myers <joseph@codesourcery.com>
8240
8241 [BZ #21685]
8242 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
8243 bit-field expressions passed to sizeof or typeof.
8244 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
8245 (__TGMATH_F128): Likewise.
8246 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
8247 (__TGMATH_CF128): Likewise.
8248 (__TGMATH_UNARY_REAL_ONLY): Likewise.
8249 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
8250 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
8251 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
8252 (__TGMATH_BINARY_REAL_ONLY): Likewise.
8253 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
8254 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
8255 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
8256 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
8257 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
8258 (__TGMATH_UNARY_REAL_IMAG): Likewise.
8259 (__TGMATH_UNARY_IMAG): Likewise.
8260 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
8261 (__TGMATH_BINARY_REAL_IMAG): Likewise.
8262 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
8263 type.
8264 (define_vars_for_type): Handle bit_field type specially.
8265 (Tests.__init__): Declare structure with bit-field element.
8266
b358255f
L
82672017-08-02 H.J. Lu <hongjiu.lu@intel.com>
8268
8269 [BZ #21791]
8270 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
8271 (MEMCPY_CHK): Define only if SHARED is defined.
8272 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
8273 Likewise.
8274 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
8275 Likewise.
edf66db1
SP
8276
8277See ChangeLog.18 for earlier changes.