]> git.ipfire.org Git - thirdparty/glibc.git/blame - ChangeLog
Y2038: Include proper header to provide support for struct timeval on HURD
[thirdparty/glibc.git] / ChangeLog
CommitLineData
4973abcb
LM
12019-10-02 Łukasz Majewski <lukma@denx.de>
2 * include/time.h: Add #include <bits/types/struct_timeval.h>
3
21417aaa
AS
42019-10-02 Arjun Shankar <arjun@redhat.com>
5
6 debugglibc.sh: Implement program arguments
7 * Makefile (debugglibc): Change variable definition.
8
69fd157a
AF
92019-10-01 Alistair Francis <alistair.francis@wdc.com>
10
11 * time/bits/types/struct_timespec.h: Add padding for the timespec if
12 required.
13
aa706e13
AF
142019-10-01 Zack Weinberg <zackw@panix.com>
15 Alistair Francis <alistair.francis@wdc.com>
16
17 * string/endian.h: Unconditionally define LITTLE_ENDIAN,
18 BIG_ENDIAN, PDP_ENDIAN, and BYTE_ORDER. Condition byteswapping
19 macros only on !__ASSEMBLER__. Move the definitions of
20 __BIG_ENDIAN, __LITTLE_ENDIAN, __PDP_ENDIAN, __FLOAT_WORD_ORDER,
21 and __LONG_LONG_PAIR to...
22 * string/bits/endian.h: ...this new file, which includes
23 the renamed header bits/endianness.h for the definition of
24 __BYTE_ORDER and possibly __FLOAT_WORD_ORDER.
25
26 * string/Makefile: Install bits/endianness.h.
27 * include/bits/endian.h: New wrapper.
28
29 * bits/endian.h: Rename to bits/endianness.h.
30 Add multiple-include guard. Rewrite the comment explaining what
31 the machine-specific variants of this file should do.
32
33 * sysdeps/unix/sysv/linux/ia64/bits/endian.h:
34 Move to sysdeps/ia64.
35
36 * sysdeps/aarch64/bits/endian.h
37 * sysdeps/alpha/bits/endian.h
38 * sysdeps/arm/bits/endian.h
39 * sysdeps/csky/bits/endian.h
40 * sysdeps/hppa/bits/endian.h
41 * sysdeps/ia64/bits/endian.h
42 * sysdeps/m68k/bits/endian.h
43 * sysdeps/microblaze/bits/endian.h
44 * sysdeps/mips/bits/endian.h
45 * sysdeps/nios2/bits/endian.h
46 * sysdeps/powerpc/bits/endian.h
47 * sysdeps/riscv/bits/endian.h
48 * sysdeps/s390/bits/endian.h
49 * sysdeps/sh/bits/endian.h
50 * sysdeps/sparc/bits/endian.h
51 * sysdeps/x86/bits/endian.h:
52 Rename to endianness.h; canonicalize form of file; remove
53 redundant definitions of __FLOAT_WORD_ORDER.
54
55 * sysdeps/powerpc/bits/endianness.h: Remove logic to check for
56 broken compilers.
57
58 * ctype/ctype.h
59 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
60 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
61 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h
62 * sysdeps/ia64/ieee754.h
63 * sysdeps/ieee754/ieee754.h
64 * sysdeps/ieee754/ldbl-128/ieee754.h
65 * sysdeps/ieee754/ldbl-128ibm/ieee754.h
66 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
67 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
68 * sysdeps/mips/ieee754/ieee754.h
69 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
70 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
71 * sysdeps/nptl/pthread.h
72 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h
73 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
74 * sysdeps/sparc/sparc32/ieee754.h
75 * sysdeps/unix/sysv/linux/generic/bits/stat.h
76 * sysdeps/unix/sysv/linux/generic/bits/statfs.h
77 * sysdeps/unix/sysv/linux/sys/acct.h
78 * wctype/bits/wctype-wchar.h:
79 Include bits/endian.h, not endian.h.
80
81 * sysdeps/unix/sysv/linux/hppa/pthread.h: Don’t include endian.h.
82
83 * sysdeps/mips/ieee754/ieee754.h: Use __LDBL_MANT_DIG__
84 in ifdefs, instead of LDBL_MANT_DIG. Only include float.h
85 when __LDBL_MANT_DIG__ is not predefined, in which case
86 define __LDBL_MANT_DIG__ to equal LDBL_MANT_DIG.
87
8e42fc68
MF
882019-09-17 Mike FABIAN <mfabian@redhat.com>
89
90 * localedata/locales/az_AZ: Make lang_name agree with CLDR
91 * localedata/locales/be_BY@latin: Make lang_name agree with langtable
92 * localedata/locales/ber_DZ: Make language, country_name, lang_name agree with langtable
93 * localedata/locales/ber_MA: Add country_name from langtable, make language, lang_name agree with langtable
94 * localedata/locales/bhb_IN: Add country_name from langtable, make lang_name agree with langtable
95 * localedata/locales/bho_IN: Add country_name from langtable
96 * localedata/locales/chr_US: Make country_name agree with CLDR
97 * localedata/locales/crh_UA: Make lang_name agree with langtable
98 * localedata/locales/csb_PL: Add country_name from langtable
99 * localedata/locales/doi_IN: Add country_name from langtable
100 * localedata/locales/dv_MV: Add country_name from langtable
101 * localedata/locales/eo: Fix capitalisation of lang_name, agree with CLDR
102 * localedata/locales/hak_TW: Make lang_name agree with langtable
103 * localedata/locales/hif_FJ: Make lang_name agree with langtable
104 * localedata/locales/hne_IN: Add country_name from langtable
105 * localedata/locales/ia_FR: Fix capitalisation of lang_name, agree with CLDR
106 * localedata/locales/id_ID: Make lang_name agree with CLDR
107 * localedata/locales/ig_NG: Make country_name, lang_name agree with CLDR
108 * localedata/locales/kab_DZ: Make country_name agree with CLDR
109 * localedata/locales/ks_IN: Make country_name agree with CLDR
110 * localedata/locales/ku_TR: Make country_name, lang_name agree with CLDR
111 * localedata/locales/mag_IN: Add country_name from langtable
112 * localedata/locales/mfe_MU: Make country_name agree with CLDR
113 * localedata/locales/mhr_RU: Add lang_name from langtable
114 * localedata/locales/mi_NZ: Make lang_name agree with CLDR
115 * localedata/locales/ms_MY: Make lang_name agree with CLDR
116 * localedata/locales/nan_TW: Make lang_name agree with langtable
117 * localedata/locales/nan_TW@latin: Make lang_name agree with langtable
118 * localedata/locales/nds_DE: Make lang_name agree with langtable
119 * localedata/locales/nds_NL: Make lang_name agree with langtable
120 * localedata/locales/nhn_MX: Add country_name from langtable, make lang_name agree with langtable
121 * localedata/locales/niu_NU: Add country_name, lang_name from langtable
122 * localedata/locales/niu_NZ: Add lang_name from langtable
123 * localedata/locales/nr_ZA: Fix capitalisation of lang_name from langtable
124 * localedata/locales/oc_FR: Fix capitalisation of lang_name from langtable
125 * localedata/locales/or_IN: Fix spelling of language from langtable
126 * localedata/locales/pa_PK: Make country_name agree with CLDR
127 * localedata/locales/ps_AF: Make country_name agree with CLDR
128 * localedata/locales/quz_PE: Make language, lang_name agree with langtable
129 * localedata/locales/raj_IN: Make country_name, lang_name agree with langtable
130 * localedata/locales/rw_RW: Make country_name agree with CLDR
131 * localedata/locales/sah_RU: Make langauge, country_name, lang_name agree with CLDR
132 * localedata/locales/sat_IN: Make country_name, lang_name agree with langtable
133 * localedata/locales/sc_IT: Fix capitalisaton of lang_name according to langtable
134 * localedata/locales/sd_IN: Make country_name, lang_name agree with CLDR
135 * localedata/locales/sd_IN@devanagari: Make lang_name agree with langtable
136 * localedata/locales/shn_MM: Make country_name agree with langtable
137 * localedata/locales/shs_CA: Make language, lang_name agree with langtable
138 * localedata/locales/sm_WS: Make country_name agree with langtable
139 * localedata/locales/ss_ZA: Fix capitalisation of lang_name from langtable
140 * localedata/locales/szl_PL: Add country_name from langtable
141 * localedata/locales/te_IN: Fix country_name from CLDR
142 * localedata/locales/tg_TJ: Add lang_name from CLDR
143 * localedata/locales/the_NP: Add country_name, lang_name from langtable
144 * localedata/locales/tk_TM: Make lang_name agree with CLDR
145 * localedata/locales/tl_PH: Add lang_name from langtable
146 * localedata/locales/to_TO: Make lang_name agree with CLDR
147 * localedata/locales/tpi_PG: Make country_name, lang_name agree with langtable
148 * localedata/locales/tt_RU@iqtelif: Add country_name, lang_name from langtable
149 * localedata/locales/ug_CN: Add lang_name from CLDR
150 * localedata/locales/unm_US: Add lang_name from langtable
151 * localedata/locales/wa_BE: Fix capitalisation of lang_name from langtable
152 * localedata/locales/wo_SN: Add lang_name from CLDR
153 * localedata/locales/xh_ZA: Fix capitalisation of country_name, lang_name from CLDR
154 * localedata/locales/yo_NG: Make country_name agree with CLDR
155 * localedata/locales/yuw_PG: Make langauge, lang_name agree with langtable
156 * localedata/locales/zh_HK: Add lang_name from langtable
157 * localedata/locales/zh_SG: Add lang_name from langtable
158
b5b67ece
JM
1592019-09-30 Joseph Myers <joseph@codesourcery.com>
160
161 * scripts/build-many-glibcs.py (Context.checkout): Default
162 binutils version to 2.33 branch.
163
9c44c6a9
LM
1642019-10-01 Lukasz Majewski <lukma@denx.de>
165
166 * include/time.h (valid_timeval_to_timespec64): Add.
167 * include/time.h (valid_timespec_to_timespec64): Likewise.
168 * include/time.h (valid_timespec64_to_timespec): Likewise.
169 * include/time.h (valid_timespec64_to_timeval): Likewise.
170
71bdf29a
JM
1712019-09-30 Joseph Myers <joseph@codesourcery.com>
172
173 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
174 (MAP_SYNC): New macro.
175 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
176 (MAP_SYNC): Likewise.
177 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Update Linux
178 kernel version number to 5.3.
179
d7a568af
PC
1802019-09-27 Paul A. Clarke <pc@us.ibm.com>
181
182 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_mode): Rename to
183 fesetenv_control.
184 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Accommodate
185 rename of fesetenv_mode to fegetenv_control.
186 * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
187 * sysdeps/powerpc/fpu/fesetmode.c (fesetmode): Likewise.
188 * sysdeps/powerpc/fpu/fenv_private.h (__libc_femergeenv_ppc): Likewise.
189 (libc_feholdsetround_noex_ppc_ctx): Likewise.
190
36c17c70
PC
1912019-09-27 Paul A. Clarke <pc@us.ibm.com>
192
193 * sysdeps/powerpc/fpu/fenv_private.h
194 (libc_feholdsetround_noex_ppc_ctx): Call fesetenv_mode instead
195 of fesetenv_register.
196
81ecb0ee
PC
1972019-09-27 Paul A. Clarke <pc@us.ibm.com>
198
199 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_status): Rename to
200 fegetenv_control.
201 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Accommodate
202 rename of fegetenv_status to fegetenv_control.
203 * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
204 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Likewise.
205 * sysdeps/powerpc/fpu/fegetmode.c (fegetmode): Likewise.
206 * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
207 * sysdeps/powerpc/fpu/fesetmode.c (fesetmode): Likewise.
208
e68b1151
PC
2092019-09-27 Paul A. Clarke <pc@us.ibm.com>
210
211 * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround_inline): Use
212 'mffscrn' instruction on POWER9.
213 (__fesetround_inline_nocheck): Likewise.
214
7413c188
PC
2152019-09-27 Paul A. Clarke <pc@us.ibm.com>
216
217 * sysdeps/powerpc/fpu/fenv_libc.h (FPSCR_EXCEPTIONS_MASK): New.
218 * sysdeps/powerpc/fpu/fenv_private.h (__libc_femergeenv_ppc): Optimize
219 to write FPSCR control only, if exceptions have not changed.
220
e3d85df5
PC
2212019-09-27 Paul A. Clarke <pc@us.ibm.com>
222
223 * sysdeps/powerpc/fpu/fenv_libc.h:
224 (__TEST_AND_ENTER_NON_STOP): New.
225 (__TEST_AND_EXIT_NON_STOP): New.
226 * sysdeps/powerpc/fpu/fenv_private.h
227 (_FPU_ALL_TRAPS): Delete, replace with FPSCR_ENABLES_MASK.
228 (_FPU_MASK_RN): Delete.
229 (_FPU_MASK_NOT_RN_NI): Delete.
230 (_FPU_MASK_TRAPS_RN): Delete, replace with ~FPSCR_CONTROL_MASK.
231 (_FPU_MASK_FRAC_INEX_RET_CC): Delete, replace with ~FPSCR_STATUS_MASK.
232 (__libc_feholdbits_ppc): Delete, move code into
233 libc_feholdexcept_setround_ppc.
234 (libc_feholdexcept_ppc): Delete.
235 (libc_fesetround_ppc): Delete.
236 (libc_fetestexcept_ppc): Delete.
237 (libc_feholdsetround_ppc): Delete.
238 (__libc_femergeenv_ppc): Use __TEST_AND_ENTER/EXIT_NON_STOP.
239 (libc_feholdsetround_noex_ppc_ctx): Likewise.
240 (libc_feupdateenv_test_ppc): Use FPSCR defines.
241 * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
242 __TEST_AND_ENTER_NON_STOP.
243 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
244 * sysdeps/powerpc/fpu/feholdexcpt.c (__feholdexcept): Likewise.
245 * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
246 * sysdeps/powerpc/fpu/fesetmode.c (fesetmode): Likewise.
247 * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
248 (_FPU_MASK_ALL): Delete.
249
9a44050e
JM
2502019-09-27 Joseph Myers <joseph@codesourcery.com>
251
252 * sysdeps/gnu/netinet/tcp.h (TCP_TX_DELAY): New macro.
253
464cd3a9
LM
2542019-09-26 Lukasz Majewski <lukma@denx.de>
255
256 * include/time.h: Add struct __timespec64 definition
257
8b45cac0
SP
2582019-09-26 Siddhesh Poyarekar <siddhesh@gotplt.org>
259
260 * scripts/vcs_to_changelog/misc_util.py (decode): Remove latin1
261 from codecs.
262
bacd3227
AZ
2632019-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
264
b2b3b759
AZ
265 * rt/Makefile (CFLAGS-clock_nanosleep.c): Move to ...
266 * time/Makefile (CFLAGS-clock_nanosleep.c): ... here.
267
bacd3227
AZ
268 * sysdeps/unix/sysv/linux/Makefile
269 (CFLAGS-tst-sigcontextinfo-get_pc.c): Rename to
270 CFLAGS-tst-sigcontext-get_pc.c.
271
5d245b5f
AF
2722019-09-24 Alistair Francis <alistair.francis@wdc.com>
273
274 * inet/net-internal.h: Fix uninitalised clntudp_call() variable.
275
eb502f72
AS
2762019-09-24 Andreas Schwab <schwab@suse.de>
277
278 * sysdeps/unix/sysv/linux/arm/sysdep.h
279 (HAVE_CLOCK_GETTIME_VSYSCALL): Define to "__vdso_clock_gettime",
280 not "__vdso_gettimeofday".
281 (HAVE_GETTIMEOFDAY_VSYSCALL): Define to "__vdso_gettimeofday", not
282 "__vdso_clock_gettime".
283 * sysdeps/unix/sysv/linux/mips/sysdep.h
284 (HAVE_CLOCK_GETTIME_VSYSCALL): Define to "__vdso_clock_gettime",
285 not "__vdso_gettimeofday".
286 (HAVE_GETTIMEOFDAY_VSYSCALL): Define to "__vdso_gettimeofday", not
287 "__vdso_clock_gettime".
288
f1c56cdf 2892019-09-19 Paul A. Clarke <pc@us.ibm.com>
eb502f72 290
f1c56cdf
PC
291 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_and_set_rn): New.
292 (__fe_mffscrn): New.
293 * sysdeps/powerpc/fpu/fenv_private.h (libc_feholdsetround_ppc_ctx):
294 Do not clear enable bits, remove obsolete code, use
295 fegetenv_and_set_rn.
296 (libc_feresetround_ppc): Remove obsolete code, use
297 fegetenv_and_set_rn.
298
64fab363
SL
2992019-09-19 Stefan Liebler <stli@linux.ibm.com>
300
301 * support/support_ptrace.c: Remove inclusion of sys/prctl.h.
302
73d9051d
SL
3032019-09-19 Stefan Liebler <stli@linux.ibm.com>
304
305 * sysdeps/s390/hp-timing.h (_HP_TIMING_H): Undefine.
306 (_HP_TIMING_S390_H): Define.
307
2dd8d4a7
JM
3082019-09-18 Joseph Myers <joseph@codesourcery.com>
309
0f02b6cf
JM
310 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
311 version to 5.3.
312 (clone3): New syscall.
313 (pidfd_open): Likewise.
314
2dd8d4a7
JM
315 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
316 version to 5.3.
317
2b680878
SL
3182019-09-18 Stefan Liebler <stli@linux.ibm.com>
319
320 * sysdeps/s390/hp-timing.h: New file.
321
8cacbcf4
JM
3222019-09-18 Joseph Myers <joseph@codesourcery.com>
323
324 * sysdeps/unix/sysv/linux/riscv/vfork.S: Do not include
325 <linux/sched.h>.
326 (CLONE_VM): New macro.
327 (CLONE_VFORK): Likewise.
328
2f9046fb
SL
3292019-09-18 Stefan Liebler <stli@linux.ibm.com>
330
331 * elf/tst-pldd.c (do_test): Add UNSUPPORTED check.
332 Rearrange subprocesses.
333 (pldd_process): New function.
334 * support/Makefile (libsupport-routines): Add support_ptrace.
335 * support/xptrace.h: New file.
336 * support/support_ptrace.c: Likewise.
337
b8386c28
AZ
3382019-09-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
339
87accae3
AZ
340 * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Remove file.
341
7c3eed78
AZ
342 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
343 (INTERNAL_VSYSCALL_CALL): Remove.
344 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
345 (INTERNAL_VSYSCALL_CALL): Likewise.
346 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
347 (INTERNAL_VSYSCALL_CALL): Likewise.
348 * sysdeps/unix/sysv/linux/mips/sysdep.h (INTERNAL_VSYSCALL_CALL):
349 New macro.
350
986a5064
AZ
351 * sysdeps/unix/sysv/linux/libc-vdso.h (VDSO_IFUNC_RET): Define if not
352 defined.
353 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c
354 (__get_timebase_freq): Remove use of
355 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK.
356 (get_timebase_freq_fallback): New symbol.
357 * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (time): Use
358 HAVE_GETTIMEOFDAY_VSYSCALL.
359 * sysdeps/unix/sysv/linux/powerpc/time.c (gettimeofday): Use
360 HAVE_TIME_VSYSCALL.
361 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Include generic
362 implementation.
363 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
364 (INTERNAL_VSYSCALL_CALL_TYPE): Make calling convention similar to
365 powerpc64.
366 (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove macro.
367 * .../sysv/linux/powerpc/powerpc64/sysdep.h
368 (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Likewise.
369 * sysdeps/unix/sysv/linux/powerpc/sysdep.h
370 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
371
b8a7c7da
AZ
372 * sysdeps/powerpc/powerpc32/backtrace.c (is_sigtramp_address,
373 is_sigtramp_address_rt): Use HAVE_SIGTRAMP_{RT}32 instead of SHARED.
374 * sysdeps/powerpc/powerpc64/backtrace.c (is_sigtramp_address):
375 Likewise.
376 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove file.
377 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Likewise.
378 * sysdeps/unix/sysv/linux/arm/init-first.c: Likewise.
379 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Likewise.
380 * sysdeps/unix/sysv/linux/mips/init-first.c: Likewise.
381 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Likewise.
382 * sysdeps/unix/sysv/linux/i386/init-first.c: Likewise.
383 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
384 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
385 * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
386 * sysdeps/unix/sysv/linux/s390/libc-vdso.h: Likewise.
387 * sysdeps/unix/sysv/linux/sparc/init-first.c: Likewise.
388 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: Likewise.
389 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Likewise.
390 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
391 * sysdeps/unix/sysv/linux/aarch64/sysdep.h
392 (HAVE_CLOCK_GETRES_VSYSCALL, HAVE_CLOCK_GETTIME_VSYSCALL,
393 HAVE_GETTIMEOFDAY_VSYSCALL): Define value based on kernel exported
394 name.
395 * sysdeps/unix/sysv/linux/arm/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL,
396 HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
397 * sysdeps/unix/sysv/linux/i386/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL,
398 HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
399 * sysdeps/unix/sysv/linux/mips/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL,
400 HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
401 * sysdeps/unix/sysv/linux/powerpc/sysdep.h
402 (HAVE_CLOCK_GETRES_VSYSCALL, HAVE_CLOCK_GETTIME_VSYSCALL,
403 HAVE_GETCPU_VSYSCALL, HAVE_TIME_VSYSCALL, HAVE_GET_TBFREQ,
404 HAVE_SIGTRAMP_RT64, HAVE_SIGTRAMP_32, HAVE_SIGTRAMP_RT32i,
405 HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
406 * sysdeps/unix/sysv/linux/riscv/sysdep.h (HAVE_CLOCK_GETRES_VSYSCALL,
407 HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL,
408 HAVE_GETCPU_VSYSCALL): Likewise.
409 * sysdeps/unix/sysv/linux/s390/sysdep.h (HAVE_CLOCK_GETRES_VSYSCALL,
410 HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL,
411 HAVE_GETCPU_VSYSCALL): Likewise.
412 * sysdeps/unix/sysv/linux/sparc/sysdep.h (HAVE_CLOCK_GETTIME_VSYSCALL,
413 HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
414 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
415 (HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL,
416 HAVE_GETCPU_VSYSCALL): Likewise.
417 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME, VDSO_HASH): Define to
418 invalid names if architecture does not define them.
419 (get_vdso_mangle_symbol): New symbol.
420 * sysdeps/unix/sysv/linux/init-first.c: New file.
421 * sysdeps/unix/sysv/linux/libc-vdso.h: Likewise.
422 * sysdeps/unix/sysv/linux/powerpc/init-first.c (gettimeofday,
423 clock_gettime, clock_getres, getcpu, time): Remove declaration.
424 (__libc_vdso_platform_setup_arch): Likewise and use
425 get_vdso_mangle_symbol to setup vDSO symbols.
426 (sigtramp_rt64, sigtramp32, sigtramp_rt32, get_tbfreq): Add
427 attribute_hidden.
428 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Likewise.
429 * sysdeps/unix/sysv/linux/sysdep-vdso.h (VDSO_SYMBOL): Remove
430 definition.
431
b8386c28
AZ
432 * sysdeps/unix/make-syscalls.sh: Make vDSO call use get_vdso_symbol.
433 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (__gettimeofday):
434 Use get_vdso_symbol instead of _dl_vdso_vsym.
435 * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
436 * sysdeps/unix/sysv/linux/riscv/flush-icache.c
437 (__lookup_riscv_flush_icache): Likewise.
438 * sysdeps/unix/sysv/linux/x86/gettimeofday.c (__gettimeofday):
439 Likewise.
440 * sysdeps/unix/sysv/linux/x86/time.c (time): Likewise.
441 * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
442 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise.
443 * sysdeps/unix/sysv/linux/arm/init-first.c: Likewise.
444 * sysdeps/unix/sysv/linux/i386/init-first.c: Likewise.
445 * sysdeps/unix/sysv/linux/mips/init-first.c: Likewise.
446 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
447 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
448 * sysdeps/unix/sysv/linux/sparc/init-first.c: Likewise.
449 * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
450 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
451 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (VDSO_NAME, VDSO_HASH):
452 Define.
453 * sysdeps/unix/sysv/linux/arm/sysdep.h (VDSO_NAME, VDSO_HASH):
454 Likewise.
455 * sysdeps/unix/sysv/linux/i386/sysdep.h (VDSO_NAME, VDSO_HASH):
456 Likewise.
457 * sysdeps/unix/sysv/linux/riscv/sysdep.h (VDSO_NAME, VDSO_HASH):
458 Likewise.
459 * sysdeps/unix/sysv/linux/sparc/sysdep.h (VDSO_NAME, VDSO_HASH):
460 Likewise.
461 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (VDSO_NAME, VDSO_HASH):
462 Likewise.
463 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
464 (HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL): Remove
465 definition.
466 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
467 (HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
468 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
469 (HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
470 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
471 (HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
472 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
473 (HAVE_CLOCK_GETTIME_VSYSCALL, HAVE_GETTIMEOFDAY_VSYSCALL): Likewise.
474 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
475 (HAVE_CLOCK_GETRES_VSYSCALL, HAVE_CLOCK_GETTIME_VSYSCALL,
476 HAVE_GETTIMEOFDAY_VSYSCALL, HAVE_GETCPU_VSYSCALL): Likewise.
477 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
478 (HAVE_CLOCK_GETRES_VSYSCALL, HAVE_CLOCK_GETTIME_VSYSCALL,
479 HAVE_GETTIMEOFDAY_VSYSCALL, HAVE_GETCPU_VSYSCALL): Likewise.
480 * sysdeps/unix/sysv/linux/mips/sysdep.h: New file.
481 * sysdeps/unix/sysv/linux/powerpc/sysdep.h: Likewise.
482 * sysdeps/unix/sysv/linux/s390/sysdep.h: Likewise.
483 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION,
484 PREPARE_VERSION_KNOWN, VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6,
485 VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15,
486 VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29,
487 VDSO_NAME_LINUX_4_15, VDSO_HASH_LINUX_4_15): Remove defines.
488 (get_vdso_symbol): New function.
489
b881217f
CLT
4902019-09-17 Chung-Lin Tang <cltang@codesourcery.com>
491
492 * sysdeps/generic/hp-timing-common.h (HP_TIMING_PRINT): Correct
493 position of string null termination.
494
1a656609
AJ
4952019-09-14 Aurelien Jarno <aurelien@aurel32.net>
496
497 [BZ #24986]
498 * sysdeps/unix/alpha/getegid.S: Move to ...
499 * sysdeps/unix/sysv/linux/alpha/getegid.S: ... here.
500 * sysdeps/unix/alpha/geteuid.S: Move to ...
501 * sysdeps/unix/sysv/linux/alpha/geteuid.S: ... here.
502 * sysdeps/unix/alpha/getppid.S: Move to ...
503 * sysdeps/unix/sysv/linux/alpha/getppid.S: ... here
504
3f02b772
PE
5052019-09-09 Paul Eggert <eggert@cs.ucla.edu>
506
02d35f06
PE
507 Fix http: URL in 'configure'
508 * configure.ac: Add URL to AC_INIT so that it generates an
509 https: URL instead of an http: URL.
510 * configure: Regenerate.
511
3f02b772
PE
512 Regenerate charmap-kw.h, locfile-kw.h
513 This propagates the recent http->https URL changes.
514 Since I used gperf 3.1 to regenerate, this is also a minor
515 internal-to-localedef API change.
516 URL problem reported by Joseph Myers in:
517 https://www.sourceware.org/ml/libc-alpha/2019-09/msg00143.html
518 * locale/programs/charmap-kw.h, locale/programs/locfile-kw.h:
519 Regenerate with gperf 3.1.
520 * locale/programs/linereader.h (kw_hash_fct_t):
521 * locale/programs/repertoire.c (repertoiremap_hash):
522 2nd arg is now size_t not unsigned, for compatibility with gperf 3.1.
523
de18a706
FW
5242019-09-05 Florian Weimer <fweimer@redhat.com>
525
526 [BZ #24962]
527 * locale/localeinfo.h (_nl_category_names): Remove union wrapper.
528 (_nl_category_names_get): New function.
529 * intl/dcigettext.c (category_to_name): Call it.
530 * locale/findlocale.c (_nl_find_locale): Likewise.
531 * intl/loadlocale.c (_nl_load_locale): Likewise.
532 * locale/newlocale.c (__newlocale): Likewise.
533 * locale/setlocale.c (_nl_category_names): Adjust definition.
534 (_nl_category_name_idxs): Likewise.
535 (new_composite_name): Call _nl_category_names_get.
536 (setlocale): Likewise.
537
ab41100b
GG
5382019-09-05 Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
539
540 * math/bits/mathcalls.h (totalorder, totalordermag): Replace
541 const attribute with pure attribute.
542
a26918cf
LM
5432019-09-04 Lukasz Majewski <lukma@denx.de>
544
545 * sysdeps/unix/sysv/linux/kernel-features.h
546 (__ASSUME_TIME64_SYSCALLS): New macro.
547
7b5af2d8
ZW
5482019-09-04 Zack Weinberg <zackw@panix.com>
549
550 [BZ #24959]
551 * rt/clock_getcpuclockid.c: Move to time/clock_getcpuclockid.c.
552 * rt/clock_getres.c: Move to time/clock_getres.c.
553 * rt/clock_gettime.c: Move to time/clock_gettime.c.
554 * rt/clock_nanosleep.c: Move to time/clock_nanosleep.c.
555 * rt/clock_settime.c: Move to time/clock_settime.c.
556 * rt/tst-clock.c: Move to time/tst-clock.c.
557 * rt/tst-clock2.c: Move to time/tst-clock2.c.
558 * rt/tst-clock_nanosleep.c: Move to time/tst-clock_nanosleep.c.
559 * rt/tst-cpuclock1.c: Move to time/tst-cpuclock1.c.
560 * rt/clock-compat.c: Delete file.
561
562 * time/clock_getcpuclockid.c
563 * time/clock_getres.c
564 * time/clock_gettime.c
565 * time/clock_nanosleep.c
566 * time/clock_settime.c
567 * sysdeps/posix/clock_getres.c
568 * sysdeps/unix/clock_gettime.c
569 * sysdeps/unix/clock_nanosleep.c
570 * sysdeps/unix/clock_settime.c
571 * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
572 * sysdeps/unix/sysv/linux/clock_getres.c
573 * sysdeps/unix/sysv/linux/clock_gettime.c
574 * sysdeps/unix/sysv/linux/clock_nanosleep.c
575 * sysdeps/unix/sysv/linux/clock_settime.c: Define the function
576 defined by this file with default symbol version GLIBC_2_17,
577 and optionally a compatibility alias at symbol version GLIBC_2_2.
578 * include/time.h: Remove internal prototypes for clock_getres,
579 clock_nanosleep, and clock_getcpuclockid.
580
581 * sysdeps/unix/sysv/linux/clock_gettime.c: Prune includes.
582 Remove unused function realtime_gettime.
583
584 * rt/Makefile (clock-routines, routines): Remove variable.
585 (librt-routines): Remove clock-compat.
586 (tests): Remove tst-clock, tst-clock2, tst-clock_nanosleep,
587 and tst-cpuclock1.
588 * time/Makefile (routines): Add clock_getres, clock_gettime,
589 clock_settime, clock_getcpuclockid, and clock_nanosleep.
590 (tests): Add tst-clock, tst-clock2, tst-clock_nanosleep,
591 and tst-cpuclock1.
592
593 * rt/Versions (libc): Remove entire stanza.
594 (librt GLIBC_2.2): Remove all clock_* functions.
595 * time/Versions (libc GLIBC_2.2, libc GLIBC_2.17):
596 Add clock_getres, clock_gettime, clock_settime,
597 clock_getcpuclockid, and clock_nanosleep.
598 (libc GLIBC_PRIVATE): Add __clock_gettime.
599
600 * sysdeps/mach/hurd/i386/librt.abilist
601 * sysdeps/unix/sysv/linux/alpha/librt.abilist
602 * sysdeps/unix/sysv/linux/arm/be/librt.abilist
603 * sysdeps/unix/sysv/linux/arm/le/librt.abilist
604 * sysdeps/unix/sysv/linux/hppa/librt.abilist
605 * sysdeps/unix/sysv/linux/i386/librt.abilist
606 * sysdeps/unix/sysv/linux/ia64/librt.abilist
607 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist
608 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist
609 * sysdeps/unix/sysv/linux/microblaze/be/librt.abilist
610 * sysdeps/unix/sysv/linux/microblaze/le/librt.abilist
611 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist
612 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist
613 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist
614 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/librt.abilist
615 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist
616 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist
617 * sysdeps/unix/sysv/linux/sh/librt.abilist
618 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist
619 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist
620 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist
621 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist:
622 Remove entries for clock_getres, clock_gettime, clock_settime,
623 clock_getcpuclockid, and clock_nanosleep.
624
625 * sysdeps/mach/hurd/i386/libc.abilist
626 * sysdeps/unix/sysv/linux/alpha/libc.abilist
627 * sysdeps/unix/sysv/linux/arm/libc.abilist
628 * sysdeps/unix/sysv/linux/hppa/libc.abilist
629 * sysdeps/unix/sysv/linux/i386/libc.abilist
630 * sysdeps/unix/sysv/linux/ia64/libc.abilist
631 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist
632 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist
633 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
634 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
635 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
636 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
637 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
638 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
639 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
640 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist
641 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
642 * sysdeps/unix/sysv/linux/sh/be/libc.abilist
643 * sysdeps/unix/sysv/linux/sh/le/libc.abilist
644 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist
645 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist
646 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist
647 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist:
648 Add another set of entries for clock_getres, clock_gettime,
649 clock_settime, clock_getcpuclockid, and clock_nanosleep at
650 whatever version GLIBC_2.2 maps to.
651
b5367a08
AJ
6522019-09-03 Aurelien Jarno <aurelien@aurel32.net>
653
654 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated using GCC 9.2.
655
1471fa55
FW
6562019-09-03 Florian Weimer <fweimer@redhat.com>
657
658 [BZ #24950]
659 * locale/programs/charmap.h (struct charseq): Turn bytes into a
660 flexible array member.
661 * locale/programs/ld-ctype.c (ctype_finish): Use initializer for
662 replace.
663
9a1e7257
FW
6642019-09-02 Florian Weimer <fweimer@redhat.com>
665
666 * misc/tst-mntent-autofs.c: New file.
667 * misc/Makefile (tests): Add misc/tst-mntent-autofs.
668
08b7e998
IK
6692019-09-02 Ian Kent <ikent@redhat.com>
670
671 Use autofs "ignore" mount hint in getmntent_r/getmntent.
672 * misc/mntent_r.c (get_mnt_entry): New function, extracted from
673 getmntent_r.
674 (__getmntent_r): Call it. Filter out autofs entries with an
675 "ignore" mount option.
676
3c05dd79
WD
6772019-08-30 Wilco Dijkstra <wdijkstr@arm.com>
678
679 * benchtests/bench-memcpy.c (simple_memcpy): Remove.
680 (generic_memcpy): Include generic C memcpy.
681 * benchtests/bench-memmove.c (simple_memmove): Remove.
682 (generic_memmove): Include generic C memmove.
683 * benchtests/bench-memset.c (simple_memset): Remove.
684 (generic_memset): Include generic C memset.
685 * benchtests/bench-memset-large.c (simple_memset): Remove.
686 (generic_memset): Include generic C memset.
687 * benchtests/bench-memset-walk.c (simple_memset): Remove.
688 (generic_memset): Include generic C memset.
689 * string/memcpy.c (MEMCPY): Add defines to enable redirection.
690 * string/memset.c (MEMSET): Likewise.
691 * sysdeps/x86_64/memcopy.h: Remove empty file.
692
9743c627
FW
6932019-08-30 Florian Weimer <fweimer@redhat.com>
694
695 nptl: Move pthread_attr_getinheritsched implementation into libc.
696 * nptl/Makefile (routines): Add pthread_attr_getinheritsched.
697 (libpthread-routines): Remove pthread_attr_getinheritsched.
698 * nptl/Versions (libpthread GLIBC_2.0): Remove
699 pthread_attr_getinheritsched.
700 * nptl/forward.c (pthread_attr_getinheritsched): Remove definition.
701 * nptl/nptl-init.c (pthread_functions): Remove initializer for
702 ptr_pthread_attr_getinheritsched.
703 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
704 Remove ptr_pthread_attr_getinheritsched member.
705 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
706 Remove pthread_attr_getinheritsched.
707 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
708 Likewise.
709 * sysdeps/unix/sysv/linux/arm/be/libpthread.abilist (GLIBC_2.4):
710 Likewise.
711 * sysdeps/unix/sysv/linux/arm/le/libpthread.abilist (GLIBC_2.4):
712 Likewise.
713 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
714 Likewise.
715 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
716 Likewise.
717 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
718 Likewise.
719 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
720 Likewise.
721 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
722 (GLIBC_2.4): Likewise.
723 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
724 (GLIBC_2.0): Likewise.
725 * sysdeps/unix/sysv/linux/microblaze/be/libpthread.abilist
726 (GLIBC_2.18): Likewise.
727 * sysdeps/unix/sysv/linux/microblaze/le/libpthread.abilist
728 (GLIBC_2.18): Likewise.
729 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
730 (GLIBC_2.0): Likewise.
731 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
732 (GLIBC_2.0): Likewise.
733 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
734 Likewise.
735 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
736 (GLIBC_2.0): Likewise.
737 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
738 (GLIBC_2.3): Likewise.
739 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
740 (GLIBC_2.17): Likewise.
741 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
742 (GLIBC_2.27): Likewise.
743 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
744 (GLIBC_2.0): Likewise.
745 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
746 (GLIBC_2.2): Likewise.
747 * sysdeps/unix/sysv/linux/sh/be/libpthread.abilist (GLIBC_2.2):
748 Likewise.
749 * sysdeps/unix/sysv/linux/sh/le/libpthread.abilist (GLIBC_2.2):
750 Likewise.
751 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
752 (GLIBC_2.0): Likewise.
753 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
754 (GLIBC_2.2): Likewise.
755 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
756 (GLIBC_2.2.5): Likewise.
757 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
758 (GLIBC_2.16): Likewise.
759
90f0f97c
ST
7602019-08-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
761
90f0f97c
ST
762 * sysdeps/mach/hurd/getcwd.c
763 (_hurd_canonicalize_directory_name_internal): Do not remove the heading
764 slash if we got an unknown root directory. (__getcwd): Do not fail with
765 EGRATUITOUS if we got an unknown root directory.
d76d187c
ST
766 * hurd/hurdselect.c (SELECT_ERROR): New macro.
767 (_hurd_select):
768 - Add `error' field to `d' structures array.
769 - If a poll descriptor is bogus, set EBADF, but continue with a zero
770 timeout.
771 - Go through the whole fd_set, not only until _hurd_dtablesize. Return
772 EBADF there is any bit set above _hurd_dtablesize.
773 - Do not request io_select on bogus descriptors (SELECT_ERROR).
774 - On io_select request error, record the error.
775 - On io_select bogus reply, use EIO error code.
776 - On io_select bogus or error reply, record the error.
777 - Do not destroy reply port for bogus FDs.
778 - On error, make poll set POLLHUP in the EPIPE case, POLLNVAL in the
779 EBADF case, or else POLLERR.
780 - On error, make select simulated readiness.
90f0f97c 781
c9536b7b
ST
782 [BZ #19903]
783 * sysdeps/mach/hurd/mmap.c (__mmap): Remove optimizing anonymous maps
784 as __vm_allocate.
785
a644a4b2
ST
786 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn2): New function,
787 unlocks SS and returns to the saved PC.
788 (__sigreturn): Do not unlock SS, and "return" into __sigreturn2 on the
789 thread stack instead of the saved PC.
790
90f0f97c 7912019-08-30 Richard Braun <rbraun@sceen.net>
4b068090
RB
792
793 * hurd/hurdselect.c (_hurd_select): Always call __io_select with no
794 timeout.
f0e84494 795 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Fix preemptor setup.
c3010778
RB
796 * hurd/Makefile (user-interfaces): Add io_reply and io_request.
797 * hurd/hurdselect.c: Include <sys/time.h>, <hurd/io_request.h> and
798 <limits.h>.
799 (_hurd_select): Replace the call to __io_select with either
800 __io_select_request or __io_select_timeout_request, depending on the
801 timeout. Count the number of ready descriptors (replies for which at
802 least one type bit is set). Implement the timeout locally when there is
803 no file descriptor.
4b068090 804
23c1c256
MS
8052019-08-29 Mihailo Stojanovic <mihailo.stojanovic@rt-rk.com>
806
807 * elf/dl-addr.c (determine_info): Calculate the symbol index
808 using the newly defined ELF_MACHINE_HASH_SYMIDX macro.
809 * elf/dl-lookup.c (do_lookup_x): Ditto.
810 (_dl_setup_hash): Initialize MIPS xhash translation table.
811 * elf/elf.h (SHT_MIPS_XHASH): New define.
812 (DT_MIPS_XHASH): New define.
813 * sysdeps/generic/ldsodefs.h (ELF_MACHINE_GNU_HASH_ADDRIDX): New
814 define.
815 (ELF_MACHINE_HASH_SYMIDX): Ditto.
816 (ELF_MACHINE_XHASH_SETUP): Ditto.
817 * sysdeps/mips/ldsodefs.h (ELF_MACHINE_GNU_HASH_ADDRIDX): New
818 define.
819 (ELF_MACHINE_HASH_SYMIDX): Ditto.
820 (ELF_MACHINE_XHASH_SETUP): Ditto.
821 * sysdeps/mips/linkmap.h (struct link_map_machine): New member.
822 * sysdeps/unix/sysv/linux/mips/ldsodefs.h: Increment valid ABI
823 version.
824 * sysdeps/unix/sysv/linux/mips/libc-abis: New ABI version.
825
1673ba87
AZ
8262019-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
827
605f3817
AZ
828 * sysdeps/sh/preconfigure.ac: New file.
829 * sysdeps/sh/preconfigure: Regenerate.
830 * sysdeps/sh/be/sh3/Implies: New file.
831 * sysdeps/sh/be/sh4/Implies: Likewise.
832 * sysdeps/sh/le/sh3/Implies: Likewise.
833 * sysdeps/sh/le/sh4/Implies: Likewise.
834 * sysdeps/unix/sysv/linux/sh/le/sh3/Implies: Likewise.
835 * sysdeps/unix/sysv/linux/sh/le/sh4/Implies: Likewise.
836 * sysdeps/unix/sysv/linux/sh/*.abilist: Move to
837 sysdeps/unix/sysv/linux/sh/le/*.abilist.
838 * sysdeps/unix/sysv/linux/sh/be/*.abilist: New files.
839
c7fca8d4
AZ
840 * sysdeps/microblaze/preconfigure.ac: New file.
841 * sysdeps/microblaze/preconfigure: Regenerate.
842 * sysdeps/microblaze/be/implies: New file.
843 * sysdeps/microblaze/le/implies: Likewise.
844 * sysdeps/unix/sysv/linux/microblaze/be/implies: Likewise.
845 * sysdeps/unix/sysv/linux/microblaze/le/implies: Likewise.
846 * sysdeps/unix/sysv/linux/microblaze/*.abilist. Move to
847 sysdeps/unix/sysv/linux/microblaze/be/*.abilist.
848 * sysdeps/unix/sysv/linux/microblaze/le/*.abilist: New files.
849
1673ba87
AZ
850 * sysdeps/arm/preconfigure.ac: Set machine based on endianness.
851 * sysdeps/arm/preconfigure: Regenerate.
852 * sysdeps/arm/be/Implies: New file.
853 * sysdeps/arm/be/armv6/Implies: Likewise.
854 * sysdeps/arm/be/armv6t2/Implies: Likewise.
855 * sysdeps/arm/be/armv7/Implies: Likewise.
856 * sysdeps/arm/le/Implies: Likewise.
857 * sysdeps/unix/sysv/linux/arm/be/Implies: Likewise.
858 * sysdeps/unix/sysv/linux/arm/le/Implies: Likewise.
859 * sysdeps/unix/sysv/linux/arm/*.abilist: Move to
860 sysdeps/unix/sysv/linux/arm/le/*.abilist.
861 * sysdeps/unix/sysv/linux/arm/be/l*.abilist: New files.
862
a22a582e
PE
8632019-08-27 Paul Eggert <eggert@cs.ucla.edu>
864
865 Fix posix/tst-regex by using UTF-8 and own test input
866 Problem reported by Stefan Liebler in:
867 https://sourceware.org/ml/libc-alpha/2019-08/msg00658.html
868 * posix/tst-regex.c: Convert this file from Latin-1 to UTF-8.
869 (do_test, test_expr): Adjust to the fact that this source file,
870 and the test data in ChangeLog.8, is now UTF-8 instead of Latin-1.
871 * posix/tst-regex.input: Copy from ChangeLog.old/ChangeLog.8,
872 so that it is now UTF-8.
873
0b3c9e57 8742019-08-28 Paul A. Clarke <pc@us.ibm.com>
3f02b772 875
0b3c9e57
PC
876 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_status_ISA300): Delete.
877 (fegetenv_status): Generate 'mffsl' unconditionally.
878
fec2bd2c 8792019-08-28 Paul A. Clarke <pc@us.ibm.com>
3f02b772 880
fec2bd2c
PC
881 * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Utilize lightweight
882 FPSCR read.
883 (_FPU_MASK_ALL): Delete.
884
e9052126 8852019-08-28 Paul A. Clarke <pc@us.ibm.com>
3f02b772 886
e9052126
PC
887 * sysdeps/powerpc/fpu/fenv_private.h (libc_feholdsetround_ppc_ctx):
888 Utilize lightweight FPSCR read if possible, set fewer FPSCR bits
889 if possible.
890 (libc_feresetround_ppc): Replace call to __libc_femergeenv_ppc
891 with simpler required steps, set fewer FPSCR bits if possible.
892
3c1766ea 8932019-08-28 Paul A. Clarke <pc@us.ibm.com>
3f02b772 894
3c1766ea
PC
895 * sysdeps/powerpc/fpu/fenv_libc.h (fesetenv_mode): New.
896 (FPSCR_FPRF_MASK): New. (FPSCR_STATUS_MASK): New.
897 * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use lighter-
898 weight access to FPSCR; remove unnecessary second FPSCR read and
899 validate.
900 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
901 * sysdeps/powerpc/fpu/fesetmode.c (fesetmode): Use lighter-weight
902 access to FPSCR; Use macros in fenv_libc.h in favor of local.
903
cd7ce12a 9042019-08-28 Paul A. Clarke <pc@us.ibm.com>
3f02b772 905
cd7ce12a
PC
906 * sysdeps/powerpc/fpu/fenv_libc.h: Define FPSCR bitmasks.
907 (fenv_reg_to_exceptions): Replace bitwise operations with mask-shift.
908 (fenv_exceptions_to_reg): New.
909 * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Replace bitwise
910 operation with call to fenv_exceptions_to_reg().
911 * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
912
35ffd20d
FW
9132019-08-28 Florian Weimer <fweimer@redhat.com>
914
915 * misc/mntent.c (struct mntent_buffer): Define.
916 (mntent_buffer): Adjust type to void *.
917 (allocate): Adjust for allocate_once.
918 (deallocate): New function.
919 (getmntent): Call allocate_once.
920
ffced383
FW
9212019-08-28 Florian Weimer <fweimer@redhat.com>
922
923 nptl: Move pthread_attr_setdetachstate implementation into libc.
924 * nptl/Makefile (routines): Add pthread_attr_setdetachstate.
925 (libpthread-routines): Remove pthread_attr_setdetachstate.
926 * nptl/Versions (libpthread GLIBC_2.0): Remove
927 pthread_attr_setdetachstate.
928 * nptl/forward.c (pthread_attr_setdetachstate): Remove definition.
929 * nptl/nptl-init.c (pthread_functions): Remove initializer for
930 ptr_pthread_attr_setdetachstate.
931 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
932 Remove ptr_pthread_attr_setdetachstate member.
933 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
934 Remove pthread_attr_setdetachstate.
935 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
936 Likewise.
937 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
938 Likewise.
939 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
940 Likewise.
941 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
942 Likewise.
943 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
944 Likewise.
945 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
946 Likewise.
947 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
948 (GLIBC_2.4): Likewise.
949 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
950 (GLIBC_2.0): Likewise.
951 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
952 (GLIBC_2.18): Likewise.
953 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
954 (GLIBC_2.0): Likewise.
955 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
956 (GLIBC_2.0): Likewise.
957 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
958 Likewise.
959 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
960 (GLIBC_2.0): Likewise.
961 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
962 (GLIBC_2.3): Likewise.
963 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
964 (GLIBC_2.17): Likewise.
965 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
966 (GLIBC_2.27): Likewise.
967 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
968 (GLIBC_2.0): Likewise.
969 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
970 (GLIBC_2.2): Likewise.
971 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
972 Likewise.
973 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
974 (GLIBC_2.0): Likewise.
975 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
976 (GLIBC_2.2): Likewise.
977 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
978 (GLIBC_2.2.5): Likewise.
979 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
980 (GLIBC_2.16): Likewise.
981
61d3db42
FW
9822019-08-28 Florian Weimer <fweimer@redhat.com>
983
984 [BZ #24902]
985 * login/Makefile (tests): Add tst-pututxline-lockfail.
986 (tst-pututxline-lockfail): Link with -lpthread.
987 * login/utmp_file.c (internal_getut_r): Remove buffer argument.
988 (__libc_getutid_r): Adjust.
989 (__libc_pututline): Likewise. Check for file_offset == -1.
990 * login/tst-pututxline-lockfail.c: New file.
991
3a9d025f
SL
9922019-08-28 Stefan Liebler <stli@linux.ibm.com>
993
994 * posix/tst-regex.c (do_test): Use tst-regex.input as input file.
995 * posix/tst-regex.input: New file.
996
edd8d70b
MS
9972019-08-23 Mihailo Stojanovic <mihailo.stojanovic@rt-rk.com>
998
999 [BZ #24916]
1000 * sysdeps/mips/Makefile [$(subdir) = elf] (tests): Add
1001 tst-undefined-weak.
1002 [$(subdir) = elf] (modules-names): Add tst-undefined-weak-lib.
1003 [$(subdir) = elf] ($(objpfx)tst-undefined-weak): Add dependency.
1004 * sysdeps/mips/tst-undefined-weak-lib.S: New file.
1005 * sysdeps/mips/tst-undefined-weak.c: Likewise.
1006 * sysdeps/unix/sysv/linux/mips/ldsodefs.h (VALID_ELF_ABIVERSION):
1007 Increment highest valid ABIVERSION value.
1008
33bc9efd
DM
10092019-08-23 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
1010
1011 * sysdeps/unix/sysv/linux/mips/Makefile
1012 (test-xfail-check-execstack):
1013 Move under mips-has-gnustack != yes.
1014 (CFLAGS-.o*, ASFLAGS-.o*): New rules.
1015 Apply -Wa,-execstack if mips-force-execstack == yes.
1016 * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
1017 * sysdeps/unix/sysv/linux/mips/configure.ac
1018 (mips-force-execstack): New var.
1019 Set to yes for hard-float builds with minimum_kernel < 4.8.0
1020 or minimum_kernel not set at all.
1021 (mips-has-gnustack): New var.
1022 Use value of libc_cv_as_noexecstack
1023 if mips-force-execstack != yes, otherwise set to no.
1024
a43565ac
AZ
10252019-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1026 Florian Weimer <fweimer@redhat.com>
1027
08d57105
AZ
1028 * gmon/Versions (libc) [GLIBC_2.31]: New entry.
1029 * sysdeps/unix/sysv/linux/arm/profil-counter.h (profil_counter):
1030 Make a compat_symbol.
1031 * sysdeps/unix/sysv/linux/sparc/profil-counter.h
1032 (__profil_counter_global): Likewise.
1033
a43565ac
AZ
1034 * debug/segfault.c (install_handler): Use SA_SIGINFO if defined.
1035 * sysdeps/generic/profil-counter.h (__profil_counter): Cast to
1036 uintptr_t.
1037 * sysdeps/generic/sigcontextinfo.h (GET_PC): Rename to
1038 sigcontext_get_pc and return aligned cast to uintptr_t.
1039 * sysdeps/mach/hurd/i386/sigcontextinfo.h (GET_PC): Likewise.
1040 * sysdeps/posix/profil.c (profil_count): Change PC argument to
1041 uintptr_t.
1042 (__profil): Use SA_SIGINFO.
1043 * sysdeps/posix/sprofil.c (profil_count): Change PCP argument to
1044 uintptr_t.
1045 (__sprofil): Use SA_SIGINFO.
1046 * sysdeps/unix/sysv/linux/profil-counter.h: New file.
1047 * sysdeps/unix/sysv/linux/aarch64/profil-counter.h: Remove file.
1048 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
1049 * sysdeps/unix/sysv/linux/hppa/profil-counter.h: Likewise.
1050 * sysdeps/unix/sysv/linux/i386/profil-counter.h: Likewise.
1051 * sysdeps/unix/sysv/linux/ia64/profil-counter.h: Likewise.
1052 * sysdeps/unix/sysv/linux/microblaze/profil-counter.h: Likewise.
1053 * sysdeps/unix/sysv/linux/mips/profil-counter.h: Likewise.
1054 * sysdeps/unix/sysv/linux/nios2/profil-counter.h: Likewise.
1055 * sysdeps/unix/sysv/linux/powerpc/profil-counter.h: Likewise.
1056 * sysdeps/unix/sysv/linux/x86_64/profil-counter.h: Likewise.
1057 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
1058 * sysdeps/sysv/linux/s390/s390-32/profil-counter.h: Likewise.
1059 * sysdeps/sysv/linux/s390/s390-64/profil-counter.h: Likewise.
1060 * sysdeps/unix/sysv/linux/sh/profil-counter.h: Likewise.
1061 * sysdeps/unix/sysv/linux/arm/profil-counter.h (__profil_counter):
1062 Assume SA_SIGINFO and use sigcontext_get_pc instead of GET_PC.
1063 * sysdeps/unix/sysv/linux/sparc/profil-counter.h: New file.
1064 * sysdeps/unix/sysv/linux/sparc/sparc64/profil-counter.h: Remove file.
1065 * sysdeps/unix/sysv/linux/sparc/sparc32/profil-counter.h: Likewise.
1066 * sysdpes/unix/sysv/linux/aarch64/sigcontextinfo.h (SIGCONTEXT,
1067 GET_PC, __sigaction, sigaction): Remove defines.
1068 (sigcontext_get_pc): New function.
1069 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h: Likewise.
1070 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Likewise.
1071 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
1072 * sysdeps/unix/sysv/linux/hppa/sigcontextinfo.h: Likewise.
1073 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h: Likewise.
1074 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h: Likewise.
1075 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h: Likewise.
1076 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h: Likewise.
1077 * sysdeps/unix/sysv/linux/nios2/sigcontextinfo.h: Likewise.
1078 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h: Likewise.
1079 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h: Likewise.
1080 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h: Likewise.
1081 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
1082 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h: Likewise.
1083 * sysdeps/sysv/linux/sparc/sparc32/sigcontextinfo.h: Likewise.
1084 * sysdeps/sysv/linux/sparc/sparc64/sigcontextinfo.h: Likewise.
1085 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Likewise.
1086 * sysdeps/unix/sysv/linux/alpha/register-dump.h (register_dump):
1087 Handle CTX argument as ucontext_t.
1088 * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
1089 Likewise.
1090 * sysdeps/unix/sysv/linux/m68k/register-dump.h: Likewise.
1091 * sysdeps/sysv/linux/s390/s390-32/register-dump.h: Likewise.
1092 * sysdeps/sysv/linux/s390/s390-64/register-dump.h: Likewise.
1093 * sysdeps/unix/sysv/linux/sh/register-dump.h: New file.
1094 * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Remove File.
1095 * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
1096 * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
1097 * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
1098 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
1099 tst-sigcontextinfo-get_pc.
1100 * sysdeps/unix/sysv/linux/tst-sigcontextinfo-get_pc.c: New file.
1101 (CFLAGS-tst-sigcontextinfo-get_pc.c): New rule.
1102
624c109b
AZ
11032019-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1104
1105 * sysdeps/generic/single-thread.h (RTLD_SINGLE_THREAD_P): Add
1106 definition.
1107
ab74d59f 11082019-08-23 Rafał Lużyński <digitalfreak@lingonborough.com>
c0fd3244
RL
1109
1110 [BZ #24682]
1111 * localedata/locales/bo_CN (first_weekday): Add, set to 2 (Monday).
1112 * localedata/locales/ug_CN (first_weekday): Likewise.
1113 * localedata/locales/zh_CN (first_weekday): Likewise.
1114
c8c8160c
GR
11152019-08-22 Gustavo Romero <gromero@linux.vnet.ibm.com>
1116
1117 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Fix typos and
1118 field name in mcontext_t struct.
1119
c737ef0d
JM
11202019-08-22 Joseph Myers <joseph@codesourcery.com>
1121
42f527c8
JM
1122 * resolv/tst-resolv-ai_idn-latin1.c (do_test): Mark test
1123 unsupported with libidn2 before 2.0.5.
1124 * resolv/tst-resolv-ai_idn.c (do_test): Likewise.
1125
c737ef0d
JM
1126 * manual/time.texi (strftime): Document %Ob and %OB as C2X
1127 features.
1128
8a80ee5e
PE
11292019-08-21 Paul Eggert <eggert@cs.ucla.edu>
1130
f615e3fc
PE
1131 Remove dead regex code
1132 * posix/regex_internal.c (re_node_set_insert):
1133 Remove unnecessary assignment. Reported by Tim Rühsen in:
1134 https://lists.gnu.org/r/bug-gnulib/2019-08/msg00026.html
1135
8a80ee5e
PE
1136 Fix bad pointer / leak in regex code
1137 This was found by Coverity (CID 1484201). [BZ#24844]
1138 * posix/regex_internal.c (create_cd_newstate): Fix use of bad
1139 pointer and/or memory leak when storage is exhausted.
1140
1baae4aa
ZW
11412019-08-21 Zack Weinberg <zackw@panix.com>
1142
1143 * misc/syslog.c (__vsyslog_internal)
1144 * time/getdate.c (__getdate_r)
1145 * time/tst_wcsftime.c (main):
1146 Use return value of time, not its argument.
1147
1148 * string/strfry.c (strfry)
1149 * sysdeps/mach/sleep.c (__sleep):
1150 Remove unnecessary casts of NULL in calls to time.
1151
f9fabc1b
JM
11522019-08-21 Joseph Myers <joseph@codesourcery.com>
1153
1154 * math/tgmath.h [__HAVE_FLOAT128X]: Give error.
1155 [(__HAVE_FLOAT64X && !__HAVE_FLOAT128)
1156 || (__HAVE_FLOAT128 && !__HAVE_FLOAT64X)]: Likewise.
1157 (__TGMATH_2_NARROW_F): Likewise.
1158 (__TGMATH_2_NARROW_D): New macro.
1159 (__TGMATH_2_NARROW_F16): Likewise.
1160 (__TGMATH_2_NARROW_F32): Likewise.
1161 (__TGMATH_2_NARROW_F64): Likewise.
1162 (__TGMATH_2_NARROW_F32X): Likewise.
1163 (__TGMATH_2_NARROW_F64X): Likewise.
1164 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F): Likewise.
1165 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F16): Likewise.
1166 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F32): Likewise.
1167 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F64): Likewise.
1168 [__HAVE_BUILTIN_TGMATH] (__TGMATH_NARROW_FUNCS_F32X): Likewise.
1169 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (fadd): Likewise.
1170 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (dadd): Likewise.
1171 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (fdiv): Likewise.
1172 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (ddiv): Likewise.
1173 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (fmul): Likewise.
1174 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (dmul): Likewise.
1175 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (fsub): Likewise.
1176 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)] (dsub): Likewise.
1177 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT16] (f16add):
1178 Likewise.
1179 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT16] (f16div):
1180 Likewise.
1181 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT16] (f16mul):
1182 Likewise.
1183 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT16] (f16sub):
1184 Likewise.
1185 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32] (f32add):
1186 Likewise.
1187 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32] (f32div):
1188 Likewise.
1189 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32] (f32mul):
1190 Likewise.
1191 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32] (f32sub):
1192 Likewise.
1193 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64
1194 && (__HAVE_FLOAT64X || __HAVE_FLOAT128)] (f64add): Likewise.
1195 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64
1196 && (__HAVE_FLOAT64X || __HAVE_FLOAT128)] (f64div): Likewise.
1197 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64
1198 && (__HAVE_FLOAT64X || __HAVE_FLOAT128)] (f64mul): Likewise.
1199 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64
1200 && (__HAVE_FLOAT64X || __HAVE_FLOAT128)] (f64sub): Likewise.
1201 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32X] (f32xadd):
1202 Likewise.
1203 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32X] (f32xdiv):
1204 Likewise.
1205 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32X] (f32xmul):
1206 Likewise.
1207 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT32X] (f32xsub):
1208 Likewise.
1209 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64X
1210 && (__HAVE_FLOAT128X || __HAVE_FLOAT128)] (f64xadd): Likewise.
1211 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64X
1212 && (__HAVE_FLOAT128X || __HAVE_FLOAT128)] (f64xdiv): Likewise.
1213 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64X
1214 && (__HAVE_FLOAT128X || __HAVE_FLOAT128)] (f64xmul): Likewise.
1215 [__GLIBC_USE (IEC_60559_TYPES_EXT) && __HAVE_FLOAT64X
1216 && (__HAVE_FLOAT128X || __HAVE_FLOAT128)] (f64xsub): Likewise.
1217 * math/gen-tgmath-tests.py (Type): Add members
1218 non_standard_real_argument_types_list, long_double_type,
1219 complex_float64_type and float32x_ext_type.
1220 (Type.__init__): Set the new members.
1221 (Type.floating_type): Add new argument floatn.
1222 (Type.real_floating_type): Likewise.
1223 (Type.can_combine_types): Likewise.
1224 (Type.combine_types): Likewise.
1225 (Type.init_types): Create internal Float32x_ext type.
1226 (Tests.__init__): Define Float32x_ext in generated C code.
1227 (Tests.add_tests): Handle narrowing functions.
1228 (Tests.add_all_tests): Likewise.
1229 (Tests.tests_text): Allow variation in mant_dig for narrowing
1230 functions with compilers before GCC 8.
1231 * math/Makefile (tgmath3-narrow-types): New variable.
1232 (tgmath3-narrow-macros): Likewise.
1233 (tgmath3-macros): Add $(tgmath3-narrow-macros).
1234
b7297184
AS
12352019-08-20 Andreas Schwab <schwab@suse.de>
1236
1237 * sysdeps/i386/fpu/libm-test-ulps: Update.
1238
d34d4c80
CD
12392019-08-19 Carlos O'Donell <carlos@redhat.com>
1240
1241 * nscd/nscd.conf: Add warning and comment about shared option.
1242
4b7c7417
CD
12432019-08-19 Carlos O'Donell <carlos@redhat.com>
1244
1245 * nss/nsswitch.conf: Expand comments, and simplify defaults.
1246 * manual/nss.texi (NSS Basics): List all known databases.
1247 (Services in the NSS configuration): Mention automount.
1248
a289ea09
FW
12492019-08-19 Florian Weimer <fweimer@redhat.com>
1250
1251 Do not print backtraces on fatal errors.
1252 * debug/fortify_fail.c (__libc_argv): Remove declaration.
1253 (__fortify_fail_abort): Remove definition.
1254 (__fortify_fail): Call __libc_message directly.
1255 * debug/stack_chk_fail.c (__libc_argv): Remove declaration.
1256 (__stack_chk_fail): Call __fortify_fail instead of
1257 __fortify_fail_abort.
1258 * include/stdio.h (__fortify_fail_abort): Remove declaration.
1259 * sysdeps/posix/libc_fatal.c (BEFORE_ABORT, before_abort): Remove
1260 definitions.
1261 (__libc_message): Do not handle do_backtrace. Do not call
1262 BEFORE_ABORT.
1263 (__libc_fatal): Do not pass do_backtrace to __libc_message.
1264 * sysdeps/unix/sysv/linux/libc_fatal.c (BEFORE_ABORT)
1265 (before_abort): Remove definitions.
1266
1d714fd9
FW
12672019-08-16 Florian Weimer <fweimer@redhat.com>
1268
1269 nptl: Move pthread_attr_getdetachstate implementation into libc.
1270 * nptl/Makefile (routines): Add pthread_attr_getdetachstate.
1271 (libpthread-routines): Remove pthread_attr_getdetachstate.
1272 * nptl/Versions (libpthread GLIBC_2.0): Remove
1273 pthread_attr_getdetachstate.
1274 * nptl/forward.c (pthread_attr_getdetachstate): Remove definition.
1275 * nptl/nptl-init.c (pthread_functions): Remove initializer for
1276 ptr_pthread_attr_getdetachstate.
1277 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
1278 Remove ptr_pthread_attr_getdetachstate member.
1279 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
1280 Remove pthread_attr_getdetachstate.
1281 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
1282 Likewise.
1283 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
1284 Likewise.
1285 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
1286 Likewise.
1287 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
1288 Likewise.
1289 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
1290 Likewise.
1291 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
1292 Likewise.
1293 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1294 (GLIBC_2.4): Likewise.
1295 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1296 (GLIBC_2.0): Likewise.
1297 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1298 (GLIBC_2.18): Likewise.
1299 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1300 (GLIBC_2.0): Likewise.
1301 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1302 (GLIBC_2.0): Likewise.
1303 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
1304 Likewise.
1305 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1306 (GLIBC_2.0): Likewise.
1307 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1308 (GLIBC_2.3): Likewise.
1309 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1310 (GLIBC_2.17): Likewise.
1311 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
1312 (GLIBC_2.27): Likewise.
1313 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1314 (GLIBC_2.0): Likewise.
1315 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1316 (GLIBC_2.2): Likewise.
1317 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
1318 Likewise.
1319 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1320 (GLIBC_2.0): Likewise.
1321 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1322 (GLIBC_2.2): Likewise.
1323 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1324 (GLIBC_2.2.5): Likewise.
1325 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1326 (GLIBC_2.16): Likewise.
1327
4745f4c1
JM
13282019-08-16 Joseph Myers <joseph@codesourcery.com>
1329
1330 * math/libm-test-compat_totalorder.inc (do_test)
1331 [TEST_COMPAT (libm, GLIBC_2_25, GLIBC_2_31)]: Change condition to
1332 [TEST_COMPAT (libm, COMPAT_VER, GLIBC_2_31)].
1333 * math/libm-test-compat_totalordermag.inc (do_test)
1334 [TEST_COMPAT (libm, GLIBC_2_25, GLIBC_2_31)]: Likewise.
1335
a635d756
FW
13362019-08-15 Florian Weimer <fweimer@redhat.com>
1337
1338 nptl: Move pthread_attr_init implementation into libc.
1339 * nptl/Makefile (routines): Add pthread_attr_init.
1340 (libpthread-routines): Remove pthread_attr_init.
1341 * nptl/Versions (libpthread GLIBC_2.0): Remove pthread_attr_init.
1342 (libpthread GLIBC_2.0): Likewise.
1343 * nptl/pthread_attr_init.c: Check for libc compat version instead
1344 of libpthread compat version.
1345 * nptl/forward.c (__pthread_attr_init_2_0)
1346 (__pthread_attr_init_2_1): Remove definitions.
1347 * nptl/nptl-init.c (pthread_functions): Remove initializers for
1348 ptr___pthread_attr_init_2_0, ptr___pthread_attr_init_2_1.
1349 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
1350 Remove members ptr___pthread_attr_init_2_0,
1351 ptr___pthread_attr_init_2_1.
1352 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
1353 Remove pthread_attr_init.
1354 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
1355 Likewise.
1356 (GLIBC_2.1): Likewise.
1357 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
1358 Likewise.
1359 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
1360 Likewise.
1361 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
1362 Likewise.
1363 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
1364 Likewise.
1365 (GLIBC_2.1): Likewise.
1366 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
1367 Likewise.
1368 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1369 (GLIBC_2.4): Likewise.
1370 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1371 (GLIBC_2.0): Likewise.
1372 (GLIBC_2.1): Likewise.
1373 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1374 (GLIBC_2.18): Likewise.
1375 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1376 (GLIBC_2.0): Likewise.
1377 (GLIBC_2.1): Likewise.
1378 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1379 (GLIBC_2.0): Likewise.
1380 (GLIBC_2.1): Likewise.
1381 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
1382 Likewise.
1383 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1384 (GLIBC_2.0): Likewise.
1385 (GLIBC_2.1): Likewise.
1386 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1387 (GLIBC_2.3): Likewise.
1388 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1389 (GLIBC_2.17): Likewise.
1390 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
1391 (GLIBC_2.27): Likewise.
1392 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1393 (GLIBC_2.0): Likewise.
1394 (GLIBC_2.1): Likewise.
1395 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1396 (GLIBC_2.2): Likewise.
1397 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
1398 Likewise.
1399 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1400 (GLIBC_2.0): Likewise.
1401 (GLIBC_2.1): Likewise.
1402 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1403 (GLIBC_2.2): Likewise.
1404 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1405 (GLIBC_2.2.5): Likewise.
1406 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1407 (GLIBC_2.16): Likewise.
1408
23d2e5fa
FW
14092019-08-15 Florian Weimer <fweimer@redhat.com>
1410
1411 [BZ #24900]
1412 * elf/dl-object.c (_dl_new_object): Do not store pathnames in the
1413 new object in __RTLD_OPENEXEC mode (except for the origin).
1414 * elf/tst-dlopen-aout.c (check_dlopen_failure): New function with
1415 check for the error message.
1416 (do_test): Call it. Add check using relative path.
1417 * elf/Makefile (tests-container): Add tst-dlopen-aout-container.
1418 (tst-dlopen-aout-container): Link with libpthread.
1419 (LDFLAGS-tst-dlopen-aout-container): Set RPATH to $ORIGIN.
1420
42760d76
JM
14212019-08-15 Joseph Myers <joseph@codesourcery.com>
1422
1423 * math/bits/mathcalls.h
1424 [__GLIBC_USE (IEC_60559_BFP_EXT) || __MATH_DECLARING_FLOATN]
1425 (totalorder): Take pointer arguments.
1426 [__GLIBC_USE (IEC_60559_BFP_EXT) || __MATH_DECLARING_FLOATN]
1427 (totalordermag): Likewise.
1428 * manual/arith.texi (totalorder): Likewise.
1429 (totalorderf): Likewise.
1430 (totalorderl): Likewise.
1431 (totalorderfN): Likewise.
1432 (totalorderfNx): Likewise.
1433 (totalordermag): Likewise.
1434 (totalordermagf): Likewise.
1435 (totalordermagl): Likewise.
1436 (totalordermagfN): Likewise.
1437 (totalordermagfNx): Likewise.
1438 * math/tgmath.h (__TGMATH_BINARY_REAL_RET_ONLY): Remove macro.
1439 [__GLIBC_USE (IEC_60559_BFP_EXT)] (totalorder): Likewise.
1440 [__GLIBC_USE (IEC_60559_BFP_EXT)] (totalordermag): Likewise.
1441 * math/Versions (GLIBC_2.31): Add totalorder, totalorderf,
1442 totalorderl, totalordermag, totalordermagf, totalordermagl,
1443 totalorderf32, totalorderf64, totalorderf32x, totalordermagf32,
1444 totalordermagf64, totalordermagf32x, totalorderf64x,
1445 totalordermagf64x, totalorderf128 and totalordermagf128.
1446 * math/Makefile (libm-test-funcs-noauto): Add compat_totalorder
1447 and compat_totalordermag.
1448 (libm-test-funcs-compat): New variable.
1449 (libm-tests-compat): Likewise.
1450 (tests): Do not include compat tests.
1451 (tests-internal): Add compat tests.
1452 ($(foreach t,$(libm-tests-base),
1453 $(objpfx)$(t)-compat_totalorder.o)): Depend
1454 on $(objpfx)libm-test-totalorder.c.
1455 ($(foreach t,$(libm-tests-base),
1456 $(objpfx)$(t)-compat_totalordermag.o): Depend on
1457 $(objpfx)libm-test-totalordermag.c.
1458 (tgmath3-macros): Remove totalorder and totalordermag.
1459 * math/libm-test-compat_totalorder.inc: New file.
1460 * math/libm-test-compat_totalordermag.inc: Likewise.
1461 * math/libm-test-driver.c (struct test_ff_i_data): Update comment.
1462 (RUN_TEST_fpfp_b): New macro.
1463 (RUN_TEST_LOOP_fpfp_b): Likewise.
1464 * math/libm-test-totalorder.inc (totalorder_test_data): Use
1465 TEST_fpfp_b.
1466 (totalorder_test): Condition on [!COMPAT_TEST].
1467 (do_test): Likewise.
1468 * math/libm-test-totalordermag.inc (totalordermag_test_data): Use
1469 TEST_fpfp_b.
1470 (totalordermag_test): Condition on [!COMPAT_TEST].
1471 (do_test): Likewise.
1472 * math/gen-tgmath-tests.py (Tests.add_all_tests): Remove
1473 totalorder and totalordermag.
1474 * math/test-tgmath.c (NCALLS): Change to 132.
1475 (F(compile_test)): Do not call totalorder or totalordermag.
1476 (F(totalorder)): Remove.
1477 (F(totalordermag)): Likewise.
1478 * include/float.h (__STDC_WANT_IEC_60559_TYPES_EXT__): Do not
1479 define if [__STDC_WANT_IEC_60559_TYPES_EXT__].
1480 * include/setjmp.h [!_ISOMAC] (STR_HELPER): Rename to
1481 SJSTR_HELPER.
1482 [!_ISOMAC] (STR): Rename to SJSTR. Update call to STR_HELPER.
1483 [!_ISOMAC] (TEST_SIZE): Update call to STR.
1484 [!_ISOMAC] (TEST_ALIGN): Likewise.
1485 [!_ISOMAC] (TEST_OFFSET): Likewise.
1486 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include <shlib-compat.h>
1487 and <first-versions.h>.
1488 (__totalorder): Take pointer arguments. Add symbol versions and
1489 compat symbols.
1490 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
1491 <shlib-compat.h> and <first-versions.h>.
1492 (__totalordermag): Take pointer arguments. Add symbol versions
1493 and compat symbols.
1494 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
1495 <shlib-compat.h> and <first-versions.h>.
1496 (__totalorder): Take pointer arguments. Add symbol versions and
1497 compat symbols.
1498 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
1499 <shlib-compat.h> and <first-versions.h>.
1500 (__totalordermag): Take pointer arguments. Add symbol versions
1501 and compat symbols.
1502 * sysdeps/ieee754/float128/float128_private.h
1503 (__totalorder_compatl): New macro.
1504 (__totalordermag_compatl): Likewise.
1505 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include <shlib-compat.h>
1506 and <first-versions.h>.
1507 (__totalorderf): Take pointer arguments. Add symbol versions and
1508 compat symbols.
1509 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
1510 <shlib-compat.h> and <first-versions.h>.
1511 (__totalordermagf): Take pointer arguments. Add symbol versions
1512 and compat symbols.
1513 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
1514 <shlib-compat.h> and <first-versions.h>.
1515 (__totalorderl): Take pointer arguments. Add symbol versions and
1516 compat symbols.
1517 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
1518 <shlib-compat.h> and <first-versions.h>.
1519 (__totalordermagl): Take pointer arguments. Add symbol versions
1520 and compat symbols.
1521 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c: Include
1522 <shlib-compat.h>.
1523 (__totalorderl): Take pointer arguments. Add symbol versions and
1524 compat symbols.
1525 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c: Include
1526 <shlib-compat.h>.
1527 (__totalordermagl): Take pointer arguments. Add symbol versions
1528 and compat symbols.
1529 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
1530 <shlib-compat.h> and <first-versions.h>.
1531 (__totalorderl): Take pointer arguments. Add symbol versions and
1532 compat symbols.
1533 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
1534 <shlib-compat.h> and <first-versions.h>.
1535 (__totalordermagl): Take pointer arguments. Add symbol versions
1536 and compat symbols.
1537 * sysdeps/ieee754/ldbl-opt/nldbl-totalorder.c (totalorderl): Take
1538 pointer arguments.
1539 * sysdeps/ieee754/ldbl-opt/nldbl-totalordermag.c (totalordermagl):
1540 Likewise.
1541 * sysdeps/ieee754/ldbl-128ibm/test-totalorderl-ldbl-128ibm.c
1542 (do_test): Update calls to totalorderl and totalordermagl.
1543 * sysdeps/ieee754/ldbl-96/test-totalorderl-ldbl-96.c (do_test):
1544 Update calls to totalorderl and totalordermagl.
1545 * sysdeps/mach/hurd/i386/libm.abilist: Update.
1546 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
1547 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
1548 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
1549 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
1550 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
1551 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
1552 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
1553 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
1554 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
1555 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
1556 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
1557 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
1558 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
1559 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
1560 Likewise.
1561 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
1562 Likewise.
1563 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libm.abilist:
1564 Likewise.
1565 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libm.abilist:
1566 Likewise.
1567 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
1568 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
1569 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
1570 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
1571 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
1572 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
1573 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
1574 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
1575
c2adefba
FW
15762019-08-15 Florian Weimer <fweimer@redhat.com>
1577
1578 [BZ #24899]
1579 * sysdeps/gnu/bits/utmpx.h (struct utmpx): Add
1580 __attribute_nonstring__ to ut_line, ut_id, ut_user, ut_host.
1581 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h (struct utmpx):
1582 Likewise.
1583 * sysdeps/gnu/bits/utmp.h (struct utmp): Add
1584 __attribute_nonstring__ to ut_id.
1585 * sysdeps/unix/sysv/linux/s390/bits/utmpx.h (struct utmp):
1586 Likewise.
1587
0d5b2917
FW
15882019-08-15 Florian Weimer <fweimer@redhat.com>
1589
1590 [BZ #24880]
1591 * login/utmp_file.c (file_locking_failed): Use struct flock64.
1592 (file_locking_unlock): Likewise.
1593
628598be
FW
15942019-08-15 Florian Weimer <fweimer@redhat.com>
1595
1596 [BZ #24879]
1597 login: Disarm timer after utmp lock acquisition.
1598 * login/utmp_file.c (struct file_locking): Remove.
1599 (try_file_lock): Adjust.
1600 (file_lock_restore): Remove function.
1601 (__libc_getutent_r): .
1602 (internal_getut_r): Likewise.
1603 (__libc_getutline_r): Likewise.
1604 (__libc_pututline): Likewise.
1605 (__libc_updwtmp): Likewise.
1606
17e13474
FW
16072019-08-15 Florian Weimer <fweimer@redhat.com>
1608
1609 nptl: Remove pthread_self compatibility symbol from libpthread.
1610 * nptl/Versions (libpthread GLIBC_2.0): Remove pthread_self,
1611 pthread_equal.
1612 * nptl/Makefile (libpthread-routines): Remove compat-pthread_self.
1613 * nptl/compat-pthread_self.c: Remove file.
1614 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
1615 Remove pthread_self.
1616 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
1617 Likewise.
1618 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
1619 Likewise.
1620 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
1621 Likewise.
1622 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
1623 Likewise.
1624 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
1625 Likewise.
1626 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1627 (GLIBC_2.4): Likewise.
1628 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1629 (GLIBC_2.0): Likewise.
1630 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1631 (GLIBC_2.18): Likewise.
1632 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1633 (GLIBC_2.0): Likewise.
1634 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1635 (GLIBC_2.0): Likewise.
1636 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
1637 Likewise.
1638 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1639 (GLIBC_2.0): Likewise.
1640 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1641 (GLIBC_2.3): Likewise.
1642 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1643 (GLIBC_2.17): Likewise.
1644 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1645 (GLIBC_2.0): Likewise.
1646 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1647 (GLIBC_2.2): Likewise.
1648 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
1649 Likewise.
1650 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1651 (GLIBC_2.0): Likewise.
1652 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1653 (GLIBC_2.2): Likewise.
1654 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1655 (GLIBC_2.2.5): Likewise.
1656 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1657 (GLIBC_2.16): Likewise.
1658
fa57c301
FW
16592019-08-15 Florian Weimer <fweimer@redhat.com>
1660
1661 nptl: Move pthread_attr_destroy implementation into libc.
1662 * nptl/Makefile (routines): Add pthread_attr_destroy.
1663 (libpthread-routines): Remove pthread_attr_destroy.
1664 * nptl/Versions (libpthread GLIBC_2.0): Remove
1665 pthread_attr_destroy.
1666 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Check for
1667 libc compat version instead of libpthread compat version.
1668 * nptl/forward.c (pthread_attr_destroy): Remove definition.
1669 * nptl/nptl-init.c (pthread_functions): Remove initializer for
1670 ptr_pthread_attr_destroy.
1671 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
1672 Remove ptr_pthread_attr_destroy member.
1673 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
1674 Remove pthread_attr_destroy.
1675 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
1676 Likewise.
1677 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
1678 Likewise.
1679 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
1680 Likewise.
1681 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
1682 Likewise.
1683 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
1684 Likewise.
1685 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
1686 Likewise.
1687 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1688 (GLIBC_2.4): Likewise.
1689 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1690 (GLIBC_2.0): Likewise.
1691 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1692 (GLIBC_2.18): Likewise.
1693 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1694 (GLIBC_2.0): Likewise.
1695 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1696 (GLIBC_2.0): Likewise.
1697 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
1698 Likewise.
1699 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1700 (GLIBC_2.0): Likewise.
1701 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1702 (GLIBC_2.3): Likewise.
1703 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1704 (GLIBC_2.17): Likewise.
1705 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
1706 (GLIBC_2.27): Likewise.
1707 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1708 (GLIBC_2.0): Likewise.
1709 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1710 (GLIBC_2.2): Likewise.
1711 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
1712 Likewise.
1713 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1714 (GLIBC_2.0): Likewise.
1715 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1716 (GLIBC_2.2): Likewise.
1717 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1718 (GLIBC_2.2.5): Likewise.
1719 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1720 (GLIBC_2.16): Likewise.
1721
56e09811
AS
17222019-08-15 Andreas Schwab <schwab@suse.de>
1723
1724 * sysdeps/i386/fpu/libm-test-ulps: Update.
1725
f9769a23
FW
17262019-08-15 Florian Weimer <fweimer@redhat.com>
1727
1728 * malloc/Makefile (tests): Only add tst-mxfast for
1729 $(have-tunables).
1730 * malloc/tst-mxfast.c: Fix copyright year.
1731 (do_test): Fix GNU style issues. Use TEST_COMPARE instead of
1732 assert for checks.
1733
341da5b4
FW
17342019-08-15 Florian Weimer <fweimer@redhat.com>
1735
1736 * login/utmp_file.c (__libc_updwtmp): Unlock the right file
1737 descriptor.
1738 * login/Makefile (tests): Add tst-updwtmpx.
1739 * login/tst-updwtmpx.c: New file.
1740
dda373b0
FW
17412019-08-15 Florian Weimer <fweimer@redhat.com>
1742
1743 nptl: Move pthread_equal implementation into libc.
1744 * nptl/Makefile (routines): Add pthread_equal.
1745 * nptl/forward.c (pthread_equal): Remove definition.
1746 * nptl/nptl-init.c (pthread_functions): Remove initializer for
1747 ptr_pthread_equal.
1748 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
1749 Remove ptr_pthread_equal member.
1750 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
1751 Remove pthread_equal.
1752 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
1753 Likewise.
1754 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
1755 Likewise.
1756 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.29):
1757 Likewise.
1758 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
1759 Likewise.
1760 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
1761 Likewise.
1762 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
1763 Likewise.
1764 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
1765 (GLIBC_2.4): Likewise.
1766 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
1767 (GLIBC_2.0): Likewise.
1768 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
1769 (GLIBC_2.18): Likewise.
1770 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
1771 (GLIBC_2.0): Likewise.
1772 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
1773 (GLIBC_2.0): Likewise.
1774 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.21):
1775 Likewise.
1776 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
1777 (GLIBC_2.0): Likewise.
1778 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
1779 (GLIBC_2.3): Likewise.
1780 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
1781 (GLIBC_2.17): Likewise.
1782 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
1783 (GLIBC_2.27): Likewise.
1784 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
1785 (GLIBC_2.0): Likewise.
1786 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
1787 (GLIBC_2.2): Likewise.
1788 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
1789 Likewise.
1790 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
1791 (GLIBC_2.0): Likewise.
1792 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
1793 (GLIBC_2.2): Likewise.
1794 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
1795 (GLIBC_2.2.5): Likewise.
1796 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
1797 (GLIBC_2.16): Likewise.
1798
c54d8649
FW
17992019-08-14 Florian Weimer <fweimer@redhat.com>
1800
1801 * support/support_descriptors.c: Include <support/descriptors.h>.
1802
b68fabfb
FX
18032019-08-14 Feng Xue <fxue@os.amperecomputing.com>
1804
1805 * sysdeps/aarch64/multiarch/memset_base64.S (DC_ZVA_THRESHOLD):
1806 Disable DC ZVA code if this macro is defined as zero.
1807 * sysdeps/aarch64/multiarch/memset_emag.S (DC_ZVA_THRESHOLD):
1808 Change to zero to disable using DC ZVA.
1809
c3ce62cc
JM
18102019-08-13 Joseph Myers <joseph@codesourcery.com>
1811
1812 * bits/libc-header-start.h (__GLIBC_USE_IEC_60559_FUNCS_EXT):
1813 Update comment.
1814 (__GLIBC_USE_IEC_60559_FUNCS_EXT_C2X): New macro.
1815 * bits/math-finite.h [__GLIBC_USE (IEC_60559_FUNCS_EXT)]: Change
1816 to [__GLIBC_USE (IEC_60559_FUNCS_EXT_C2X)].
1817 * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_FUNCS_EXT)]:
1818 Likewise.
1819
5a3afa97
FW
18202019-08-13 Florian Weimer <fweimer@redhat.com>
1821
1822 * login/utmp_file.c (LOCK_FILE, LOCKING_FAILED, UNLOCK_FILE):
1823 Remove macros.
1824 (struct file_locking): New.
1825 (try_file_lock, file_unlock, file_lock_restore): New functions.
1826 (__libc_getutent_r): Use the new functions.
1827 (internal_getut_r): Likewise.
1828 (__libc_getutline_r): Likewise.
1829 (__libc_pututline): Likewise.
1830 (__libc_updwtmp): Likewise.
1831
777d75fb
JM
18322019-08-13 Joseph Myers <joseph@codesourcery.com>
1833
0175c9e9
JM
1834 * bits/libc-header-start.h (__GLIBC_USE_IEC_60559_BFP_EXT): Update
1835 comment.
1836 (__GLIBC_USE_IEC_60559_BFP_EXT_C2X): New macro.
1837 * bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Change to
1838 [__GLIBC_USE (IEC_60559_BFP_EXT_C2X)].
1839 * include/limits.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
1840 * math/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
1841 * math/math.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
1842 * stdlib/bits/stdlib-ldbl.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1843 Likewise.
1844 * stdlib/stdint.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
1845 * stdlib/stdlib.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise.
1846 * sysdeps/aarch64/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1847 Likewise.
1848 * sysdeps/alpha/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1849 Likewise.
1850 * sysdeps/arm/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1851 Likewise.
1852 * sysdeps/csky/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1853 Likewise.
1854 * sysdeps/hppa/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1855 Likewise.
1856 * sysdeps/ia64/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1857 Likewise.
1858 * sysdeps/m68k/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1859 Likewise.
1860 * sysdeps/microblaze/bits/fenv.h [__GLIBC_USE
1861 (IEC_60559_BFP_EXT)]: Likewise.
1862 * sysdeps/mips/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1863 Likewise.
1864 * sysdeps/nios2/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1865 Likewise.
1866 * sysdeps/powerpc/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1867 Likewise.
1868 * sysdeps/riscv/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1869 Likewise.
1870 * sysdeps/s390/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1871 Likewise.
1872 * sysdeps/sh/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1873 Likewise.
1874 * sysdeps/sparc/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1875 Likewise.
1876 * sysdeps/x86/fpu/bits/fenv.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1877 Likewise.
1878 * math/bits/mathcalls.h [__GLIBC_USE (IEC_60559_BFP_EXT)]:
1879 Likewise, except for totalorder, totalordermag, getpayload,
1880 setpayload and setpayloadsig.
1881 * math/tgmath.h [__GLIBC_USE (IEC_60559_BFP_EXT)]: Likewise,
1882 except for totalorder and totalordermag.
1883
a8c2fa98
JM
1884 * string/string.h (memccpy): Also declare if [__GLIBC_USE (ISOC2X)].
1885 (strdup): Likewise.
1886 (strndup): Likewise.
1887
777d75fb
JM
1888 * include/features.h (_ISOC2X_SOURCE): New feature test macro.
1889 Undefine and define to 1 if [_GNU_SOURCE].
1890 (__GLIBC_USE_ISOC2X): New macro. Undefine and redefine depending
1891 on [_ISOC2X_SOURCE] and [__STDC_VERSION__ > 201710L].
1892 (__USE_ISOC11): Also define to 1 if [_ISOC2X_SOURCE].
1893 (__USE_ISOC99): Likewise.
1894 (__USE_ISOC95): Likewise.
1895 * manual/creature.texi (_ISOC2X_SOURCE): Document.
1896
a33b817f
FW
18972019-08-13 Florian Weimer <fweimer@redhat.com>
1898
1899 * login/getutid_r.c (__getutid_r): _HAVE_UT_ID and _HAVE_UT_TYPE
1900 are always true.
1901 * login/getutmp.c (getutmp): _HAVE_UT_TYPE, _HAVE_UT_PID,
1902 _HAVE_UT_ID, _HAVE_UT_HOST, _HAVE_UT_TV are always true.
1903 * login/getutmpx.c (getutmpx): Likewise.
1904 * login/login.c (login): _HAVE_UT_TYPE, _HAVE_UT_PID are always
1905 true.
1906 * login/logout.c (logout): _HAVE_UT_TYPE, _HAVE_UT_HOST,
1907 _HAVE_UT_TV are always true.
1908 * login/logwtmp.c (logwtmp): _HAVE_UT_PID, _HAVE_UT_TYPE,
1909 _HAVE_UT_HOST, _HAVE_UT_TV are always true.
1910 * login/tst-utmp.c: _HAVE_UT_TYPE, _HAVE_UT_TV are always true.
1911 * login/utmp_file.c (__libc_setutent): _HAVE_UT_TYPE, _HAVE_UT_ID
1912 are always true.
1913 (internal_getut_r): _HAVE_UT_TYPE is always true.
1914 (__libc_pututline): Likewise.
1915 * login/programs/utmpdump.c (print_entry): Assume that
1916 _HAVE_UT_TYPE, _HAVE_UT_PID, _HAVE_UT_ID, _HAVE_UT_HOST,
1917 _HAVE_UT_TV are always true.
1918 * sysdeps/generic/utmp-equal.h (__utmp_equal): _HAVE_UT_TYPE,
1919 _HAVE_UT_ID are always true.
1920 * sysdeps/gnu/bits/utmp.h: Move to ...
1921 * bits/utmp.h: ... here, replacing the old file.
1922
9b9670fc
FW
19232019-08-12 Florian Weimer <fweimer@redhat.com>
1924
1925 * elf/Makefile (tests): Unconditionally add tst-dlopen-aout.
1926 [$(build-hardcoded-path-in-tests)] (tst-dlopen-aout-no-pie): Do
1927 not set.
1928 * elf/tst-dlopen-aout.c: Do not included <assert.h>.
1929 (do_test): Open the executable using an absolute path. Print
1930 error message to standard output.
1931
c48d92b4
DD
19322019-08-09 DJ Delorie <dj@redhat.com>
1933
1934 * elf/dl-tunables.list: Add glibc.malloc.mxfast.
1935 * manual/tunables.texi: Document it.
1936 * malloc/malloc.c (do_set_mxfast): New.
1937 (__libc_mallopt): Call it.
1938 * malloc/arena.c: Add mxfast tunable.
1939 * malloc/tst-mxfast.c: New.
1940 * malloc/Makefile: Add it.
1941
b6d2c447
NH
19422019-08-08 Niklas Hambüchen <mail@nh2.me>
1943 Carlos O'Donell <carlos@redhat.com>
1944
1945 [BZ #24026]
1946 * malloc/malloc.c (__malloc_info): Account for top chunk.
1947
a02cd8e4
JM
19482019-08-07 Joseph Myers <joseph@codesourcery.com>
1949
1950 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
1951 (SYNC_FILE_RANGE_WRITE_AND_WAIT): New macro.
1952
d8b97803
JM
19532019-08-06 Joseph Myers <joseph@codesourcery.com>
1954
1955 * io/fcntl.h [__USE_GNU] (AT_RECURSIVE): New macro.
1956
8d454abe
SL
19572019-07-02 Stefan Liebler <stli@linux.ibm.com>
1958
1959 * sysdeps/unix/sysv/linux/s390/init-first.c (VDSO_SETUP): New define.
1960
98013846
JM
19612019-08-05 Joseph Myers <joseph@codesourcery.com>
1962
1963 * sysdeps/unix/sysv/linux/bits/sched.h [__USE_GNU] (CLONE_PIDFD):
1964 New macro.
1965
503fc587
AZ
19662019-08-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1967
d665367f
AZ
1968 [BZ #19767]
1969 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (ALWAYS_USE_VSYSCALL):
1970 Remove definition.
1971 * sysdeps/unix/sysv/linux/arm/sysdep.h (ALWAYS_USE_VSYSCALL):
1972 Likewise.
1973 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
1974 Likewise.
1975 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h (ALWAYS_USE_VSYSCALL):
1976 Likewise.
1977 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
1978 (ALWAYS_USE_VSYSCALL): Likewise.
1979 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
1980 (ALWAYS_USE_VSYSCALL): Likewise.
1981 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
1982 (ALWAYS_USE_VSYSCALL): Likewise.
1983 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
1984 (ALWAYS_USE_VSYSCALL): Likewise.
1985 * sysdeps/unix/sysv/linux/riscv/sysdep.h (ALWAYS_USE_VSYSCALL):
1986 Likewise.
1987 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
1988 (ALWAYS_USE_VSYSCALL): Likewise.
1989 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
1990 (ALWAYS_USE_VSYSCALL): Likewise.
1991 * sysdeps/unix/sysv/linux/sparc/sysdep.h (ALWAYS_USE_VSYSCALL):
1992 Likewise.
1993 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
1994 Likewise.
1995 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Remove #if USE_VSYSCALL.
1996 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Likewise.
1997 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL,
1998 USE_VSYSCALL): Remove defitions.
1999
c9c1a413
AZ
2000 [BZ #19767]
2001 * sysdeps/unix/sysv/linux/sparc/init-first.c: Remove #ifdef SHARED.
2002 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: Likewise.
2003 * sysdeps/unix/sysv/linux/sparc/sysdep.h (ALWAYS_USE_VSYSCALL):
2004 Define.
2005
27a0914e 2006 [BZ #19767]
5e855c89
AZ
2007 * sysdeps/unix/sysv/linux/s390/init-first.c: Remove #ifdef SHARED.
2008 * sysdeps/unix/sysv/linux/s390/libc-vdso.h: Likewise.
2009 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
2010 (ALWAYS_USE_VSYSCALL): Define.
2011 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
2012 (ALWAYS_USE_VSYSCALL): Likewise.
2013
2014 [BZ #19767]
27a0914e
AZ
2015 * sysdeps/unix/sysv/linux/riscv/init-first.c: Remove #ifdef SHARED.
2016 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
2017 * sysdeps/unix/sysv/linux/riscv/sysdep.h (ALWAYS_USE_VSYSCALL):
2018 Define.
2019
503fc587
AZ
2020 * sysdeps/sh/libm-test-ulps: Update.
2021
1a7fe2eb
FW
20222019-08-05 Florian Weimer <fweimer@redhat.com>
2023
2024 [BZ #23518]
2025 * login/uptmp-private.h (struct ufuncs): Remove definition.
2026 (__libc_utmp_file_functions, __libc_utmp_unknown_functions)
2027 (__libc_utmp_jump_table): Remove declarations.
2028 (__libc_setutent, __libc_getutent_r, __libc_getutid_r)
2029 (__libc_getutline_r, __libc_pututline, __libc_endutent)
2030 (__libc_updwtmp): Declare.
2031 * login/getutent_r.c (__libc_utmp_unknown_functions)
2032 (__libc_utmp_jump_table, setutent_unknown, getutent_r_unknown)
2033 (getutid_r_unknown, getutline_r_unknown, pututline_unknown)
2034 (endutent_unknown): Remove definitions.
2035 (__setutent): Call __libc_setutent.
2036 (__getutent_r): Call __libc_getutent_r.
2037 (__pututline): Call __libc_pututline.
2038 (__endutent): Call __libc_endutent.
2039 * login/getutid_r.c (__getutid_r): Call __libc_getutid_r.
2040 * login/getutline_r.c (__getutline_r): Call __libc_getutline_r.
2041 * login/updwtmp.c (__updwtmp): Call __libc_updwtmp.
2042 * login/utmp_file.c (__libc_utmp_file_functions): Remove definition
2043 (__libc_setutent): Rename from stetutent_file. Drop static.
2044 (maybe_setutent): New function.
2045 (__libc_getutent_r): Rename from getutent_r_file. Drop static.
2046 Check for initialization.
2047 (__libc_getutid_r): Rename from getutid_r_file. Drop static.
2048 Check for initialization.
2049 (__libc_getutline_r): Rename from getutline_r_file. Drop static.
2050 Check for initialization.
2051 (__libc_pututline): Rename from pututline_file. Drop static.
2052 Check for initialization.
2053 (__libc_endutent): Rename from endutent_file. Drop static. Check
2054 for initialization.
2055 (__libc_updwtmp): Rename from updwtmp_file. Drop static.
2056 * login/utmpname.c (__utmpname): Call __libc_endutent.
2057 * sysdeps/unix/getlogin_r (__getlogin_r): Call __libc_setutent,
2058 __libc_getutlien_r, __libc_endutent.
2059 * manual/users.texi (Who Logged In, Manipulating the Database):
2060 Adjust.
2061
ab74d59f 20622019-08-05 Alexandra Hájková <ahajkova@redhat.com>
a6c1ce77
AH
2063
2064 * elf/tst-ldconfig-bad-aux-cache.c: Use support_capture_subprocess.
2065
c7a26cba
JM
20662019-08-02 Joseph Myers <joseph@codesourcery.com>
2067
9c37bde5
JM
2068 * sysdeps/unix/sysv/linux/syscall-names.list: Update comment.
2069
c7a26cba
JM
2070 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Update Linux
2071 kernel version number to 5.2.
2072
066020c5
RFF
20732019-08-01 Raoni Fassina Firmino <raoni@linux.ibm.com>
2074
2075 * sysdeps/powerpc/powerpc64/power8/memchr.S: Update power8
2076 mnemonics and set .machine power8.
2077 * sysdeps/powerpc/powerpc64/power8/memcmp.S: Likewise.
2078 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Likewise.
2079 * sysdeps/powerpc/powerpc64/power8/memset.S: Likewise.
2080 * sysdeps/powerpc/powerpc64/power8/strchr.S: Likewise.
2081 * sysdeps/powerpc/powerpc64/power8/strlen.S: Likewise.
2082 * sysdeps/powerpc/powerpc64/power8/strncmp.S: Likewise.
2083 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Likewise.
2084 * sysdeps/powerpc/powerpc64/power8/strnlen.S: Likewise.
2085 * sysdeps/powerpc/powerpc64/power8/strrchr.S: Likewise.
2086 * sysdeps/powerpc/powerpc64/power8/strspn.S: Likewise.
2087
3175dcc1
AZ
20882019-08-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2089
2090 * sysdeps/hppa/fpu/libm-test-ulps: Update.
2091
b0f6679b
FW
20922019-08-01 Florian Weimer <fweimer@redhat.com>
2093
2094 [BZ #24867]
2095 * malloc/malloc.c (__malloc_info): Remove unwanted leading
2096 whitespace.
2097
e1df30fb
AZ
20982019-08-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2099
2100 [BZ #15813]
2101 sysdeps/posix/tempname.c (__gen_tempname): get entropy on each
2102 attempt.
2103
e7124906
CD
21042019-08-01 Carlos O'Donell <carlos@redhat.com>
2105
0a8262a1
CD
2106 * version.h (RELEASE): Set to "stable".
2107 (VERSION): Set to "2.30".
2108 * include/features.h (__GLIBC_MINOR__): Set to 2.30.
2109
e7124906
CD
2110 * manual/install.texi: Update component versions.
2111 * INSTALL: Regenerate.
2112 * NEWS: Update.
2113
cc3bf319
CD
21142019-07-31 Carlos O'Donell <carlos@redhat.com>
2115
2116 * po/be.po: Update translations.
2117 * po/bg.po: Likewise.
2118 * po/ca.po: Likewise.
2119 * po/cs.po: Likewise.
2120 * po/da.po: Likewise.
2121 * po/de.po: Likewise.
2122 * po/el.po: Likewise.
2123 * po/eo.po: Likewise.
2124 * po/es.po: Likewise.
2125 * po/fi.po: Likewise.
2126 * po/fr.po: Likewise.
2127 * po/gl.po: Likewise.
2128 * po/hr.po: Likewise.
2129 * po/hu.po: Likewise.
2130 * po/ia.po: Likewise.
2131 * po/id.po: Likewise.
2132 * po/it.po: Likewise.
2133 * po/ja.po: Likewise.
2134 * po/ko.po: Likewise.
2135 * po/lt.po: Likewise.
2136 * po/nb.po: Likewise.
2137 * po/nl.po: Likewise.
2138 * po/pl.po: Likewise.
2139 * po/pt_BR.po: Likewise.
2140 * po/ru.po: Likewise.
2141 * po/rw.po: Likewise.
2142 * po/sk.po: Likewise.
2143 * po/sl.po: Likewise.
2144 * po/sv.po: Likewise.
2145 * po/tr.po: Likewise.
2146 * po/uk.po: Likewise.
2147 * po/vi.po: Likewise.
2148 * po/zh_CN.po: Likewise.
2149 * po/zh_TW.po: Likewise.
2150
0bfddfc9
FW
21512019-07-31 Florian Weimer <fweimer@redhat.com>
2152
2153 [BZ #24583]
2154 [BZ #24677]
2155 iconv, libio: Revert reference counting changes.
2156 * iconv/gconv_cache.c (__gconv_release_cache): Unconditionally
2157 free the steps array.
2158 * libio/Makefile (tests): Remove tst-wfile-gconv.
2159 (tests-container): Do not add tst-wfile-ascii.
2160 (tst-wfile-gconv-ENV): Do not set.
2161 (generated): Do not add tst-wfile-gconv.mtrace,
2162 tst-wfile-gconv.check.
2163 [($run-built-tests)] (tests-special): Do not add
2164 tst-wfile-gconv-mem.out.
2165 (tst-wfile-gconv.out, tst-wfile-gconv-mem.out): Remove targets.
2166 * libio/iofclose.c (_IO_new_fclose): Call __gconv_release_step
2167 instead of __wcsmbs_clone_conv.
2168 * wcsmbs/wcsmbsload.c (__wcsmbs_clone_conv): Remove definition.
2169 * wcsmbs/wcsmbsload.h (__wcsmbs_clone_conv): Remove declaration.
2170
c86b8e75
JM
21712019-07-30 Joseph Myers <joseph@codesourcery.com>
2172
2173 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
2174 (__CONTEXT_FUNC_NAME): Restore setting of r31.
2175
8a814e20
FW
21762019-07-30 Florian Weimer <fweimer@redhat.com>
2177
2178 * nptl/tst-pthread-getattr.c (allocate_and_test): Change return
2179 type to uintptr_t. Update comment.
2180 (check_stack_top): Adjust.
2181
b8b3d5a1
FW
21822019-07-29 Florian Weimer <fweimer@redhat.com>
2183
2184 Linux: Move declaration of getdents64 to <dirent.h>.
2185 * bits/dirent_ext.h: New file.
2186 * dirent/Makefile (headers): Add bits/dirent_ext.h.
2187 * dirent/dirent.h: Include <bits/dirent_ext.h>.
2188 * sysdeps/unix/sysv/linux/bits/dirent_ext.h: New file.
2189 * sysdeps/unix/sysv/linux/bits/unistd_ext.h (getdents64): Remove
2190 declaration.
2191 * manual/filesys.texi (Low-level Directory Access): Update header
2192 to dirent.h.
2193
354e4c1a
TMQMF
21942019-07-29 DJ Delorie <dj@redhat.com>
2195 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
2196
2197 [BZ #24794]
2198 * Makeconfig (all-subdirs): Improved source comments.
2199 * Makefile (testroot.pristine/install.stamp): Pass
2200 subdirs='$(sorted-subdirs)' to make install.
2201
50ce3eae
FW
22022019-07-25 Florian Weimer <fweimer@redhat.com>
2203
2204 [BZ #24677]
2205 * iconv/gconv_cache.c (__gconv_release_cache): Check reference
2206 counter before freeing array.
2207
7e681561
L
22082019-07-24 H.J. Lu <hongjiu.lu@intel.com>
2209
2210 [BZ #24603]
2211 * sysdeps/x86_64/configure.ac: Check if -mprefer-vector-width=128
2212 works.
2213 * sysdeps/x86_64/configure: Regenerated.
2214 * sysdeps/x86_64/fpu/Makefile (CFLAGS-branred.c): New. Set
2215 to -mprefer-vector-width=128 if supported.
2216
82c664ed
FW
22172019-07-24 Florian Weimer <fweimer@redhat.com>
2218
2219 * scripts/build-many-glibcs.py (Context.checkout): Default to
2220 Linux 5.2.
2221
7854ebf8
FW
22222019-07-24 Florian Weimer <fweimer@redhat.com>
2223
2224 [BZ #24532]
2225 Linux: Use in-tree copy of SO_ constants for !__USE_MISC.
2226 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == socket]
2227 (sysdep_headers): Add bits/socket-constants.h.
2228 (tests-special): Add tst-socket-consts.out.
2229 (tst-socket-consts.out): New target.
2230 * sysdeps/unix/sysv/linux/bits/socket.h: Remove macro tracking
2231 around <asm/unistd.h>.
2232 [__USE_MISC]: Include <bits/types/time_t.h> before <asm/socket.h>.
2233 [!__USE_MISC]: Include <sys/socket-constants.h> instead of
2234 <asm/socket.h>.
2235 * sysdeps/unix/sysv/linux/bits/tst-socket-consts.py: New file.
2236 * sysdeps/unix/sysv/linux/bits/socket-constants.h: Likewise.
2237 * sysdeps/unix/sysv/linux/alpha/bits/socket-constants.h: Likewise.
2238 * sysdeps/unix/sysv/linux/hppa/bits/socket-constants.h: Likewise.
2239 * sysdeps/unix/sysv/linux/mips/bits/socket-constants.h: Likewise.
2240 * sysdeps/unix/sysv/linux/powerpc/bits/socket-constants.h:
2241 Likewise.
2242 * sysdeps/unix/sysv/linux/sparc/bits/socket-constants.h: Likewise.
2243
95da14da
TMQMF
22442019-07-23 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
2245
35e038c1
TMQMF
2246 [BZ #24794]
2247 * Makefile (testroot.pristine/install.stamp): Pass
2248 subdirs='$(all-subdirs)' to make install.
2249
95da14da
TMQMF
2250 * Makefile (testroot.pristine/install.stamp): Execute ld.so with
2251 the same arguments used in all tests.
2252
dcf36bca
SN
22532019-07-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
2254
2255 * NEWS: Mention the AArch64 IFUNC resolver ABI change.
2256
c7e4b684
EK
22572019-07-20 Egor Kobylkin <egor@kobylkin.com>
2258
2259 [BZ #2872]
2260 * locale/C-translit.h.in: Add Cyrillic transliteration.
2261
1f7097d0
FW
22622019-07-19 Florian Weimer <fweimer@redhat.com>
2263
2264 * sysdeps/unix/sysv/linux/syscall-names.list: Add system calls
2265 from Linux 5.2.
2266 (fsconfig): Add system call name.
2267 (fsmount): Likewise.
2268 (fsopen): Likewise.
2269 (fspick): Likewise.
2270 (move_mount): Likewise.
2271 (open_tree): Likewise.
2272
3556658c
CD
22732019-07-18 Carlos O'Donell <carlos@redhat.com>
2274
2275 * po/libc.pot: Regenerate.
2276
4a8f6d31
MC
22772019-07-18 Mike Crowe <mac@mcrowe.com>
2278
2ab9ad57
AZ
2279 * sysdeps/unix/sysv/linux/hppa/pthread.h: Add declarations of
2280 functions recently added to sysdeps/nptl/pthread.h:
2281 pthread_mutex_clocklock, pthread_rwlock_clockrdlock,
2282 pthread_rwlock_clockwrlock and pthread_cond_clockwait.
2283
4a8f6d31
MC
2284 * nptl/forward.c: Remove unnecessary __pthread_cond_clockwait and
2285 pthread_cond_clockwait forwarding functions. There are no internal
2286 users, so it is unnecessary to expose these functions in libc.so.
2287 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
2288 unnecessary ptr___pthread_cond_clockwait member.
2289 * nptl/nptl-init.c (pthread_functions): Remove assignment of
2290 removed member.
2291
ab74d59f 22922019-07-17 Rafał Lużyński <digitalfreak@lingonborough.com>
9208c3b8
RL
2293
2294 [BZ #21897]
2295 * localedata/locales/aa_DJ (abday): Update from CLDR, all words
2296 begin with an uppercase letter now.
2297 (abmon): Likewise.
2298 (mon): Update from CLDR, reword February from "Kudo" to
2299 "Naharsi Kudo", April from "Agda Baxisso" to "Agda Baxis",
2300 and August from "Liiqen" to "Leqeeni".
2301 * localedata/locales/aa_ER (mon): Update from CLDR, reword
2302 April from "Agda Baxisso" to "Agda Baxis" and August from
2303 "Leqeeni" to "Liiqen".
2304 * localedata/locales/aa_ER@saaho (mon): Likewise.
2305 * localedata/locales/aa_ET (abmon): Update from CLDR, reword
2306 abbreviated February from "Kud" to "Nah".
2307 (mon): Update from CLDR, reword February from "Kudo" to
2308 "Naharsi Kudo" and April from "Agda Baxisso" to "Agda Baxis".
2309
ab74d59f 23102019-07-17 Rafał Lużyński <digitalfreak@lingonborough.com>
fba6d4bb
RL
2311
2312 [BZ #23996]
2313 * localedata/locales/nl_BE (LC_NAME): Replace with “copy "nl_NL"”.
2314
3cc7c9c5
P
23152019-07-17 PanderMusubi <pander@users.sourceforge.net>
2316
2317 [BZ #23996]
2318 * localedata/locales/nl_BE (LC_NAME): Add name_gen, name_mr,
2319 name_mrs, name_miss, and name_ms.
2320 * localedata/locales/nl_NL (LC_NAME): Likewise.
2321
cce7b6a5
DZ
23222019-07-17 Daniil Zhilin <generalfailer@protonmail.com>
2323
2324 [BZ #24200]
2325 * localedata/locales/ga_IE (first_weekday): Add, set to 2 (Monday).
2326 * localedata/locales/en_IE (first_weekday): Likewise.
2327
99d01ffc
MC
23282019-07-12 Mike Crowe <mac@mcrowe.com>
2329
1ff1373b
MC
2330 * nptl/pthread_cond_wait.c: (__pthread_cond_clockwait): Remove code
2331 that is only useful if futex_supports_exact_relative_timeouts ()
2332 returns false.
2333 * nptl/pthread_condattr_setclock.c: (pthread_condattr_setclock):
2334 Likewise.
2335 * sysdeps/nptl/futex-internal.h: Remove comment about relative
2336 timeouts potentially being imprecise since it's no longer true.
2337 Remove declaration of futex_supports_exact_relative_timeouts.
2338 * sysdeps/unix/sysv/linux/futex-internal.h: Remove implementation
2339 of futex_supports_exact_relative_timeouts.
2340
65dd7e9c
MC
2341 * NEWS: Mention recently-added pthread_cond_clockwait,
2342 pthread_rwlock_clockrdlock, pthread_rwlock_clockwrlock and
2343 sem_clockwait functions.
2344
9d20e22e
MC
2345 nptl: Add POSIX-proposed pthread_mutex_clocklock function that
2346 works like pthread_mutex_timedlock but takes a clockid parameter to
2347 measure the abstime parameter against.
2348 * sysdeps/nptl/pthread.h: Add pthread_mutex_clocklock.
2349 * nptl/DESIGN-systemtap-probes.txt: Likewise.
2350 * nptl/pthread_mutex_timedlock.c
2351 (__pthread_mutex_clocklock_common): Rename from
2352 __pthread_mutex_timedlock and add clockid parameter. Pass this
2353 parameter to lll_clocklock and lll_clocklock_elision in place of
2354 CLOCK_REALTIME. (__pthread_mutex_clocklock): New function to add
2355 LIBC_PROBE and validate clockid parameter before calling
2356 __pthread_mutex_clocklock_common. (__pthread_mutex_timedlock): New
2357 implementation to add LIBC_PROBE and calls
2358 __pthread_mutex_clocklock_common passing CLOCK_REALTIME as the
2359 clockid.
2360 * nptl/Makefile: Add tst-mutex11.c.
2361 * nptl/tst-abstime.c (th): Add tests for pthread_mutex_clocklock.
2362 * nptl/tst-mutex11.c: New tests for passing invalid and unsupported
2363 clockid parameters to pthread_mutex_clocklock.
2364 * nptl/tst-mutex5.c (do_test_clock): Rename from do_test and take
2365 clockid parameter to indicate which clock to be used. Call
2366 pthread_mutex_timedlock or pthread_mutex_clocklock as appropriate.
2367 (do_test): Call do_test_clock to separately test
2368 pthread_mutex_timedlock, pthread_mutex_clocklock(CLOCK_REALTIME)
2369 and pthread_mutex_clocklock(CLOCK_MONOTONIC).
2370 * nptl/tst-mutex9.c: Likewise.
2371 * nptl/Versions (GLIBC_2.30): Add pthread_mutex_clocklock.
2372 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.30):
2373 Likewise.
2374 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.30):
2375 Likewise.
2376 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.30):
2377 Likewise.
2378 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.30):
2379 Likewise.
2380 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.30):
2381 Likewise.
2382 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.30):
2383 Likewise.
2384 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.30):
2385 Likewise.
2386 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
2387 (GLIBC_2.30): Likewise.
2388 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
2389 (GLIBC_2.30): Likewise.
2390 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
2391 (GLIBC_2.30): Likewise.
2392 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
2393 (GLIBC_2.30): Likewise.
2394 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
2395 (GLIBC_2.30): Likewise.
2396 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.30):
2397 Likewise.
2398 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
2399 (GLIBC_2.30): Likewise.
2400 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
2401 (GLIBC_2.30): Likewise.
2402 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
2403 (GLIBC_2.30): Likewise.
2404 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
2405 (GLIBC_2.30): Likewise.
2406 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
2407 (GLIBC_2.30): Likewise.
2408 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
2409 (GLIBC_2.30): Likewise.
2410 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.30):
2411 Likewise.
2412 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
2413 (GLIBC_2.30): Likewise.
2414 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
2415 (GLIBC_2.30): Likewise.
2416 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
2417 (GLIBC_2.30): Likewise.
2418 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
2419 (GLIBC_2.30): Likewise.
2420
59213094
MC
2421 nptl: Rename lll_timedlock to lll_clocklock and add clockid
2422 parameter to indicate the clock that the abstime parameter should
2423 be measured against in preparation for adding
2424 pthread_mutex_clocklock.
2425 * sysdeps/nptl/lowlevellock.h (lll_clocklock): Rename from
2426 lll_timedlock and add clockid parameter. (__lll_clocklock): Rename
2427 from __lll_timedlock and add clockid parameter.
2428 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_clocklock):
2429 Likewise.
2430 * nptl/lll_timedlock_wait.c (__lll_clocklock_wait): Rename from
2431 __lll_timedlock_wait and add clockid parameter. Use __clock_gettime
2432 rather than __gettimeofday so that clockid can be used. This means
2433 that conversion from struct timeval is no longer required.
2434 * sysdeps/sparc/sparc32/lowlevellock.c (lll_clocklock_wait):
2435 Likewise.
2436 * sysdeps/sparc/sparc32/lll_timedlock_wait.c: Update comment to
2437 refer to __lll_clocklock_wait rather than __lll_timedlock_wait.
2438 * nptl/pthread_mutex_timedlock.c (lll_clocklock_elision): Rename
2439 from lll_timedlock_elision, add clockid parameter and use
2440 meaningful names for other parameters. (__pthread_mutex_timedlock):
2441 Pass CLOCK_REALTIME where necessary to lll_clocklock and
2442 lll_clocklock_elision.
2443 * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h
2444 (lll_clocklock_elision): Rename from lll_timedlock_elision and add
2445 clockid parameter. (__lll_clocklock_elision): Rename from
2446 __lll_timedlock_elision and add clockid parameter.
2447 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
2448 * sysdeps/unix/sysv/linux/x86/lowlevellock.h: Likewise.
2449 * sysdeps/unix/sysv/linux/powerpc/elision-timed.c
2450 (__lll_lock_elision): Call __lll_clocklock_elision rather than
2451 __lll_timedlock_elision. (EXTRAARG): Add clockid parameter.
2452 (LLL_LOCK): Likewise.
2453 * sysdeps/unix/sysv/linux/s390/elision-timed.c: Likewise.
2454 * sysdeps/unix/sysv/linux/x86/elision-timed.c: Likewise.
2455
e996fa72
MC
2456 nptl: Add POSIX-proposed pthread_rwlock_clockrdlock &
2457 pthread_rwlock_clockwrlock which behave like
2458 pthread_rwlock_timedrdlock and pthread_rwlock_timedwrlock
2459 respectively, except they always measure abstime against the
2460 supplied clockid. The functions currently support CLOCK_REALTIME
2461 and CLOCK_MONOTONIC and return EINVAL if any other clock is
2462 specified.
2463 * sysdeps/nptl/pthread.h: Add pthread_rwlock_clockrdlock and
2464 pthread_wrlock_clockwrlock.
2465 * nptl/Makefile: Build pthread_rwlock_clockrdlock.c and
2466 pthread_rwlock_clockwrlock.c.
2467 * nptl/pthread_rwlock_clockrdlock.c: Implement
2468 pthread_rwlock_clockrdlock.
2469 * nptl/pthread_rwlock_clockwrlock.c: Implement
2470 pthread_rwlock_clockwrlock.
2471 * nptl/pthread_rwlock_common.c (__pthread_rwlock_rdlock_full): Add
2472 clockid parameter and verify that it indicates a supported clock on
2473 entry so that we fail even if it doesn't end up being used. Pass
2474 that clock on to futex_abstimed_wait when necessary.
2475 (__pthread_rwlock_wrlock_full): Likewise.
2476 * nptl/pthread_rwlock_rdlock.c: (__pthread_rwlock_rdlock): Pass
2477 CLOCK_REALTIME to __pthread_rwlock_rdlock_full even though it won't
2478 be used because there's no timeout.
2479 * nptl/pthread_rwlock_wrlock.c (__pthread_rwlock_wrlock): Pass
2480 CLOCK_REALTIME to __pthread_rwlock_wrlock_full even though it won't
2481 be used because there is no timeout.
2482 * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
2483 Pass CLOCK_REALTIME to __pthread_rwlock_rdlock_full since abstime
2484 uses that clock.
2485 * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
2486 Pass CLOCK_REALTIME to __pthread_rwlock_wrlock_full since abstime
2487 uses that clock.
2488 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.30): Likewise.
2489 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.30): Likewise.
2490 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.30): Likewise.
2491 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.30): Likewise.
2492 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.30): Likewise.
2493 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.30): Likewise.
2494 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.30): Likewise.
2495 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
2496 (GLIBC_2.30): Likewise.
2497 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
2498 (GLIBC_2.30): Likewise.
2499 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
2500 (GLIBC_2.30): Likewise.
2501 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
2502 (GLIBC_2.30): Likewise.
2503 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
2504 (GLIBC_2.30): Likewise.
2505 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.30): Likewise.
2506 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
2507 (GLIBC_2.30): Likewise.
2508 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
2509 (GLIBC_2.30): Likewise.
2510 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
2511 (GLIBC_2.30): Likewise.
2512 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
2513 (GLIBC_2.30): Likewise.
2514 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
2515 (GLIBC_2.30): Likewise.
2516 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
2517 (GLIBC_2.30): Likewise.
2518 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.30): Likewise.
2519 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
2520 (GLIBC_2.30): Likewise.
2521 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
2522 (GLIBC_2.30): Likewise.
2523 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
2524 (GLIBC_2.30): Likewise.
2525 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
2526 (GLIBC_2.30): Likewise.
2527 * nptl/tst-abstime.c (th): Add pthread_rwlock_clockrdlock and
2528 pthread_rwlock_clockwrlock timeout tests to match the existing
2529 pthread_rwlock_timedrdloock and pthread_rwlock_timedwrlock tests.
2530 * nptl/tst-rwlock14.c (do_test): Likewise.
2531 * nptl/tst-rwlock6.c Invent verbose_printf macro, and use for
2532 ancillary output throughout. (tf): Accept thread_args structure so
2533 that rwlock, a clockid and function name can be passed to the
2534 thread. (do_test_clock): Rename from do_test. Accept clockid
2535 parameter to specify test clock. Use the magic clockid value of
2536 CLOCK_USE_TIMEDLOCK to indicate that pthread_rwlock_timedrdlock and
2537 pthread_rwlock_timedwrlock should be tested, otherwise pass the
2538 specified clockid to pthread_rwlock_clockrdlock and
2539 pthread_rwlock_clockwrlock. Use xpthread_create and xpthread_join.
2540 (do_test): Call do_test_clock to test each clockid in turn.
2541 * nptl/tst-rwlock7.c: Likewise.
2542 * nptl/tst-rwlock9.c (writer_thread, reader_thread): Accept
2543 thread_args structure so that the (now int) thread number, the
2544 clockid and the function name can be passed to the thread.
2545 (do_test_clock): Renamed from do_test. Pass the necessary
2546 thread_args when creating the reader and writer threads. Use
2547 xpthread_create and xpthread_join.
2548 (do_test): Call do_test_clock to test each clockid in turn.
2549 * manual/threads.texi: Add documentation for
2550 pthread_rwlock_clockrdlock and pthread_rwlock_clockwrclock.
2551
600b4be4
MC
2552 nptl: pthread_rwlock: Move timeout validation into _full functions
2553 * nptl/pthread_rwlock_common.c (__pthread_rwlock_rdlock_full):
2554 Check validity of abstime parameter.
2555 (__pthread_rwlock_rwlock_full): Likewise.
2556 * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
2557 Remove check for validity of abstime parameter.
2558 * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
2559 Likewise.
2560
afe4de7d
MC
2561 nptl: Add POSIX-proposed pthread_cond_clockwait which behaves just
2562 like pthread_cond_timedwait except it always measures abstime
2563 against the supplied clockid.
2564 * nptl/Makefile: Add tst-cond26 and tst-cond27
2565 * nptl/Versions (GLIBC_2.30): Add pthread_cond_clockwait
2566 * sysdeps/nptl/pthread.h: Likewise
2567 * nptl/forward.c: Add __pthread_cond_clockwait
2568 * nptl/forward.c: Likewise
2569 * nptl/pthreadP.h: Likewise
2570 * sysdeps/nptl/pthread-functions.h: Likewise
2571 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Add
2572 clockid parameter and comment describing why we don't need to check
2573 its value. Use that value when calling
2574 futex_abstimed_wait_cancelable rather than reading the clock from
2575 the flags. (__pthread_cond_wait): Pass unused clockid parameter.
2576 (__pthread_cond_timedwait): Read clock from flags and pass it to
2577 __pthread_cond_wait_common. (__pthread_cond_clockwait): Add new
2578 function with weak alias from pthread_cond_clockwait.
2579 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.30): Likewise.
2580 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.30): Likewise.
2581 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.30): Likewise.
2582 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.30): Likewise.
2583 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.30): Likewise.
2584 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.30): Likewise.
2585 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.30): Likewise.
2586 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
2587 (GLIBC_2.30): Likewise.
2588 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
2589 (GLIBC_2.30): Likewise.
2590 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
2591 (GLIBC_2.30): Likewise.
2592 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
2593 (GLIBC_2.30): Likewise.
2594 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
2595 (GLIBC_2.30): Likewise.
2596 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.30): Likewise.
2597 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
2598 (GLIBC_2.30): Likewise.
2599 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
2600 (GLIBC_2.30): Likewise.
2601 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
2602 (GLIBC_2.30): Likewise.
2603 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
2604 (GLIBC_2.30): Likewise.
2605 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
2606 (GLIBC_2.30): Likewise.
2607 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
2608 (GLIBC_2.30): Likewise.
2609 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.30): Likewise.
2610 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
2611 (GLIBC_2.30): Likewise.
2612 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
2613 (GLIBC_2.30): Likewise.
2614 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
2615 (GLIBC_2.30): Likewise.
2616 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
2617 (GLIBC_2.30): Likewise.
2618 * nptl/tst-cond11.c (run_test): Support testing
2619 pthread_cond_clockwait too by using a special magic
2620 CLOCK_USE_ATTR_CLOCK value to determine whether to call
2621 pthread_cond_timedwait or pthread_cond_clockwait. (do_test): Pass
2622 CLOCK_USE_ATTR_CLOCK for existing tests, and add new tests using
2623 all combinations of CLOCK_MONOTONIC and CLOCK_REALTIME.
2624 * ntpl/tst-cond26.c: New test for passing unsupported and invalid
2625 clocks to pthread_cond_clockwait.
2626 * nptl/tst-cond27.c: Add test similar to tst-cond5.c, but using
2627 struct timespec and pthread_cond_clockwait.
2628 * manual/threads.texi: Document pthread_cond_clockwait.
2629
6615f779
MC
2630 nptl: Add POSIX-proposed sem_clockwait which behaves just like
2631 sem_timedwait, but measures abstime against the specified clock.
2632 * nptl/sem_waitcommon.c (do_futex_wait, __new_sem_wait_slow): Add
2633 clockid parameters to indicate the clock which abstime should be
2634 measured against.
2635 * nptl/sem_timedwait.c (sem_timedwait), nptl/sem_wait.c
2636 (__new_sem_wait): Pass CLOCK_REALTIME as clockid to
2637 __new_sem_wait_slow.
2638 * nptl/sem_clockwait.c: New file to implement sem_clockwait based
2639 on sem_timedwait.c.
2640 * nptl/Makefile: Add sem_clockwait.c source file. Add CFLAGS for
2641 sem_clockwait.c to match those used for sem_timedwait.c.
2642 * sysdeps/pthread/semaphore.h: Add sem_clockwait.
2643 * nptl/Versions (GLIBC_2.30): Likewise.
2644 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.30): Likewise.
2645 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.30): Likewise.
2646 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.30): Likewise.
2647 * sysdeps/unix/sysv/linux/csky/libpthread.abilist (GLIBC_2.30): Likewise.
2648 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.30): Likewise.
2649 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.30): Likewise.
2650 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.30): Likewise.
2651 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
2652 (GLIBC_2.30): Likewise.
2653 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
2654 (GLIBC_2.30): Likewise.
2655 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
2656 (GLIBC_2.30): Likewise.
2657 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
2658 (GLIBC_2.30): Likewise.
2659 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist
2660 (GLIBC_2.30): Likewise.
2661 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist (GLIBC_2.30): Likewise.
2662 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist
2663 (GLIBC_2.30): Likewise.
2664 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
2665 (GLIBC_2.30): Likewise.
2666 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
2667 (GLIBC_2.30): Likewise.
2668 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist
2669 (GLIBC_2.30): Likewise.
2670 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
2671 (GLIBC_2.30): Likewise.
2672 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
2673 (GLIBC_2.30): Likewise.
2674 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.30): Likewise.
2675 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
2676 (GLIBC_2.30): Likewise.
2677 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
2678 (GLIBC_2.30): Likewise.
2679 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
2680 (GLIBC_2.30): Likewise.
2681 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
2682 (GLIBC_2.30): Likewise.
2683 * nptl/tst-sem17.c: Add new test for passing invalid clock to
2684 sem_clockwait.
2685 * nptl/tst-sem13.c, nptl/tst-sem5.c: Modify existing sem_timedwait
2686 tests to also test sem_clockwait.
2687 * manual/threads.texi: Document sem_clockwait.
2688
99d01ffc
MC
2689 nptl: Add clockid parameter to futex timed wait calls
2690 * sysdeps/nptl/lowlevellock-futex.h,
2691 sysdeps/unix/sysv/linux/lowlevellock-futex.h: Replace
2692 lll_futex_timed_wait_bitset with lll_futex_clock_wait_bitset that
2693 takes a clockid rather than a special clockbit.
2694 * sysdeps/nptl/lowlevellock-futex.h: Add
2695 lll_futex_supported_clockid so that client functions can check
2696 whether their clockid parameter is valid even if they don't
2697 ultimately end up calling lll_futex_clock_wait_bitset.
2698 * sysdeps/nptl/futex-internal.h,
2699 sysdeps/unix/sysv/linux/futex-internal.h
2700 (futex_abstimed_wait, futex_abstimed_wait_cancelable): Add
2701 clockid_t parameter to indicate which clock the absolute time
2702 passed should be measured against. Pass that clockid onto
2703 lll_futex_clock_wait_bitset. Add invalid clock as reason for
2704 returning -EINVAL.
2705 * sysdeps/nptl/futex-internal.h,
2706 sysdeps/unix/sysv/linux/futex-internal.h: Introduce
2707 futex_abstimed_supported_clockid so that client functions can check
2708 whether their clockid parameter is valid even if they don't
2709 ultimately end up calling futex_abstimed_wait.
2710 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Remove
2711 code to calculate relative timeout for
2712 __PTHREAD_COND_CLOCK_MONOTONIC_MASK and just pass CLOCK_MONOTONIC
2713 or CLOCK_REALTIME as required to futex_abstimed_wait_cancelable.
2714 * nptl/pthread_rwlock_common (__pthread_rwlock_rdlock_full)
2715 (__pthread_wrlock_full), nptl/sem_waitcommon (do_futex_wait): Pass
2716 additional CLOCK_REALTIME to futex_abstimed_wait_cancelable.
2717 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock):
2718 Switch to lll_futex_clock_wait_bitset and pass CLOCK_REALTIME
2719
a008c76b
AZ
27202019-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2721
2722 [BZ #24699]
2723 * posix/tst-mmap-offset.c: Mention BZ #24699.
2724 (do_test_bz21270): Rename to do_test_large_offset and use
2725 mmap64_maximum_offset to check for maximum expected offset value.
2726 * sysdeps/generic/mmap_info.h: New file.
2727 * sysdeps/unix/sysv/linux/mips/mmap_info.h: Likewise.
2728 * sysdeps/unix/sysv/linux/mmap64.c (MMAP_OFF_HIGH_MASK): Define iff
2729 __NR_mmap2 is used.
2730
99135114
DD
27312019-07-10 DJ Delorie <dj@redhat.com>
2732 Sergei Trofimovich <slyfox@inbox.ru>
2733
2734 [BZ #24696]
2735 [BZ #24695]
2736 * nss/nss_db/db-open.c (internal_endent): Protect against NULL
2737 mappings.
2738 * nss/tst-nss-db-endgrent.c: New.
2739 * nss/tst-nss-db-endgrent.root: New.
2740 * nss/tst-nss-db-endpwent.c: New.
2741 * nss/tst-nss-db-endpwent.root: New.
2742 * nss/Makefile: Add new tests.
2743 * support/links-dso-program-c.c: Add selinux dependency.
2744 * support/links-dso-program.cc: Add selinux dependency.
2745 * support/Makefile: Build those with -lselinux if enabled.
2746
30ba0375
SN
27472019-07-10 Szabolcs Nagy <szabolcs.nagy@arm.com>
2748
2749 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove the
2750 DT_AARCH64_VARIANT_PCS check.
2751 (elf_machine_lazy_rel): Use l_info[DT_AARCH64 (VARIANT_PCS)].
2752 * sysdeps/aarch64/linkmap.h (struct link_map_machine): Remove
2753 variant_pcs.
2754
32b8188a
AS
27552019-07-10 Andreas Schwab <schwab@suse.de>
2756
2757 [BZ #23352]
2758 * malloc/malloc.h (__malloc_check_init): Don't declare.
2759 * include/malloc.h (__malloc_check_init): Likewise.
2760 * malloc/malloc-internal.h (__malloc_check_init): Declare it here.
2761 * manual/memory.texi (__malloc_check_init): Don't mention it.
2762
7901d4ee
MH
27632019-07-10 Mao Han <han_mao@c-sky.com>
2764
2765 * locale/Makefile: Fix tst-locale-locpath arguments passing.
2766
b5232c9f 27672019-07-09 Paul A. Clarke <pc@us.ibm.com>
32b8188a 2768
b5232c9f
PC
2769 * sysdeps/powerpc/fpu/fenv_libc.h (_FPU_GET_RC): Protect use of
2770 __builtin_cpu_supports with __BUILTIN_CPU_SUPPORTS__.
2771
6ba205b2
DD
27722019-07-08 DJ Delorie <dj@redhat.com>
2773
2774 [BZ #23501]
2775 * io/ftw.c (process_entry): Fill in statbuf for dangling links.
2776 * io/tst-ftw-lnk.c: New test.
2777 * io/Makefile: Run it.
2778
f215dbbd
AZ
27792019-07-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2780
6ea21bfe
AZ
2781 * sysdeps/powerpc/power7/fpu/s_logb.c: Move to ...
2782 * sysdeps/powerpc/fpu/s_logb.c: ... here. Use inline FP constants.
2783 * sysdeps/powerpc/power7/fpu/s_logbf.c: Move to ...
2784 * sysdeps/powerpc/fpu/s_logbf.c: ... here. Use inline FP constants.
2785 * sysdeps/powerpc/power7/fpu/s_logbl.c: Move to ...
2786 * sysdeps/powerpc/fpu/s_logbl.c: ... here. Use inline FP constants.
2787 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c:
2788 Adjust implementation path.
2789 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c:
2790 Adjust implementation path.
2791 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-power7.c:
2792 Adjust implementation path.
2793 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
2794 (libm-sysdep_routines): Add s_log* objects.
2795 (CFLAGS-s_logbf-power7.c, CFLAGS-s_logbl-power7.c,
2796 CFLAGS-s_logb-power7.c): New fule.
2797 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: Move
2798 to ...
2799 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logb-power7.c:
2800 ... here.
2801 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: Move
2802 to ...
2803 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logb-ppc64.c:
2804 ... here.
2805 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Move to ...
2806 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logb.c: ... here.
2807 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: Move
2808 to ...
2809 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbf-power7.c:
2810 ... here.
2811 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: Move
2812 to ...
2813 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbf-ppc64.c:
2814 ... here.
2815 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Move to ...
2816 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbf.c: ... here.
2817 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: Move
2818 to ...
2819 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbl-power7.c:
2820 ... here.
2821 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: Move
2822 to ...
2823 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbl-ppc64.c:
2824 ... here.
2825 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: Move to ...
2826 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_logbl.c: ... here.
2827 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Remove file.
2828 * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Remove file.
2829 * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
2830 * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
2831
105f2ed3
AZ
2832 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Move to ...
2833 * sysdeps/ieee754/dbl-64/s_logb.c: ... here. Add work around for
2834 powerpc32 integer 0 converting to -0.
2835
0cccd37f
AZ
2836 * benchtests/Makefile (bench-math): Add logb.
2837 * benchtests/logb-inputs: New file.
2838 * benchtests/logbf-inputs: New file.
2839
931c616e
AZ
2840 * sysdeps/powerpc/power5+/fpu/s_modf.c: Move to ...
2841 * sysdeps/powerpc/fpu/s_modf.c: ... here. Add ISA 2.07 optimization.
2842 * sysdeps/powerpc/power5+/fpu/s_modff.c: Move to ...
2843 * sysdeps/powerpc/fpu/s_modff.c: ... here. Add ISA 2.07 optimization.
2844 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
2845 Adjust include.
2846 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
2847 Likewise.
2848 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile (sysdep_calls,
2849 sysdep_routines): Add s_modf* objects.
2850 (CFLAGS-s_modf-power5+.c, CFLAGS-s_modff-power5+.c,
2851 CFLAGS-s_modf-ppc64.c, CFLAGS-s_modff-ppc64.c): New rule.
2852 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: Move
2853 to ...
2854 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modf-power5+.c:
2855 ... here.
2856 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: Movo
2857 to ...
2858 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modf-power5+.c: Move
2859 ... here.
2860 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Move to ...
2861 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modf.c: ... here.
2862 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: Move
2863 to ...
2864 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modff-power5+.c:
2865 ... here.
2866 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: Move to ...
2867 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modff-ppc64.c:
2868 ... here.
2869 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Move to ...
2870 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_modff.c: ... here.
2871
69461d98
AZ
2872 * sysdeps/powerpc/fpu/e_hypot.c (two60, two500, two600, two1022,
2873 twoM500, twoM600, two60factor, pdnum): Remove.
2874 (TEST_INFO_NAN, GET_TW0_HIGH_WORD): Remove macro.
2875 (__ieee754_hypot): Replace static variables with inline definition,
2876 remove ununsed branches.
2877 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
2878 (libm-sysdep_routines): Remove e_hypot-* objects.
2879 (CFLAGS-e_hypot-power7.c, CFLAGS-e_hypotf-power7.c): Remove rule.
2880 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: Remove
2881 file.
2882 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: Likewise.
2883 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: Likewise.
2884 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: Likewise.
2885 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: Likewise.
2886 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: Likewise.
2887
f215dbbd
AZ
2888 * benchtests/Makefile (bench-math): Add hypot.
2889 * benchtests/hypot-inputs: New file.
2890
97274b18
VC
28912019-07-08 Vincent Chen <vincentc@andestech.com>
2892
2893 * sysdeps/unix/sysv/linux/dl-vdso.h
2894 (VDSO_NAME_LINUX_4, VDSO_HASH_LINUX_4): New defines.
2895
484b7af3
AS
28962019-07-04 Andreas Schwab <schwab@suse.de>
2897
2898 [BZ #24484]
2899 * sysdeps/riscv/ldsodefs.h (DL_RO_DYN_SECTION): Define.
2900
2b8a3c86
SN
29012019-07-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
2902
2903 * sysdeps/aarch64/Makefile: Install sys/ifunc.h and add tests.
2904 * sysdeps/aarch64/dl-irel.h (elf_ifunc_invoke): Update to new ABI.
2905 * sysdeps/aarch64/sys/ifunc.h: New file.
2906 * sysdeps/aarch64/tst-ifunc-arg-1.c: New file.
2907 * sysdeps/aarch64/tst-ifunc-arg-2.c: New file.
2908
41d6f74e
FW
29092019-07-01 Florian Weimer <fweimer@redhat.com>
2910
2911 [BZ #20188]
2912 * nptl/Versions (libpthread): Remove __fork from GLIBC_2.0.
2913 Replace __vfork with __libpthread_version_placeholder for
2914 GLIBC_2.1.2.
2915 (libc): Remove __libc_vfork from GLIBC_PRIVATE.
2916 * nptl/Makefile (libpthread-routines): Remove pt-vfork. Add
2917 libpthread-compat.
2918 * nptl/pt-vfork.c: Remove file.
2919 * sysdeps/unix/sysv/linux/aarch64/pt-vfork.c: Likewise.
2920 * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: Likewise.
2921 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
2922 * sysdeps/unix/sysv/linux/hppa/pt-vfork.S: Likewise.
2923 * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: Likewise.
2924 * sysdeps/unix/sysv/linux/m68k/pt-vfork.c: Likewise.
2925 * sysdeps/unix/sysv/linux/microblaze/pt-vfork.S: Likewise.
2926 * sysdeps/unix/sysv/linux/mips/pt-vfork.S: Likewise.
2927 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: Likewise.
2928 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
2929 * sysdeps/unix/sysv/linux/s390/pt-vfork.S: Likewise.
2930 * sysdeps/unix/sysv/linux/sh/pt-vfork.S: Likewise.
2931 * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: Likewise.
2932 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist (GLIBC_2.17):
2933 Remove vfork, __vfork.
2934 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist (GLIBC_2.0):
2935 Remove vfork.
2936 (GLIBC_2.1.2): Replace __vfork with
2937 __libpthread_version_placeholder.
2938 * sysdeps/unix/sysv/linux/arm/libpthread.abilist (GLIBC_2.4):
2939 Remove vfork, __vfork.
2940 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist (GLIBC_2.2):
2941 Likewise.
2942 * sysdeps/unix/sysv/linux/i386/libpthread.abilist (GLIBC_2.0):
2943 Remove vfork.
2944 (GLIBC_2.1.2): Replace __vfork with
2945 __libpthread_version_placeholder.
2946 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist (GLIBC_2.2):
2947 Remove vfork.
2948 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist
2949 (GLIBC_2.4): Remove vfork, __vfork.
2950 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist
2951 (GLIBC_2.0): Remove vfork.
2952 (GLIBC_2.1.2): Replace __vfork with
2953 __libpthread_version_placeholder.
2954 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist
2955 (GLIBC_2.18): Remove vfork, __vfork.
2956 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist
2957 (GLIBC_2.0): Remove vfork.
2958 (GLIBC_2.2): Remove __vfork.
2959 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist:
2960 (GLIBC_2.2): Remove vfork, __vfork.
2961 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
2962 (GLIBC_2.0): Remove vfork.
2963 (GLIBC_2.1.2): Replace __vfork with
2964 __libpthread_version_placeholder.
2965 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libpthread.abilist
2966 (GLIBC_2.3): Remove vfork, __vfork.
2967 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libpthread.abilist
2968 (GLIBC_2.17): Likewise.
2969 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist
2970 (GLIBC_2.0): Remove vfork.
2971 (GLIBC_2.1.2): Replace __vfork with
2972 __libpthread_version_placeholder.
2973 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist
2974 (GLIBC_2.2): Remove vfork, __vfork.
2975 * sysdeps/unix/sysv/linux/sh/libpthread.abilist (GLIBC_2.2):
2976 Likewise.
2977 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist
2978 (GLIBC_2.0): Remove vfork.
2979 (GLIBC_2.1.2): Replace __vfork with
2980 __libpthread_version_placeholder.
2981 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist
2982 (GLIBC_2.2): Remove vfork, __vfork.
2983 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist
2984 (GLIBC_2.2.5): Likewise.
2985 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist
2986 (GLIBC_2.16): Likewise.
2987 * sysdeps/unix/sysv/linux/hppa/localplt.data (libpthread.so):
2988 Remove __errno_location.
2989
27cec9ae
FW
29902019-07-02 Florian Weimer <fweimer@redhat.com>
2991
2992 [BZ #24757]
2993 * malloc/Depend: Add nptl and htl, due to potential indirect
2994 libpthread dependency of memusagestat.
2995
d1bc2cbb
SL
29962019-07-02 Stefan Liebler <stli@linux.ibm.com>
2997
2998 * resolv/res_send.c (__res_context_send): Disable maybe-uninitialized
2999 warning.
3000
72edea80
FW
30012019-07-01 Florian Weimer <fweimer@redhat.com>
3002
3003 * scripts/build-many-glibcs.py (Context.add_all_configs): Add v4t
3004 variant for arm-linux-gnueabi.
3005
d0093c5c
L
30062019-07-01 H.J. Lu <hongjiu.lu@intel.com>
3007
3008 [BZ #24259]
3009 * elf/dl-open.c (dl_open_worker): Call _dl_open_check after
3010 relocation.
3011 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-5a,
3012 tst-cet-legacy-5b, tst-cet-legacy-6a and tst-cet-legacy-6b.
3013 (modules-names): Add tst-cet-legacy-mod-5a, tst-cet-legacy-mod-5b,
3014 tst-cet-legacy-mod-5c, tst-cet-legacy-mod-6a, tst-cet-legacy-mod-6b
3015 and tst-cet-legacy-mod-6c.
3016 (CFLAGS-tst-cet-legacy-5a.c): New.
3017 (CFLAGS-tst-cet-legacy-5b.c): Likewise.
3018 (CFLAGS-tst-cet-legacy-mod-5a.c): Likewise.
3019 (CFLAGS-tst-cet-legacy-mod-5b.c): Likewise.
3020 (CFLAGS-tst-cet-legacy-mod-5c.c): Likewise.
3021 (CFLAGS-tst-cet-legacy-6a.c): Likewise.
3022 (CFLAGS-tst-cet-legacy-6b.c): Likewise.
3023 (CFLAGS-tst-cet-legacy-mod-6a.c): Likewise.
3024 (CFLAGS-tst-cet-legacy-mod-6b.c): Likewise.
3025 (CFLAGS-tst-cet-legacy-mod-6c.c): Likewise.
3026 ($(objpfx)tst-cet-legacy-5a): Likewise.
3027 ($(objpfx)tst-cet-legacy-5a.out): Likewise.
3028 ($(objpfx)tst-cet-legacy-mod-5a.so): Likewise.
3029 ($(objpfx)tst-cet-legacy-mod-5b.so): Likewise.
3030 ($(objpfx)tst-cet-legacy-5b): Likewise.
3031 ($(objpfx)tst-cet-legacy-5b.out): Likewise.
3032 (tst-cet-legacy-5b-ENV): Likewise.
3033 ($(objpfx)tst-cet-legacy-6a): Likewise.
3034 ($(objpfx)tst-cet-legacy-6a.out): Likewise.
3035 ($(objpfx)tst-cet-legacy-mod-6a.so): Likewise.
3036 ($(objpfx)tst-cet-legacy-mod-6b.so): Likewise.
3037 ($(objpfx)tst-cet-legacy-6b): Likewise.
3038 ($(objpfx)tst-cet-legacy-6b.out): Likewise.
3039 (tst-cet-legacy-6b-ENV): Likewise.
3040 * sysdeps/x86/tst-cet-legacy-5.c: New file.
3041 * sysdeps/x86/tst-cet-legacy-5a.c: Likewise.
3042 * sysdeps/x86/tst-cet-legacy-5b.c: Likewise.
3043 * sysdeps/x86/tst-cet-legacy-6.c: Likewise.
3044 * sysdeps/x86/tst-cet-legacy-6a.c: Likewise.
3045 * sysdeps/x86/tst-cet-legacy-6b.c: Likewise.
3046 * sysdeps/x86/tst-cet-legacy-mod-5.c: Likewise.
3047 * sysdeps/x86/tst-cet-legacy-mod-5a.c: Likewise.
3048 * sysdeps/x86/tst-cet-legacy-mod-5b.c: Likewise.
3049 * sysdeps/x86/tst-cet-legacy-mod-5c.c: Likewise.
3050 * sysdeps/x86/tst-cet-legacy-mod-6.c: Likewise.
3051 * sysdeps/x86/tst-cet-legacy-mod-6a.c: Likewise.
3052 * sysdeps/x86/tst-cet-legacy-mod-6b.c: Likewise.
3053 * sysdeps/x86/tst-cet-legacy-mod-6c.c: Likewise.
3054
3db85a98
PC
30552019-06-30 Paul A. Clarke <pc@us.ibm.com>
3056
3057 * sysdeps/powerpc/bits/fenvinline.h (__fegetround): Use
3058 __fegetround_ISA300() or __fegetround_ISA2() as appropriate.
3059 (__fegetround_ISA300) New.
3060 (__fegetround_ISA2) New.
3061 * sysdeps/powerpc/fpu_control.h (IS_ISA300): New.
3062 (_FPU_MFFS): Move implementation...
3063 (_FPU_GETCW): Here.
3064 (_FPU_MFFSL): Move implementation....
3065 (_FPU_GET_RC_ISA300): Here. New.
3066 (_FPU_GET_RC): Use _FPU_GET_RC_ISA300() or _FPU_GETCW() as appropriate.
3067 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_status_ISA300): New.
3068 (fegetenv_status): New.
3069 * sysdeps/powerpc/fpu/fegetmode.c (fegetmode): Use fegetenv_status()
3070 instead of fegetenv_register().
3071 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Likewise.
3072
d0645912
WD
30732019-06-28 Wilco Dijkstra <wdijkstr@arm.com>
3074
3075 * benchtests/bench-math-inlines.c: Increase iterations.
3076 * benchtests/bench-memcmp.c: Likewise.
3077 * benchtests/bench-rawmemchr.c: Likewise.
3078 * benchtests/bench-strcmp.c: Likewise.
3079 * benchtests/bench-strcpy_chk.c: Likewise.
3080 * benchtests/bench-string.h (INNER_LOOP_ITERS8): Add define.
3081 (INNER_LOOP_ITERS_MEDIUM): Increase iterations.
3082 (INNER_LOOP_ITERS_SMALL): Likewise.
3083 * benchtests/bench-strncat.c: Increase iterations.
3084 * benchtests/bench-strncmp.c: Increase iterations.
3085 * benchtests/bench-strncpy.c: Reduce iterations for wide strings.
3086 * benchtests/bench-strrchr.c: Increase iterations.
3087 * benchtests/bench-strstr.c: Keep iterations unchanged.
3088 * benchtests/bench-strtod.c: Increase iterations.
3089
afe23eb0
AY
30902019-06-28 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
3091
3092 * benchtests/bench-memccpy.c: Replace INNER_LOOP_ITERS
3093 with INNER_LOOP_ITERS_LARGE.
3094 * benchtests/bench-memchr.c: Likewise.
3095 * benchtests/bench-rawmemchr.c: Likewise.
3096 * benchtests/bench-strcat.c: Likewise.
3097 * benchtests/bench-strchr.c: Likewise.
3098 * benchtests/bench-string.h: Likewise.
3099 * benchtests/bench-strlen.c: Likewise.
3100 * benchtests/bench-strncpy.c: Likewise.
3101 * benchtests/bench-strnlen.c: Likewise.
3102
507f55c0
FW
31032019-06-28 Florian Weimer <fweimer@redhat.com>
3104
3105 * sysdeps/unix/sysv/linux/tst-getdents64.c (large_buffer_checks):
3106 Use mmap instead of malloc. malloc with M_PERTURB writes to the
3107 entire allocated memory range.
3108
589787f8
TK
31092019-06-28 Tobias Klauser <tklauser@distanz.ch>
3110
3111 * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Remove macro.
3112 (prepare_version_base): New helper inline function.
3113 (prepare_version): New macro replacing PREPARE_VERSION.
3114 (PREPARE_VERSION_KNOWN): Use prepare_version instead of PREPARE_VERSION.
3115
f0b2132b
FW
31162019-06-28 Florian Weimer <fweimer@redhat.com>
3117
3118 [BZ #24741]
3119 * elf/dl-lookup.c (do_lookup_x): Do not fail if there is a soname
3120 mismatch in a versioned symbol reference.
3121 (_dl_lookup_symbol_x): Do not report soname mismatch failures.
3122 * elf/Makefile [$(build-shared)] (tests): Add tst-sonamemove-link,
3123 tst-sonamemove-dlopen.
3124 (module-names): Add tst-sonamemove-linkmod1,
3125 tst-sonamemove-runmod1, tst-sonamemove-runmod2.
3126 (LDFLAGS-tst-sonamemove-linkmod1.so): Set.
3127 (LDFLAGS-tst-sonamemove-runmod1.so): Likewise.
3128 (LDFLAGS-tst-sonamemove-runmod2.so): Likewise.
3129 (tst-sonamemove-runmod1.so): Link against
3130 tst-sonamemove-runmod2.so.
3131 (tst-sonamemove-link): Link against tst-sonamemove-linkmod1.so.
3132 (tst-sonamemove-link.out): Depend on tst-sonamemove-runmod1.so,
3133 tst-sonamemove-runmod2.so.
3134 (tst-sonamemove-dlopen): Link with -ldl.
3135 (tst-sonamemove-dlopen.out): Likewise.
3136 * elf/tst-sonamemove-link.c: New file.
3137 * elf/tst-sonamemove-dlopen.c: Likewise.
3138 * elf/tst-sonamemove-linkmod1.c: Likewise.
3139 * elf/tst-sonamemove-linkmod1.map: Likewise.
3140 * elf/tst-sonamemove-runmod1.c: Likewise.
3141 * elf/tst-sonamemove-runmod1.map: Likewise.
3142 * elf/tst-sonamemove-runmod2.c: Likewise.
3143 * elf/tst-sonamemove-runmod2.map: Likewise.
3144
17432d71
FW
31452019-06-28 Florian Weimer <fweimer@redhat.com>
3146
3147 * support/xdlfcn.h (xdlvsym): Declare function.
3148 * support/xdlfcn.c (xdlvsym): Define funciton.
3149
5a659ccc
FW
31502019-06-28 Florian Weimer <fweimer@redhat.com>
3151
3152 [BZ #24744]
3153 io: Remove the copy_file_range emulation.
3154 * sysdeps/unix/sysv/linux/copy_file_range.c (copy_file_range): Do
3155 not define and call copy_file_range_compat.
3156 * io/Makefile (tests-static, tests-internal): Do not add
3157 tst-copy_file_range-compat.
3158 * io/copy_file_range-compat.c: Remove file.
3159 * io/copy_file_range.c (copy_file_range): Define as stub.
3160 * io/tst-copy_file_range-compat.c: Remove file.
3161 * io/tst-copy_file_range.c (xdevfile): Remove variable.
3162 (typical_sizes): Update comment. Remove 16K sizes.
3163 (maximum_offset, maximum_offset_errno, maximum_offset_hard_limit):
3164 Remove variables.
3165 (find_maximum_offset, pipe_as_source, pipe_as_destination)
3166 (delayed_write_failure_beginning, delayed_write_failure_end)
3167 (cross_device_failure, enospc_failure_1, enospc_failure)
3168 (oappend_failure): Remove functions.
3169 (tests): Adjust test case list.
3170 (do_test): Remove file system search code. Check for ENOSYS from
3171 copy_file_range. Do not free xdevfile.
3172 * manual/llio.texi (Copying File Data): Document ENOSYS error from
3173 copy_file_range. Do not document the EXDEV error, which future
3174 kernels may not report. Update the wording to reflect that
3175 further errors are possible.
3176 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
3177 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_COPY_FILE_RANGE): Do
3178 not undefine.
3179 * sysdeps/unix/sysv/linux/arm/kernel-features.h
3180 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
3181 Likewise.
3182 * sysdeps/unix/sysv/linux/kernel-features.h
3183 [__LINUX_KERNEL_VERSION >= 0x040500] (__ASSUME_COPY_FILE_RANGE):
3184 Remove definition.
3185 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
3186 [__LINUX_KERNEL_VERSION < 0x040A00] (__ASSUME_COPY_FILE_RANGE): Do
3187 not undefine.
3188 * sysdeps/unix/sysv/linux/sh/kernel-features.h
3189 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
3190 Likewise.
3191
1626f499
GG
31922019-06-27 Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
3193
3194 * libio/libioP.h (PRINTF_LDBL_USES_FLOAT128): New macro to be
3195 used as a mask for the mode argument of __vfprintf_internal.
3196 * stdio-common/printf-parse.h (printf_arg): New union member:
3197 pa_float128.
3198 * stdio-common/vfprintf-internal.c
3199 (PARSE_FLOAT_VA_ARG_EXTENDED): New macro.
3200 (PARSE_FLOAT_VA_ARG): Likewise.
3201 (SETUP_FLOAT128_INFO): Likewise.
3202 (process_arg): Use PARSE_FLOAT_VA_ARG_EXTENDED and
3203 SETUP_FLOAT128_INFO.
3204 [__HAVE_FLOAT128_UNLIKE_LDBL] (printf_positional): Write
3205 floating-point value to the new union member, pa_float128.
3206 (printf_positional): Zero-initialize args_value[cnt] with memset.
3207
a620bd79
FW
32082019-06-27 Florian Weimer <fweimer@redhat.com>
3209
3210 [BZ #24740]
3211 * sysdeps/unix/sysv/linux/getdents64.c (__getdents64): Adjust
3212 buffer size if necessary.
3213 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
3214 Likewise.
3215 * sysdeps/unix/sysv/linux/tst-getdents64.c (large_buffer_check):
3216 New function.
3217 (large_buffer_checks): Likewise.
3218 (do_test): Call large_buffer_checks.
3219
d039da1c
L
32202019-06-26 H.J. Lu <hongjiu.lu@intel.com>
3221
3222 * sysdeps/i386/dl-lookupcfg.h: Moved to ...
3223 * sysdeps/x86/dl-lookupcfg.h: Here.
3224 * sysdeps/x86_64/dl-lookupcfg.h: Removed.
3225
9d5d214e
AZ
32262019-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3227
aa32f5bf
AZ
3228 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
3229 (libm-sysdep_routines): Remove e_expf-power8 and expf-ppc64.
3230 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Remove
3231 file.
3232 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Likewise.
3233 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c: Likewise.
3234 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: Likewise.
3235 * sysdeps/powerpc/powerpc64/power8/fpu/e_expf.S: Likewise.
3236 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: Likewise.
3237
9d5d214e
AZ
3238 * sysdeps/powerpc/powerpc32/fpu/Makefile
3239 [$(subdir) == math] (CFLAGS-s_lround.c): New rule.
3240 * sysdeps/powerpc/powerpc32/fpu/s_llround.c (__llround): Add power5+
3241 and fctidz optimization.
3242 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Remove file.
3243 * sysdeps/powerpc/powerpc32/fpu/s_lround.c: New file.
3244 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
3245 (CFLAGS-s_llround-power6.c, CFLAGS-s_llround-power5+.c,
3246 CFLAGS-s_llround-ppc32.c, CFLAGS-s_lround-ppc32.c,
3247 CFLAGS-s_lround-power5+.c): New rule.
3248 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.c:
3249 New file.
3250 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.c:
3251 Likewise.
3252 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.c:
3253 Likewise.
3254 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.c:
3255 Likewise.
3256 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.c:
3257 Likewise.
3258 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
3259 Remove file.
3260 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
3261 Likewise.
3262 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
3263 Likewise.
3264 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
3265 Likewise.
3266 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
3267 Likewise.
3268 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
3269 * sysdeps/powerpc/powerpc32/power4/fpu/s_llroundf.S: Likewise.
3270 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
3271 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llroundf.S: Likewise.
3272 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
3273 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
3274 * sysdeps/powerpc/powerpc32/power6/fpu/s_llroundf.S: Likewise.
3275
a63b96fb
VC
32762019-06-26 Vincent Chen <vincentc@andestech.com>
3277
3278 * sysdeps/unix/sysv/linux/syscall-names.list: Add nds32
3279 specific system calls, fp_udfiex_crtl and udftrap.
3280
c78b3f55
SL
32812019-06-26 Stefan Liebler <stli@linux.ibm.com>
3282
3283 * nptl/tst-eintr1.c (tf1): Add return statement.
3284 (do_test): Remove unused th variable.
3285
9e6a7d9c
SL
32862019-06-26 Stefan Liebler <stli@linux.ibm.com>
3287
3288 * locale/programs/ld-ctype.c (charclass_symbolic_ellipsis):
3289 Return error if get_character fails.
3290
c89e669a
SL
32912019-06-25 Stefan Liebler <stli@linux.ibm.com>
3292
3293 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
3294
ab74d59f 32952019-06-24 Rafał Lużyński <digitalfreak@lingonborough.com>
a55541fd
RL
3296
3297 [BZ #24652]
3298 * localedata/locales/szl_PL (day): Use the correct Unicode
3299 sequences instead of non-ASCII characters.
3300
2bd81b60
GK
33012019-06-24 Grzegorz Kulik <gregorykkulik@gmail.com>
3302
3303 [BZ #24652]
3304 * localedata/locales/szl_PL (abday): Spelling corrections.
3305 (day): Likewise.
3306 (abmon): Likewise.
3307 (mon): Rename to...
3308 (alt_mon): This, then apply spelling corrections.
3309 (mon): New entry, month names in the genitive case.
3310
ab74d59f 33112019-06-21 Rafał Lużyński <digitalfreak@lingonborough.com>
fefa2179
RL
3312
3313 [BZ #23831]
3314 * localedata/locales/nl_AW (mon_thousands_sep): Set to ".".
3315 * localedata/locales/nl_NL (mon_thousands_sep): Likewise.
3316 (thousands_sep): Likewise.
3317 (grouping): Set to 3;3.
3318
85c748f9
TK
33192019-06-21 Tobias Klauser <tklauser@distanz.ch>
3320
3321 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (INIT_ARCH): Use
3322 PREPARE_VERSION_KNOWN.
3323 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Likewise.
3324 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_2_6_39): New
3325 define.
3326 (VDSO_HASH_LINUX_2_6_39): Likewise.
3327 (VDSO_NAME_LINUX_4_9): Likewise.
3328 (VDSO_HASH_LINUX_4_9): Likewise.
3329 * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (INIT_ARCH): Likewise.
3330 * sysdeps/unix/sysv/linux/powerpc/init-first.c
3331 (_libc_vdso_platform_setup): Likewise.
3332 * sysdeps/unix/sysv/linux/powerpc/time.c (INIT_ARCH): Likewise.
3333 * sysdeps/unix/sysv/linux/s390/init-first.c (_libc_vdso_platform_setup):
3334 Likewise.
3335 * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_platform_setup):
3336 Likewise.
3337
db13e32c
MC
33382019-06-20 Mike Crowe <mac@mcrowe.com>
3339
ce5b73a7
MC
3340 * nptl/eintr.c: Use libsupport.
3341 * nptl/tst-eintr1.c: Likewise.
3342 * nptl/tst-eintr2.c: Likewise.
3343 * nptl/tst-eintr3.c: Likewise.
3344 * nptl/tst-eintr4.c: Likewise.
3345 * nptl/tst-eintr5.c: Likewise.
3346 * nptl/tst-mutex-errorcheck.c: Likewise.
3347 * nptl/tst-mutex5.c: Likewise.
3348
8bf225d5
MC
3349 * support/test-driver.h: Add verbose_printf macro.
3350
db13e32c
MC
3351 * support/xtime.h: Add xclock_now() helper function.
3352
21cc130b
DL
33532019-06-20 Dmitry V. Levin <ldv@altlinux.org>
3354 Florian Weimer <fweimer@redhat.com>
3355
3356 [BZ #24228]
3357 * libio/genops.c (_IO_unbuffer_all)
3358 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)]: Do not attempt to free wide
3359 buffers and access _IO_FILE_complete members of legacy libio streams.
3360 * libio/tst-bz24228.c: New file.
3361 * libio/tst-bz24228.map: Likewise.
3362 * libio/Makefile [build-shared] (tests): Add tst-bz24228.
3363 [build-shared] (generated): Add tst-bz24228.mtrace and
3364 tst-bz24228.check.
3365 [run-built-tests && build-shared] (tests-special): Add
3366 $(objpfx)tst-bz24228-mem.out.
3367 (LDFLAGS-tst-bz24228, tst-bz24228-ENV): New variables.
3368 ($(objpfx)tst-bz24228-mem.out): New rule.
3369
49bc41b6
PC
33702019-06-19 Paul A. Clarke <pc@us.ibm.com>
3371
3372 * sysdeps/powerpc/fpu/fenv_libc.h (relax_fenv_state): Add 'volatile'.
3373 * sysdeps/powerpc/fpu/fpu_control.h (__FPU_MFFS): Likewise.
3374 (__FPU_MFFSL): Likewise.
3375 (_FPU_SETCW): Likewise.
3376
335c1007
SS
33772019-06-19 Stan Shebs <stanshebs@google.com>
3378 Raoni Fassina Firmino <raoni@linux.ibm.com>
3379
3380 [BZ #24640]
3381 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c
3382 [!SHARED] (__get_timebase_freq): Fix sense of a test in the
3383 static-linking version.
3384 * sysdeps/unix/sysv/linux/powerpc/Makefile
3385 (tests-static): Add test-gettimebasefreq-static.
3386 (tests): Likewise.
3387 * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq-static.c:
3388 New file.
3389
ab74d59f 33902019-06-19 Rafał Lużyński <digitalfreak@lingonborough.com>
f59a54ab
RL
3391
3392 [BZ #24614]
3393 * localedata/locales/nl_AW (n_sep_by_space): Set to 2 (a space
3394 between the currency symbol and the minus sign).
3395 (n_sign_posn): Set to 4 (the minus sign after the currency symbol).
3396
f0c5a803
SL
33972019-06-19 Stefan Liebler <stli@linux.ibm.com>
3398
3399 [BZ #24556]
3400 * string/test-strcasestr.c (check_result): Add NULL check.
3401 * nss/tst-field.c (check_rewrite): Likewise.
3402 * benchtests/bench-strstr.c (do_one_test): Likewise.
3403 * string/test-strstr.c (check_result): Likewise.
3404 * argp/argp-test.c (popt): Increase size of buf to 12.
3405 * benchtests/bench-malloc-simple.c (bench):
3406 Do not initialize tests array out of bounds.
3407
fabf5e49
FW
34082019-06-19 Florian Weimer <fweimer@redhat.com>
3409
3410 [BZ #24166]
3411 * dlfcn/dlfcn.h (Dl_serinfo): Do not use array of length 1 for
3412 dls_serpath field.
3413
2c75b545
FW
34142019-06-18 Florian Weimer <fweimer@redhat.com>
3415
3416 [BZ #24323]
3417 * include/elf.h (DT_1_SUPPORTED_MASK): Include DF_1_PIE.
3418 * elf/dl-load.c (_dl_map_object_from_fd): Check for DF_1_PIE and
3419 fail when called from dlopen.
3420 * elf/Makefile [have-fpie && build-shared] (tests): Add
3421 tst-dlopen-pie.
3422 (tst-dlopen-pie): Link with -ldl.
3423 (tst-dlopen-pie.out): Add run-time dependency on tst-pie1.
3424 * elf/tst-dlopen-pie.c (do_test): New file.
3425
ab74d59f 34262019-06-17 Rafał Lużyński <digitalfreak@lingonborough.com>
02d8b5ab
RL
3427
3428 [BZ #24614]
3429 * localedata/Makefile (LOCALES): Add nl_NL.UTF-8.
3430 * localedata/locales/nl_NL (n_sep_by_space): Set to 2 (a space
3431 between the currency symbol and the minus sign).
3432 (n_sign_posn): Set to 4 (the minus sign after the currency symbol).
3433 * localedata/tst-strfmon1.c (tests): Add test data for nl_NL.UTF-8.
3434
78049de0
AZ
34352019-06-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3436
112a0ae1
AZ
3437 * sysdeps/unix/sysv/linux/m68k/Makefile (sysdep_routines,
3438 sysdep-rtld-routines): Remove rules.
3439 * sysdeps/unix/sysv/linux/m68k/Versions (libc) [GLIBC_PRIVATE]:
3440 Remove __vdso_atomic_cmpxchg_32 and __vdso_atomic_barrier.
3441 (ld) [GLIBC_PRIVATE]: __rtld___vdso_read_tp,
3442 __rtld___vdso_atomic_cmpxchg_32, and __rtld___vdso_atomic_barrier.
3443 * sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h
3444 (atomic_compare_and_exchange_val_acq, atomic_full_barrier): Remove
3445 vDSO path for SHARED.
3446 * sysdeps/unix/sysv/linux/m68k/init-first.c: Remove file.
3447 * sysdeps/unix/sysv/linux/m68k/libc-m68k-vdso.c: Likewise.
3448 * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
3449 * sysdeps/unix/sysv/linux/m68k/m68k-vdso.c: Likewise.
3450 * sysdeps/unix/sysv/linux/m68k/m68k-vdso.h: Likewise.
3451 * sysdeps/unix/sysv/linux/m68k/m68k-helpers.c: New file.
3452
dee07df1
AZ
3453 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
3454 (libm-sysdep_routines): Add s_llround-power8, s_llround-power6x,
3455 s_llround-power5+, s_llround-ppc64, and s_llroundf-ppc64.
3456 (CFLAGS-s_llround-power8.c, CFLAGS-s_llround-power6x.c,
3457 CFLAGS-s_llround-power5+.c): New rule.
3458 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power5+.c:
3459 New file.
3460 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power6x.c:
3461 Likewise.
3462 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power8.c:
3463 Likewise.
3464 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-ppc64.c:
3465 Likewise.
3466 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llroundf-ppc64.c:
3467 Likewise.
3468 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Move to ...
3469 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround.c: ... here.
3470 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Move to ...
3471 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llroundf.c: ... here.
3472 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: Move to ...
3473 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lround.c: ... here.
3474 * sysdeps/powerpc/powerpc64/fpu/Makefile
3475 [$(subdir) == math] (CFLAGS-s_llround.c): New rule.
3476 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
3477 (libm-sysdep_routines): Remove s_llround-* objects.
3478 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Remove
3479 file.
3480 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S:
3481 Likewise.
3482 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S:
3483 Likewise.
3484 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S:
3485 Likewise.
3486 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S:
3487 Likewise.
3488 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
3489 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
3490 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
3491 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
3492 * sysdeps/powerpc/powerpc64/fpu/s_llround.c: New file.
3493 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.c: Likewise.
3494 * sysdeps/powerpc/powerpc64/fpu/s_lround.c: Likewise.
3495 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.c: Likewise.
3496 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
3497 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llroundf.S: Likewise.
3498 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
3499 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llroundf.S: Likewise.
3500 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Likewise.
3501 * sysdeps/powerpc/powerpc64/power8/fpu/s_llroundf.S: Likewise.
3502
2166283f
AZ
3503 * sysdeps/powerpc/fpu/s_lrintf.S: Remove file.
3504 * sysdeps/powerpc/powerpc64/fpu/s_lrintf.c: Move to ...
3505 * sysdeps/powerpc/fpu/s_lrintf.c: ... here.
3506 * sysdeps/powerpc/powerpc32/fpu/Makefile
3507 [$(subdir) == math] (CFLAGS-s_lrint.c): New rule.
3508 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Add power4
3509 optimization.
3510 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
3511 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Remove file.
3512 * sysdeps/powerpc/powerpc32/fpu/s_lrint.c: New file.
3513 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
3514 (CFLAGS-s_llrintf-power6.c, CFLAGS-s_llrintf-ppc32.c,
3515 CFLAGS-s_llrint-power6.c, CFLAGS-s_llrint-ppc32.c,
3516 CFLAGS-s_lrint-ppc32.c): New rule.
3517 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
3518 Remove file.
3519 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
3520 Likewise.
3521 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
3522 Likewise.
3523 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
3524 Likewise.
3525 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
3526 Likewise.
3527 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
3528 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
3529 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
3530 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
3531 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.c:
3532 New file.
3533 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.c:
3534 Likewise.
3535 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.c:
3536 Likewise.
3537 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.c:
3538 Likewise.
3539 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.c:
3540 Likewise.
3541
78049de0
AZ
3542 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
3543 (libm-sysdep_routines): Add s_llrint-power8, s_llrint-power6x, and
3544 s_llrint-ppc64.
3545 (CFLAGS-s_llrint-power8.c, CFLAGS-s_llrint-power6x.c): New rule.
3546 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-power6x.c: New
3547 file.
3548 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-power8.c:
3549 Likewise.
3550 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-ppc64.c:
3551 Likewise.
3552 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: Move to ...
3553 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lrint.c: ... here.
3554 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Move to ...
3555 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint.c: ... here.
3556 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Move to ...
3557 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrintf.c: ... here.
3558 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lrint.c: New file.
3559 * sysdeps/powerpc/powerpc64/fpu/Makefile: Likewise.
3560 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
3561 (libm-sysdep_routines): Remove s_llrint-* objects.
3562 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Remove
3563 file.
3564 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S:
3565 Likewise.
3566 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
3567 * sysdeps/powerpc/powerpc64/fpu/s_llrint.c: New file.
3568 * sysdeps/powerpc/powerpc64/fpu/s_llrintf.c: Likewise.
3569 * sysdeps/powerpc/powerpc64/fpu/s_lrint.c: Likewise.
3570 * sysdeps/powerpc/powerpc64/fpu/s_lrintf.c: Likewise.
3571 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Remove file.
3572 * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
3573 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
3574 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
3575 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Likewise.
3576
48c3c123
FW
35772019-06-14 Florian Weimer <fweimer@redhat.com>
3578
3579 * sysdeps/unix/sysv/linux/bits/statx.h: Use string literal in
3580 argument to __glibc_has_include to inhibit macro expansion.
3581
8d141877
FW
35822019-06-14 Florian Weimer <fweimer@redhat.com>
3583
3584 * misc/sys/cdefs.h (__glibc_has_include): Do not use a
3585 function-like macro, so that __has_include can inhibit expansion
3586 of its argument.
3587
a26e2e9f
JM
35882019-06-13 Joseph Myers <joseph@codesourcery.com>
3589
cf274686
JM
3590 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_ROUTER_ALERT_ISOLATE):
3591 New macro.
3592
a26e2e9f
JM
3593 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
3594 Allow memset in libc.so.
3595
82bc69c0
SN
35962019-06-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
3597
3598 * sysdeps/aarch64/dl-dtprocnum.h: New file.
3599 * sysdeps/aarch64/dl-machine.h (DT_AARCH64): Define.
3600 (elf_machine_runtime_setup): Handle DT_AARCH64_VARIANT_PCS.
3601 (elf_machine_lazy_rel): Check STO_AARCH64_VARIANT_PCS and bind such
3602 symbols at load time.
3603 * sysdeps/aarch64/linkmap.h (struct link_map_machine): Add variant_pcs.
3604
55f82d32
SN
36052019-06-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
3606
3607 * elf/elf.h (STO_AARCH64_VARIANT_PCS): Define.
3608 (DT_AARCH64_VARIANT_PCS): Define.
3609
21bd039b
AZ
36102019-06-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3611
11926960
AZ
3612 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
3613 (sysdeps_routines, libm-sysdep_routines): Remove s_finite*
3614 objects.
3615 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
3616 Remove file.
3617 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c:
3618 Likewise.
3619 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: Likewise.
3620 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
3621 Likewise.
3622 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: Likewise.
3623 * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
3624 * sysdeps/powerpc/powerpc32/power7/fpu/s_finitef.S: Likewise.
3625 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_call):
3626 Remove s_finite* objects.
3627 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Remove file.
3628 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
3629 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.c: Likewise.
3630 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
3631 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: Likewise.
3632 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: Likewise.
3633 * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
3634 * sysdeps/powerpc/powerpc64/power7/fpu/s_finitef.S: Likewise.
3635 * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: Likewise.
3636 * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: Likewise.
3637
a7218676
AZ
3638 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Move to ...
3639 * sysdeps/ieee754/dbl-64/s_finite.c: ... here and format code.
3640
6427a6ac
AZ
3641 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
3642 (sysdeps_routines, libm-sysdep_routines): Remove s_isinf* and s_isinf*
3643 objects.
3644 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S:
3645 Remove file.
3646 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c:
3647 Likewise.
3648 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: Likewise.
3649 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
3650 Likewise.
3651 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: Likewise.
3652 * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
3653 * sysdeps/powerpc/powerpc32/power7/fpu/s_isinff.S: Likewise.
3654 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_call):
3655 Remove s_isinf* and s_isinf* objects.
3656 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
3657 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
3658 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.c: Likewise.
3659 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
3660 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: Likewise.
3661 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: Likewise.
3662 * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
3663 * sysdeps/powerpc/powerpc64/power7/fpu/s_isinff.S: Likewise.
3664 * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: Likewise.
3665 * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: Likewise.
3666
a8c590f7
AZ
3667 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Move to ...
3668 * sysdeps/ieee754/dbl-64/s_isinf.c: ... here and format code.
3669
2666f963
AZ
3670 * sysdeps/powerpc/fpu/s_isnan.c: Remove file.
3671 * sysdeps/powerpc/fpu/s_isnanf.S: Likewise.
3672 * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
3673 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
3674 (sysdeps_routines, libm-sysdep_routines): Remove s_isnan-* and
3675 s_isnanf-* objects.
3676 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S:
3677 Remove file
3678 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S:
3679 Likewise.
3680 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S:
3681 Likewise.
3682 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S:
3683 Likewise.
3684 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: Likewise.
3685 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power5.S:
3686 Likewise.
3687 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
3688 Likewise.
3689 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: Likewise.
3690 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
3691 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: Likewise.
3692 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
3693 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: Likewise.
3694 * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
3695 * sysdeps/powerpc/powerpc32/power7/fpu/s_isnanf.S: Likewise.
3696 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_calls):
3697 Remove s_isnan-* and s_isnanf-* objects.
3698 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
3699 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
3700 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S:
3701 Likewise.
3702 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
3703 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
3704 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
3705 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
3706 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: Likewise.
3707 * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
3708 * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
3709 * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
3710 * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
3711 * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: Likewise.
3712 * sysdeps/powerpc/powerpc64/power7/fpu/s_isnanf.S: Likewise.
3713 * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: Likewise.
3714 * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: Likewise.
3715
197dbda1
AZ
3716 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Move to ...
3717 * sysdeps/ieee754/dbl-64/s_isnan.c: ... here and format code.
3718
2731a326
AZ
3719 * benchtests/Makefile (bench-math): Add isnan, isinf, and isfinite.
3720 (CFLAGS-bench-isnan.c, CFLAGS-bench-isinf.c,
3721 CFLAGS-bench-isfinite.c): New rule.
3722 * benchtests/isnan-input: New file.
3723 * benchtests/isinf-input: New file.
3724 * benchtests/isfinite-input: New file.
3725
e41d66e4
AZ
3726 * sysdeps/powerpc/fpu/s_copysign.c: New file.
3727 * sysdeps/powerpc/fpu/s_copysignf.c: Likewise.
3728 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Remove file.
3729 * sysdeps/powerpc/powerpc32/fpu/s_copysignf.S: Likewise.
3730 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
3731 (sysdep_routines, libm-sysdep_routines): Remove s_copysign-power6 and
3732 s_copysign-ppc32.
3733 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
3734 Remove file.
3735 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
3736 Likewise.
3737 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
3738 Likewise.
3739 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
3740 Likewise.
3741 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Likewise.
3742 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: Likewise.
3743 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdeps_calls):
3744 Remove s_copysign-power6 s_copysign-ppc64.
3745 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S:
3746 Remove file.
3747 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S:
3748 Likewise.
3749 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
3750 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
3751 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
3752 * sysdeps/powerpc/powerpc64/fpu/s_copysignf.S: Likewise.
3753 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
3754 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: Likewise.
3755
21bd039b
AZ
3756 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode,
3757 round_to_integer_float, round_mode): Add RINT handling.
3758 (reset_fenv_mode): New symbol.
3759 * sysdeps/powerpc/fpu/s_rint.c (__rint): Use generic implementation.
3760 * sysdeps/powerpc/fpu/s_rintf.c (__rintf): Likewise.
3761 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove file.
3762 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
3763 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
3764 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
3765
cfa61144
FW
37662019-06-12 Florian Weimer <fweimer@redhat.com>
3767
3768 [BZ #24632]
3769 * libio/libioP.h (_IO_JUMPS_FUNC_UPDATE): New macro.
3770 * libio/freopen.c (freopen): Use it.
3771
744e8296
FW
37722019-06-12 Florian Weimer <fweimer@redhat.com>
3773
3774 Linux: Deprecate sysctl.
3775 * include/sysctl.h (__sysctl): Remove declaration.
3776 * scripts/check-installed-headers.sh (sys/sysctl.h): Disable
3777 check.
3778 * sysdeps/unix/sysv/linux/sys/sysctl.h: Add deprecation warning.
3779 (sysctl): Add deprecation attribute.
3780 * sysdeps/unix/sysv/linux/sysctl.c: Include <linux/sysctl.h>
3781 directly, to avoid the deprecation warning. Do not include
3782 <string.h>.
3783 (__sysctl): Remove hidden alias.
3784
5dad6ffb
FW
37852019-06-12 Florian Weimer <fweimer@redhat.com>
3786
3787 Linux: Use kernel headers for statx definitions if available.
3788 * include/bits/statx-generic.h: New file.
3789 * include/bits/types/struct_statx.h: Likewise.
3790 * include/bits/types/struct_statx_timestamp.h: Likewise.
3791 * io/Makefile (headers): Add bits/statx-generic.h.
3792 * io/bits/statx-generic.h: New file. Partly copied from
3793 io/bits/statx.h.
3794 * io/statx_generic.c: Include <bits/types/struct_statx.h> to
3795 define original_statx.
3796 * io/bits/types/struct_statx.h: Likewise.
3797 * io/bits/types/struct_statx_timestamp.h: Likewise.
3798 (statx_generic): Use original_statx.
3799 * io/bits/statx.h: Rewrite to include <bits/statx-generic.h>.
3800 * sysdeps/unix/sysv/linux/bits/statx.h: New file.
3801
4e75c2a4
FW
38022019-06-12 Florian Weimer <fweimer@redhat.com>
3803
3804 * misc/sys/cdefs.h (__glibc_has_include): Define.
3805
680942b0
WD
38062019-06-12 Wilco Dijkstra <wdijkstr@arm.com>
3807
3808 * string/memmem.c (__memmem): Rewrite to improve performance.
3809
5e0a7ecb
WD
38102019-06-12 Wilco Dijkstra <wdijkstr@arm.com>
3811
3812 * string/str-two-way.h (two_way_short_needle): Add inline to avoid
3813 warning.
3814 (two_way_long_needle): Block inlining.
3815 * string/strstr.c (strstr2): Add new function.
3816 (strstr3): Likewise.
3817 (STRSTR): Completely rewrite strstr to improve performance.
3818
80b2bfb5
WD
38192019-06-11 Wilco Dijkstra <wdijkstr@arm.com>
3820
3821 * benchtests/bench-strstr.c (test_hard_needle): New function.
3822
e6e24243
JM
38232019-06-10 Joseph Myers <joseph@codesourcery.com>
3824
3825 * malloc/tst-calloc.c: Include <libc-diag.h>.
3826 (null_test): Ignore -Wunused-result around calls to calloc.
3827 * malloc/tst-mallocfork.c: Include <libc-diag.h>.
3828 (do_test): Ignore -Wunused-result around call to malloc.
3829
51ea67d5
FW
38302019-06-07 Florian Weimer <fweimer@redhat.com>
3831
3832 Linux: Add getdents64 system call.
3833 * include/dirnent.h (getdents): Add comment and change buffer
3834 argument type to void *.
3835 (getdents64): Likewise. Add hidden prototype.
3836 * sysdeps/unix/sysv/linux/bits/Versions (GLIBC_2.30): Export
3837 getdents64.
3838 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == dirent] (tests):
3839 Add tst-getdents64.
3840 * sysdeps/unix/sysv/linux/bits/unistd_ext.h (getdents64): Declare.
3841 * sysdeps/unix/sysv/linux/getdents.c (__getdents): Change buffer
3842 argument type to void *.
3843 * sysdeps/unix/sysv/linux/getdents64.c (__getdents64): Likewise.
3844 Add hidden definition and getdents64 alias.
3845 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
3846 Likewise.
3847 * sysdeps/unix/sysv/linux/tst-getdents64.c: New file.
3848 * manual/filesys.texi (Accessing Directories): Add Low-level
3849 Directory Access node reference.
3850 (Opening a Directory): Cross-reference it.
3851 (Low-level Directory Access): New node.
3852 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30): Add
3853 getdents64.
3854 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
3855 Likewise.
3856 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
3857 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
3858 Likewise.
3859 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
3860 Likewise.
3861 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
3862 Likewise.
3863 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
3864 Likewise.
3865 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
3866 Likewise.
3867 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
3868 Likewise.
3869 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
3870 Likewise.
3871 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
3872 (GLIBC_2.30): Likewise.
3873 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
3874 (GLIBC_2.30): Likewise.
3875 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
3876 (GLIBC_2.30): Likewise.
3877 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
3878 (GLIBC_2.30): Likewise.
3879 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
3880 Likewise.
3881 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
3882 (GLIBC_2.30): Likewise.
3883 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
3884 (GLIBC_2.30): Likewise.
3885 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
3886 (GLIBC_2.30): Likewise.
3887 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
3888 (GLIBC_2.30): Likewise.
3889 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
3890 Likewise.
3891 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
3892 Likewise.
3893 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
3894 Likewise.
3895 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
3896 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
3897 Likewise.
3898 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
3899 Likewise.
3900 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
3901 Likewise.
3902 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
3903 Likewise.
3904
de751ebc
PC
39052019-06-06 Paul A. Clarke <pc@us.ibm.com>
3906
3907 * sysdeps/powerpc/fpu_control.h (_FPU_MASK_RC): New.
3908 (__FPU_MFFS): New.
3909 (__FPU_MFFSL): New.
3910 (_FPU_GET_RC): New.
3911 (_FPU_GETCW): Use __FPU_MFFS().
3912 * sysdeps/powerpc/fpu/get-rounding-mode.h: New file.
3913
28dd3939
FW
39142019-06-06 Florian Weimer <fweimer@redhat.com>
3915
3916 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Do not use
3917 internal GCC preprocessor identifier __has_include__.
3918
0158473d
PC
39192019-06-05 Paul A. Clarke <pc@us.ibm.com>
3920
3921 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Replace code
3922 with call to equivalent function.
3923
e863dbf6
FW
39242019-06-04 Florian Weimer <fweimer@redhat.com>
3925
3926 * iconv/gconv_dl.c (release_handle): Remove file-level definition.
3927 (do_release_shlib): Adjust for __twalk_r.
3928 (__gconv_release_shlib): Call __twalk_r.
3929
4802be92
AS
39302019-06-04 Andreas Schwab <schwab@suse.de>
3931
3932 [BZ #18830]
3933 * iconv/skeleton.c (FUNCTION_NAME): Use RESET_INPUT_BUFFER only if
3934 no irreversible characters occurred.
3935 * iconv/gconv_simple.c (internal_ucs4_loop)
3936 (internal_ucs4_loop_unaligned, internal_ucs4_loop_single)
3937 (ucs4_internal_loop, ucs4_internal_loop_unaligned)
3938 (ucs4_internal_loop_single, internal_ucs4le_loop)
3939 (internal_ucs4le_loop_unaligned, internal_ucs4le_loop_single)
3940 (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
3941 (ucs4le_internal_loop_single): Add const to outend.
3942 * sysdeps/s390/multiarch/gconv_simple.c (internal_ucs4le_loop)
3943 (ucs4_internal_loop, ucs4le_internal_loop): Likewise.
3944 * iconv/Makefile (tests): Add tst-iconv7.
3945 * iconv/tst-iconv7.c: New file.
3946
dc91a19e
JM
39472019-06-03 Joseph Myers <joseph@codesourcery.com>
3948
3949 * inet/netinet/in.h (INADDR_ALLSNOOPERS_GROUP): New macro.
3950
6a1a9a49 39512019-06-01 Florian Weimer <fweimer@redhat.com>
6b33f373
FW
3952
3953 arm: Remove ioperm/iopl/inb/inw/inl/outb/outw/outl support.
3954 * sysdeps/unix/sysv/linux/arm/Makefile
3955 [$(subdir) == misc] (sysdep_headers): Remove sys/io.h.
3956 * sysdeps/unix/sysv/linux/arm/sys/io.h: Remove file.
3957 * sysdeps/unix/sysv/linux/arm/ioperm.c: Rewrite file.
3958 (ioperm, iopl, inb, inw, inl, outb, outw, outl): Turn into
3959 compatibility symbols.
3960
0bb8f8c7
FW
39612019-05-31 Florian Weimer <fweimer@redhat.com>
3962
3963 * sysdeps/unix/sysv/linux/syscall-names.list: Add oddly named
3964 system calls for the arm architecture: breakpoint, get_tls,
3965 set_tls, usr26, usr32.
3966
9250e661
GG
39672019-05-30 Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
3968
3969 * sysdeps/powerpc/Makefile
3970 [$(subdir) == misc] (CFLAGS-tst-set_ppr.c): New variable.
3971 * sysdeps/powerpc/powerpc64/power4/memcmp.S [__LITTLE_ENDIAN__]:
3972 Declare '.machine power7' to get support for ldbrx.
3973 * sysdeps/powerpc/powerpc64/power7/strncmp.S: Declare '.machine'
3974 directive based on the directory of the file.
3975 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Likewise.
3976 * sysdeps/powerpc/powerpc64/power8/strcmp.S: Likewise.
3977 * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Update
3978 '.machine' directive.
3979 (VCLZD_V8_v7, MFVRD_R3_V1, VSUBUDM_V9_V8, VPOPCNTD_V8_V8)
3980 (VADDUQM_V7_V8): Remove.
3981 (__STRCASECMP): Replace macros with actual instructions.
3982 * sysdeps/powerpc/powerpc64/power8/strcasestr.S: Update
3983 '.machine' directive.
3984 (VCLZD_V8_v7): Remove.
3985 (STRCASESTR): Replace VCLZD_V8_v7 with actual instruction.
3986
fbd6c928
AZ
39872019-05-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3988
3989 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/get_clockfreq.c:
3990 Remove file.
3991 * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: Likewise.
3992
e47308c9
AZ
39932019-05-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3994
3995 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
3996 NEARBYINT handling.
3997 * sysdeps/powerpc/fpu/s_nearbyint.c: New file.
3998 * sysdeps/powerpc/fpu/s_nearbyintf.c: Likewise.
3999 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Remove file.
4000 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Likewise.
4001 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Likewise.
4002 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
4003
157cda1f 40042019-05-28 mansayk <6688000@gmail.com>
4005
4006 [BZ #24370]
4007 * localedata/locales/tt_RU (lang_name): Add from CLDR-35.1.
4008
182a3746 40092019-05-28 mansayk <6688000@gmail.com>
4010
4011 [BZ #24369]
4012 * localedata/locales/tt_RU (mon): Update from CLDR-35.1, fix errors.
4013 (abmon): Likewise, but remove the trailing dots.
4014
c6df1ce3
JM
40152019-05-28 Joseph Myers <joseph@codesourcery.com>
4016
4017 * inet/netinet/igmp.h (IGMP_MRDISC_ADV): New macro.
4018
85188d82
FW
40192019-05-27 Florian Weimer <fweimer@redhat.com>
4020
4021 * nptl/nptl-init.c: Add comment.
4022
5c23c821
FW
40232019-05-24 Florian Weimer <fweimer@redhat.com>
4024
4025 * resolv/nss_dns/dns-host.c (getanswer_r): Be more explicit about
4026 struct in_addr/struct in6_addr alignment.
4027
bee1f2c4
JM
40282019-05-23 Joseph Myers <joseph@codesourcery.com>
4029
4030 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
4031 (F_SEAL_FUTURE_WRITE): New macro.
4032
ab74d59f 40332019-05-23 Alexandra Hájková <ahajkova@redhat.com>
481c30cb
AH
4034
4035 * elf/Makefile (test-container): Add tst-ldconfig-bad-aux-cache.
4036 * elf/tst-ldconfig-bad-aux-cache.c: New file.
4037 * elf/tst-ldconfig_aux-cache.root: New directory.
4038 * elf/tst-ldconfig-bad-aux-cache.root/postclean.req: New file.
4039 * elf/tst-ldconfig-bad-aux-cache.root/etc: New directory.
4040 * elf/tst-ldconfig-bad-aux-cache.root/etc/ld.so.conf: New file.
4041
cb755eed
ZW
40422019-05-22 Zack Weinberg <zackw@panix.com>
4043
4044 * sysdeps/powerpc/preconfigure: Error out on powerpc-*-*gnuspe*
4045 host type.
4046 * scripts/build-many-glibcs.py: Remove powerpc-*-linux-gnuspe
4047 and powerpc-*-linux-gnuspe-e500v1 from list of build configurations.
4048
4049 * sysdeps/powerpc/powerpc32/e500: Recursively delete.
4050 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500: Recursively delete.
4051 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/context-e500.h:
4052 Delete.
4053
4054 * sysdeps/powerpc/fpu_control.h: Remove SPE variant.
4055 Issue an #error if used with a compiler in SPE-float mode.
4056 * sysdeps/powerpc/powerpc32/__longjmp_common.S
4057 * sysdeps/powerpc/powerpc32/setjmp_common.S
4058 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
4059 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/getcontext.S
4060 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/setcontext.S
4061 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/swapcontext.S
4062 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
4063 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
4064 Remove code to preserve SPE register state.
4065
4066 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
4067 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
4068 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c:
4069 Remove __SPE__ ifndefs.
4070
46ae0732
WD
40712019-05-21 Wilco Dijkstra <wdijkstr@arm.com>
4072
4073 * benchtests/bench-memcpy-random.c (do_one_test): Use medium iterations.
4074 * benchtests/bench-memcpy-walk.c (test_main): Reduce alignment tests.
4075 * benchtests/bench-memmem.c (do_one_test): Use small iterations.
4076 * benchtests/bench-memmove-walk.c (test_main): Reduce alignment tests.
4077 * benchtests/bench-memset-walk.c (test_main): Reduce alignment tests.
4078 * benchtests/bench-strcasestr.c (do_one_test): Use small iterations.
4079 * benchtests/bench-string.h (INNER_LOOP_ITERS): Increase iterations.
4080 (INNER_LOOP_ITERS_MEDIUM): New define.
4081 (INNER_LOOP_ITERS_SMALL): New define.
4082 * benchtests/bench-strpbrk.c (do_one_test): Use medium iterations.
4083 * benchtests/bench-strsep.c (do_one_test): Use small iterations.
4084 * benchtests/bench-strspn.c (do_one_test): Use medium iterations.
4085 * benchtests/bench-strstr.c (do_one_test): Use small iterations.
4086 * benchtests/bench-strtok.c (do_one_test): Use small iterations.
4087
e6855a3b 40882019-05-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
004e52fe
AZ
4089
4090 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h (SEMTIMEDOP_IPC_ARGS):
4091 New define.
4092 * sysdeps/unix/sysv/linux/sparc/sparc64/ipc_priv.h
4093 (SEMTIMEDOP_IPC_ARGS): Likewise.
4094
c9c15ac3
FW
40952019-05-21 Florian Weimer <fweimer@redhat.com>
4096
4097 [BZ #24584]
4098 * wcsmbs/wcsmbsload.c (__wcsmbs_clone_conv): Acquire __gconv_lock
4099 before updating __counter field and release it afterwards. Add
4100 overflow check.
4101 * iconv/gconv.h (struct __gconv_step): Mention synchronization
4102 requirement for __counter member.
4103
7e740ab2
FW
41042019-05-21 Florian Weimer <fweimer@redhat.com>
4105
4106 [BZ #24583]
4107 * wcsmbs/wcsmbsload.h (__wcsmbs_close_conv): Declare.
4108 * wcsmbs/wcsmbsload.c (__wcsmbs_close_conv): Define.
4109 * libio/iofclose.c (_IO_new_fclose): Call __wcsmbs_close_conv
4110 instead of __gconv_release_step.
4111 * libio/Makefile (tests): Add tst-wfile-gconv.
4112 (tests-container): Add tst-wfile-ascii.
4113 (tst-wfile-gconv-ENV): Enable mtrace.
4114 (generated): Add tst-wfile-gconv.mtrace, tst-wfile-gconv.check.
4115 (tests-special): Add tst-wfile-gconv-mem.out.
4116 (tst-wfile-gconv.out): Depend on locales.
4117 (tst-wfile-gconv-mem.out): Add mtrace rule.
4118 * libio/tst-wfile-ascii.c: New file.
4119 * libio/tst-wfile-gconv.c: Likewise.
4120
09e1b0e3
FW
41212019-05-20 Florian Weimer <fweimer@redhat.com>
4122
4123 [BZ #24588]
4124 libio: Remove codecvt vtable.
4125 * libio/fileops.c ( _IO_new_file_fopen): Do not copy
4126 __libio_codecvt.
4127 * libio/iofgetpos.c (_IO_new_fgetpos): Call
4128 __libio_codecvt_encoding.
4129 * libio/iofgetpos64.c (_IO_new_fgetpos): Likewise.
4130 * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
4131 * libio/iofsetpos64.c (_IO_new_fsetpos): Likewise.
4132 * libio/iofwide.c (__libio_codecvt): Remove variable.
4133 (_IO_fwide): Do not copy __libio_codecvt.
4134 (__libio_codecvt_out): Rename from do_out and export.
4135 (do_unshift): Remove function.
4136 (__libio_codecvt_in): Rename from do_in and export.
4137 (__libio_codecvt_encoding): Rename from do_encoding and export.
4138 (do_always_noconv): Remove function.
4139 (__libio_codecvt_length): Rename from do_length and export.
4140 (do_max_length): Remove function.
4141 * libio/libio.h (enum __codecvt_result): Remove definition; moved
4142 to libioP.h.
4143 (struct _IO_codecvt): Remove fields __codecvt_destr,
4144 __codecvt_do_out, __codecvt_do_unshift, __codecvt_do_in,
4145 __codecvt_do_encoding, __codecvt_do_always_noconv,
4146 __codecvt_do_length, __codecvt_do_max_length.
4147 * libio/libioP.h (enum __codecvt_result): Define; moved from
4148 libio.h.
4149 (__libio_codecvt_out, __libio_codecvt_in)
4150 (__libio_codecvt_encoding, __libio_codecvt_length): Declare
4151 functions.
4152 * libio/wfileops.c (_IO_wdo_write): Call __libio_codecvt_out.
4153 (_IO_wfile_underflow): Call __libio_codecvt_in.
4154 (_IO_wfile_underflow): Likewise.
4155 (_IO_wfile_underflow_mmap): Likewise.
4156 (_IO_wfile_sync): Call __libio_codecvt_encoding,
4157 __libio_codecvt_length.
4158 (adjust_wide_data): Call __libio_codecvt_encoding,
4159 __libio_codecvt_in.
4160 (do_ftell_wide): Call __libio_codecvt_length, __libio_codecvt_out.
4161 (_IO_wfile_seekoff): Call __libio_codecvt_encoding,
4162 __libio_codecvt_length.
4163
75c51570
FW
41642019-05-20 Florian Weimer <fweimer@redhat.com>
4165
4166 * support/support.h (support_sbindir_prefix): Declare.
4167 (support_install_rootsbindir): Update comment.
4168 * support/Makefile (CFLAGS-support_paths.c): Define SBINDIR_PATH.
4169 * support/support_paths.c (support_sbindir_prefix): Define.
4170
ff6bec7d
MC
41712019-05-20 Mike Crowe <mac@mcrowe.com>
4172
b62bb3bc
MC
4173 * support/timespec.c: Add backslash to correct newline in failure
4174 message.
4175
ff6bec7d
MC
4176 * support/timespec.h: Correct confusing comment.
4177
dfba907f
AZ
41782019-05-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4179
236c18e5
AZ
4180 * sysdeps/unix/sysv/linux/ipc_priv.h (SEMTIMEDOP_IPC_ARGS): New
4181 define.
4182 * sysdpes/unix/sysv/linux/s390/ipc_priv.h: New file.
4183 * sysdeps/unix/sysv/linux/s390/semtimedop.c: Remove file.
4184 * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Use
4185 SEMTIMEDOP_IPC_ARGS for calls with __NR_ipc.
4186
dfba907f
AZ
4187 [BZ #24570]
4188 * sysdeps/unix/sysv/linux/msgctl.c (__old_msgctl): Remove __IPC_64
4189 usage.
4190
13886008
JM
41912019-05-20 Joseph Myers <joseph@codesourcery.com>
4192
4193 * elf/elf.h (NT_ARM_PACA_KEYS): New macro.
4194 (NT_ARM_PACG_KEYS): Likewise.
4195
1f50f2ad
WD
41962019-05-17 Wilco Dijkstra <wdijkstr@arm.com>
4197
4198 * malloc/malloc.c (MAX_TCACHE_COUNT): Increase to UINT16_MAX.
4199 (tcache_put): Remove redundant assert.
4200 (tcache_get): Remove redundant asserts.
4201 (__libc_malloc): Check tcache count is not zero.
4202 * manual/tunables.texi (glibc.malloc.tcache_count): Update maximum.
4203
fef7c63c
FW
42042019-05-17 Florian Weimer <fweimer@redhat.com>
4205
4206 * manual/llio.texi (Open-time Flags): Document O_DIRECTORY.
4207
5f161b23
JM
42082019-05-16 Joseph Myers <joseph@codesourcery.com>
4209
4210 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
4211 (__ASSUME_STATFS64): Only undefine if [__LINUX_KERNEL_VERSION <
4212 0x050100].
4213 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
4214 Likewise.
4215 * sysdeps/unix/sysv/linux/sh/kernel-features.h
4216 (__ASSUME_STATX): Likewise.
4217
ec255a97
FW
42182019-05-16 Florian Weimer <fweimer@redhat.com>
4219
4220 * nis/nss_nis/nis-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL): Remove
4221 flags argument.
4222 (LINE_PARSER): Do not map IPv4 addresses.
4223 (internal_nis_gethostent_r): Remove flags argument. Adjust call
4224 to parse_line.
4225 (_nss_nis_gethostent_r): Always pass AF_INET to
4226 internal_nis_gethostent_r.
4227 (internal_gethostbyname2_r): Remove flags argument. Adjust call
4228 to parse_line.
4229 (_nss_nis_gethostbyname2_r): Adjust call to
4230 internal_nis_gethostent_r.
4231 (_nss_nis_gethostbyname_r): Do not attempt IPv6 query. Adjust
4232 call to internal_nis_gethostent_r.
4233 (_nss_nis_gethostbyaddr_r): Do not request IPv4 address mapping
4234 from parse_line.
4235 (_nss_nis_gethostbyname4_r):Adjust call to parse_line.
4236 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
4237 Remove flags argument. Do not map IPv4 addresses.
4238 (internal_nisplus_gethostent_r): Adjust call to
4239 _nss_nisplus_parse_hostent.
4240 (internal_gethostbyname2_r): Remove flags argument. Adjust call
4241 to _nss_nisplus_parse_hostent.
4242 (_nss_nisplus_gethostbyname2_r): Adjust call to
4243 internal_gethostbyname2_r.
4244 (_nss_nisplus_gethostbyname_r): Do not perform IPv6 lookup.
4245 Adjust call to internal_gethostbyname2_r.
4246 (_nss_nisplus_gethostbyaddr_r): Adjust call to
4247 _nss_nisplus_parse_hostent.
4248 (_nss_nisplus_gethostbyname4_r): Adjust call to
4249 internal_gethostbyname2_r.
4250
9c02d078
FW
42512019-05-16 Florian Weimer <fweimer@redhat.com>
4252
4253 * nss/nss_files/files-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL):
4254 Remove flags.
4255 (LINE_PARSER): Remove address mapping.
4256 (EXTRA_ARGS_VALUE): Remove flags argument.
4257 (gethostbyname3_multi): Likewise. Adjust call to internal_getent.
4258 (_nss_files_gethostbyname3_r): Adjust calls to internal_getent and
4259 gethostbyname3_multi.
4260 (_nss_files_gethostbyname_r): Always use AF_INET. Adjust call to
4261 _nss_files_gethostbyname3_r.
4262 (_nss_files_gethostbyname4_r): Adjust call to internal_getent.
4263
85b0e1e8
FW
42642019-05-16 Florian Weimer <fweimer@redhat.com>
4265
4266 * support/support_test_compare_blob.c (report_blob): Report
4267 incorrect NULL blobs.
4268
11b451c8
MW
42692019-05-15 Mark Wielaard <mark@klomp.org>
4270
4271 [BZ# 24476]
4272 * dlfcn/dlerror.c (__dlerror_main_freeres): Guard using
4273 __libc_once_get (once) and static_buf == NULL.
4274 (__dlerror): Check we have a valid key, set result to static_buf
4275 otherwise.
4276
32ff3975
AS
42772019-05-15 Andreas Schwab <schwab@suse.de>
4278
4279 [BZ #20568]
4280 * libio/wfileops.c (_IO_wfile_sync): Correct last argument to
4281 __codecvt_do_length.
4282 * libio/Makefile (tests): Add tst-wfile-sync.
4283 ($(objpfx)tst-wfile-sync.out): Depend on $(gen-locales).
4284 * libio/tst-wfile-sync.c: New file.
4285 * libio/tst-wfile-sync.input: New file.
4286
a9368c34
FW
42872019-05-15 Florian Weimer <fweimer@redhat.com>
4288
4289 nss: Turn __nss_database_lookup into a compatibility symbol.
4290 * nss/nsswitch.h (__nss_database_lookup2): Renamed from
4291 __nss_database_lookup.
4292 * nss/nsswitch.c (__nss_database_lookup2): Likewise.
4293 (nss_load_all_libraries): Call __nss_database_lookup2 instead of
4294 __nss_database_lookup.
4295 (__nss_next): Move to …
4296 * nss/compat-lookup.c (nss_next): … here. Change it to fail
4297 unconditionally.
4298 (__nss_database_lookup): New function.
4299 * nss/Versions (GLIBC_2.0): Update comment.
4300 (GLIBC_PRIVATE): Export __nss_database_lookup2.
4301 * grp/initgroups.c (internal_getgrouplist): Call
4302 __nss_database_lookup2 instead of __nss_database_lookup.
4303 * nscd/aicache.c (addhstaiX): Likewise.
4304 * nscd/initgrcache.c (addinitgroupsX): Likewise.
4305 * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
4306 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Likewise.
4307 * nss/nss_compat/compat-grp.c (init_nss_interface): Likewise.
4308 * nss/nss_compat/compat-initgroups.c (init_nss_interface):
4309 Likewise.
4310 * nss/nss_compat/compat-pwd.c (init_nss_interface): Likewise.
4311 * nss/nss_compat/compat-spwd.c (init_nss_interface): Likewise.
4312 * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
4313
ab74d59f 43142019-05-15 Alexandra Hájková <ahajkova@redhat.com>
32ff3975 4315
d50f0918
AH
4316 * support/support.h (support_install_rootsbindir): New variable.
4317 * support/support_paths.c: Likewise.
4318 * support/Makefile (CFLAGS-support_paths.c): Add -DROOTSBINDIR_PATH.
4319
7ac6fad9
FW
43202019-05-15 Florian Weimer <fweimer@redhat.com>
4321
4322 * iconv/gconv.h (__gconv_transliterate): Move declaration …
4323 * iconv/gconv_int.h (__gconv_transliterate): … here.
4324 * iconv/loop.c: Include <iconv/gconv_int.h> instead of <gconv.h>.
4325 * iconv/skeleton.c: Likewise.
4326
04b261bd
FW
43272019-05-14 Florian Weimer <fweimer@redhat.com>
4328
4329 Linux: Add the tgkill function.
4330 * bits/signal_ext.h: New file.
4331 * manual/signal.texi (Signaling Another Process): Document tgkill.
4332 * signal/Makefile (headers): Add bits/signal_ext.h.
4333 * signal/signal.h: Include <bits/signal_ext.h>.
4334 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-tgkill.
4335 (tst-tgkill): Link with libpthread.
4336 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.30): Export tgkill.
4337 * sysdeps/unix/sysv/linux/bits/signal_ext.h: New file.
4338 * sysdeps/unix/sysv/linux/bits/tst-tgkill.c: Likewise.
4339 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30): Add
4340 tgkill.
4341 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
4342 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
4343 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
4344 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
4345 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
4346 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
4347 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
4348 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
4349 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
4350 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
4351 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
4352 Likewise.
4353 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
4354 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
4355 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
4356 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
4357 Likewise.
4358 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
4359 Likewise.
4360 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist:
4361 Likewise.
4362 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist:
4363 Likewise.
4364 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
4365 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
4366 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
4367 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
4368 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
4369 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
4370 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
4371 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
4372
6807f47b
CD
43732019-05-14 Carlos O'Donell <carlos@redhat.com>
4374
4375 * manual/search.texi (Tree Search Function): Adjust twalk_r
4376 documentation.
4377
fdb8a0be
AZ
43782019-05-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4379
da2b83ef
AZ
4380 [BZ #24544]
4381 * elf/tst-pldd.c (do_test): Use support_bindir_prefix instead of
4382 pre-defined value.
4383
c7ac9caa
AZ
4384 * support/Makefile (CFLAGS-support_paths.c): Add -DBINDIR_PATH.
4385 * support/support.h (support_bindir_prefix): New variable.
4386 * support/support_paths.c [BINDIR_PATH] (support_bindir_prefix):
4387
91f043ae
AZ
4388 * config.make.in (bindir): New variable.
4389
c50e1c26
AZ
4390 * sysdeps/nptl/lowlevellock.h (__lll_trylock): New macro.
4391 (lll_trylock): Call __lll_trylock.
4392 * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Remove file.
4393 * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Likewise.
4394 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
4395 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
4396 * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Likewise.
4397 * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: Likewise.
4398 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
4399 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
4400 * sysdeps/unix/sysv/linux/x86/lowlevellock.h: New file.
4401 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Include
4402 lowlevellock-futex.h.
4403
959aff9f
AZ
4404 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
4405 initialization for LLL_LOCK_INITIALIZER different than 0.
4406 * nptl/old_pthread_cond_broadcast.c (__pthread_cond_broadcast_2_0):
4407 Assume LLL_LOCK_INITIALIZER being 0.
4408 * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0): Likewise.
4409 * nptl/old_pthread_cond_timedwait.c (__pthread_cond_timedwait_2_0):
4410 Likewise.
4411 * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0): Likewise.
4412 * sysdeps/nptl/libc-lockP.h (__libc_lock_define_initialized): Likewise.
4413
d7e4c642
AZ
4414 * nptl/lowlevellock.c (__lll_lock_wait, __lll_lock_wait_private):
4415 Optimize futex call and add systemtap probe.
4416
fdb8a0be
AZ
4417 * nptl/pthreadP.h (CANCEL_ASYNC, CANCEL_RESET, LIBC_CANCEL_ASYNC,
4418 LIBC_CANCEL_RESET, __libc_enable_asynccancel,
4419 __libc_disable_asynccancel, __librt_enable_asynccancel,
4420 __libc_disable_asynccancel, __librt_enable_asynccancel,
4421 __librt_disable_asynccancel): Move to ...
4422 * sysdeps/unix/sysv/linux/sysdep-cancel.h: ... here.
4423 (SINGLE_THREAD_P, RTLD_SINGLE_THREAD_P): Move to ...
4424 * sysdeps/unix/sysv/linux/single-thread.h: ... here.
4425 * sysdeps/generic/single-thread.h: New file.
4426 * sysdeps/unix/sysdep.h: Include single-thread.h.
4427 * sysdeps/unix/sysv/linux/futex-internal.h: Include sysdep-cancel.h.
4428 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
4429
f6efec90
MF
44302019-05-08 Mike FABIAN <mfabian@redhat.com>
4431
4432 [BZ #24535]
4433 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.1.0.
4434 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
4435 Unicode 12.1.0.
4436 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
4437 * localedata/unicode-gen/PropList.txt: Likewise.
4438 * localedata/unicode-gen/UnicodeData.txt: Likewise.
4439 * localedata/charmaps/UTF-8: Regenerate.
4440 * localedata/locales/i18n_ctype: Likewise.
4441 * localedata/locales/tr_TR: Likewise.
4442 * localedata/locales/translit_circle: Likewise.
4443 * localedata/locales/translit_cjk_compat: Likewise.
4444 * localedata/locales/translit_combining: Likewise.
4445 * localedata/locales/translit_compat: Likewise.
4446 * localedata/locales/translit_font: Likewise.
4447 * localedata/locales/translit_fraction: Likewise.
4448
5ad533e8
WD
44492019-05-10 Wilco Dijkstra <wdijkstr@arm.com>
4450
4451 [BZ #24531]
4452 * malloc/malloc.c (MAX_TCACHE_COUNT): New define.
4453 (do_set_tcache_count): Only update if count is small enough.
4454 * manual/tunables.texi (glibc.malloc.tcache_count): Document max value.
4455
4aee85f9
FW
44562019-05-10 Florian Weimer <fweimer@redhat.com>
4457
4458 * nptl/sem_close.c (struct walk_closure): Define.
4459 (walker): Adjust for __twalk_r.
4460 (sem_close): Call __twalk_r.
4461
eb669ff5
AZ
44622019-05-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4463
4464 * support/timespec.c (test_timespec_before_impl,
4465 test_timespec_equal_or_after_impl): print timespec member as intmax_t
4466 insted of long int.
4467
51983996
MC
44682019-05-09 Mike Crowe <mac@mcrowe.com>
4469
44ac6ee9
MC
4470 * nptl/tst-abstime.c: Use libsupport.
4471
495514ee
MC
4472 * nptl/tst-rwlock6.c: Use libsupport. This also happens to fix a
4473 small bug where only tv.tv_usec was checked which could cause an
4474 erroneous pass if pthread_rwlock_timedrdlock incorrectly took more
4475 than a second.
4476
4477 * nptl/tst-rwlock7.c, nptl/tst-rwlock9.c, nptl/tst-rwlock14.c: Use
4478 libsupport.
4479
40d0816f
MC
4480 * nptl/tst-sem5.c (do_test): Use xclock_gettime, timespec_add and
4481 TEST_TIMESPEC_NOW_OR_AFTER from libsupport.
4482
d8e0b901
MC
4483 * nptl/tst-cond11.c: Use libsupport.
4484
51983996
MC
4485 * support/timespec.h: New file. Provide timespec helper functions
4486 along with macros in the style of those in check.h.
4487 * support/timespec.c: New file. Implement check functions declared
4488 in support/timespec.h.
4489 * support/timespec-add.c: New file from gnulib containing
4490 timespec_add implementation that handles overflow.
4491 * support/timespec-sub.c: New file from gnulib containing
4492 timespec_sub implementation that handles overflow.
4493 * support/README: Mention timespec.h.
4494
18aa51ee
SN
44952019-05-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
4496
4497 [BZ #24537]
4498 * nptl/Makefile: Move tst-eintr1 to xtests.
4499
252296c6
AZ
45002019-05-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4501
ae45cf84
AZ
4502 * sysdeps/powerpc/fpu/trunc_to_integer.h (set_fenv_mode): Add
4503 TRUNC handling.
4504 (round_mode): Add definition for TRUNC.
4505 * sysdeps/powerpc/fpu/s_trunc.c: New file.
4506 * sysdeps/powerpc/fpu/s_truncf.c: New file.
4507 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Remove file.
4508 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
4509 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.S:
4510 Likewise.
4511 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.S:
4512 Likewise.
4513 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.S:
4514 Likewise.
4515 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.S:
4516 Likewise.
4517 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.c: New
4518 file.
4519 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.c:
4520 Likewise.
4521 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.c:
4522 Likewise.
4523 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.c:
4524 Likewise.
4525 * sysdep/powerpc/powerpc32/power5+/fpu/s_trunc.S: Remove file.
4526 * sysdep/powerpc/powerpc32/power5+/fpu/s_truncf.S: Likewise.
4527 * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
4528 (libm-sysdep_routines): Add s_trunc-power5+, s_trunc-ppc64,
4529 s_truncf-power5+, and s_truncf-ppc64.
4530 (CFLAGS-s_trunc-power5+.c, CFLAGS-s_truncf-power5+.c): New rule.
4531 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-power5+.c: New
4532 file.
4533 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-ppc64.c: Likewise.
4534 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Move to ...
4535 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_trunc.c: ... here.
4536 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-power5+.c: New
4537 file.
4538 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-ppc64.c:
4539 Likewise.
4540 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Move to ...
4541 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_truncf.c: ... here.
4542 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
4543 (libm-sysdep_routines): Remove s_trunc-power5+, s_trunc-ppc64,
4544 s_truncf-power5+, and s_truncf-ppc64.
4545 * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Remove
4546 file.
4547 * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
4548 * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S:
4549 Likewise.
4550 * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
4551 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
4552 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
4553 * sysdep/powerpc/powerpc64/power5+/fpu/s_trunc.S: Likewise.
4554 * sysdep/powerpc/powerpc64/power5+/fpu/s_truncf.S: Likewise.
4555
a1cb1888
AZ
4556 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
4557 ROUND handling.
4558 (round_mode): Add definition for ROUND.
4559 (round_to_integer_float): Likewise.
4560 * sysdeps/powerpc/fpu/s_round.c: New file.
4561 * sysdeps/powerpc/fpu/s_roundf.c: New file.
4562 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Remove file.
4563 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
4564 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.S:
4565 Likewise.
4566 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.S:
4567 Likewise.
4568 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.S:
4569 Likewise.
4570 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.S:
4571 Likewise.
4572 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.c: New
4573 file.
4574 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.c:
4575 Likewise.
4576 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.c:
4577 Likewise.
4578 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.c:
4579 Likewise.
4580 * sysdep/powerpc/powerpc32/power5+/fpu/s_round.S: Remove file.
4581 * sysdep/powerpc/powerpc32/power5+/fpu/s_roundf.S: Likewise.
4582 * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
4583 (libm-sysdep_routines): Add s_round-power5+, s_round-ppc64,
4584 s_roundf-power5+, and s_roundf-ppc64.
4585 (CFLAGS-s_round-power5+.c, CFLAGS-s_roundf-power5+.c): New rule.
4586 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-power5+.c: New
4587 file.
4588 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-ppc64.c: Likewise.
4589 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Move to ...
4590 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_round.c: ... here.
4591 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-power5+.c: New
4592 file.
4593 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-ppc64.c:
4594 Likewise.
4595 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Move to ...
4596 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_roundf.c: ... here.
4597 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
4598 (libm-sysdep_routines): Remove s_round-power5+, s_round-ppc64,
4599 s_roundf-power5+, and s_roundf-ppc64.
4600 * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Remove
4601 file.
4602 * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
4603 * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S:
4604 Likewise.
4605 * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
4606 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
4607 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
4608 * sysdep/powerpc/powerpc64/power5+/fpu/s_round.S: Likewise.
4609 * sysdep/powerpc/powerpc64/power5+/fpu/s_roundf.S: Likewise.
4610
252296c6
AZ
4611 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode):
4612 Add FLOOR option.
4613 (round_mode): Add definition for FLOOR.
4614 * sysdeps/powerpc/fpu/s_floor.c: New file.
4615 * sysdeps/powerpc/fpu/s_floorf.c: Likewise.
4616 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Remove file.
4617 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
4618 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
4619 Remove file.
4620 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S:
4621 Likewise
4622 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
4623 Likewise.
4624 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
4625 Likewise.
4626 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.c:
4627 New file.
4628 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.c:
4629 Likewise.
4630 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.c:
4631 Likewise.
4632 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.c:
4633 Likewise.
4634 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Remove file.
4635 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Remove file.
4636 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
4637 (libm-sysdep_routines): Add s_floor-power5+, s_floor-ppc64,
4638 s_floorf-power5+, and s_floorf-ppc64.
4639 (CFLAGS-s_floor-power5+.c, CFLAGS-s_floorf-power5+.c): New rule.
4640 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-power5+.c: New
4641 file.
4642 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-ppc64.c: Likewise.
4643 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Move to ...
4644 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floor.c: ... here.
4645 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-power5+.c: New
4646 file.
4647 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-ppc64.c:
4648 Likewise.
4649 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Move to ...
4650 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floorf.c: ... here.
4651 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
4652 (libm-sysdep_routines): Remove s_floor-power5+, s_floor-ppc64,
4653 s_floorf-power5+, and s_floorf-ppc64.
4654 * sysdep/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Remove
4655 file.
4656 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Remove
4657 file.
4658 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S:
4659 Likewise.
4660 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S:
4661 Likewise.
4662 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
4663 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
4664 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Likewise.
4665 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Likewise.
4666
33647a72
MC
46672019-05-08 Mike Crowe <mac@mcrowe.com>
4668
4669 * support/xclock_gettime.c (xclock_gettime): New file. Provide
4670 clock_gettime wrapper for use in tests that fails the test rather
4671 than returning failure.
4672
4673 * support/xtime.h: New file to declare xclock_gettime.
4674
4675 * support/Makefile: Add xclock_gettime.c.
4676
4677 * support/README: Mention xtime.h.
4678
b2f601ba
FW
46792019-05-08 Florian Weimer <fweimer@redhat.com>
4680
4681 malloc/tst-mallocfork2: Use process-shared barriers.
4682 * malloc/tst-mallocfork2.c: Switch to <support/test-driver.c>.
4683 (signal_count, sigusr1_sender_pid): Remove.
4684 (iterations): Define constant.
4685 (shared): New variable.
4686 (sigusr1_received): Update comment.
4687 (sigusr1_handler): Do not send SIGSTOP to the sender process.
4688 (signal_sender): Optional use barriers to avoid sending signals
4689 during irrelevant times.
4690 (do_it): Initialize variable shared. Use xfork for error
4691 checking. Launch multiple SIGUSR1-sending subprocesses. Limit
4692 the iteration count, independent of signal delivery. Check for
4693 deadlocks in fork. Introduce barriers for reducing signal
4694 traffic. Do not send SIGCONT to the SIGUSR1-sending processes;
4695 replaced by the barriers. Count signals during fork/free/malloc
4696 and report them.
4697 * malloc/Makefile (tst-mallocfork): Link with libpthread.
4698
c4a392cf
JM
46992019-05-07 Joseph Myers <joseph@codesourcery.com>
4700
7621676f
JM
4701 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
4702 version to 5.1.
4703 (clock_adjtime64) New syscall.
4704 (clock_getres_time64) Likewise.
4705 (clock_gettime64) Likewise.
4706 (clock_nanosleep_time64) Likewise.
4707 (clock_settime64) Likewise.
4708 (futex_time64) Likewise.
4709 (io_pgetevents_time64) Likewise.
4710 (io_uring_enter) Likewise.
4711 (io_uring_register) Likewise.
4712 (io_uring_setup) Likewise.
4713 (mq_timedreceive_time64) Likewise.
4714 (mq_timedsend_time64) Likewise.
4715 (pidfd_send_signal) Likewise.
4716 (ppoll_time64) Likewise.
4717 (pselect6_time64) Likewise.
4718 (recvmmsg_time64) Likewise.
4719 (rt_sigtimedwait_time64) Likewise.
4720 (sched_rr_get_interval_time64) Likewise.
4721 (semtimedop_time64) Likewise.
4722 (timer_gettime64) Likewise.
4723 (timer_settime64) Likewise.
4724 (timerfd_gettime64) Likewise.
4725 (timerfd_settime64) Likewise.
4726 (utimensat_time64) Likewise.
4727
c4a392cf
JM
4728 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
4729 version to 9 branch.
4730
32e902a9
AY
47312019-05-03 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
4732
4733 * sysdeps/aarch64/multiarch/ifunc-impl-list.c: Added
4734 __memmove_thunderx2 to the list of implementations
4735 * sysdeps/aarch64/multiarch/memmove.c: Likewise
4736 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S:
4737 (__memmove_thunderx2): Rewritten using SIMD ld/st
4738 (__memcpy_thunderx2): Fixed handling overlapping cases.
4739 Used ldp/stp instead of ldr/str if possible. Made loops
4740 tails branchless.
4741
ac3da35d
FW
47422019-05-03 Florian Weimer <fweimer@redhat.com>
4743
4744 * misc/tst-tsearch.c (walk_tree): Add more error checking.
4745
b2af6fb2
AZ
47462019-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4747
7dfde28a 4748 [BZ #24506]
b2af6fb2
AZ
4749 * elf/tst-pldd.c (in_str_list): New function.
4750 (do_test): Add default names for ld and libc as one option.
4751
7b807a35
FW
47522019-05-02 Florian Weimer <fweimer@redhat.com>
4753
4754 misc: Add twalk_r function.
4755 * include/search.h (__twalk_r): Declare.
4756 * manual/examples/twalk.c: New file.
4757 * manual/search.texi (Tree Search Function): Document twalk_r.
4758 * misc/Versions (2.30): Export twalk_r.
4759 (GLIBC_PRIVATE): Export __twalk_r.
4760 * misc/search.h [__USE_GNU] (twalk_r): Declare.
4761 * misc/tsearch.c (trecurse_r, __twalk_r): New functions.
4762 (twalk_r): Add weak alias.
4763 * misc/tst-tsearch.c (struct walk_trace_element): Define.
4764 (walk_trace): New variable.
4765 (struct twalk_with_twalk_r_closure): Define.
4766 (twalk_with_twalk_r_action): New function.
4767 (twalk_with_twalk_r): Likewise.
4768 (walk_action): Call walk_trace_add.
4769 (walk_tree_with): Rename from walk_tree. Add walk argument.
4770 (walk_tree): New function.
4771 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.30): Add twalk_r.
4772 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
4773 Likewise.
4774 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
4775 Likewise.
4776 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
4777 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30): Likewise.
4778 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30): Likewise.
4779 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30): Likewise.
4780 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30): Likewise.
4781 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
4782 Likewise.
4783 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
4784 Likewise.
4785 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
4786 Likewise.
4787 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
4788 (GLIBC_2.30): Likewise.
4789 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
4790 (GLIBC_2.30): Likewise.
4791 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
4792 (GLIBC_2.30): Likewise.
4793 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
4794 (GLIBC_2.30): Likewise.
4795 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
4796 Likewise.
4797 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
4798 (GLIBC_2.30): Likewise.
4799 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
4800 (GLIBC_2.30): Likewise.
4801 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
4802 (GLIBC_2.30): Likewise.
4803 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
4804 (GLIBC_2.30): Likewise.
4805 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
4806 Likewise.
4807 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
4808 Likewise.
4809 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
4810 Likewise.
4811 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
4812 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
4813 Likewise.
4814 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
4815 Likewise.
4816 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
4817 Likewise.
4818 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
4819 Likewise.
4820
20aa5819
PE
48212019-04-30 Paul Eggert <eggert@cs.ucla.edu>
4822
4823 Make mktime etc. compatible with __time64_t
4824 Keep these functions compatible with Gnulib while adding
4825 __time64_t support. The basic idea is to move private API
4826 declarations from include/time.h to time/mktime-internal.h, since
4827 the former file cannot easily be shared with Gnulib whereas the
4828 latter can.
4829 Also, do some other minor cleanup while in the neighborhood.
4830 * include/time.h: Include stdbool.h, time/mktime-internal.h.
4831 (__mktime_internal): Move this prototype to time/mktime-internal.h,
4832 since Gnulib needs it.
4833 (__localtime64_r, __gmtime64_r) [__TIMESIZE == 64]:
4834 Move these macros to time/mktime-internal.h, since Gnulib needs them.
4835 (__mktime64, __timegm64) [__TIMESIZE != 64]: New prototypes.
4836 (in_time_t_range): New static function.
4837 * posix/bits/types.h (__time64_t): Move to time/mktime-internal.h,
4838 so that glibc users are not tempted to use __time64_t.
4839 * time/mktime-internal.h: Rewrite so that it does both glibc
4840 and Gnulib work. Include time.h if not _LIBC.
4841 (mktime_offset_t) [!_LIBC]: Define for gnulib.
4842 (__time64_t): New type or macro, moved here from
4843 posix/bits/types.h.
4844 (__gmtime64_r, __localtime64_r, __mktime64, __timegm64)
4845 [!_LIBC || __TIMESIZE == 64): New macros, mostly moved here
4846 from include/time.h.
4847 (__gmtime_r, __localtime_r, __mktime_internal) [!_LIBC]:
4848 New macros, taken from GNulib.
4849 (__mktime_internal): New prototype, moved here from include/time.h.
4850 * time/mktime.c (mktime_min, mktime_max, convert_time)
4851 (ranged_convert, __mktime_internal, __mktime64):
4852 * time/timegm.c (__timegm64):
4853 Use __time64_t, not time_t.
4854 * time/mktime.c: Stop worrying about whether time_t is floating-point.
4855 (__mktime64) [! (_LIBC && __TIMESIZE != 64)]:
4856 Rename from mktime.
4857 (mktime) [_LIBC && __TIMESIZE != 64]: New function.
4858 * time/timegm.c [!_LIBC]: Include libc-config.h, not config.h,
4859 for libc_hidden_def.
4860 Include errno.h.
4861 (__timegm64) [! (_LIBC && __TIMESIZE != 64)]:
4862 Rename from timegm.
4863 (timegm) [_LIBC && __TIMESIZE != 64]: New function.
4864
87c266d7
MR
48652019-04-30 Maciej W. Rozycki <macro@wdc.com>
4866
4867 [BZ #19444]
4868 * sysdeps/ieee754/soft-fp/s_ddivl.c (__ddivl): Ignore errors
4869 from `-Wmaybe-uninitialized'.
4870 * sysdeps/ieee754/soft-fp/s_fdivl.c (__fdivl): Likewise.
4871
c4c0848b
AZ
48722019-04-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4873
6cac323c
AZ
4874 * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround_inline_nocheck): New
4875 function.
4876 * sysdeps/powerpc/fpu/round_to_integer.h: New file.
4877 * sysdeps/powerpc/fpu/s_ceil.c: Likewise.
4878 * sysdeps/powerpc/fpu/s_ceilf.c: Likewise.
4879 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Remove file.
4880 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
4881 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
4882 (CFLAGS-s_ceil-power5+.c, CFLAGS-s_ceilf-power5+.c): New rule.
4883 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
4884 Remove file.
4885 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S:
4886 Likewise.
4887 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
4888 Likewise.
4889 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S:
4890 Likewise.
4891 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.c:
4892 New file.
4893 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.c:
4894 Likewise.
4895 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.c:
4896 Likewise.
4897 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.c:
4898 Likewise.
4899 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Remove file.
4900 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Likewise.
4901 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile: New file.
4902 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-power5+.c:
4903 Likewise.
4904 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-ppc64.c:
4905 Likewise.
4906 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Move to ...
4907 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil.c: ... here.
4908 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-power5+.c: New
4909 file.
4910 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-ppc64.c:
4911 Likewise.
4912 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Move to ...
4913 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf.c: ...
4914 * here.
4915 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
4916 (libm-sysdep_routines): Remove s_ceil-power5+, s_ceil-ppc64,
4917 s_ceilf-power5+, and s_ceilf-ppc64.
4918 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Remove
4919 file.
4920 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
4921 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
4922 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
4923 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Likewise.
4924 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Likewise.
4925 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Likewise.
4926 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Likewise.
4927
c4c0848b
AZ
4928 * sysdeps/powerpc/power4/fpu/Makefile: Remove file.
4929 * sysdeps/powerpc/power4/fpu/mpa-arch.h: Likewise.
4930 * sysdeps/powerpc/power4/fpu/mpa.c: Likewise.
4931
f492fc99
YD
49322019-04-29 Yann Droneaud <ydroneaud@opteya.com>
4933
4934 * sysdeps/pthread/semaphore.h (sem_init): Add __nonnull attribute.
4935 (sem_destroy, sem_open, sem_close, sem_unlink): Likewise.
4936 (sem_wait, sem_timedwait, sem_trywait, sem_post): Likewise.
4937 (sem_getvalue): Likewise.
4938
c57afec0
FW
49392019-04-26 Florian Weimer <fweimer@redhat.com>
4940
4941 elf: Link sotruss-lib.so with BIND_NOW for --enable-bind-now.
4942 * elf/Makefile (LDFLAGS-sotruss-lib.so): Set.
4943
a8ff215e
FW
49442019-04-26 Florian Weimer <fweimer@redhat.com>
4945
4946 Makeconfig: Move -Wl,-rpath-link options before library references.
4947 * Makeconfig (+link-pie, +link): Add $(link-libc-rpath-link).
4948 (link-libc): Remove $(link-libc-rpath-link).
4949
49502019-04-25 Florian Weimer <fweimer@redhat.com>
4951
4952 * Makeconfig (+link-pie-before-libc): Remove $(CC).
4953 (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
4954 (+link-static-before-libc): Remove $(CC).
4955 (+link-static, +link-static-tests): Add $(CC).
4956 (+link-before-libc): Remove $(CC).
4957 (+link, +link-pie, +link-pie-printers): Add $(CC).
4958
e30fb31c
FW
49592019-04-26 Florian Weimer <fweimer@redhat.com>
4960
4961 * Makeconfig (+link-pie-before-libc): Remove $(CC).
4962 (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
4963 (+link-static-before-libc): Remove $(CC).
4964 (+link-static, +link-static-tests): Add $(CC).
4965 (+link-before-libc): Remove $(CC).
4966 (+link, +link-pie, +link-pie-printers): Add $(CC).
4967
deacca00
DA
49682019-04-25 David Abdurachmanov <david.abdurachmanov@gmail.com>
4969
4970 [BZ#24484]
4971 * sysdeps/riscv/ldsodefs.h (DL_RO_DYN_SECTION): Remove.
4972
b5ffdc48
FW
49732019-04-25 Florian Weimer <fweimer@redhat.com>
4974
4975 benchtests: Enable BIND_NOW if configured with --enable-bind-now.
4976 * benchtests/Makefile [$(bind-now)] (link-bench-bind-now): Set.
4977 (bench-link-targets): New variable.
4978 ($(binaries-bench) …): Use it. Set LDFLAGS accordingly.
4979
94a4e9e4
FW
49802019-04-25 Florian Weimer <fweimer@redhat.com>
4981
4982 Also enable BIND_NOW for programs if --enable-bind-now.
4983 * Makeconfig [$(bind-now)] (link-extra-flags): Add -Wl,-z,now.
4984 (+link-pie): Use $(link-extra-flags).
4985 (+link-static): Likewise.
4986 [! $(build-pie-default)] (+link): Likewise.
4987 * manual/install.texi (Configuring and compiling): Update
4988 --enable-bind-now description.
4989 * INSTALL: Regenerated.
4990
fe92a91f
WD
49912019-04-24 Wilco Dijkstra <wdijkstr@arm.com>
4992
4993 * benchtests/Makefile (BENCH_DURATION): Set to 1 second.
4994 * benchtests/bench-malloc-thread.c (BENCH_DURATION): Set to 10 seconds.
4995
f9b645b4
MF
49962019-04-24 Mike Frysinger <vapier@gentoo.org>
4997
4998 [BZ #18465]
4999 * malloc/Makefile (others): Add memusagestat.
5000 ($(objpfx)memusagestat): Delete rule.
5001 (LDLIBS-memusagestat): New variable.
5002
439bf534
FW
50032019-04-24 Florian Weimer <fweimer@redhat.com>
5004
5005 * locale/Makefile (tests-special): Guard setting by
5006 $(run-built-tests) == yes, otherwise tst-locale-locpath attempts
5007 to run while cross-compiling.
5008
1a4c2735
AZ
50092019-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5010
5011 [BZ #18035]
5012 * elf/Makefile (tests-container): Add tst-pldd.
5013 * elf/pldd-xx.c: Use _Static_assert in of pldd_assert.
5014 (E(find_maps)): Avoid use alloca, use default read file operations
5015 instead of explicit LFS names, and fix infinite loop.
5016 * elf/pldd.c: Explicit set _FILE_OFFSET_BITS, cleanup headers.
5017 (get_process_info): Use _Static_assert instead of assert, use default
5018 directory operations instead of explicit LFS names, and free some
5019 leadek pointers.
5020 * elf/tst-pldd.c: New file.
5021
2d398aa2
L
50222019-04-23 H.J. Lu <hongjiu.lu@intel.com>
5023
5024 * malloc/arena.c (do_set_mallopt_check): Removed.
5025
e485b2b6
FW
50262019-04-23 Florian Weimer <fweimer@redhat.com>
5027
5028 locale: Add LOCPATH diagnostics to the locale program.
5029 * locale/programs/locale.c (setlocale_failed): New variable.
5030 (try_setlocale): New function.
5031 (quote_string): Likewise.
5032 (setlocale_diagnostics): Likewise.
5033 (main): Call try_setlocale instead of setlocale. Call
5034 setlocale_diagnostics.
5035 * locale/Makefile (tests-special): Add tst-locale-locpath.out.
5036 (tst-locale-locpath.out): New target.
5037 * locale/tst-locale-locpath.sh: New file.
5038
25f7a3c9
AZ
50392019-04-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5040
5041 * NEWS: Move memory allocation changes of BZ#23741 from 2.29
5042 to 2.30 notes.
5043
9bf8e29c
AZ
50442019-04-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5045
5046 [BZ #23741]
5047 * malloc/hooks.c (malloc_check, realloc_check): Use
5048 __builtin_add_overflow on overflow check and adapt to
5049 checked_request2size change.
5050 * malloc/malloc.c (__libc_malloc, __libc_realloc, _mid_memalign,
5051 __libc_pvalloc, __libc_calloc, _int_memalign): Limit maximum
5052 allocation size to PTRDIFF_MAX.
5053 (REQUEST_OUT_OF_RANGE): Remove macro.
5054 (checked_request2size): Change to inline function and limit maximum
5055 requested size to PTRDIFF_MAX.
5056 (__libc_malloc, __libc_realloc, _int_malloc, _int_memalign): Limit
5057 maximum allocation size to PTRDIFF_MAX.
5058 (_mid_memalign): Use _int_memalign call for overflow check.
5059 (__libc_pvalloc): Use __builtin_add_overflow on overflow check.
5060 (__libc_calloc): Use __builtin_mul_overflow for overflow check and
5061 limit maximum requested size to PTRDIFF_MAX.
5062 * malloc/malloc.h (malloc, calloc, realloc, reallocarray, memalign,
5063 valloc, pvalloc): Add __attribute_alloc_size__.
5064 * stdlib/stdlib.h (malloc, realloc, reallocarray, valloc): Likewise.
5065 * malloc/tst-malloc-too-large.c (do_test): Add check for allocation
5066 larger than PTRDIFF_MAX.
5067 * malloc/tst-memalign.c (do_test): Disable -Walloc-size-larger-than=
5068 around tests of malloc with negative sizes.
5069 * malloc/tst-posix_memalign.c (do_test): Likewise.
5070 * malloc/tst-pvalloc.c (do_test): Likewise.
5071 * malloc/tst-valloc.c (do_test): Likewise.
5072 * malloc/tst-reallocarray.c (do_test): Replace call to reallocarray
5073 with resulting size allocation larger than PTRDIFF_MAX with
5074 reallocarray_nowarn.
5075 (reallocarray_nowarn): New function.
5076 * NEWS: Mention the malloc function semantic change.
5077
0e169691
AZ
50782019-04-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5079
52faba65
AZ
5080 * sysdeps/powerpc/fpu/s_fma.c: Fix format.
5081 * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
5082
3a16dd78
AZ
5083 * sysdeps/powerpc/fpu/s_fma.S: Remove file.
5084 * sysdeps/powerpc/fpu/s_fmaf.S: Likewise.
5085 * sysdeps/powerpc/fpu/s_fma.c: New file.
5086 * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
5087
1dac8bd6
AZ
5088 * sysdeps/powerpc/fpu/s_fabs.S: Remove file.
5089 * sysdeps/powerpc/fpu/s_fabsf.S: Likewise.
5090
a3ae315a
AZ
5091 * sysdeps/unix/sysv/linux/mips/getcontext.S (__getcontext): Remove
5092 the magic flag store.
5093 * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
5094 Likewise.
5095 * sysdeps/unix/sysv/linux/mips/swapcontext.S (__swapcontext):
5096 Likewise.
5097 * sysdeps/unix/sysv/linux/mips/setcontext.S (__setcontext):
5098 Remove rt_sigreturn call.
5099
ffe8a9a8
AZ
5100 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
5101 Remove rt_sigreturn call.
5102 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
5103 Likewise.
5104 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewie.
5105 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
5106
0e169691
AZ
5107 * support/Makefile (libsupport-routines): Add support_subprocess,
5108 xposix_spawn, xposix_spawn_file_actions_addclose, and
5109 xposix_spawn_file_actions_adddup2.
5110 (tst-support_capture_subprocess-ARGS): New rule.
5111 * support/capture_subprocess.h (support_capture_subprogram): New
5112 prototype.
5113 * support/support_capture_subprocess.c (support_capture_subprocess):
5114 Refactor to use support_subprocess and support_capture_poll.
5115 (support_capture_subprogram): New function.
5116 * support/tst-support_capture_subprocess.c (write_mode_to_str,
5117 str_to_write_mode, test_common, parse_int, handle_restart,
5118 do_subprocess, do_subprogram, do_multiple_tests): New functions.
5119 (do_test): Add support_capture_subprogram tests.
5120 * support/subprocess.h: New file.
5121 * support/support_subprocess.c: Likewise.
5122 * support/xposix_spawn.c: Likewise.
5123 * support/xposix_spawn_file_actions_addclose.c: Likewise.
5124 * support/xposix_spawn_file_actions_adddup2.c: Likewise.
5125 * support/xspawn.h: Likewise.
5126
bae8cf0e
MG
51272019-04-17 Mike Gerow <gerow@google.com>
5128
5129 * stdlib/tst-secure-getenv.c (choose_gid): Remove 64 supplemental
5130 groups limit.
5131
e3f454ba
FW
51322019-04-11 Florian Weimer <fweimer@redhat.com>
5133
5134 * resolv/nss_dns/dns-network.c (getanswer_r): Do not replace root
5135 domain with empty string.
5136 * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
5137
32d85c11
FW
51382019-04-11 Florian Weimer <fweimer@redhat.com>
5139
5140 * include/alloc_buffer.h (alloc_buffer_alloc_bytes): Update
5141 comment.
5142 (alloc_buffer_next): Change return type to non-const. Update
5143 comment.
5144
221710af
FW
51452019-04-10 TAMUKI Shoichi <tamuki@linet.gr.jp>
5146
5147 * manual/time.texi (Formatting Calendar Time): Add missing percent
5148 sign to conversion specifier.
5149
e621246e
CD
51502019-04-09 Carlos O'Donell <carlos@redhat.com>
5151 Kwok Cheung Yeung <kcy@codesourcery.com>
5152
5153 [BZ #16573]
5154 * malloc/mtrace.c: Define prototypes for all hooks.
5155 (set_default_hooks): New function.
5156 (set_trace_hooks): Likewise.
5157 (save_default_hooks): Likewise.
5158 (tr_freehook): Use new s*_hooks functions.
5159 (tr_mallochook): Likewise.
5160 (tr_reallochook): Likewise.
5161 (tr_memalignhook): Likewise.
5162 (mtrace): Likewise.
5163 (muntrace): Likewise.
5164
648279f4
WD
51652019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
5166
5167 * benchtests/bench-stpcpy.c (SIMPLE_STPCPY): Remove function.
5168 (generic_stpcpy): New function.
5169 * benchtests/bench-stpncpy.c (SIMPLE_STPNCPY): Remove function.
5170 (generic_stpncpy): New function.
5171 * benchtests/bench-strcat.c (SIMPLE_STRCAT): Remove function.
5172 (generic_strcat): New function.
5173 * benchtests/bench-strcpy.c (SIMPLE_STRCPY): Remove function.
5174 (generic_strcpy): New function.
5175 * benchtests/bench-strncat.c (SIMPLE_STRNCAT): Remove function.
5176 (STUPID_STRNCAT): Remove function.
5177 (generic_strncat): New function.
5178 * benchtests/bench-strncpy.c (SIMPLE_STRNCPY): Remove function.
5179 (STUPID_STRNCPY): Remove function.
5180 (generic_strncpy): New function.
5181 * benchtests/bench-strnlen.c (SIMPLE_STRNLEN): Remove function.
5182 (generic_strnlen): New function.
5183 (memchr_strnlen): New function.
5184 * benchtests/bench-strlen.c (generic_strlen): Define for WIDE.
5185 (memchr_strlen): Likewise.
5186
93eebae5
WD
51872019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
5188
5189 * benchtests/bench-strstr.c (input): Add realistic input text.
5190 (stupid_strstr): Remove function.
5191 (basic_strstr): Add function.
5192 (twoway_strstr): Add function.
5193 (do_one_test): Add result checking.
5194 (do_test): Use new input text. Remove accidental early matches.
5195 (test_main): Improve range of tests, reduce unaligned cases.
5196
a173d09f
WD
51972019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
5198
5199 * benchtests/bench-memmem.c (simple_memmem): Remove function.
5200 (basic_memmem): Add function.
5201 (twoway_memmem): Add function.
5202
6103c0a8
WD
52032019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
5204
5205 * benchtests/bench-malloc-simple.c: Remove TIMING_INIT.
5206 * benchtests/bench-malloc-thread.c: Likewise.
5207 * benchtests/bench-skeleton.c: Likewise.
5208 * benchtests/bench-strtod.c: Likewise.
5209 * benchtests/bench-timing.h: Likewise.
5210
33322186
FW
52112019-04-08 Florian Weimer <fweimer@redhat.com>
5212
5213 * resolv/resolv.h (RES_INSECURE1, RES_INSECURE2): Remove
5214 definitions.
5215 * resolv/res_send.c (send_dg): Always perform RES_INSECURE1 and
5216 RES_INSECURE2 security checks.
5217 * resolv/res_debug.c (p_option): Remove RES_INSECURE1 and
5218 RES_INSECURE2 handling.
5219
3f8b44be
FW
52202019-04-08 Florian Weimer <fweimer@redhat.com>
5221
5222 resolv: Remove support for RES_USE_INET6 and the inet6 option.
5223 * nscd/aicache.c (addhstaiX): Do not disable RES_USE_INET6.
5224 * nscd/nscd_gehst_r.c (__nscd_gethostbyname_r): Always use
5225 GETHOSTBYNAME.
5226 * resolv/Makefile (tests): Remove tst-res_use_inet6.
5227 (tests-internal): Update justification for tst-resolv-res_init,
5228 tst-resolv-res_init-thread.
5229 (tst-res_use_inet6): Remove target.
5230 (CFLAGS-tst-res_use_inet6.c): Do not set variable.
5231 * resolv/res_debug.c (p_option): Remove "inet6" support.
5232 * resolv/res_init.c (res_setoptions): Likewise.
5233 * resolv/res_use_inet6.h: Remove file.
5234 * resolv/resolv-internal.h (DEPRECATED_RES_USE_INET6): Remove
5235 definition.
5236 (res_use_inet6): Always return false.
5237 * resolv/resolv.h (RES_USE_INET6): Remove definition.
5238 * resolv/resolv_context.h: Adjust file comment.
5239 (struct resolv_context): Update comment on __next field.
5240 (__resolv_context_put): Update comment.
5241 * resolv/tst-res_use_inet6.c: Remove file.
5242 * resolv/tst-resolv-res_init-skeleton.c (print_resp): Remove
5243 "inet6" support.
5244 (test_cases): Adjust test case.
5245 * resolv/tst-resolv-threads.c (byname_inet6) Remove function.
5246 (thread_byname2_af_inet6): Use old byname_inet6 code.
5247 (thread_byname_inet6, thread_byname2_af_inet6): Remove functions.
5248 (gai): Remove do_inet6 argument.
5249 (thread_gai_inet, thread_gai_inet6, thread_gai_unspec): Adjust.
5250 (thread_gai_inet_inet6, thread_gai_inet6_inet6)
5251 (thread_gai_unspec_inet6): Remove functions.
5252 (do_test): Adjust thread_funcs.
5253 * sysdeps/posix/getaddrinfo.c (gethosts): Do not restore
5254 RES_USE_INET6 flag.
5255 (gaih_inet): Do not disable RES_USE_INET6 flag.
5256
6b5c8607 52572019-04-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
94e358f6
AY
5258
5259 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: Cleanup branching
5260 and remove redundant code.
5261
e3fd0b0e
AZ
52622019-04-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5263
f82ed45d
AZ
5264 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcsrchr.c):
5265 New rule.
5266 * sysdeps/powerpc/power6/wcsrchr.c: Remove file.
5267 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c:
5268 Likewise.
5269 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c:
5270 Likewise.
5271 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c:
5272 Likewise.
5273 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
5274 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: Likewise.
5275 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: Likewise.
5276 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: Likewise.
5277 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
5278 * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Likewise.
5279 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
5280 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcsrchr-power6 and
5281 wcsrchr-power7.
5282 (CFLAGS-wcsrchr-power7.c, CFLAGS-wcsrchr-power6.c): Remove rule.
5283 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
5284 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
5285 Remove wcsrchr optimizations.
5286 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
5287
662c2cc4
AZ
5288 * wcsmbs/wcsrchr.c (WCSRCHR): Use loop_unroll.h to parametrize
5289 the loop unroll.
5290
421e3005
AZ
5291 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcschr.c):
5292 New rule.
5293 * sysdeps/powerpc/power6/wcschr.c: Remove file.
5294 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c:
5295 Likewise.
5296 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c:
5297 Likewise.
5298 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c:
5299 Likewise.
5300 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
5301 * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: Likewise.
5302 * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: Likewise.
5303 * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: Likewise.
5304 * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
5305 * sysdeps/powerpc/powerpc64/power6/wcschr.c: Likewise.
5306 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
5307 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcschr-power6 and
5308 wcschr-power7.
5309 (CFLAGS-wcschr-power7.c, CFLAGS-wcschr-power6.c): Remove rule.
5310 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
5311 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
5312 Remove wcschr optimizations.
5313 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
5314
7ba0100c
AZ
5315 * wcsmbs/wcschr.c (WCSCHR): Use loop_unroll.h to parametrize
5316 the loop unroll.
5317
447a1306
AZ
5318 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcscpy.c):
5319 New rule.
5320 * sysdeps/powerpc/power6/wcscpy.c: Remove file.
5321 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c:
5322 Likewise.
5323 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c:
5324 Likewise.
5325 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c:
5326 Likewise.
5327 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
5328 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: Likewise.
5329 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: Likewise.
5330 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: Likewise.
5331 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
5332 * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Likewise.
5333 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
5334 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcscpy-power6 and
5335 wcscpy-power7.
5336 (CFLAGS-wcscpy-power7.c, CFLAGS-wcscpy-power6.c): Remove rule.
5337 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
5338 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
5339 Remove wcscpy optimizations.
5340 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
5341
e3fd0b0e
AZ
5342 * include/loop_unroll.h: New file.
5343 * wcsmbs/wcscpy (__wcscpy): Add option to use loop unrolling
5344 besides generic implementation.
5345
8260f236
DD
53462019-04-03 DJ Delorie <dj@redhat.com>
5347
5348 * time/tst-strftime3.c (tm_to_printed): Disable warning about
5349 snprintf truncating output.
5350
0bd545ee
DD
53512019-04-02 DJ Delorie <dj@redhat.com>
5352
5353 * time/tst-strftime3.c: Add new Japanese era tests. Fix printf
5354 warning.
5355
466afec3
TS
53562019-04-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
5357
5358 [BZ #22964]
5359 * localedata/locales/ja_JP (LC_TIME): Add entry for the new Japanese
5360 era.
5361 * time/tst-strftime2.c (dates): Add 2019-04-30 and 2019-05-01.
5362 (mkreftable): Add rules for the new Japanese era and the new dates.
5363
2f1d6155 53642019-04-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
ab74d59f 5365 Rafał Lużyński <digitalfreak@lingonborough.com>
2f1d6155
TS
5366
5367 * time/tst-strftime2.c (date_t): Explicitly define the type.
5368 (dates): Use natural month and year numbers to express a date.
5369 (is_before): New function to compare dates.
5370 (mkreftable): Minor improvements to simplify maintenance.
5371 (do_test): Reflect the changes in dates array.
5372
84aea169
TS
5373 [BZ #24293]
5374 * time/Makefile (LOCALES): Add zh_TW.UTF-8, cmn_TW.UTF-8,
5375 hak_TW.UTF-8, nan_TW.UTF-8, and lzh_TW.UTF-8.
5376 * time/tst-strftime2.c (locales): Likewise.
5377 (dates): Add 1910-04-01, 1911-12-31, 1912-01-01, 1913-04-01,
5378 2010-04-01, and 2011-04-01.
5379 (mkreftable): Add rules for the new locales and the new dates.
5380
62449176
CD
53812019-04-01 Carlos O'Donell <carlos@redhat.com>
5382
5383 * localedata/locales/ja_JP: Add comments to era entries.
5384
e0e4c321
DD
53852019-04-01 DJ Delorie <dj@redhat.com>
5386
5387 [BZ #24394]
5388 * time/strptime_l.c (%Ey): Fix fencepost error.
5389 * time/tst-strftime3.c: New.
5390 * time/Makefile (tests): Add tst-strftime3.
5391
ab74d59f 53922019-04-01 Uroš Bizjak <ubizjak@gmail.com>
993e3107
UB
5393
5394 * sysdeps/alpha/divqu.S (__divqu): Move save of $f0 and excb after
5395 conditional branch to DIVBYZERO. Fix unwind info.
5396 * sysdeps/alpha/remqu.S (__remqu): Move saves of $f0, $f1, $f2 and
5397 excb after conditional branch to $powerof2. Add missing unop
5398 instructions and .align directives and reorder instructions to
5399 match __divqu.
5400
d5ecee82
RH
54012019-04-01 Richard Henderson <rth@twiddle.net>
5402
5403 * sysdeps/unix/sysv/linux/alpha/kernel-features.h (__NR_shmat):
5404 Do not redefine.
5405 * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_osf_shmat):
5406 Do not redefine.
5407
656dd306
MR
54082019-03-30 Maciej W. Rozycki <macro@wdc.com>
5409
5410 * sysdeps/unix/sysv/linux/riscv/configure.ac: Quote
5411 $libc_cv_riscv_float_abi in `test' invocation.
5412 * sysdeps/unix/sysv/linux/riscv/configure: Regenerate.
5413
10cce669
PC
54142019-03-29 Paul A. Clarke <pc@us.ibm.com>
5415
5416 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_register): Replace inline
5417 asm with builtin.
5418 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (FP_INIT_ROUNDMODE):
5419 Likewise.
5420 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
5421 (_GET_SI_FPSCR): Likewise.
5422 (_SET_SI_FPSCR): Likewise.
5423
5e67e4bf 54242019-03-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4997e8f3
AZ
5425
5426 * math/math.h (fpclassify, isfinite, isnormal, isnan): Use builtin for
5427 clang 2.8.
5428 (signbit): Use builtin for clang 3.3.
5429 (isinf): Use builtin for clang 3.7.
5430
01963891
AZ
54312019-03-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5432
5433 * sysdeps/powerpc/fpu/s_float_bitwise.h: Remove file.
5434
67112f7a
AH
54352019-03-25 Andreas K. Hüttel <dilfridge@gentoo.org>
5436
5437 * nss/tst-nss-files-alias-leak.c (do_test): add missing opening
5438 quote in printf.
5439
7a773abf
MC
54402019-03-25 Mike Crowe <mac@mcrowe.com>
5441
82849fde
MC
5442 * nptl/tst-rwlock14.c (do_test): Replace duplicate calls to
5443 pthread_rwlock_timedrdlock with calls to
5444 pthread_rwlock_timedwrlock to ensure that the latter is tested
5445 too. Use new function name in diagnostic messages too.
5446
7a773abf
MC
5447 * nptl/tst-sem5.c: Remove unused headers. Add <support/check.h>.
5448 (do_test) Use libsupport test macros rather than hand-coded
5449 conditionals and error messages. Ensure that sem_init returns zero
5450 rather than not -1. Use <support/test-driver.c> rather than
5451 test-skeleton.c.
5452
5453 * nptl/tst-sem13.c: Add <support/check.h>. (do_test) Use libsupport
5454 test macros rather than hand-coded conditionals and error messages.
5455 Use <support/test-driver.c> rather than test-skeleton.c.
5456
9ac2de69
JM
54572019-03-25 Joseph Myers <joseph@codesourcery.com>
5458
d7563e62
JM
5459 * sysdeps/gnu/netinet/udp.h (UDP_GRO): New macro.
5460
9ac2de69
JM
5461 * elf/elf.h (NT_ARM_PAC_MASK): New macro.
5462 (NT_MIPS_MSA): Likewise.
5463
38cc11da
AZ
54642019-03-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5465
7621e38b
WD
5466 * benchtests/Makefile (USE_CLOCK_GETTIME) Remove.
5467 * benchtests/README: Update description.
5468 * benchtests/bench-timing.h: Default to hp-timing.
5469 * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT,
5470 HP_TIMING_PRINT): Remove.
5471 (HP_TIMING_NOW): Add generic implementation.
5472 (hp_timing_t): Change to uint64_t.
5473
1e372ded
AZ
5474 * benchtests/bench-timing.h: Replace HP_TIMING_AVAIL with
5475 HP_TIMING_INLINE.
5476 * nptl/descr.h: Likewise.
5477 * elf/rtld.c (RLTD_TIMING_DECLARE, RTLD_TIMING_NOW, RTLD_TIMING_DIFF,
5478 RTLD_TIMING_ACCUM_NT, RTLD_TIMING_SET): Define.
5479 (dl_start_final_info, _dl_start_final, dl_main, print_statistics):
5480 Abstract hp-timing usage with RTLD_* macros.
5481 * sysdeps/alpha/hp-timing.h (HP_TIMING_INLINE): Define iff IS_IN(rtld).
5482 (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL): Remove.
5483 * sysdeps/generic/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL,
5484 HP_TIMING_NONAVAIL): Likewise.
5485 * sysdeps/ia64/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
5486 Likewise.
5487 * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_AVAIL,
5488 HP_SMALL_TIMING_AVAIL): Likewise.
5489 * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_AVAIL,
5490 HP_SMALL_TIMING_AVAIL): Likewise.
5491 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_AVAIL,
5492 HP_SMALL_TIMING_AVAIL): Likewise.
5493 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_AVAIL,
5494 HP_SMALL_TIMING_AVAIL): Likewise.
5495 * sysdeps/x86/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
5496 Likewise.
5497 * sysdeps/generic/hp-timing-common.h: Update comment with
5498 HP_TIMING_AVAIL removal.
5499
359653aa
AZ
5500 * include/random-bits.h: New file.
5501 * resolv/res_mkquery.c [HP_TIMING_AVAIL] (RANDOM_BITS,
5502 (__res_context_mkquery): Remove usage hp-timing usage and replace with
5503 random_bits.
5504 * resolv/res_send.c [HP_TIMING_AVAIL] (nameserver_offset): Likewise.
5505 * sysdeps/posix/tempname.c [HP_TIMING_AVAIL] (__gen_tempname):
5506 Likewise.
5507
6e8ba7fd
AZ
5508 * include/libc-internal.h (__get_clockfreq): Remove prototype.
5509 * rt/Makefile (clock-routines): Remove get_clockfreq.
5510 * rt/get_clockfreq.c: Remove file.
5511 * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Likewise.
5512 * sysdeps/unix/sysv/linux/ia64/get_clockfreq.c: Likewise.
5513 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Likewise.
5514 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Move code to ...
5515 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: ... here.
5516
77b6f553
AZ
5517 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c: Remove file.
5518 * sysdeps/unix/sysv/linux/ia64/sysconf.c: Likewise.
5519 * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock): Remove function.
5520 (__sysconf): Assume kernel support for _SC_MONOTONIC_CLOCK,
5521 _SC_CPUTIME, and _SC_THREAD_CPUTIME.
5522
38cc11da
AZ
5523 * nptl/Makefile (libpthread-routines): Remove pthread_clock_gettime and
5524 pthread_clock_settime.
5525 * nptl/pthreadP.h (__find_thread_by_id): Remove prototype.
5526 * elf/dl-support.c [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset): Remove.
5527 (_dl_non_dynamic_init): Remove _dl_cpuclock_offset setting.
5528 * elf/rtld.c (_dl_start_final): Likewise.
5529 * nptl/allocatestack.c (__find_thread_by_id): Remove function.
5530 * sysdeps/generic/ldsodefs.h [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset):
5531 Remove.
5532 * sysdeps/mach/hurd/dl-sysdep.c [!HP_TIMING_NOAVAIL]
5533 (_dl_cpuclock_offset): Remove.
5534 * nptl/descr.h (struct pthread): Rename cpuclock_offset to
5535 cpuclock_offset_ununsed.
5536 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
5537 cpuclock_offset set.
5538 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
5539 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
5540 * nptl/pthread_clock_gettime.c: Remove file.
5541 * nptl/pthread_clock_settime.c: Likewise.
5542 * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Remove function.
5543 [HP_TIMING_AVAIL] (realtime_gettime): Remove CLOCK_THREAD_CPUTIME_ID
5544 and CLOCK_PROCESS_CPUTIME_ID support.
5545 * sysdeps/unix/clock_settime.c (hp_timing_gettime): Likewise.
5546 [HP_TIMING_AVAIL] (realtime_gettime): Likewise.
5547 * sysdeps/posix/clock_getres.c (hp_timing_getres): Likewise.
5548 [HP_TIMING_AVAIL] (__clock_getres): Likewise.
5549 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P, INVALID_CLOCK_P):
5550 Likewise.
5551 (__clock_nanosleep): Remove CPUCLOCK_P and INVALID_CLOCK_P usage.
5552
421749d6
SL
55532019-03-22 Stefan Liebler <stli@linux.ibm.com>
5554
5555 * sysdeps/s390/Makefile (sysdep_routines): Add memmem-arch13.
5556 * sysdeps/s390/ifunc-memmem.h (HAVE_MEMMEM_ARCH13, MEMMEM_ARCH13,
5557 MEMMEM_Z13_ONLY_USED_AS_FALLBACK, HAVE_MEMMEM_IFUNC_AND_ARCH13_SUPPORT):
5558 New defines.
5559 * sysdeps/s390/memmem-arch13.S: New file.
5560 * sysdeps/s390/memmem-vx.c: Omit GI symbol for z13 memmem ifunc variant
5561 if it is only used as fallback.
5562 * sysdeps/s390/memmem.c (memmem): Add arch13 variant in ifunc selector.
5563 * sysdeps/s390/multiarch/ifunc-impl-list.c
5564 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmem.
5565
6f47401b
SL
55662019-03-22 Stefan Liebler <stli@linux.ibm.com>
5567
5568 * sysdeps/s390/Makefile (sysdep_routines): Add strstr-arch13.
5569 * sysdeps/s390/ifunc-strstr.h (HAVE_STRSTR_ARCH13, STRSTR_ARCH13,
5570 STRSTR_Z13_ONLY_USED_AS_FALLBACK, HAVE_STRSTR_IFUNC_AND_ARCH13_SUPPORT):
5571 New defines.
5572 * sysdeps/s390/multiarch/ifunc-impl-list.c
5573 (__libc_ifunc_impl_list): Add ifunc variant for arch13 strstr.
5574 * sysdeps/s390/strstr-arch13.S: New file.
5575 * sysdeps/s390/strstr-vx.c: Omit GI symbol for z13 strstr ifunc variant
5576 if it is only used as fallback.
5577 * sysdeps/s390/strstr.c (strstr): Add arch13 variant in ifunc selector.
5578
96fbb9a3
SL
55792019-03-22 Stefan Liebler <stli@linux.ibm.com>
5580
5581 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_ARCH13, MEMMOVE_ARCH13
5582 HAVE_MEMMOVE_IFUNC_AND_ARCH13_SUPPORT): New defines.
5583 * sysdeps/s390/memcpy-z900.S: Add arch13 memmove implementation.
5584 * sysdeps/s390/memmove.c (memmove): Add arch13 variant in
5585 ifunc selector.
5586 * sysdeps/s390/multiarch/ifunc-impl-list.c
5587 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmove.
5588 * sysdeps/s390/multiarch/ifunc-resolve.h (S390_STFLE_BITS_ARCH13_MIE3,
5589 S390_IS_ARCH13_MIE3): New defines.
5590
a899a551
SL
55912019-03-22 Stefan Liebler <stli@linux.ibm.com>
5592
5593 * config.h.in (HAVE_S390_MIN_ARCH13_ZARCH_ASM_SUPPORT,
5594 HAVE_S390_ARCH13_ASM_SUPPORT): New undefine.
5595 * sysdeps/s390/configure.ac: Add checks for arch13 support.
5596 * sysdeps/s390/configure: Regenerated.
5597
1a7df49c
SL
55982019-03-22 Stefan Liebler <stli@linux.ibm.com>
5599
5600 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags):
5601 Add vxe2, vxp, dflt, sort flags.
5602 * sysdeps/s390/dl-procinfo.h: Add HWCAP_S390_VXRS_EXT2,
5603 HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT, HWCAP_S390_DFLT
5604 capabilities.
5605 (HWCAP_IMPORTANT): Add HWCAP_S390_VXRS_EXT2.
5606 * sysdeps/unix/sysv/linux/s390/bits/hwcap.h
5607 (HWCAP_S390_VXRS_EXT2, HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT,
5608 HWCAP_S390_DFLT): Define.
5609
5e67e4bf 56102019-03-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5abcddd7
GG
5611
5612 [BZ #24372]
5613 * iconv/iconvconfig.c (write_output): Add parentheses to get rid
5614 of compiler warning.
5615 * locale/programs/ld-collate.c (collate_output): Likewise.
5616
ac64195c
DD
56172019-03-21 DJ Delorie <dj@redhat.com>
5618
5619 [BZ #24372]
5620 * iconv/iconvconfig.c (write_output): Replace floating point math
5621 with integer math to avoid imprecise results.
5622 * locale/programs/ld-collate.c (collate_output): Likewise.
5623
61f5e947
SL
56242019-03-21 Stefan Liebler <stli@linux.ibm.com>
5625
5626 * sysdeps/s390/dl-procinfo.h (HWCAP_IMPORTANT):
5627 Add HWCAP_S390_VX and HWCAP_S390_VXE.
5628
57ada43c 56292019-03-20 mansayk <6688000@gmail.com>
5630
5631 [BZ #24296]
5632 * localedata/locales/tt_RU (day): Update from CLDR-34, fix errors.
5633 (abday): Likewise, but remove the trailing dots.
5634
a2e57f89
JM
56352019-03-19 Joseph Myers <joseph@codesourcery.com>
5636
5637 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SB): New
5638 macro.
5639 (HWCAP_PACA): Likewise.
5640 (HWCAP_PACG): Likewise.
5641 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
5642 Increase to 32.
5643 (_dl_aarch64_cap_flags): Add new entries for new HWCAPs.
5644
e87d8ada
ST
56452019-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
5646
5647 * hurd/hurd/signal.h (_hurd_critical_section_lock): Document how EINTR
5648 should be handled.
5649
477e739b
JM
56502019-03-15 Joseph Myers <joseph@codesourcery.com>
5651
5652 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
5653 version to 5.0.
5654 (old_getpagesize): New syscall.
5655
238d60a1
FY
56562019-03-15 Felix Yan <felixonmars@archlinux.org>
5657
5658 [BZ #24293]
5659 * localedata/locales/zh_TW (era): Add, support Minguo calendar.
5660 * localedata/locales/cmn_TW (era): Likewise.
5661 * localedata/locales/hak_TW (era): Likewise.
5662 * localedata/locales/lzh_TW (era): Likewise.
5663 * localedata/locales/nan_TW (era): Likewise.
5664
5dde9ef7
DD
56652019-03-14 Adam Maris <amaris@redhat.com>
5666
5667 * malloc/malloc.c (_int_malloc): Check for large bin list
5668 corruption when inserting unsorted chunk.
5669
a0a0dc83
FW
56702019-03-14 Florian Weimer <fweimer@redhat.com>
5671
5672 Remove obsolete, never-implemented XSI STREAMS declarations.
5673 * manual/terminal.texi (Allocation): Remove portability note and
5674 adjust example.
5675 * sysdeps/posix/sysconf.c (__sysconf): Always return -1 for
5676 _SC_STREAMS.
5677 * sysdeps/unix/sysv/linux/syscalls.list (getpmsg, putpmsg): Remove.
5678 * sysdeps/unix/inet/Subdirs (streams): Remove.
5679 * conform/Makefile (conformtest-headers-XPG42): Remove stropts.h.
5680 (conformtest-headers-UNIX98): Likewise.
5681 (conformtest-headers-XOPEN2K): Likewise.
5682 (conformtest-headers-POSIX2008): Likewise.
5683 * posix/compat-streams.c: New file.
5684 * posix/Makefile (routines): Add it.
5685 * posix/Versions (GLIBC_2.1): Add fattach, fdetach, getmsg,
5686 getpmsg, isastream, putmsg, putpmsg.
5687 (GLIBC_2.30): New section.
5688 * bits/stropts.h: Remove file.
5689 * bits/xtitypes.h: Likewise.
5690 * conform/data/stropts.h-data: Likewise.
5691 * include/stropts.h: Likewise.
5692 * include/sys/stropts.h: Likewise.
5693 * include/xtitypes.h: Likewise.
5694 * streams/Makefile: Likewise.
5695 * streams/fattach.c: Likewise.
5696 * streams/fdetach.c: Likewise.
5697 * streams/getmsg.c: Likewise.
5698 * streams/getpmsg.c: Likewise.
5699 * streams/isastream.c: Likewise.
5700 * streams/putmsg.c: Likewise.
5701 * streams/putpmsg.c: Likewise.
5702 * streams/stropts.h: Likewise.
5703 * streams/sys/stropts.h: Likewise.
5704 * sysdeps/ia64/bits/xtitypes.h: Likewise.
5705 * sysdeps/s390/bits/xtitypes.h: Likewise.
5706 * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
5707 * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
5708 * sysdeps/unix/sysv/linux/m68k/getmsg.c: Likewise.
5709 * sysdeps/unix/sysv/linux/m68k/putmsg.c: Likewise.
5710 * sysdeps/unix/sysv/linux/mips/getmsg.c: Likewise.
5711 * sysdeps/unix/sysv/linux/mips/putmsg.c: Likewise.
5712 * sysdeps/unix/sysv/linux/powerpc/getmsg.c: Likewise.
5713 * sysdeps/unix/sysv/linux/powerpc/putmsg.c: Likewise.
5714 * sysdeps/x86/bits/xtitypes.h: Likewise.
5715
081bdf94
FW
57162019-03-14 Florian Weimer <fweimer@redhat.com>
5717
5718 * nss/tst-nss-files-alias-truncated.c (do_test): Load
5719 libnss_files.
5720 * nss/Makefile (tst-nss-files-alias-truncated): Link with -ldl,
5721 but not with libnss_files.
5722 (tst-nss-files-alias-truncated.out): Depend on libnss_files.
5723
97f8225d
ZW
57242019-03-14 Zack Weinberg <zackw@panix.com>
5725
5726 * scripts/check-obsolete-constructs.py (HeaderChecker.check):
5727 Specify encoding="utf-8" when opening headers to check.
5728
0c1041ee
JM
57292019-03-13 Joseph Myers <joseph@codesourcery.com>
5730
5731 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
5732 version to 5.0.
5733 (Context.checkout_tar): Handle variable major version for Linux
5734 kernel.
5735
043440e7
FW
57362019-03-13 Florian Weimer <fweimer@redhat.com>
5737
5738 [BZ #24047]
5739 * sysdeps/mach/hurd/res_enable_icmp.c: New file.
5740
29218b26
ZW
57412019-03-13 Zack Weinberg <zackw@panix.com>
5742
5743 * sysdeps/generic/inttypes.h, sysdeps/generic/stdint.h:
5744 Move to stdlib.
5745 * include/inttypes.h: Adjust to match.
5746 * include/stdint.h: New wrapper.
5747
711a322a
ZW
57482019-03-13 Zack Weinberg <zackw@panix.com>
5749
5750 * scripts/check-obsolete-constructs.py: New test script.
5751 * scripts/check-installed-headers.sh: Remove tests for
5752 obsolete typedefs, superseded by check-obsolete-constructs.py.
5753 * Rules: Run scripts/check-obsolete-constructs.py over $(headers)
5754 as a special test. Update commentary.
5755 * posix/bits/types.h (__SQUAD_TYPE, __S64_TYPE): Define as __int64_t.
5756 (__UQUAD_TYPE, __U64_TYPE): Define as __uint64_t.
5757 Update commentary.
5758 * posix/sys/types.h (__u_intN_t): Remove.
5759 (u_int8_t): Typedef using __uint8_t.
5760 (u_int16_t): Typedef using __uint16_t.
5761 (u_int32_t): Typedef using __uint32_t.
5762 (u_int64_t): Typedef using __uint64_t.
5763
7c651308
SL
57642019-03-13 Stefan Liebler <stli@linux.ibm.com>
5765
5766 * elf/dl-sysdep.c (_dl_show_auxv): Remove condition and always
5767 call _dl_procinfo.
5768 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h (_dl_procinfo):
5769 Ignore types other than AT_HWCAP.
5770 * sysdeps/sparc/dl-procinfo.h (_dl_procinfo): Likewise.
5771 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_procinfo):
5772 Likewise.
5773 * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Adjust comment
5774 in the case of falling back to generic output mechanism.
5775 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_dl_procinfo):
5776 Likewise.
5777
38b52865
FW
57782019-03-12 Florian Weimer <fweimer@redhat.com>
5779
5780 * elf/elf.h (DF_1_KMOD, DF_1_WEAKFILTER, DF_1_NOCOMMON): Define.
5781
08504de7
FW
57822019-03-12 Florian Weimer <fweimer@redhat.com>
5783
5784 [BZ #24047]
5785 resolv: Enable full ICMP errors for UDP DNS sockets
5786 * resolv/res_enable_icmp.c: New file.
5787 * resolv/Makefile (libresolv-routines): Add res_enable_icmp.
5788 * resolv/resolv-internal.h (__res_enable_icmp): Declare.
5789 * resolv/res_send.c (reopen): Call __res_enable_icmp on new
5790 socket.
5791
5fbcd763
MH
57922019-03-11 Mao Han <han_mao@c-sky.com>
5793
5794 * elf/elf.h (EF_CSKY_ABIMASK, EF_CSKY_OTHER, EF_CSKY_PROCESSOR)
5795 (EF_CSKY_ABIV1, EF_CSKY_ABIV2, SHT_CSKY_ATTRIBUTES): New defines.
5796
c4e5f34b
MH
57972019-03-11 Mao Han <han_mao@c-sky.com>
5798
5799 * sysdeps/csky/abiv2/start.S: Mark lr as undefined.
5800 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
5801 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
5802
827e30f3
MH
58032019-03-11 Mao Han <han_mao@c-sky.com>
5804
5805 * sysdeps/unix/sysv/linux/csky/sys/procfs.h: Use linux definition
5806 directly.
5807 * sysdeps/unix/sysv/linux/csky/sys/user.h: Remove user_regs
5808 definition.
5809
6229c9bf
MH
58102019-03-11 Mao Han <han_mao@c-sky.com>
5811
5812 * sysdeps/unix/sysv/linux/csky/register-dump.h: Adjust offset change.
5813 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Remove __mask field
5814 in mcontext_t
5815
86bdd49d
MF
58162019-03-08 Mike FABIAN <mfabian@redhat.com>
5817
5818 [BZ #24307]
5819 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.0.0.
5820 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
5821 Unicode 12.0.0.
5822 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
5823 * localedata/unicode-gen/PropList.txt: Likewise.
5824 * localedata/unicode-gen/UnicodeData.txt: Likewise.
5825 * localedata/unicode-gen/ctype_compatibility_test_cases.py: U+108D
5826 became "Alphabetic" in Unicode 12.0.0. Adapt test case.
5827 * localedata/charmaps/UTF-8: Regenerate.
5828 * localedata/locales/i18n_ctype: Likewise.
5829 * localedata/locales/tr_TR: Likewise.
5830 * localedata/locales/translit_circle: Likewise.
5831 * localedata/locales/translit_cjk_compat: Likewise.
5832 * localedata/locales/translit_combining: Likewise.
5833 * localedata/locales/translit_compat: Likewise.
5834 * localedata/locales/translit_font: Likewise.
5835 * localedata/locales/translit_fraction: Likewise.
5836
c5f65462
JM
58372019-03-07 Joseph Myers <joseph@codesourcery.com>
5838
5839 * stdio-common/vfscanf-internal.c (ARG): Break lines before rather
5840 than after operators.
5841 * sysdeps/mach/hurd/setitimer.c (timer_thread): Likewise.
5842 (setitimer_locked): Likewise.
5843 * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
5844 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
5845 * sysdeps/mach/pagecopy.h (PAGE_COPY_FWD): Likewise.
5846 * sysdeps/mach/thread_state.h (machine_get_basic_state): Likewise.
5847 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c
5848 (PPC_CPU_SUPPORTED): Likewise.
5849 * sysdeps/unix/sysv/linux/alpha/a.out.h (N_TXTOFF): Likewise.
5850 * sysdeps/unix/sysv/linux/generic/wordsize-32/overflow.h
5851 (stat_overflow): Likewise.
5852 (statfs_overflow): Likewise.
5853 * sysdeps/unix/sysv/linux/tst-personality.c (do_test): Likewise.
5854 * sysdeps/unix/sysv/linux/tst-ttyname.c (eq_ttyname): Likewise.
5855 (eq_ttyname_r): Likewise.
5856 (run_chroot_tests): Likewise.
5857
27a2f2f3
FW
58582019-03-07 Florian Weimer <fweimer@redhat.com>
5859
5860 * scripts/check-wrapper-headers.py (check_headers): Adjust Fortran
5861 header check.
5862
ae514971 58632019-03-07 Martin Liska <mliska@suse.cz>
5864
5865 * math/Makefile: Change location where math-vector-fortran.h is
5866 installed.
5867 * math/finclude/math-vector-fortran.h: Move from bits/math-vector-fortran.h.
5868 * sysdeps/x86/fpu/finclude/math-vector-fortran.h: Move
5869 from sysdeps/x86/fpu/bits/math-vector-fortran.h.
5870 * scripts/check-installed-headers.sh: Skip Fortran header files.
5871 * scripts/check-wrapper-headers.py: Likewise.
5872
0ddb7ea8
AZ
58732019-03-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5874
5875 * nptl/nptl-init.c (__have_futex_clock_realtime,
5876 __have_futex_clock_realtime): Remove definition.
5877 (__pthread_initialize_minimal_internal): Remove FUTEX_CLOCK_REALTIME
5878 check test for !__ASSUME_FUTEX_CLOCK_REALTIME.
5879 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Assume
5880 __ASSUME_FUTEX_CLOCK_REALTIME support.
5881 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
5882 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
5883 * sysdeps/unix/sysv/linux/kernel-features.h
5884 (__ASSUME_FUTEX_CLOCK_REALTIME): Remove.
5885 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_timed_wait_bitset):
5886 Adjust comment.
5887
590675c0
GG
58882019-03-05 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5889
5890 * sysdeps/powerpc/powerpc64/power6/wcscpy.c (WCSCPY): Define to
5891 __wcscpy, then use libc_hidden_def and weak_alias to bind it to
5892 __GI___wcscpy and wcscpy.
5893
de71ee7b
FW
58942019-03-04 Florian Weimer <fweimer@redhat.com>
5895
5896 * sysdeps/generic/ldsodefs.h (_dl_sysdep_open_zero_fill): Remove
5897 declaration.
5898 * elf/dl-load.c (_dl_map_object_from_fd): Assume MAP_ANON is
5899 defined.
5900
ce6ddae0
SL
59012019-03-04 Stefan Liebler <stli@linux.ibm.com>
5902
5903 * sysdeps/s390/s390-64/sysdep.h (ENTRY): Use alignment of 16byte.
5904 * sysdeps/s390/s390-32/sysdep.h: Likewise.
5905
31efface
TS
59062019-03-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
5907
5908 [BZ #24162]
5909 * localedata/locales/ja_JP (LC_TIME): Change the offset for Taisho
5910 gan-nen from 2 to 1. Problem reported by Morimitsu, Junji.
5911
f0eaf862
GG
59122019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5913
5914 * misc/tst-ldbl-error.c (do_one_test): Adapt for reuse by nldbl
5915 tests.
5916 (do_test): Likewise.
5917 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
5918 (do_test_call_varg): Likewise.
5919 (do_test_call_rarg): Likewise.
5920 * sysdeps/ieee754/ldbl-opt/Makefile
5921 [subdir == misc] (tests-internal): Add tst-nldbl-warn,
5922 tst-nldbl-error.
5923 ($(objpfx)tst-nldbl-warn.c): New rule.
5924 ($(objpfx)tst-nldbl-error.c): Likewise.
5925 (CFLAGS-tst-nldbl-warn.c, CFLAGS-tst-nldbl-error.c):
5926 New variables.
5927
d11086a9
GG
59282019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5929
5930 [BZ #23984]
5931 * include/bits/error-ldbl.h: New file.
5932 * include/error.h: Include stdarg.h. Declare internal functions
5933 __error_internal and __error_at_line_internal.
5934 * misc/Makefile (headers): Add bits/error-ldbl.h.
5935 * misc/bits/error-ldbl.h: New file.
5936 * misc/error.h [__LDBL_COMPAT]: Include bits/error-ldbl.h and
5937 avoid the inclusion of bits/error.h.
5938 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_error,
5939 and __nldbl_error_at_line.
5940 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include error.h.
5941 (__nldbl_error, __ndlbl_error_at_line): New functions.
5942 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include error.h.
5943 Redirect error and error_at_line.
5944 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
5945 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
5946 Likewise.
5947 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
5948 Likewise.
5949 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
5950 Likewise.
5951 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
5952 Likewise.
5953 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
5954 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
5955 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
5956
90188e7d
GG
59572019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5958
5959 [BZ #23984]
5960 * include/bits/err-ldbl.h: New file.
5961 * include/err.h: Add prototypes for the internal functions:
5962 __vwarnx_internal and __vwarn_internal.
5963 * misc/Makefile (headers): Add bits/err-ldbl.h.
5964 * misc/bits/err-ldbl.h: New file.
5965 * misc/err.h: Include bits/err-ldbl.h when __LDBL_COMPAT is
5966 defined, i.e.: when -mlong-double-64 is in use.
5967 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_warn,
5968 __nldbl_vwarn, __nldbl_warnx, __nldbl_vwarnx, __nldbl_err,
5969 __nldbl_verr, __nldbl_errx, and __nldbl_verrx.
5970 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include err.h.
5971 (VA_CALL): New macro.
5972 (__nldbl_vwarn, __nldbl_vwarnx, __nldbl_warn, __nldbl_warnx)
5973 (__nldbl_verr, __nldbl_verrx, __nldbl_err, __nldbl_errx): New
5974 functions.
5975 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include err.h and
5976 declare prototypes for the new functions.
5977 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
5978 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
5979 Likewise.
5980 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
5981 Likewise.
5982 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
5983 Likewise.
5984 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
5985 Likewise.
5986 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
5987 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
5988 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
5989
ea2d89d0
GG
59902019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5991
5992 * sysdeps/ieee754/ldbl-opt/Makefile
5993 [subdir == argp] (tests-internal): Add tst-nldbl-argp.
5994 [subdir == argp] ($(objpfx)tst-nldbl-argp.c): New rule.
5995 [subdir == argp] (CFLAGS-tst-nldbl-argp.c): New variable.
5996
6e1f6440
GG
59972019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5998
5999 [BZ #23983]
6000 * argp/Makefile (headers): Add bits/argp-ldbl.h.
6001 * argp/argp.h [defined __LDBL_COMPAT]: Include bits/argp-ldbl.h.
6002 * argp/bits/argp-ldbl.h: New file.
6003 * include/argp.h: Include stdarg.h. Add prototypes for internal
6004 functions: __argp_error_internal and __argp_failure_internal.
6005 * include/bits/argp-ldbl.h: New file.
6006 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add
6007 __nldbl_argp_error and __nldbl_argp_failure.
6008 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include argp.h.
6009 (__nldbl_argp_error, __nldbl_argp_failure): New functions.
6010 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include argp.h.
6011 Redirect argp_error and argp_failure calls.
6012 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
6013 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
6014 Likewise.
6015 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
6016 Likewise.
6017 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
6018 Likewise.
6019 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
6020 Likewise.
6021 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
6022 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
6023 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
6024
c259196b
FW
60252019-03-01 Florian Weimer <fweimer@redhat.com>
6026
6027 [BZ #20419]
6028 * elf/tst-big-note-lib.S: Create a syntactically valid note.
6029 * elf/Makefile (tst-big-note-lib.so): Do not link with startup
6030 code, to avoid creating an ABI tag note.
6031 (modules-names-nobuild): Add tst-big-note-lib.
6032
928b305d
SL
60332019-03-01 Stefan Liebler <stli@linux.ibm.com>
6034
6035 * sysdeps/s390/wcscpy-vx.S: Add strong aliases to
6036 __wcscpy, __GI___wcscpy and weak alias to wcscpy.
6037
36f30c10
FW
60382019-03-01 Florian Weimer <fweimer@redhat.com>
6039
6040 [BZ #20271]
6041 * sysdeps/unix/sysv/linux/netlink_assert_response.c
6042 (__netlink_assert_response): Add additional missing newlines.
6043
462e83a4
JM
60442019-02-28 Joseph Myers <joseph@codesourcery.com>
6045
6046 * sysdeps/powerpc/powerpc32/dl-machine.c
6047 (__elf_machine_fixup_plt): Use space before '('.
6048 (__process_machine_rela): Likewise.
6049 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump):
6050 Likewise.
6051 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (TI_BITS):
6052 Likewise.
6053 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump):
6054 Likewise.
6055 * sysdeps/powerpc/test-arith.c (union_t): Likewise.
6056 (pattern): Likewise.
6057 (delta): Likewise.
6058 (check_result): Likewise.
6059 (check_excepts): Likewise.
6060 (check_op): Likewise.
6061 (fail_xr): Likewise.
6062 * sysdeps/unix/alpha/sysdep.h (syscall_promote): Likewise.
6063 * sysdeps/unix/sysv/linux/alpha/a.out.h (AOUTHSZ): Likewise.
6064 (SCNHSZ): Likewise.
6065 * sysdeps/unix/sysv/linux/hppa/makecontext.c (FRAME_SIZE_BYTES):
6066 Likewise.
6067 (ARGS): Likewise.
6068 (__makecontext): Likewise.
6069 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t):
6070 Likewise.
6071
cc3e573c
FW
60722019-02-28 Florian Weimer <fweimer@redhat.com>
6073
6074 [BZ #23937]
6075 elf: Add test with a local IFUNC resolver.
6076 * elf/ifuncmain9.c: New file.
6077 * elf/ifuncmain9pic.c: Likewise.
6078 * elf/ifuncmain9picstatic.c: Likewise.
6079 * elf/ifuncmain9pie.c: Likewise.
6080 * elf/ifuncmain9static.c: Likewise.
6081 * elf/Makefile [multi-arch] (tests-ifuncstatic): Add
6082 ifuncmain9static, ifuncmain9picstatic.
6083 * elf/Makefile [multi-arch && build-shared] (tests-internal):
6084 Add ifuncmain9, ifuncmain9pic.
6085 * elf/Makefile [multi-arch && build-shared && have-fpie]
6086 (ifunc-pie-tests): Add ifuncmain9pie.
6087 (CFLAGS-ifuncmain9pic.c): Add $(pic-ccflag).
6088 (CFLAGS-ifuncmain9picstatic.c): Likewise.
6089 (CFLAGS-ifuncmain9pie.c): Add $(pie-ccflag).
6090
92ad88fe
L
60912019-02-27 H.J. Lu <hongjiu.lu@intel.com>
6092
6093 * configure.ac (have-ifunc): New LIBC_CONFIG_VAR.
6094 * configure: Regenerated.
6095 * elf/Makefile: Run IFUNC tests if binutils supports IFUNC.
6096
6bd4d02e
AZ
60972019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6098
6099 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Define ifunc
6100 symbol as __wcspcy instead of wcscpy.
6101
1b218417
ST
61022019-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
6103
6104 * include/stdio.h (__renameat2): New hidden prototype.
6105 * stdio-common/renameat2.c (__renameat2): Add hidden definition.
6106 * sysdeps/mach/hurd/renameat.c (__renameat): Move implementation to...
6107 * sysdeps/mach/hurd/renameat2.c (__renameat2): ... new function.
6108 * sysdeps/unix/sysv/linux/renameat2.c (__renameat2): Add hidden definition.
6109
c4f50205
JM
61102019-02-27 Joseph Myers <joseph@codesourcery.com>
6111
f627dd4d
JM
6112 * hurd/hurdinit.c (_hurd_init): Use braces around empty body of an
6113 if statement.
6114
c4f50205
JM
6115 * benchtests/bench-strcpy.c (do_test): Use space before '('.
6116 * benchtests/bench-string.h (cmdline_process_function): Likewise.
6117 * benchtests/bench-strlen.c (do_test): Likewise.
6118 (test_main): Likewise.
6119 * catgets/gencat.c (read_old): Likewise.
6120 * elf/cache.c (load_aux_cache): Likewise.
6121 * iconvdata/bug-iconv8.c (do_test): Likewise.
6122 * math/test-tgmath-ret.c (do_test): Likewise.
6123 * nis/nis_call.c (rec_dirsearch): Likewise.
6124 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
6125 * nptl/tst-audit-threads.c (do_test): Likewise.
6126 * nptl/tst-cancel4-common.h (set_socket_buffer): Likewise.
6127 * nss/nss_test1.c (init): Likewise.
6128 * nss/test-netdb.c (test_hosts): Likewise.
6129 * posix/execvpe.c (maybe_script_execute): Likewise.
6130 * stdio-common/tst-fmemopen4.c (do_test): Likewise.
6131 * stdio-common/tst-printf.c (do_test): Likewise.
6132 * stdio-common/vfscanf-internal.c (__vfscanf_internal): Likewise.
6133 * stdlib/fmtmsg.c (NKEYWORDS): Likewise.
6134 * stdlib/qsort.c (STACK_SIZE): Likewise.
6135 * stdlib/test-canon.c (do_test): Likewise.
6136 * stdlib/tst-swapcontext1.c (do_test): Likewise.
6137 * string/memcmp.c (OPSIZ): Likewise.
6138 * string/test-strcpy.c (do_test): Likewise.
6139 (do_random_tests): Likewise.
6140 * string/test-strlen.c (do_test): Likewise.
6141 (test_main): Likewise.
6142 * string/test-strrchr.c (do_test): Likewise.
6143 (do_random_tests): Likewise.
6144 * string/tester.c (test_memrchr): Likewise.
6145 (test_memchr): Likewise.
6146 * sysdeps/generic/memcopy.h (OPSIZ): Likewise.
6147 * sysdeps/generic/unwind-dw2.c (execute_stack_op): Likewise.
6148 * sysdeps/generic/unwind-pe.h (read_sleb128): Likewise.
6149 (read_encoded_value_with_base): Likewise.
6150 * sysdeps/hppa/dl-machine.h (elf_machine_runtime_setup): Likewise.
6151 * sysdeps/hppa/fpu/feupdateenv.c (__feupdateenv): Likewise.
6152 * sysdeps/ia64/fpu/sfp-machine.h (TI_BITS): Likewise.
6153 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
6154 * sysdeps/posix/spawni.c (maybe_script_execute): Likewise.
6155 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (query_auxv):
6156 Likewise.
6157 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h (ELF_NGREG):
6158 Likewise.
6159 * sysdeps/unix/sysv/linux/arm/bits/procfs.h (ELF_NGREG): Likewise.
6160 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Likewise.
6161 * sysdeps/unix/sysv/linux/csky/bits/procfs.h (ELF_NGREG):
6162 Likewise.
6163 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h (ELF_NGREG):
6164 Likewise.
6165 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h (ELF_NGREG):
6166 Likewise.
6167 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
6168 Likewise.
6169 * sysdeps/unix/sysv/linux/x86/bits/procfs.h (ELF_NGREG): Likewise.
6170 * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
6171 (FP_XSTATE_MAGIC2_SIZE): Likewise.
6172 * sysdeps/x86/fpu/sfp-machine.h (TI_BITS): Likewise.
6173 * time/test_time.c (main): Likewise.
6174
7b3fb620
AZ
61752019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6176
457208b1
AZ
6177 * wcsmbs/wcsnlen.c (__wcsnlen): Rewrite using wmemchr.
6178
30a7e208
AZ
6179 * wcsmbs/wcsncpy.c (__wcsncpy): Rewrite using wcsnlen, wmemset, and
6180 wmemcpy.
6181
ddf21ec7
AZ
6182 * wcsmbs/wcsncat.c (wcsncat): Rewrite using wcslen, wcsnlen, and
6183 wmemcpy.
6184
4d801563
AZ
6185 * wcsmbs/wcscpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
6186
81a14439
AZ
6187 * include/wchar.h (__wcscpy): New prototype.
6188 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c
6189 (__wcscpy): Route internal symbol to generic implementation.
6190 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c (wcscpy):
6191 Add internal __wcscpy alias.
6192 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c (wcscpy): Likewise.
6193 * sysdeps/s390/wcscpy.c (wcscpy): Likewise.
6194 * sysdeps/x86_64/multiarch/wcscpy.c (wcscpy): Likewise.
6195 * wcsmbs/wcscpy.c (wcscpy): Add
6196 * sysdeps/x86_64/multiarch/wcscpy-c.c (WCSCPY): Adjust macro to
6197 use generic implementation.
6198 * wcsmbs/wcscat.c (wcscat): Rewrite using wcslen and wcscpy.
6199
39ef0744
AZ
6200 * wcsmbs/wcpncpy.c (__wcpcpy): Rewrite using wcslen, wmemcpy, and
6201 wmemset.
6202
7b3fb620
AZ
6203 * sysdeps/m68k/wcpcpy.c: Remove file.
6204 * wcsmbs/wcpcpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
6205
e0cb7b61
JM
62062019-02-26 Joseph Myers <joseph@codesourcery.com>
6207
aa0e4663
JM
6208 * sysdeps/arm/sysdep.h (#if condition): Break lines before rather
6209 than after operators.
6210 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
6211 * sysdeps/mach/hurd/getcwd.c
6212 (__hurd_canonicalize_directory_name_internal): Likewise.
6213 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c
6214 (pthread_mutex_consistent): Likewise.
6215 * sysdeps/mach/hurd/htl/pt-mutex-init.c (_pthread_mutex_init):
6216 Likewise.
6217 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c
6218 (__pthread_mutex_transfer_np): Likewise.
6219 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c
6220 (__pthread_mutex_unlock): Likewise.
6221 * sysdeps/mach/hurd/htl/pt-mutex.h (ROBUST_LOCK): Likewise.
6222 (mtx_owned_p): Likewise.
6223 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c
6224 (pthread_mutexattr_getrobust): Likewise.
6225 * sysdeps/mach/hurd/i386/init-first.c (init1): Likewise.
6226 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
6227 Likewise.
6228 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
6229 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
6230 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
6231 * sysdeps/mach/hurd/mig-reply.c (__mig_get_reply_port): Likewise.
6232 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
6233 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
6234 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (#if condition):
6235 Likewise.
6236 * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo):
6237 Likewise.
6238 * sysdeps/unix/sysv/linux/bits/timex.h (STA_RONLY): Likewise.
6239 * sysdeps/unix/sysv/linux/csky/sysdep.h (#if condition): Likewise.
6240 * sysdeps/unix/sysv/linux/generic/____longjmp_chk.c
6241 (____longjmp_chk): Likewise.
6242 * sysdeps/unix/sysv/linux/generic/futimesat.c (futimesat):
6243 Likewise.
6244 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
6245 (INTERNAL_SYSCALL): Likewise.
6246 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
6247 (INTERNAL_SYSCALL): Likewise.
6248 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
6249 (__get_clockfreq_via_cpuinfo): Likewise.
6250
e0cb7b61
JM
6251 * sysdeps/i386/dl-machine.h (elf_machine_rela): Add fall-through
6252 comments.
6253 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (s(__cexp)): Likewise.
6254 * sysdeps/m68k/memcopy.h (WORD_COPY_FWD): Likewise.
6255 (WORD_COPY_BWD): Likewise.
6256 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
6257 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
6258 Likewise.
6259 * sysdeps/s390/iso-8859-1_cp037_z900.c (TR_LOOP): Likewise.
6260 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Move fall-through
6261 comment.
6262 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
6263
a04549c1
JM
62642019-02-25 Joseph Myers <joseph@codesourcery.com>
6265
6266 * dirent/dirent.h [!_DIRENT_HAVE_D_NAMLEN
6267 && _DIRENT_HAVE_D_RECLEN] (_D_ALLOC_NAMLEN): Break lines before
6268 rather than after operators.
6269 * elf/cache.c (print_cache): Likewise.
6270 * gshadow/fgetsgent_r.c (__fgetsgent_r): Likewise.
6271 * htl/pt-getattr.c (__pthread_getattr_np): Likewise.
6272 * hurd/hurdinit.c (_hurd_setproc): Likewise.
6273 * hurd/hurdkill.c (_hurd_sig_post): Likewise.
6274 * hurd/hurdlookup.c (__file_name_lookup_under): Likewise.
6275 * hurd/hurdsig.c (_hurd_internal_post_signal): Likewise.
6276 (reauth_proc): Likewise.
6277 * hurd/lookup-at.c (__file_name_lookup_at): Likewise.
6278 (__file_name_split_at): Likewise.
6279 (__directory_name_split_at): Likewise.
6280 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
6281 * hurd/port2fd.c (_hurd_port2fd): Likewise.
6282 * iconv/gconv_dl.c (do_print): Likewise.
6283 * inet/netinet/in.h (struct sockaddr_in): Likewise.
6284 * libio/wstrops.c (_IO_wstr_seekoff): Likewise.
6285 * locale/setlocale.c (new_composite_name): Likewise.
6286 * malloc/memusagestat.c (main): Likewise.
6287 * misc/fstab.c (fstab_convert): Likewise.
6288 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
6289 Likewise.
6290 * nss/nss_compat/compat-grp.c (getgrent_next_nss): Likewise.
6291 (getgrent_next_file): Likewise.
6292 (internal_getgrnam_r): Likewise.
6293 (internal_getgrgid_r): Likewise.
6294 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss):
6295 Likewise.
6296 (internal_getgrent_r): Likewise.
6297 * nss/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
6298 (getpwent_next_nss): Likewise.
6299 (getpwent_next_file): Likewise.
6300 (internal_getpwnam_r): Likewise.
6301 (internal_getpwuid_r): Likewise.
6302 * nss/nss_compat/compat-spwd.c (getspent_next_nss_netgr):
6303 Likewise.
6304 (getspent_next_nss): Likewise.
6305 (internal_getspnam_r): Likewise.
6306 * pwd/fgetpwent_r.c (__fgetpwent_r): Likewise.
6307 * shadow/fgetspent_r.c (__fgetspent_r): Likewise.
6308 * string/strchr.c (STRCHR): Likewise.
6309 * string/strchrnul.c (STRCHRNUL): Likewise.
6310 * sysdeps/aarch64/fpu/fpu_control.h (_FPU_FPCR_IEEE): Likewise.
6311 * sysdeps/aarch64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
6312 * sysdeps/csky/dl-machine.h (elf_machine_rela): Likewise.
6313 * sysdeps/generic/memcopy.h (PAGE_COPY_FWD_MAYBE): Likewise.
6314 * sysdeps/generic/symbol-hacks.h (__stack_chk_fail_local):
6315 Likewise.
6316 * sysdeps/gnu/netinet/ip_icmp.h (ICMP_INFOTYPE): Likewise.
6317 * sysdeps/gnu/updwtmp.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
6318 * sysdeps/gnu/utmp_file.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
6319 * sysdeps/hppa/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Likewise.
6320 * sysdeps/mach/hurd/bits/stat.h (S_ISPARE): Likewise.
6321 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
6322 (open_file): Likewise.
6323 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c
6324 (pthread_mutexattr_setprotocol): Likewise.
6325 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
6326 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
6327 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
6328 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
6329 * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
6330 Likewise.
6331 (elf_machine_rela): Likewise.
6332 * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Likewise.
6333 * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
6334 * sysdeps/mips/sys/asm.h (multiple #if conditionals): Likewise.
6335 * sysdeps/posix/rename.c (rename): Likewise.
6336 * sysdeps/powerpc/novmx-sigjmp.c (__novmx__sigjmp_save): Likewise.
6337 * sysdeps/powerpc/sigjmp.c (__vmx__sigjmp_save): Likewise.
6338 * sysdeps/s390/fpu/fenv_libc.h (FPC_VALID_MASK): Likewise.
6339 * sysdeps/s390/utf8-utf16-z9.c (gconv_end): Likewise.
6340 * sysdeps/unix/grantpt.c (grantpt): Likewise.
6341 * sysdeps/unix/sysv/linux/a.out.h (N_TXTOFF): Likewise.
6342 * sysdeps/unix/sysv/linux/updwtmp.c (TRANSFORM_UTMP_FILE_NAME):
6343 Likewise.
6344 * sysdeps/unix/sysv/linux/utmp_file.c (TRANSFORM_UTMP_FILE_NAME):
6345 Likewise.
6346 * sysdeps/x86/cpu-features.c (get_common_indices): Likewise.
6347 * time/tzfile.c (__tzfile_compute): Likewise.
6348
34a5a146
JM
63492019-02-22 Joseph Myers <joseph@codesourcery.com>
6350
6351 * benchtests/bench-memmem.c (simple_memmem): Break lines before
6352 rather than after operators.
6353 * benchtests/bench-skeleton.c (TIMESPEC_AFTER): Likewise.
6354 * crypt/md5.c (md5_finish_ctx): Likewise.
6355 * crypt/sha256.c (__sha256_finish_ctx): Likewise.
6356 * crypt/sha512.c (__sha512_finish_ctx): Likewise.
6357 * elf/cache.c (load_aux_cache): Likewise.
6358 * elf/dl-load.c (open_verify): Likewise.
6359 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
6360 * elf/readelflib.c (process_elf_file): Likewise.
6361 * elf/rtld.c (dl_main): Likewise.
6362 * elf/sprof.c (generate_call_graph): Likewise.
6363 * hurd/ctty-input.c (_hurd_ctty_input): Likewise.
6364 * hurd/ctty-output.c (_hurd_ctty_output): Likewise.
6365 * hurd/dtable.c (reauth_dtable): Likewise.
6366 * hurd/getdport.c (__getdport): Likewise.
6367 * hurd/hurd/signal.h (_hurd_interrupted_rpc_timeout): Likewise.
6368 * hurd/hurd/sigpreempt.h (HURD_PREEMPT_SIGNAL_P): Likewise.
6369 * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
6370 Likewise.
6371 * hurd/hurdioctl.c (fioctl): Likewise.
6372 * hurd/hurdselect.c (_hurd_select): Likewise.
6373 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Likewise.
6374 (STOPSIGS): Likewise.
6375 * hurd/hurdstartup.c (_hurd_startup): Likewise.
6376 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Likewise.
6377 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
6378 * hurd/msgportdemux.c (msgport_server): Likewise.
6379 * hurd/setauth.c (_hurd_setauth): Likewise.
6380 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): Likewise.
6381 * libio/libioP.h [IO_DEBUG] (CHECK_FILE): Likewise.
6382 * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
6383 * localedata/tests-mbwc/tst_swscanf.c (tst_swscanf): Likewise.
6384 * login/tst-utmp.c (do_check): Likewise.
6385 (simulate_login): Likewise.
6386 * mach/lowlevellock.h (lll_lock): Likewise.
6387 (lll_trylock): Likewise.
6388 * math/test-fenv.c (ALL_EXC): Likewise.
6389 * math/test-fenvinline.c (ALL_EXC): Likewise.
6390 * misc/sys/cdefs.h (__attribute_deprecated_msg__): Likewise.
6391 * nis/nis_call.c (__do_niscall3): Likewise.
6392 * nis/nis_callback.c (cb_prog_1): Likewise.
6393 * nis/nis_defaults.c (searchaccess): Likewise.
6394 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
6395 * nis/nis_ismember.c (internal_ismember): Likewise.
6396 * nis/nis_local_names.c (nis_local_principal): Likewise.
6397 * nis/nss_nis/nis-rpc.c (_nss_nis_getrpcbyname_r): Likewise.
6398 * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r):
6399 Likewise.
6400 * nis/ypclnt.c (yp_match): Likewise.
6401 (yp_first): Likewise.
6402 (yp_next): Likewise.
6403 (yp_master): Likewise.
6404 (yp_order): Likewise.
6405 * nscd/hstcache.c (cache_addhst): Likewise.
6406 * nscd/initgrcache.c (addinitgroupsX): Likewise.
6407 * nss/nss_compat/compat-pwd.c (copy_pwd_changes): Likewise.
6408 (internal_getpwuid_r): Likewise.
6409 * nss/nss_compat/compat-spwd.c (copy_spwd_changes): Likewise.
6410 * posix/glob.h (__GLOB_FLAGS): Likewise.
6411 * posix/regcomp.c (peek_token): Likewise.
6412 (peek_token_bracket): Likewise.
6413 (parse_expression): Likewise.
6414 * posix/regexec.c (sift_states_iter_mb): Likewise.
6415 (check_node_accept_bytes): Likewise.
6416 * posix/tst-spawn3.c (do_test): Likewise.
6417 * posix/wordexp-test.c (testit): Likewise.
6418 * posix/wordexp.c (parse_tilde): Likewise.
6419 (exec_comm): Likewise.
6420 * posix/wordexp.h (__WRDE_FLAGS): Likewise.
6421 * resource/vtimes.c (TIMEVAL_TO_VTIMES): Likewise.
6422 * setjmp/sigjmp.c (__sigjmp_save): Likewise.
6423 * stdio-common/printf_fp.c (__printf_fp_l): Likewise.
6424 * stdio-common/tst-fileno.c (do_test): Likewise.
6425 * stdio-common/vfprintf-internal.c (vfprintf): Likewise.
6426 * stdlib/strfmon_l.c (__vstrfmon_l_internal): Likewise.
6427 * stdlib/strtod_l.c (round_and_return): Likewise.
6428 (____STRTOF_INTERNAL): Likewise.
6429 * stdlib/tst-strfrom.h (TEST_STRFROM): Likewise.
6430 * string/strcspn.c (STRCSPN): Likewise.
6431 * string/test-memmem.c (simple_memmem): Likewise.
6432 * termios/tcsetattr.c (tcsetattr): Likewise.
6433 * time/alt_digit.c (_nl_parse_alt_digit): Likewise.
6434 * time/asctime.c (asctime_internal): Likewise.
6435 * time/strptime_l.c (__strptime_internal): Likewise.
6436 * time/sys/time.h (timercmp): Likewise.
6437 * time/tzfile.c (__tzfile_compute): Likewise.
6438
b0b50fe0
PF
64392019-02-21 Patsy Griffin Franklin <pfrankli@redhat.com>
6440
b39d961c
TS
6441 [BZ #21915]
6442 * nss/tst-nss-files-hosts-long.root/etc/host.conf: New file.
b0b50fe0 6443
f43b8dd5
GG
64442019-02-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6445
6446 * argp/argp-help.c (__argp_error_internal): New function,
6447 renamed from __argp_error, but that takes a 'mode_flags'
6448 parameter to control the format of long double parameters.
6449 (__argp_error): Converted into a call __argp_error_internal.
6450 (__argp_failure_internal): New function, renamed from
6451 __argp_failure, but that takes a 'mode_flags' parameter.
6452 (__argp_failure): Converted into a call __argp_failure_internal.
6453 * misc/err.c (__vwarnx_internal): New function, renamed from
6454 vwarnx, but that takes a 'mode_flags' parameter.
6455 (vwarnx): Converted into a call to __vwarnx_internal.
6456 (__vwarn_internal): New function, renamed from vwarn, but that
6457 takes a 'mode_flags' parameter.
6458 (vwarn): Converted into a call to __vwarn_internal.
6459 * misc/error.c (error_tail): Add 'mode_flags' parameter. Update
6460 call to __vfxprintf with 'mode_flags'.
6461 (__error_internal): New function, renamed from error, but that
6462 takes a 'mode_flags' parameter.
6463 (error): Converted into a call to __error_internal.
6464 (__error_at_line_internal): New function, renamed from
6465 error_at_line, but that takes a 'mode_flags' parameter.
6466 (error_at_line): Converted into a call to
6467 __error_at_line_internal.
6468 * include/stdio.h (__vfxprintf): Add mode_flags parameter.
6469 * stdio-common/fxprintf.c (locked_vfxprintf, __vfxprintf):
6470 Likewise.
6471
dc0afac3 64722019-02-20 Martin Liska <mliska@suse.cz>
6473
6474 * math/Makefile: Install math-vector-fortran.h.
6475 * bits/math-vector-fortran.h: New file.
6476 * sysdeps/x86/fpu/bits/math-vector-fortran.h: New file.
6477
4a2dd41c
GG
64782019-02-20 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6479
6480 * sysdeps/powerpc/powerpc64/le/configure.ac: Remove test.
6481 * sysdeps/powerpc/powerpc64/le/configure: Regenerate.
6482
04de9302
WS
64832019-02-19 Wolfram Sang <wsa@the-dreams.de>
6484
6485 * nptl/pthread_mutex_trylock.c: Fix comment.
6486
b026ce1e
CD
64872019-02-19 Carlos O'Donell <carlos@redhat.com>
6488
6489 * nptl/pthread_tryjoin.c: Fix comment.
6490
8c9289b6
JM
64912019-02-18 Joseph Myers <joseph@codesourcery.com>
6492
6493 [BZ #24231]
6494 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
6495 after R_SPARC_H34 case.
6496
308e022f
FW
64972019-02-18 Florian Weimer <fweimer@redhat.com>
6498
6499 * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
6500 (getanswer): Do not call Dprintf.
6501 (res_gethostbyname2_context): Likewise.
6502 (res_gethostbyaddr_context): Likewise.
6503
a5406364
FW
65042019-02-18 Florian Weimer <fweimer@redhat.com>
6505
6506 * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
6507 declaration.
6508 * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
6509 Remove definitions.
6510 * libio/stdfiles.c: Update comment.
6511 * libio/oldstdfiles.c (_IO_check_libio): Update comment. Do not
6512 set _IO_stdin, _IO_stdout, _IO_stderr.
6513 * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
6514 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
6515 inline function.
6516 (_IO_deallocate_file): New inline function.
6517 * libio/iolibio.h (_IO_vprintf): Remove definition.
6518 * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
6519 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
6520 * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
6521 _IO_legacy_file.
6522 * libio/oldfileops.c (_IO_old_file_init_internal): Remove
6523 __builtin_expect. Use _IO_legacy_file.
6524
6c29942c
SL
65252019-02-18 Stefan Liebler <stli@linux.ibm.com>
6526
6527 * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
6528 Initialize ctid with a known value and remove update of ctid
6529 after clone.
6530 (wait_tid): Adjust arguments and call futex_wait with ctid_val
6531 as assumed current value of ctid_ptr.
6532
225d9445 65332019-02-16 Florian Weimer <fweimer@redhat.com>
ad18dade
FW
6534
6535 Check that non-sysdeps headers have wrapper headers.
6536 * scripts/check-wrapper-headers.py: New file.
6537 * Makefile (tests-special): Add check-wrapper-headers.out.
6538 (check-wrapper-headers.out): New target.
6539 * Rules (tests-special): Add check-wrapper-headers.out.
6540 (check-wrapper-headers.out): New target.
6541
225d9445 65422019-02-16 Florian Weimer <fweimer@redhat.com>
ebd32784
FW
6543
6544 Add missing header wrappers under include/.
6545 * include/ar.h: New file.
6546 * include/bits/mqueue2.h: Likewise.
6547 * include/bits/stdio.h: Likewise.
6548 * include/bits/stdio2.h: Likewise.
6549 * include/fstab.h: Likewise.
6550 * include/fts.h: Likewise.
6551 * include/lastlog.h: Likewise.
6552 * include/netinet/icmp6.h: Likewise.
6553 * include/netinet/igmp.h: Likewise.
6554 * include/netinet/ip6.h: Likewise.
6555 * include/re_comp.h: Likewise.
6556 * include/regexp.h: Likewise.
6557 * include/rpcsvc/bootparam.h: Likewise.
6558 * include/rpcsvc/yp_prot.h: Likewise.
6559 * include/sys/random.h: Likewise.
6560 * include/sys/stropts.h: Likewise.
6561 * include/sys/ttychars.h: Likewise.
6562 * include/sys/vfs.h: Likewise.
6563 * include/wait.h: Likewise.
6564
225d9445 65652019-02-16 Florian Weimer <fweimer@redhat.com>
a198d37a
FW
6566
6567 * nptl_db/proc_service.h: Move to ...
6568 * sysdeps/nptl/proc_service.h: ... here.
6569 * nptl_db/thread_db.h: Move to ...
6570 * sysdeps/nptl/thread_db.h: ... here.
6571 * nptl/descr.h: Include <thread_db.h>.
6572
e442e40d
AZ
65732019-02-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6574
6575 * io/Makefile (tests): Add tst-lockf.
6576 * io/lockf.c (lockf): Use __fcntl and only define for
6577 !__OFF_T_MATCHES_OFF64_T.
6578 * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
6579 __OFF_T_MATCHES_OFF64_T case.
6580 * io/tst-lockf.c: New file.
6581 * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
6582 * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
6583 * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
6584 * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
6585 * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
6586 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
6587 * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
6588 * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
6589 * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
6590
bc10e22c
FW
65912019-02-15 Florian Weimer <fweimer@redhat.com>
6592
6593 [BZ #24211]
6594 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
6595 pd->result after the thread descriptor has been freed.
6596
365f05c7
JM
65972019-02-15 Joseph Myers <joseph@codesourcery.com>
6598
8a11f970
JM
6599 * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
6600 from function return type.
6601
365f05c7
JM
6602 * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
6603
6b5c8607 66042019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
56a731d4
JK
6605
6606 * scripts/test_printers_common.py: Set TERM to a known harmless
6607 value.
6608
712182c8
JM
66092019-02-14 Joseph Myers <joseph@codesourcery.com>
6610
6611 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
6612 (xdr_u_int): Likewise.
6613 (xdr_enum): Likewise.
6614 (xdr_bytes): Reword fall-through comment.
6615 (xdr_string): Likewise.
6616
eb76e5b4
AZ
66172019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6618
6619 [BZ #2421]
6620 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
6621 (tests): Add tst-join8 tst-join9.
6622 * nptl/lll_timedwait_tid.c: Remove file.
6623 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
6624 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
6625 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
6626 * nptl/pthread_join_common.c (timedwait_tid): New function.
6627 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
6628 is set.
6629 * nptl/tst-join5.c (thread_join): New function.
6630 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
6631 check.
6632 * nptl/tst-join8.c: New file.
6633 * nptl/tst-join9.c: Likewise.
6634 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
6635 lll_futex_timed_wait_cancel): Add generic macros.
6636 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
6637 Remove definitions.
6638 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
6639 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
6640 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
6641 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
6642 Remove function.
6643 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
6644 Likewise.
6645 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
6646 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
6647 (lll_futex_timed_wait_cancel): New macro.
6648
3904fd85
WD
66492019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
6650
6651 * benchtests/Makefile: Add malloc-simple benchmark.
6652 * benchtests/bench-malloc-simple.c: New benchmark.
6653
24ca04fe
SP
66542019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
6655
6656 * benchtests/bench-memmove.c (do_one_test): Remove unused
6657 ORIG_SRC.
6658 (do_test): Adjust.
6659 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
6660 ORIG_SRC.
6661 (do_test): Adjust.
6662
85bd1ddb
JW
66632019-01-13 Jim Wilson <jimw@sifive.com>
6664
6665 [BZ #24040]
6666 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
6667 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
6668 (func): New.
6669 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
6670 call func directly.
6671 * nptl/Makefile (tests): Add tst-unwind-thread.
6672 (CFLAGS-tst-unwind-thread.c): Define.
6673 * nptl/tst-unwind-thread.c: New file.
6674 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
6675 as undefined.
6676
86140c62
JM
66772019-02-13 Joseph Myers <joseph@codesourcery.com>
6678
10756268
JM
6679 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
6680 comment wording.
6681 * nis/nis_call.c (__do_niscall3): Likewise.
6682
05383720
JM
6683 * catgets/gencat.c (normalize_line): Use braces around empty
6684 'else' body.
6685 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
6686 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
6687 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
6688 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
6689 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
6690 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
6691 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
6692 definition.
6693
86140c62
JM
6694 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
6695 execlp returns.
6696
16f87cfd
WD
66972019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
6698
6699 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
6700 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
6701 * benchtests/bench-strchr.c (stupid_strchr): Remove.
6702 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
6703 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
6704 * benchtests/bench-strlen.c (builtin_strlen): Remove.
6705 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
6706 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
6707 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
6708 * benchtests/bench-strspn.c (stupid_strspn): Remove.
6709 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
6710 * benchtests/bench-bcopy.c: Delete file.
6711 * benchtests/bench-bzero.c: Likewise.
6712 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
6713 (simple_memccpy): Remove.
6714 (generic_memccpy): Add function.
6715 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
6716 * benchtests/bench-memmove.c (simple_bcopy): Remove.
6717 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
6718 (generic_mempcpy): Add new function.
6719 * benchtests/bench-memset.c (simple_bzero): Remove.
6720 (builtin_bzero): Remove.
6721 (builtin_memset): Remove.
6722 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
6723 (generic_rawmemchr): Add new function.
6724
0c6d82e9
FW
67252019-02-12 Florian Weimer <fweimer@redhat.com>
6726
6727 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
6728
b3fbfe81
AZ
67292019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6730
6731 [BZ #24122]
6732 * elf/Makefile (tests): Add tst-audit13.
6733 (modules-names): Add tst-audit13mod1.
6734 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
6735 rule.
6736 * elf/tst-audit13.c: New file.
6737 * elf/tst-audit13mod1.c: Likewise.
6738
3b856d09
FW
67392019-02-12 Florian Weimer <fweimer@redhat.com>
6740
6741 [BZ #24122]
6742 * elf/rtld.c (unload_audit_module): New function.
6743 (report_audit_module_load_error): Likewise.
6744 (load_audit_module): Likewise. Extracted from dl_main. Call
6745 _dl_close if the laversion symbol cannot be found. Use early
6746 returns for error handling. Add malloc error check. Check for a
6747 zero return value from la_version. Remove spurious comment about
6748 static TLS initialization. Remove useless casts.
6749 (notify_audit_modules_of_loaded_object): New function. Extracted
6750 from dl_main.
6751 (load_audit_module): Likewise.
6752 (dl_main): Call load_audit_modules.
6753
32db86d5
JM
67542019-02-12 Joseph Myers <joseph@codesourcery.com>
6755
6756 * elf/dl-exception.c (_dl_exception_create_format): Add
6757 fall-through comments.
6758 * elf/ldconfig.c (parse_conf_include): Likewise.
6759 * elf/rtld.c (print_statistics): Likewise.
6760 * locale/programs/charmap.c (parse_charmap): Likewise.
6761 * misc/mntent_r.c (__getmntent_r): Likewise.
6762 * posix/wordexp.c (parse_arith): Likewise.
6763 (parse_backtick): Likewise.
6764 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
6765 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
6766 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
6767
a51bc4fe
PC
67682019-02-11 Paul A. Clarke <pc@us.ibm.com>
6769
6770 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
6771 Use float instead of double.
6772
fb25b135
TS
67732019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
6774
6775 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
6776
32ea7299
JM
67772019-02-08 Joseph Myers <joseph@codesourcery.com>
6778
6779 * sysdeps/powerpc/bits/mathinline.h: Remove.
6780
eef4d4f8
FW
67812019-02-08 Florian Weimer <fweimer@redhat.com>
6782
6783 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
6784 * math/bits/math-finite.h: Move to ...
6785 * bits/math-finite.h: ... here.
6786
fdfbd47d
FW
67872019-02-08 Florian Weimer <fweimer@redhat.com>
6788
6789 * sysdeps/generic/bits/unistd_ext.h: Move to ...
6790 * bits/unistd_ext.h: here.
6791
11eb21c4
PF
67922019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
6793
6794 [BZ #21915]
6795 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
6796 * nss/tst-nss-files-hosts-long.c: New file.
6797 * nss/tst-nss-files-hosts-long.root: New directory.
6798 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
6799 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
6800
e47d82c9
FW
68012019-02-08 Florian Weimer <fweimer@redhat.com>
6802
6803 * include/bits/unistd_ext.h: Remove file.
6804 * posix/bits/unistd_ext.h: Move to ...
6805 * sysdeps/generic/bits/unistd_ext.h: ... here.
6806
8f89ab21
FW
68072019-02-08 Florian Weimer <fweimer@redhat.com>
6808
6809 * include/bits/unistd_ext.h: New file.
6810
144a794e
TS
68112019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
6812
6813 * time/tst-strftime2.c: Use array_length macros instead of magic
6814 numbers.
6815
669ff911
FW
68162019-02-08 Florian Weimer <fweimer@redhat.com>
6817
6818 [BZ #24161]
6819 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
6820 argument.
6821 * nptl/register-atfork.c (__run_fork_handlers): Only perform
6822 locking if the new do_locking argument is true.
6823 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
6824 __run_fork_handlers.
6825
d0bd87d4 68262019-02-08 Florian Weimer <fweimer@redhat.com>
1d0fc213
FW
6827
6828 [BZ #6399]
6829 Linux: Add gettid system call wrapper.
6830 * posix/Makefile (headers): Add bits/unistd_ext.h.
6831 * posix/bits/unistd_ext.h: New file.
6832 * posix/unistd.h: Include it.
6833 * manual/process.texi (Process Identification): Document gettid.
6834 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
6835 tst-gettid, tst-gettid-kill.
6836 (tst-gettid): Link with $(shared-thread-library).
6837 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
6838 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
6839 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
6840 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
6841 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
6842 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
6843 Add gettid.
6844 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
6845 Likewise.
6846 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
6847 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
6848 Likewise.
6849 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
6850 Likewise.
6851 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
6852 Likewise.
6853 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
6854 Likewise.
6855 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
6856 Likewise.
6857 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
6858 Likewise.
6859 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
6860 Likewise.
6861 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
6862 (GLIBC_2.30): Likewise.
6863 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
6864 (GLIBC_2.30): Likewise.
6865 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
6866 (GLIBC_2.30): Likewise.
6867 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
6868 (GLIBC_2.30): Likewise.
6869 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
6870 Likewise.
6871 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
6872 (GLIBC_2.30): Likewise.
6873 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
6874 (GLIBC_2.30): Likewise.
6875 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
6876 (GLIBC_2.30): Likewise.
6877 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
6878 (GLIBC_2.30): Likewise.
6879 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
6880 Likewise.
6881 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
6882 Likewise.
6883 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
6884 Likewise.
6885 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
6886 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
6887 Likewise.
6888 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
6889 Likewise.
6890 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
6891 Likewise.
6892 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
6893 Likewise.
6894 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
6895
225d9445 68962019-02-08 Florian Weimer <fweimer@redhat.com>
f289e656
FW
6897
6898 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
6899 compatibility symbols.
6900
823624bd
SL
69012019-02-07 Stefan Liebler <stli@linux.ibm.com>
6902
6903 [BZ #24180]
6904 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
6905 Add compiler barriers and comments.
6906
8311c83f
FW
69072019-02-07 Florian Weimer <fweimer@redhat.com>
6908
6909 * include/array_length.h (array_length): Do not use a statement
6910 expression and _Static_assert, so that array_length can be used at
6911 file scope and as a constant expression.
6912
94b63e66
FW
69132019-02-07 Florian Weimer <fweimer@redhat.com>
6914
6915 * support/xdlfcn.h (xdlmopen): Declare.
6916 * support/xdlmopen.c: New file.
6917 * support/Makefile (libsupport-routines): Add xdlmopen.
6918
c2d8f0b7
JM
69192019-02-06 Joseph Myers <joseph@codesourcery.com>
6920
6921 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
6922 before return type, without separate inline.
6923 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
6924 * elf/dl-tunables.h (tunable_is_name): Likewise.
6925 * malloc/malloc.c (do_set_trim_threshold): Likewise.
6926 (do_set_top_pad): Likewise.
6927 (do_set_mmap_threshold): Likewise.
6928 (do_set_mmaps_max): Likewise.
6929 (do_set_mallopt_check): Likewise.
6930 (do_set_perturb_byte): Likewise.
6931 (do_set_arena_test): Likewise.
6932 (do_set_arena_max): Likewise.
6933 (do_set_tcache_max): Likewise.
6934 (do_set_tcache_count): Likewise.
6935 (do_set_tcache_unsorted_limit): Likewise.
6936 * nis/nis_subr.c (count_dots): Likewise.
6937 * nptl/allocatestack.c (advise_stack_range): Likewise.
6938 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
6939 (do_sin): Likewise.
6940 (reduce_sincos): Likewise.
6941 (do_sincos): Likewise.
6942 * sysdeps/unix/sysv/linux/x86/elision-conf.c
6943 (do_set_elision_enable): Likewise.
6944 (TUNABLE_CALLBACK_FNDECL): Likewise.
6945
3b935595
FW
69462019-02-06 Florian Weimer <fweimer@redhat.com>
6947
6948 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
6949 (xdlsym): Use dlerror to detect a NULL symbol.
6950
b4333340
FW
69512019-02-06 Florian Weimer <fweimer@redhat.com>
6952
6953 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
6954 <stap-probe.h>.
6955 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
6956
b6d8a999
SL
69572019-02-06 Stefan Liebler <stli@linux.ibm.com>
6958
6959 * libio/tst-bz24153.c (wide): Use wide char format specifier.
6960
94eeeec0
SL
69612019-02-06 Stefan Liebler <stli@linux.ibm.com>
6962
6963 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
6964 __wmemcmp and weak alias to wmemcmp.
6965
bc79db3f
SL
69662019-02-06 Stefan Liebler <stli@linux.ibm.com>
6967
6968 [BZ #23403]
6969 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
6970 TLS_TCB_AT_TP tls variant.
6971 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
6972 Add alignment checks.
6973 * support/Makefile (libsupport-routines): Add xposix_memalign and
6974 xpthread_setstack.
6975 * support/support.h: Add xposix_memalign.
6976 * support/xthread.h: Add xpthread_attr_setstack.
6977 * support/xposix_memalign.c: New File.
6978 * support/xpthread_attr_setstack.c: Likewise.
6979
f1ac7455
FW
69802019-02-05 Florian Weimer <fweimer@redhat.com>
6981
6982 [BZ #24164]
6983 arm: Use "nr" constraint for Systemtap probes, to avoid the
6984 compiler using memory operands for constants, due to the "o"
6985 alternative in the default "nor" constraint.
6986 * include/stap-probe.h [USE_STAP_PROBE]: Include
6987 <stap-probe-machine.h>
6988 * sysdeps/generic/stap-probe-machine.h: New file.
6989 * sysdeps/arm/stap-probe-machine.h: Likewise.
6990
7a0dcfc6
JM
69912019-02-04 Joseph Myers <joseph@codesourcery.com>
6992
77dc0d86
JM
6993 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
6994 with 0, not tcache->entries[tc_idx].
6995
7a0dcfc6
JM
6996 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
6997 once.
6998
65f7767a
AS
69992019-02-04 Andreas Schwab <schwab@suse.de>
7000
7001 [BZ #16976]
7002 [BZ #17396]
7003 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
7004 looking up collating elements match against (wide) character
7005 sequence instead of name. Correct alignment adjustment.
7006 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
7007 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
7008 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
7009 (LOCALES): Add cs_CZ.ISO-8859-2.
7010 * posix/tst-fnmatch4.c: New file.
7011 * posix/tst-fnmatch5.c: New file.
7012 * include/wchar.h (__wmemcmp): Declare.
7013 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
7014 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
7015 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
7016 * sysdeps/s390/wmemcmp.c: Likewise.
7017
3f635fb4
L
70182019-02-04 H.J. Lu <hongjiu.lu@intel.com>
7019
7020 [BZ #24155]
7021 CVE-2019-7309
7022 * NEWS: Updated for CVE-2019-7309.
7023 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
7024 upper 32 bits of RDX register for x32. Use unsigned Jcc
7025 instructions, instead of signed.
7026 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
7027 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
7028
2ab5741b
FW
70292019-02-04 Florian Weimer <fweimer@redhat.com>
7030
7031 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
7032 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
7033 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
7034 Likewise.
7035 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
7036 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
7037 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
7038 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
7039 Likewise.
7040 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
7041 Likewise.
7042 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
7043 Likewise.
7044 (posix_spawn_file_actions_addopen): Likewise.
7045 (posix_spawn_file_actions_addclose): Likewise.
7046 (posix_spawn_file_actions_adddup2): Likewise.
7047 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
7048 qualifiers.
7049 (posix_spawn_file_actions_addfchdir_np): Likewise.
7050
8692ebdb
DN
70512019-02-04 David Newall <glibc@davidnewall.com>
7052
7053 elf: Implement --preload option for the dynamic linker.
7054 * elf/rtld.c (preloadarg): New variable.
7055 (handle_preload_list): Pass through “where” argument to
7056 do_preload.
7057 (dl_main): Handle "--preload" and add second call to
7058 handle_preload_list.
7059 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
7060 (tst-rtld-preload-OBJS): Set variable.
7061 (tst-rtld-preload.out): New target.
7062 * elf/tst-rtld-preload.sh: New file.
7063
5e10136b
MM
70642019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
7065
7066 * Makefile (testrun.sh): Exit in case of incorrect argument.
7067
221baae0
FW
70682019-02-04 Florian Weimer <fweimer@redhat.com>
7069
7070 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
7071 alignment gaps.
7072
b8c72381
FW
70732019-02-03 Florian Weimer <fweimer@redhat.com>
7074
7075 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
7076 implicit overflow checks.
7077
11f382ee
AJ
70782019-02-03 Aurelien Jarno <aurelien@aurel32.net>
7079
7080 * stdlib/isomac.c: Include <unistd.h>.
7081
77c7d55e
FW
70822019-02-03 Florian Weimer <fweimer@redhat.com>
7083
7084 * include/time.h (__tzfile_default): Use int, not long int, for
7085 the GMT offsets.
7086 * time/tzfile.c (struct ttinfo): Change type of the offset member
7087 to int.
7088 (__tzfile_read): Remove useless cast.
7089 (__tzfile_default): Adjust prototype.
7090 * time/tzset.c (tz_rule): Change type of the offset member to int.
7091 (parse_offset): Change the type of the sign variable to int.
7092
ee9941f9
FW
70932019-02-03 Florian Weimer <fweimer@redhat.com>
7094
7095 [BZ #24153]
7096 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
7097 * libio/getchar.c (getchar): Likewise.
7098 * libio/getchar_u.c (getchar_unlocked): Likewise.
7099 * libio/getwchar.c (getwchar): Likewise.
7100 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
7101 * libio/iogets.c (_IO_gets): Likewise.
7102 * libio/vscanf.c (_IO_vscanf): Likewise.
7103 * libio/vwscanf.c (__vwscanf): Likewise.
7104 * libio/tst-bz24153.c: New file.
7105 * libio/Makefile (tests): Add it.
7106
c70824b9
FW
71072019-02-02 Florian Weimer <fweimer@redhat.com>
7108
7109 [BZ #14829]
7110 * manual/resource.texi (Basic Scheduling Functions): Add
7111 portability note. Change process to task throughout the section.
7112 Remove incorrect comment about sched_yield as it affects
7113 tasks/threads, not entire processes.
7114 * sysdeps/unix/sysv/linux/bits/posix_opt.h
7115 (_POSIX_PRIORITY_SCHEDULING): Update comment.
7116
4dcbbc3b
JM
71172019-02-01 Joseph Myers <joseph@codesourcery.com>
7118
7119 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
7120 * configure: Regenerated.
7121 * manual/install.texi (Tools for Compilation): Update minimum GCC
7122 version.
7123 * INSTALL: Regenerated.
7124
6175507c
FW
71252019-02-01 Florian Weimer <fweimer@redhat.com>
7126
7127 * support/support_test_compare_string.c
7128 (support_test_compare_string): Use "string" in error message.
7129 * support/tst-test_compare_string.c (do_test): Adjust.
7130
baef1943
FW
71312019-02-01 Florian Weimer <fweimer@redhat.com>
7132
7133 * support/support_format_address_family.c
7134 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
7135
395599f0
FW
71362019-02-01 Florian Weimer <fweimer@redhat.com>
7137
7138 * manual/socket.texi (Internet Address Formats): Clarify the byte
7139 order of struct sockaddr_in, struct sockaddr_in6. Document
7140 sin6_flowinfo and sin6_scope_id.
7141
b06f4c00
WD
71422019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
7143
7144 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
7145 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
7146 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
7147 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
7148 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
7149 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
7150
83d1cc42
FX
71512019-02-01 Feng Xue <fxue@os.amperecomputing.com>
7152
7153 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
7154 [!MEMCHR](MEMCHR): Set to __memchr.
7155 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
7156 Add memchr_generic and memchr_nosimd.
7157 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
7158 (__libc_ifunc_impl_list): Add memchr ifuncs.
7159 * sysdeps/aarch64/multiarch/memchr.c: New file.
7160 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
7161 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
7162
c7d3890f
FX
71632019-02-01 Feng Xue <fxue@os.amperecomputing.com>
7164
7165 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
7166 Add memset_emag.
7167 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
7168 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
7169 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
7170 Add IS_EMAG check for ifunc dispatch.
7171 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
7172 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
7173
07c3d1ec
FX
71742019-02-01 Feng Xue <fxue@os.amperecomputing.com>
7175
7176 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
7177 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
7178 Add emag.
7179 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
7180 New macro.
7181
114f792e
SL
71822019-02-01 Stefan Liebler <stli@linux.ibm.com>
7183
7184 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
7185
d5627550
VG
71862019-01-31 Vineet Gupta <vgupta@synopsys.com>
7187
7188 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
7189 syscall-template file.
7190
5fc9ed4c
CD
71912019-01-31 Carlos O'Donell <carlos@redhat.com>
7192 Torvald Riegel <triegel@redhat.com>
7193 Rik Prohaska <prohaska7@gmail.com>
7194
7195 [BZ# 23844]
7196 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
7197 tst-rwlock-trywrlock-stall.
7198 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
7199 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
7200 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
7201 Set __wrphase_fute to 1 only if we started the write phase.
7202 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
7203 * nptl/tst-rwlock-trywrlock-stall.c: New file.
7204 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
7205 * support/xpthread_rwlock_destroy.c: New file.
7206 * support/xthread.h: Declare xpthread_rwlock_destroy.
7207
932329a5
JM
72082019-02-01 Joseph Myers <joseph@codesourcery.com>
7209
7210 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
7211 version to 4.0.2.
7212
5f10701f
PP
72132019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
7214
7215 [BZ #24051]
7216 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
7217 * libio/fileops.c (_IO_new_file_underflow): Likewise
7218 * libio/wfileops.c (_IO_wfile_underflow): Likewise
7219 * libio/putchar.c (putchar): Likewise.
7220 * libio/putchar_u.c (putchar_unlocked): Likewise.
7221 * libio/putwchar.c (putchar): Likewise.
7222 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
7223 * libio/tst-bz24051.c: New test.
7224 * libio/Makefile (tests): Add tst-bz24051
7225
583dd860
PE
72262019-01-31 Paul Eggert <eggert@cs.ucla.edu>
7227
b626c5aa 7228 CVE-2019-9169
583dd860
PE
7229 regex: fix read overrun [BZ #24114]
7230 Problem found by AddressSanitizer, reported by Hongxu Chen in:
7231 https://debbugs.gnu.org/34140
7232 * posix/regexec.c (proceed_next_node):
7233 Do not read past end of input buffer.
7234
2bac7daa
FW
72352019-01-31 Florian Weimer <fweimer@redhat.com>
7236
7237 [BZ #24059]
7238 * nss/nss_files/files-alias.c (get_next_alias): Handle
7239 continuation line without newline at the end.
7240 * nss/tst-nss-files-alias-truncated.c: New file.
7241 * nss/Makefile [$(build-shared)] (tests): Add
7242 tst-nss-files-alias-truncated.
7243 (tst-nss-files-alias-truncated): Link with libnss_files.so.
7244 * support/namespace.h (struct support_chroot_configuration): Add
7245 aliases member.
7246 (struct support_chroot): Add path_aliases member.
7247 * support/support_chroot.c (support_chroot_create): Handle
7248 aliases.
7249 (support_chroot_free): Free path_aliases.
7250
330c9d0d
SP
72512019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
7252
de44ab67
SP
7253 * version.h (RELEASE): Set to "development".
7254 (VERSION): Set to "2.29.9000".
7255 * NEWS: Add section for 2.30.
7256
56c86f5d
SP
7257 * version.h (RELEASE): Set to "stable".
7258 (VERSION): Set to "2.29".
7259 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
7260
330c9d0d
SP
7261 * NEWS: Add the list of bugs fixed in 2.29.
7262 * manual/contrib.texi: Update contributors list with some more
7263 names.
7264 * manual/install.texi: Update latest versions of packages
7265 tested.
7266 * INSTALL: Regenerated.
7267
e1e47c91
SP
72682019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
7269
7270 * po/be.po: Update translations.
7271 * po/bg.po: Likewise.
7272 * po/ca.po: Likewise.
7273 * po/cs.po: Likewise.
7274 * po/da.po: Likewise.
7275 * po/de.po: Likewise.
7276 * po/el.po: Likewise.
7277 * po/eo.po: Likewise.
7278 * po/es.po: Likewise.
7279 * po/fi.po: Likewise.
7280 * po/fr.po: Likewise.
7281 * po/gl.po: Likewise.
7282 * po/hr.po: Likewise.
7283 * po/hu.po: Likewise.
7284 * po/ia.po: Likewise.
7285 * po/id.po: Likewise.
7286 * po/it.po: Likewise.
7287 * po/ja.po: Likewise.
7288 * po/ko.po: Likewise.
7289 * po/lt.po: Likewise.
7290 * po/nb.po: Likewise.
7291 * po/nl.po: Likewise.
7292 * po/pl.po: Likewise.
7293 * po/pt_BR.po: Likewise.
7294 * po/ru.po: Likewise.
7295 * po/rw.po: Likewise.
7296 * po/sk.po: Likewise.
7297 * po/sl.po: Likewise.
7298 * po/sv.po: Likewise.
7299 * po/tr.po: Likewise.
7300 * po/uk.po: Likewise.
7301 * po/vi.po: Likewise.
7302 * po/zh_CN.po: Likewise.
7303 * po/zh_TW.po: Likewise.
7304
8d016826
UB
73052019-01-24 Uroš Bizjak <ubizjak@gmail.com>
7306
7307 [BZ #24130]
7308 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
7309 of $f3 register on $y_is_neg path.
7310
a0bb5abd
ST
73112019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
7312
b96e22d0 7313 [BZ #24110]
a0bb5abd
ST
7314 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
7315 sigaltstack.ss_flags.
7316
b22eed37
TS
73172019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
7318
7319 [BZ #23758]
7320 * manual/time.texi (strftime): Document "%Ey".
7321 * time/strftime_l.c (__strftime_internal): Set the default width
7322 padding with zero of "%Ey" to 2.
7323
32f600a2
TS
7324 [BZ #24096]
7325 * manual/time.texi (strftime): Document "%EC" and "%EY".
7326 * time/Makefile (tests): Add tst-strftime2.
7327 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
7328 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
7329 override padding for "%Ey".
7330 If an optional flag ('_' or '-') is specified to "%EY", interpret the
7331 "%Ey" in the subformat as if decorated with that flag.
7332 * time/tst-strftime2.c: New file.
7333
8e889c5d
AZ
73342019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7335
3367acdb
AZ
7336 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
7337 are not defined.
7338
8e889c5d
AZ
7339 [BZ #24122]
7340 * elf/Makefile (tests): Add tst-audit13.
7341 (modules-names): Add tst-audit13mod1.
7342 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
7343 rule.
7344 * elf/rtld.c (dl_main): Handle invalid audit module version.
7345 * elf/tst-audit13.c: New file.
7346 * elf/tst-audit13mod1.c: Likewise.
7347
a95dc01c
ST
73482019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
7349
7350 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
7351 returned by __hurd_at_flags.
ee4d7902
ST
7352 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
7353 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
7354 directly instead of __hurd_file_name_lookup.
a95dc01c 7355
712f1167
JM
73562019-01-21 Joseph Myers <joseph@codesourcery.com>
7357
7358 * scripts/build-many-glibcs.py (Context.checkout): Default
7359 binutils version to 2.32 branch.
7360
108bc404
FW
73612019-01-21 Florian Weimer <fweimer@redhat.com>
7362
7363 [BZ #20018]
7364 CVE-2016-10739
7365 resolv: Reject trailing characters in host names
7366 * include/arpa/inet.h (__inet_aton_exact): Declare.
7367 (inet_aton): Remove hidden prototype. No longer used internally.
7368 * nscd/gai.c (__inet_aton): Do not define.
7369 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
7370 * nss/digits_dots.c (__inet_aton): Likewise.
7371 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
7372 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
7373 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
7374 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
7375 (tst-resolv-trailing): Likewise.
7376 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
7377 libc.
7378 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
7379 Make static. Add endp parameter.
7380 (__inet_aton_exact): New function.
7381 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
7382 (__inet_addr): Call inet_aton_end.
7383 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
7384 not just IPv6. Call __inet_aton_exact.
7385 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
7386 (tests): Make const. Add additional test cases with trailing
7387 characters.
7388 (do_test): Use array_length.
7389 * resolv/tst-inet_aton_exact.c: New file.
7390 * resolv/tst-resolv-trailing.c: Likewise.
7391 * resolv/tst-resolv-nondecimal.c: Likewise.
7392 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
7393
5165de69
L
73942019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7395
7396 [BZ# 24097]
7397 CVE-2019-6488
7398 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
7399 Clear the upper 32 bits of RSI register.
7400 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
7401 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
7402 and tst-size_t-wcsnlen.
7403 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
7404 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
7405
c7c54f65
L
74062019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7407
7408 [BZ# 24097]
7409 CVE-2019-6488
7410 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
7411 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
7412 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
7413 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
7414 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
7415
ee915088
L
74162019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7417
7418 [BZ# 24097]
7419 CVE-2019-6488
7420 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
7421 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
7422 * sysdeps/x86_64/strcmp.S: Likewise.
7423 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
7424 tst-size_t-strncmp and tst-size_t-wcsncmp.
7425 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
7426 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
7427 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
7428
82d0b4a4
L
74292019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7430
7431 [BZ# 24097]
7432 CVE-2019-6488
7433 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
7434 RDX_LP for length. Clear the upper 32 bits of RDX register.
7435 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
7436 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
7437 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
7438 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
7439
ecd8b842
L
74402019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7441
7442 [BZ# 24097]
7443 CVE-2019-6488
7444 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
7445 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
7446 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
7447 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
7448
231c5676
L
74492019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7450
7451 [BZ# 24097]
7452 CVE-2019-6488
7453 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
7454 length. Clear the upper 32 bits of RDX register.
7455 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
7456 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
7457 Likewise.
7458 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
7459 Likewise.
7460 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
7461 tst-size_t-wmemchr.
7462 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
7463
b304fc20
L
74642019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7465
7466 [BZ# 24097]
7467 CVE-2019-6488
7468 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
7469 length. Clear the upper 32 bits of RDX register.
7470 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
7471 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
7472 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
7473 tst-size_t-wmemcmp.
7474 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
7475 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
7476
97700a34
L
74772019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7478
7479 [BZ# 24097]
7480 CVE-2019-6488
7481 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
7482 upper 32 bits of RDX register.
7483 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
7484 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
7485 tst-size_t-wmemchr.
7486 * sysdeps/x86_64/x32/test-size_t.h: New file.
7487 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
7488 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
7489
6ca53a24
FW
74902019-01-18 Florian Weimer <fweimer@redhat.com>
7491
7492 [BZ #24112]
7493 resolv: Do not send queries for non-host-names in nss_dns.
7494 * resolv/nss_dns/dns-host.c (check_name): New function.
7495 (_nss_dns_gethostbyname2_r): Use it.
7496 (_nss_dns_gethostbyname_r): Likewise.
7497 (_nss_dns_gethostbyname4_r): Likewise.
7498
5e30b8ef
FW
74992019-01-21 Florian Weimer <fweimer@redhat.com>
7500
7501 * resolv/inet_addr.c: Reformat to GNU style.
7502 (__inet_addr, __inet_aton): Update comment.
7503
71effcea
FW
75042019-01-18 Florian Weimer <fweimer@redhat.com>
7505
7506 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
7507 ("malloc: Use current (C11-style) atomics for fastbin access").
7508 This commit introduces a substantial performance regression on
7509 POWER and Aarch64.
7510 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
7511 (REMOVE_FB): Define.
7512 (_int_malloc): Use it and reindent.
7513 (_int_free): Use CAS loop with
7514 catomic_compare_and_exchange_val_rel.
7515 (malloc_consolidate): Use atomic_exchange_acq.
7516
7517
562f4362
L
75182019-01-18 H.J. Lu <hongjiu.lu@intel.com>
7519
7520 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
7521 -Wl,-z,now.
7522 (LDFLAGS-tst-minsigstksz-2): Likewise.
7523 (LDFLAGS-tst-minsigstksz-3): Likewise.
7524 (LDFLAGS-tst-minsigstksz-3a): Likewise.
7525 (LDFLAGS-tst-minsigstksz-4): Likewise.
7526
80dfa298
TS
75272019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
7528
7529 * manual/time.texi (strftime): Fix the wording to "alternative" rather
7530 than "alternate".
7531
008b598e
PC
75322019-01-16 Paul A. Clarke <pc@us.ibm.com>
7533
7534 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
7535
fbbc9a4e
ZW
75362019-01-16 Zack Weinberg <zackw@panix.com>
7537
6b5c8607
TS
7538 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
7539 (xget_sigstack_location): New test support functions.
7540 * support/xsigstack.c: New file, implementing them.
7541 * support/tst-xsigstack.c: New test for them.
7542 * support/Makefile: Update.
fbbc9a4e 7543
6b5c8607
TS
7544 * signal/tst-minsigstksz-1.c
7545 * signal/tst-minsigstksz-2.c
7546 * signal/tst-minsigstksz-3.c
7547 * signal/tst-minsigstksz-3a.c
7548 * signal/tst-minsigstksz-4.c: New tests.
7549 * signal/Makefile: Run them.
fbbc9a4e 7550
5f1135e4
SP
75512019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
7552
7553 * po/libc.pot: Regenerate.
7554
ecdacd34
TMQMF
75552019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
7556
7557 * math/libm-test-fma.inc (fma_test_data): Set
7558 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
7559
56054664
RA
75602019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
7561
7562 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
7563 (do_test): Changed __vector __int128_t to __vector unsigned int.
7564
1a153e47
LS
75652019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
7566
7567 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
7568 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
7569 stpcpy-avx2 and stpncpy-avx2.
7570 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
7571 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
7572 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
7573 and __stpncpy_avx2.
7574 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
7575 ifunc-strcpy.h}: rename header for a more generic name.
7576 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
7577 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
7578 AVX unaligned load is fast and vzeroupper is preferred.
7579 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
7580 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
7581 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
7582 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
7583 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
7584 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
7585
a1b02ae7
DL
75862019-01-12 Dmitry V. Levin <ldv@altlinux.org>
7587
7588 * argp/argp-help.c: Fix typo in comment.
7589 * misc/sys/cdefs.h: Likewise.
7590 * posix/regexec.c (sift_states_iter_mb): Likewise.
7591 * socket/sockatmark.c: Likewise.
7592 * socket/sys/socket.h: Likewise.
7593 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
7594 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
7595 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
7596 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
7597 * sysdeps/unix/sockatmark.c: Likewise.
7598 * time/strptime_l.c: Likewise.
7599
5cbbf01e
TS
76002019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
7601
7602 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
7603 missing space after the cast of "_NL_CURRENT".
7604
0bc9bdf1
RA
76052019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
7606
7607 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
7608 ifdef to fix read of VSCR.
7609 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
7610 tst-ucontext-ppc64-vscr.c to test list.
7611 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
7612
5494af04
AH
76132019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
7614
7615 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
7616 fall-through.
7617
e17f63ff
JW
76182019-01-09 Jim Wilson <jimw@sifive.com>
7619
7620 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
7621
02f440c1
WD
76222019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
7623
7624 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
7625 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
7626 __memcpy_falkor for ares.
7627 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
7628 Add new define.
7629 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
7630 Add ares cpu.
7631
69da3c9e
L
76322019-01-07 H.J. Lu <hongjiu.lu@intel.com>
7633
7634 [BZ #24066]
7635 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
7636 4_FP_W_TYPEs are used for IEEE quad precision.
7637 * soft-fp/extendhftf2.c: Likewise.
7638 * soft-fp/extendsftf2.c: Likewise.
7639 * soft-fp/extendxftf2.c: Likewise.
7640 * soft-fp/trunctfdf2.c: Likewise.
7641 * soft-fp/trunctfhf2.c: Likewise.
7642 * soft-fp/trunctfsf2.c: Likewise.
7643 * soft-fp/trunctfxf2.c: Likewise.
7644 * sysdeps/alpha/ots_cvttx.c: Likewise.
7645 * sysdeps/alpha/ots_cvtxt.c: Likewise.
7646 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
7647 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
7648 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
7649 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
7650 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
7651 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
7652 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
7653 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
7654 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
7655 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
7656 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
7657 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
7658 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
7659 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
7660 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
7661 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
7662
2ef42716
AJ
76632019-01-07 Aurelien Jarno <aurelien@aurel32.net>
7664
7665 [BZ #24024]
7666 * Makeconfig: Build libm with -fno-math-errno but build the remaining
7667 code with -fmath-errno.
7668 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
7669 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
7670 * string/test-strerror-errno.c: New file.
7671
7395f3a0
AJ
76722019-01-07 Aurelien Jarno <aurelien@aurel32.net>
7673
7674 [BZ #24046]
7675 * localedata/locales/en_US (date_fmt): Add, set to
7676 "%a %d %b %Y %r %Z".
7677
010fe231
FW
76782019-01-07 Florian Weimer <fweimer@redhat.com>
7679
7680 [BZ #24063]
7681 * manual/arith.texi (Math Error Reporting): Use @code{errno}
7682 instead of @var{errno}.
7683 (Parsing of Integers): Likewise.
7684 (Parsing of Floats): Likewise.
7685 * manual/filesys.texi (Working with Directory Trees): Likewise.
7686 (Temporary Files): Likewise.
7687 * manual/job.texi (Terminal Access Functions): Likewise.
7688 * manual/llio.texi (Synchronizing I/O): Likewise.
7689 * manual/math.texi (SVID Random): Likewise.
7690 * manual/message.texi (The catgets Functions): Likewise.
7691 (Translation with gettext): Likewise.
7692 (Locating gettext catalog): Likewise.
7693 (Charset conversion in gettext): Likewise.
7694 * manual/nss.texi (NSS Module Function Internals): Likewise.
7695 * manual/search.texi (Hash Search Function): Likewise.
7696 * manual/setjmp.texi (System V contexts): Likewise.
7697 * manual/time.texi (Sleeping): Likewise.
7698 * manual/users.texi (Lookup User): Likewise.
7699 (Lookup Group): Likewise.
7700
b79dc8d0
AZ
77012019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7702
7703 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
7704 fix typo.
7705
890461fe 77062019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
27c5e756
MJ
7707
7708 [BZ #19444]
7709 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
7710 __builtin_unreachable for default case in switch.
7711 (__ieee754_yn): Likewise.
7712 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
7713 (__ieee754_ynl): Likewise.
7714 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
7715 (__ieee754_ynl): Likewise.
7716 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
7717 (__ieee754_ynl): Likewise.
7718
8b18d418
SN
77192019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
7720
7721 * manual/maint.texi: Use @{ and @}.
7722
4392898d
FW
77232019-01-04 Florian Weimer <fweimer@redhat.com>
7724
7725 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
7726 function.
7727 (do_in_chroot_1): Call it.
7728 (run_chroot_tests):
7729 Improve error reporting in case it is not possible to create a
7730 collision for the PTY name required by the test.
7731
17cc27d5
AZ
77322019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7733
ce7eb0e9
AZ
7734 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
7735 lll_wait_tid with timeout.
7736 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
7737 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
7738 futex_reltimed_wait_cancelable for cancelabla mode.
7739 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
7740 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
7741 macros.
7742 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
7743 * sysdeps/posix/waitid.c (__sigwait): Likewise.
7744 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
7745 SYSCALL_CANCEL_NCS): New macro.
7746 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
7747 (lll_timedwait_tid): Remove macro.
7748 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
7749 Likewise.
7750 (lll_timedwait_tid): Likewise.
7751 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
7752 Likewise.
7753 (lll_timedwait_tid): Likewise.
7754 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
7755 Likewise.
7756 (lll_timedwait_tid): Likewise.
7757 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
7758 Use INTERNAL_SYSCALL_CANCEL.
7759 * sysdeps/unix/sysv/linux/futex-internal.h
7760 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
7761 instead of __pthread_{enable,disable}_asynccancel.
7762 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
7763 (lll_futex_wait_cancel): New macro.
7764
0b13e255
AZ
7765 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
7766 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
7767
85c828a4
AZ
7768 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
7769 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
7770
d0d7f85f
AZ
7771 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
7772 in backtrace analysis.
7773 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
7774 side-effects.
7775 (tf_send): Likewise.
7776
17cc27d5
AZ
7777 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
7778 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
7779 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
7780 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
7781 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
7782 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
7783 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
7784 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
7785 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
7786 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
7787 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
7788 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
7789 Likewise.
7790 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
7791 tst-cancel-wrappers.sh.
7792 (generated): Remove tst-cancel-wrappers.out.
7793 (tst-cancel-wrappers.out): Remove rule.
7794 * nptl/tst-cancel-wrappers.sh: Remove file.
7795
7d7af8f1
SN
77962019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
7797
7798 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
7799 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
7800 Update.
7801
805334b2
AZ
78022019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7803
7804 [BZ #23640]
7805 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
7806 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
7807 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
7808 close-on-exec reset for adddup2 file action.
7809 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
7810
03992356
ZW
78112019-01-03 Zack Weinberg <zackw@panix.com>
7812
7813 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
7814 parameter. Only use deprecated scanf when __USE_GNU is defined
7815 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
7816 than 201103L, whichever is relevant for the language being compiled.
7817
7818 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
7819 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
7820 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
7821 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
7822 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
7823
7824 * libio/iovsscanf.c
7825 * libio/fwscanf.c
7826 * libio/iovswscanf.c
7827 * libio/swscanf.c
7828 * libio/vscanf.c
7829 * libio/vwscanf.c
7830 * libio/wscanf.c
7831 * stdio-common/fscanf.c
7832 * stdio-common/scanf.c
7833 * stdio-common/vfscanf.c
7834 * stdio-common/vfwscanf.c
7835 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
7836 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
7837 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
7838 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
7839 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
7840 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
7841 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
7842 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
7843 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
7844 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
7845 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
7846 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
7847 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
7848 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
7849 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
7850
7851 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
7852 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
7853 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
7854 not sscanf.
7855 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
7856 with a preprocessor macro.
7857
7858 * stdio-common/bug21.c, stdio-common/scanf14.c:
7859 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
7860 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
7861 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
7862 to xscanf, xfscanf, xsscanf.
7863
7864 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
7865 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
7866 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
7867 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
7868 xfscanf, xsscanf.
7869 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
7870 override feature selection macros or provide definitions of u_char etc.
7871 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
7872 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
7873 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
7874 with -std=gnu89.
7875
8083afa5
AZ
78762019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7877
6f343c1f
AZ
7878 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7879 bits/termios-misc.h.
7880 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
7881 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7882 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7883 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7884 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
7885 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
7886
51f4beb0
AZ
7887 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
7888 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
7889 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
7890 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
7891 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
7892 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
7893 termios-misc.h.
7894 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
7895 (sysdep_headers): Add termios-misc.h.
7896
f69c5cb2
AZ
7897 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
7898 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7899 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7900
3aa4a07e
AZ
7901 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7902 termios-tcflow.h.
7903 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
7904 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
7905 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
7906 TCSAFLUSH): Move to termios-tcflow.h.
7907 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7908 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7909 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7910 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7911
22679ddf
AZ
7912 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7913 termios-c_lflag.h.
7914 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
7915 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
7916 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
7917 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
7918 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
7919 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
7920 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
7921 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
7922 Likewise.
7923 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7924 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7925 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7926 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7927
72eb6ecc
AZ
7928 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7929 termios-c_cflag.h.
7930 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
7931 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
7932 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
7933 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
7934 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
7935 termios-c_cflag.h.
7936 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7937 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7938 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7939 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7940
9c5d0d02
AZ
7941 [BZ #23783]
7942 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7943 termios-baud.h.
7944 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
7945 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
7946 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
7947 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
7948 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
7949 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
7950 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
7951 __MAX_BAUD): Move to termios-baud.h.
7952 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
7953 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
7954 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7955 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7956 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7957
7b832018
AZ
7958 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
7959 termios-c_oflag.h.
7960 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
7961 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
7962 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
7963 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
7964 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
7965 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
7966 termios-c_oflag.h.
7967 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
7968 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
7969 FFR1): Likewise.
7970 [USE_MISC] (XTABS): Likewise.
7971 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7972 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7973 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7974 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
7975
3127003e
AZ
7976 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
7977 termios-c_iflag.h.
7978 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
7979 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
7980 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
7981 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
7982 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
7983 IUTF8): Move to termios-c_iflag.h.
7984 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
7985 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
7986 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
7987 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
7988
48c1dd96
AZ
7989 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
7990 termios-cc.h.
7991 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
7992 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
7993 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
7994 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
7995 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
7996 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
7997 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
7998 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
7999 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
8000 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
8001 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
8002 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
8003
e5a50db3
AZ
8004 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
8005 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
8006 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
8007 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
8008 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8009 termios-struct.h.
8010 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
8011 termios-struct.h.
8012 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
8013 Likewise.
8014 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
8015 Likewise.
8016 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
8017 Likewise.
8018 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
8019 Likewise.
8020 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
8021 _HAVE_C_OSPEED): Define.
8022 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
8023 _HAVE_C_OSPEED): Likewise.
8024 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
8025 _HAVE_C_OSPEED): Likewise.
8026 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
8027 (cfsetospeed): Check for define value instead of existence.
8028 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
8029 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
8030 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
8031 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
8032 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
8033
8083afa5
AZ
8034 [BZ #17783]
8035 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
8036 Define.
8037 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
8038 (TIOCSER_TEMT): Likewise.
8039 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
8040 (TEOCSER_TEMT): Likewise.
8041
4d7d7dc6
P
80422019-01-02 PanderMusubi <pander@users.sourceforge.net>
8043
8044 [BZ #24011]
8045 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
8046
8e291a29
JM
80472019-01-02 Joseph Myers <joseph@codesourcery.com>
8048
8049 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
8050
55137f7d
ST
80512019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
8052
8053 * sysdeps/htl/pt-barrierattr-setpshared.c
8054 (pthread_barrierattr_setpshared): Add stub warning.
8055 * sysdeps/htl/pt-condattr-setpshared.c
8056 (pthread_condattr_setpshared): Likewise.
8057 * sysdeps/htl/pt-mutexattr-setpshared.c
8058 (pthread_mutexattr_setpshared): Likewise.
8059 * sysdeps/htl/pt-rwlockattr-setpshared.c
8060 (pthread_rwlockattr_setpshared): Likewise.
8061 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
8062 (pthread_mutexattr_setpshared): Likewise.
8063
2ce09e01
JM
80642019-01-02 Joseph Myers <joseph@codesourcery.com>
8065
acb55dcb
JM
8066 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
8067 constants to match with Linux 4.20.
8068
2ce09e01
JM
8069 * sysdeps/mips/mips32/libm-test-ulps: Update.
8070 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
8071
fe20bb1d
AJ
80722019-01-02 Aurelien Jarno <aurelien@aurel32.net>
8073
8074 [BZ #24034]
8075 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
8076 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
8077 than __typeof (...) for the a_ptr variable.
8078
2d9837c1
GG
80792019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
8080
8081 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
8082 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
8083 * libio/Makefile (tests): Add tst-sprintf-ub and
8084 tst-sprintf-chk-ub.
8085 (CFLAGS-tst-sprintf-ub.c): New variable.
8086 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
8087 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
8088 destination buffer and check for overflows in fortified mode.
8089 * libio/libioP.h (PRINTF_CHK): New macro.
8090 * libio/tst-sprintf-chk-ub.c: New file.
8091 * libio/tst-sprintf-ub.c: Likewise.
8092
d5c6df0b 80932019-01-02 Florian Weimer <fweimer@redhat.com>
8c1aafc1
FW
8094
8095 [BZ #24018]
8096 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
8097 failure.
8098
66081e38
FW
80992019-01-02 Florian Weimer <fweimer@redhat.com>
8100
8101 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
8102
04277e02
JM
81032019-01-01 Joseph Myers <joseph@codesourcery.com>
8104
6ef3d225
JM
8105 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
8106 macro.
8107
e3d4e292
JM
8108 * sysdeps/unix/sysv/linux/netpacket/packet.h
8109 (PACKET_IGNORE_OUTGOING): New macro.
8110
f4507797
JM
8111 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
8112 macro.
8113
47ad5e1a
JM
8114 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
8115 version to 4.20.
8116 (riscv_flush_icache): New syscall.
8117
7628a1b0
JM
8118 * manual/texinfo.tex: Update to version 2018-12-28.17 with
8119 trailing whitespace removed.
8120 * scripts/config.guess: Update to version 2019-01-01.
8121 * scripts/config.sub: Update to version 2019-01-01.
8122 * scripts/move-if-change: Update from gnulib.
8123
c9123888
JM
8124 * NEWS: Update copyright dates.
8125 * catgets/gencat.c (print_version): Likewise.
8126 * csu/version.c (banner): Likewise.
8127 * debug/catchsegv.sh: Likewise.
8128 * debug/pcprofiledump.c (print_version): Likewise.
8129 * debug/xtrace.sh (do_version): Likewise.
8130 * elf/ldconfig.c (print_version): Likewise.
8131 * elf/ldd.bash.in: Likewise.
8132 * elf/pldd.c (print_version): Likewise.
8133 * elf/sotruss.sh: Likewise.
8134 * elf/sprof.c (print_version): Likewise.
8135 * iconv/iconv_prog.c (print_version): Likewise.
8136 * iconv/iconvconfig.c (print_version): Likewise.
8137 * locale/programs/locale.c (print_version): Likewise.
8138 * locale/programs/localedef.c (print_version): Likewise.
8139 * login/programs/pt_chown.c (print_version): Likewise.
8140 * malloc/memusage.sh (do_version): Likewise.
8141 * malloc/memusagestat.c (print_version): Likewise.
8142 * malloc/mtrace.pl: Likewise.
8143 * manual/libc.texinfo: Likewise.
8144 * nptl/version.c (banner): Likewise.
8145 * nscd/nscd.c (print_version): Likewise.
8146 * nss/getent.c (print_version): Likewise.
8147 * nss/makedb.c (print_version): Likewise.
8148 * posix/getconf.c (main): Likewise.
8149 * scripts/test-installation.pl: Likewise.
8150 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
8151
04277e02
JM
8152 * All files with FSF copyright notices: Update copyright dates
8153 using scripts/update-copyrights.
8154 * locale/programs/charmap-kw.h: Regenerated.
8155 * locale/programs/locfile-kw.h: Likewise.
8156
e740e5b1
JM
81572018-12-31 Joseph Myers <joseph@codesourcery.com>
8158
8159 * timezone/zdump.c: Update from tzcode 2018i.
8160 * timezone/zic.c: Likewise.
8161
9b7f98b3
PE
81622018-12-31 Paul Eggert <eggert@cs.ucla.edu>
8163
8164 regex: improve Gnulib port to AIX
8165 From the glibc point of view, this removes duplicate macro
8166 definitions and is obviously safe.
8167 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
8168 * posix/regex_internal.h:
8169 (__attribute__, __attribute_warn_unused_result__):
8170 Remove; already defined elsewhere.
8171
b50dd3bc
FW
81722018-12-31 Florian Weimer <fw@deneb.enyo.de>
8173
8174 [BZ #24027]
8175 * malloc/malloc.c (_int_realloc): Always call memcpy for the
8176 copying operation. (ncopies had the wrong type, resulting in an
8177 integer wraparound and too few elements being copied.)
8178
0b9c8490
L
81792018-12-31 H.J. Lu <hongjiu.lu@intel.com>
8180
8181 [BZ #24022]
8182 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
8183 <asm/syscalls.h> exists with __has_include__ before including it.
8184
01047fa6
JM
81852018-12-31 Joseph Myers <joseph@codesourcery.com>
8186
8187 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
8188 version to 4.20.
8189
6b5c8607 81902018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
065957a3
JW
8191
8192 * hurd/lookup-retry: Include <unistd.h>.
8193 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
8194 Release it on return. Handle "pid" magical lookup retry.
8195
ab74d59f 81962018-12-28 Rafał Lużyński <digitalfreak@lingonborough.com>
989182c4
RL
8197
8198 [BZ #10496]
8199 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
8200 (t_fmt_ampm): Likewise.
8201 * localedata/locales/aa_ER (t_fmt): Likewise.
8202 (t_fmt_ampm): Likewise.
8203 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
8204 (t_fmt_ampm): Likewise.
8205 * localedata/locales/aa_ET (t_fmt): Likewise.
8206 (t_fmt_ampm): Likewise.
8207 * localedata/locales/am_ET (t_fmt): Likewise.
8208 (t_fmt_ampm): Likewise.
8209 * localedata/locales/byn_ER (t_fmt): Likewise.
8210 (t_fmt_ampm): Likewise.
8211 * localedata/locales/om_ET (t_fmt): Likewise.
8212 (t_fmt_ampm): Likewise.
8213 * localedata/locales/sid_ET (t_fmt): Likewise.
8214 (t_fmt_ampm): Likewise.
8215 * localedata/locales/so_DJ (t_fmt): Likewise.
8216 (t_fmt_ampm): Likewise.
8217 * localedata/locales/so_ET (t_fmt): Likewise.
8218 (t_fmt_ampm): Likewise.
8219 * localedata/locales/so_SO (t_fmt): Likewise.
8220 (t_fmt_ampm): Likewise.
8221 * localedata/locales/ti_ER (t_fmt): Likewise.
8222 (t_fmt_ampm): Likewise.
8223 * localedata/locales/ti_ET (t_fmt): Likewise.
8224 (t_fmt_ampm): Likewise.
8225 * localedata/locales/tig_ER (t_fmt): Likewise.
8226 (t_fmt_ampm): Likewise.
8227 * localedata/locales/wal_ET (t_fmt): Likewise.
8228 (t_fmt_ampm): Likewise.
8229
8230 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
8231 * localedata/locales/ar_IN (t_fmt): Likewise.
8232 * localedata/locales/bhb_IN (t_fmt): Likewise.
8233 * localedata/locales/bho_IN (t_fmt): Likewise.
8234 * localedata/locales/bi_VU (t_fmt): Likewise.
8235 * localedata/locales/bn_BD (t_fmt): Likewise.
8236 * localedata/locales/bn_IN (t_fmt): Likewise.
8237 * localedata/locales/brx_IN (t_fmt): Likewise.
8238 * localedata/locales/doi_IN (t_fmt): Likewise.
8239 * localedata/locales/en_HK (t_fmt): Likewise.
8240 (t_fmt_ampm): Likewise.
8241 * localedata/locales/en_IN (t_fmt): Likewise.
8242 * localedata/locales/en_PH (t_fmt): Likewise.
8243 * localedata/locales/gu_IN (t_fmt): Likewise.
8244 * localedata/locales/hi_IN (t_fmt): Likewise.
8245 * localedata/locales/hif_FJ (t_fmt): Likewise.
8246 * localedata/locales/hne_IN (t_fmt): Likewise.
8247 * localedata/locales/kn_IN (t_fmt): Likewise.
8248 * localedata/locales/kok_IN (t_fmt): Likewise.
8249 * localedata/locales/ks_IN (t_fmt): Likewise.
8250 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
8251 * localedata/locales/mag_IN (t_fmt): Likewise.
8252 * localedata/locales/mai_IN (t_fmt): Likewise.
8253 * localedata/locales/mjw_IN (t_fmt): Likewise.
8254 * localedata/locales/ml_IN (t_fmt): Likewise.
8255 * localedata/locales/mni_IN (t_fmt): Likewise.
8256 * localedata/locales/mr_IN (t_fmt): Likewise.
8257 * localedata/locales/ms_MY (t_fmt): Likewise.
8258 * localedata/locales/pa_IN (t_fmt): Likewise.
8259 * localedata/locales/raj_IN (t_fmt): Likewise.
8260 * localedata/locales/sa_IN (t_fmt): Likewise.
8261 * localedata/locales/sat_IN (t_fmt): Likewise.
8262 * localedata/locales/sd_IN (t_fmt): Likewise.
8263 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
8264 * localedata/locales/tcy_IN (t_fmt): Likewise.
8265 * localedata/locales/the_NP (t_fmt): Likewise.
8266 * localedata/locales/to_TO (t_fmt): Likewise.
8267 * localedata/locales/ur_IN (t_fmt): Likewise.
8268
8269 * localedata/locales/hif_FJ (d_t_fmt): Set to
8270 "%A %d %b %Y %I:%M:%S %p".
8271 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
8272
8273 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
8274 * localedata/locales/ar_BH (t_fmt): Likewise.
8275 * localedata/locales/ar_DZ (t_fmt): Likewise.
8276 * localedata/locales/ar_EG (t_fmt): Likewise.
8277 * localedata/locales/ar_IQ (t_fmt): Likewise.
8278 * localedata/locales/ar_JO (t_fmt): Likewise.
8279 * localedata/locales/ar_KW (t_fmt): Likewise.
8280 * localedata/locales/ar_LB (t_fmt): Likewise.
8281 * localedata/locales/ar_LY (t_fmt): Likewise.
8282 * localedata/locales/ar_OM (t_fmt): Likewise.
8283 * localedata/locales/ar_QA (t_fmt): Likewise.
8284 * localedata/locales/ar_SD (t_fmt): Likewise.
8285 * localedata/locales/ar_SS (t_fmt): Likewise.
8286 * localedata/locales/ar_SY (t_fmt): Likewise.
8287 * localedata/locales/ar_TN (t_fmt): Likewise.
8288 * localedata/locales/ar_YE (t_fmt): Likewise.
8289
8290 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
8291 (t_fmt_ampm): Likewise.
8292 * localedata/locales/gez_ET (t_fmt): Likewise.
8293 (t_fmt_ampm): Likewise.
8294
8295 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
8296 (t_fmt_ampm): Likewise.
8297 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
8298
8299 * localedata/locales/zh_HK (t_fmt):
8300 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
8301
8302 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
8303 because this locale does not use the 12-hour clock.
8304 (t_fmt): Set to "%Z %H:%M:%S".
8305 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
8306
8307 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
8308 because this locale does not use the 12-hour clock.
8309 (t_fmt): Set to "%H:%M:%S %Z".
8310 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
8311
8312 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
8313 because this locale does not use the 12-hour clock.
8314 (t_fmt): Set to "%T".
8315 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
8316 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
8317
8318 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
8319 because this locale does not use the 12-hour clock.
8320 (t_fmt): Set to "%H:%M:%S %Z".
8321 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
8322
8323 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
8324 because this locale does not use the 12-hour clock.
8325 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
8326 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
8327
ab74d59f 83282018-12-28 Rafał Lużyński <digitalfreak@lingonborough.com>
27841a7d
RL
8329
8330 [BZ #10496]
8331 [BZ #23724]
8332 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
8333 (t_fmt_ampm): Likewise.
8334 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
8335 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
8336 (d_fmt): Set to "%-d.%-m.%y".
8337
0253580a
AZ
83382018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8339
8340 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
8341 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
8342 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
8343 Likewise.
8344 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
8345 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
8346 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
8347 function.
8348 * support/blob_repeat.c (check_mul_overflow_size_t,
8349 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
8350
09104e5b
AJ
83512018-12-28 Aurelien Jarno <aurelien@aurel32.net>
8352
8353 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
8354
c0feb731
PE
83552018-12-27 Paul Eggert <eggert@cs.ucla.edu>
8356
8357 regex: simplify Gnulib port
8358 This simplifies the code, by removing stuff intended for porting
8359 to Gnulib but no longer needed there.
8360 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
8361 uses of libc_hidden_def, weak_alias.
8362 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
8363 _Restrict_ except for public-facing headers.
8364 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
8365 Remove; already defined elsewhere.
8366 * posix/regex.c, posix/regex_internal.h:
8367 Use __GNUC_PREREQ instead of rolling our own.
8368 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
8369
5289f1f5
WD
83702018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
8371
8372 * benchtests/bench-strlen.c (generic_strlen): New function.
6b5c8607 8373 (memchr_strlen): New function.
5289f1f5 8374
ba4b8fab
L
83752018-12-26 H.J. Lu <hongjiu.lu@intel.com>
8376
8377 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
8378 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
8379 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
8380
9412979a
L
83812018-12-26 H.J. Lu <hongjiu.lu@intel.com>
8382
8383 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
8384
8700a785
L
83852018-12-26 H.J. Lu <hongjiu.lu@intel.com>
8386
8387 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
8388 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
8389 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
8390 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
8391 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
8392 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
8393 <sysdeps/ieee754/flt-32/s_sincosf.c>.
8394
57b3ff8e
JM
83952018-12-21 Joseph Myers <joseph@codesourcery.com>
8396
8397 [BZ #24023]
8398 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
8399 PLT reference in libc.so.
8400 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
8401 _Q_lltoq and _Q_qtod PLT references in libc.so.
8402
90d3320d
WD
84032018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
8404
8405 * benchtests/bench-memchr.c: Cleanup defines.
8406 * benchtests/bench-memcmp.c: Likewise.
8407 * benchtests/bench-memset.c: Likewise.
8408 * benchtests/bench-memset-large.c: Likewise.
8409 * benchtests/bench-memset-walk.c: Likewise.
8410 * benchtests/bench-stpcpy.c: Likewise.
8411 * benchtests/bench-stpncpy.c: Likewise.
8412 * benchtests/bench-strcat.c: Likewise.
8413 * benchtests/bench-strchr.c: Likewise.
8414 * benchtests/bench-strcmp.c: Likewise.
8415 * benchtests/bench-strcpy.c: Likewise.
8416 * benchtests/bench-strcspn.c: Likewise.
8417 * benchtests/bench-string.h: Likewise.
8418 * benchtests/bench-strlen.c: Likewise.
8419 * benchtests/bench-strncat.c: Likewise.
8420 * benchtests/bench-strncmp.c: Likewise.
8421 * benchtests/bench-strncpy.c: Likewise.
8422 * benchtests/bench-strnlen.c: Likewise.
8423 * benchtests/bench-strpbrk.c: Likewise.
8424 * benchtests/bench-strrchr.c: Likewise.
8425 * benchtests/bench-strspn.c: Likewise.
8426
192963be
JM
84272018-12-21 Joseph Myers <joseph@codesourcery.com>
8428
5d025ea6
JM
8429 * stdlib/longlong.h: Update from GCC.
8430
192963be
JM
8431 [BZ #23993]
8432 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
8433 * configure: Regenerated.
8434 * manual/install.texi (Tools for Compilation): Update minimum GCC
8435 version.
8436 * INSTALL: Regenerated.
8437
6b5c8607 84382018-12-21 Istvan Kurucsai <pistukem@gmail.com>
c0e82f11
IK
8439
8440 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
8441
6b5c8607 84422018-12-20 Istvan Kurucsai <pistukem@gmail.com>
ebe544bf
IK
8443
8444 * malloc/malloc.c (mremap_chunk): Additional checks.
8445
5f72b005
MH
84462018-12-21 Mao Han <han_mao@c-sky.com>
8447
8448 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
8449 * scripts/build-many-glibcs.py: Add C-SKY targets.
8450 * sysdeps/csky/Implies: New file.
8451 * sysdeps/csky/Makefile: Likewise.
8452 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
8453 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
8454 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
8455 * sysdeps/csky/abiv2/memcmp.S: Likewise.
8456 * sysdeps/csky/abiv2/memcpy.S: Likewise.
8457 * sysdeps/csky/abiv2/memmove.S: Likewise.
8458 * sysdeps/csky/abiv2/memset.S: Likewise.
8459 * sysdeps/csky/abiv2/setjmp.S: Likewise.
8460 * sysdeps/csky/abiv2/start.S: Likewise.
8461 * sysdeps/csky/abiv2/strcmp.S: Likewise.
8462 * sysdeps/csky/abiv2/strcpy.S: Likewise.
8463 * sysdeps/csky/abiv2/strlen.S: Likewise.
8464 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
8465 * sysdeps/csky/abort-instr.h: Likewise.
8466 * sysdeps/csky/atomic-machine.h: Likewise.
8467 * sysdeps/csky/bits/endian.h: Likewise.
8468 * sysdeps/csky/bits/fenv.h: Likewise.
8469 * sysdeps/csky/bits/link.h: Likewise.
8470 * sysdeps/csky/bits/setjmp.h: Likewise.
8471 * sysdeps/csky/bsd-_setjmp.S: Likewise.
8472 * sysdeps/csky/bsd-setjmp.S: Likewise.
8473 * sysdeps/csky/configure: Likewise.
8474 * sysdeps/csky/configure.ac: Likewise.
8475 * sysdeps/csky/dl-machine.h: Likewise.
8476 * sysdeps/csky/dl-procinfo.c: Likewise.
8477 * sysdeps/csky/dl-procinfo.h: Likewise.
8478 * sysdeps/csky/dl-sysdep.h: Likewise.
8479 * sysdeps/csky/dl-tls.h: Likewise.
8480 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
8481 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
8482 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
8483 * sysdeps/csky/fpu/fegetenv.c: Likewise.
8484 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
8485 * sysdeps/csky/fpu/fegetmode.c: Likewise.
8486 * sysdeps/csky/fpu/fegetround.c: Likewise.
8487 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
8488 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
8489 * sysdeps/csky/fpu/fenv_private.h: Likewise.
8490 * sysdeps/csky/fpu/fesetenv.c: Likewise.
8491 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
8492 * sysdeps/csky/fpu/fesetmode.c: Likewise.
8493 * sysdeps/csky/fpu/fesetround.c: Likewise.
8494 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
8495 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
8496 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
8497 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
8498 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
8499 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
8500 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
8501 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
8502 * sysdeps/csky/fpu_control.h: Likewise.
8503 * sysdeps/csky/gccframe.h: Likewise.
8504 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
8505 * sysdeps/csky/ldsodefs.h: Likewise.
8506 * sysdeps/csky/libc-tls.c: Likewise.
8507 * sysdeps/csky/linkmap.h: Likewise.
8508 * sysdeps/csky/machine-gmon.h: Likewise.
8509 * sysdeps/csky/memusage.h: Likewise.
8510 * sysdeps/csky/nofpu/Implies: Likewise.
8511 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
8512 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
8513 * sysdeps/csky/nptl/Makefile: Likewise.
8514 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
8515 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
8516 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
8517 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
8518 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
8519 * sysdeps/csky/nptl/tls.h: Likewise.
8520 * sysdeps/csky/preconfigure: Likewise.
8521 * sysdeps/csky/sfp-machine.h: Likewise.
8522 * sysdeps/csky/sotruss-lib.c: Likewise.
8523 * sysdeps/csky/stackinfo.h: Likewise.
8524 * sysdeps/csky/sysdep.h: Likewise.
8525 * sysdeps/csky/tininess.h: Likewise.
8526 * sysdeps/csky/tst-audit.h: Likewise.
8527 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
8528 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
8529 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
8530 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
8531 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
8532 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
8533 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
8534 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
8535 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
8536 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
8537 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
8538 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
8539 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
8540 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
8541 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
8542 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
8543 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
8544 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
8545 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
8546 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
8547 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
8548 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
8549 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
8550 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
8551 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
8552 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
8553 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
8554 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
8555 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
8556 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
8557 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
8558 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
8559 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
8560 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
8561 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
8562 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
8563 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
8564 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
8565 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
8566 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
8567 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
8568 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
8569 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
8570 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
8571
6b5c8607 85722018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
ac253355
AA
8573
8574 * include/time.h (__difftime64): Add.
8575 * time/difftime.c (subtract): convert to 64-bit time.
8576 * time/difftime.c (__difftime64): Add.
8577 * time/difftime.c (__difftime): Wrap around __difftime64.
8578
ab416931
L
85792018-12-20 H.J. Lu <hongjiu.lu@intel.com>
8580
8581 * manual/examples/add.c: Remove redundant "if not".
8582 * manual/examples/argp-ex1.c: Likewise.
8583 * manual/examples/argp-ex2.c: Likewise.
8584 * manual/examples/argp-ex3.c: Likewise.
8585 * manual/examples/argp-ex4.c: Likewise.
8586 * manual/examples/atexit.c: Likewise.
8587 * manual/examples/db.c: Likewise.
8588 * manual/examples/dir.c: Likewise.
8589 * manual/examples/dir2.c: Likewise.
8590 * manual/examples/execinfo.c: Likewise.
8591 * manual/examples/filecli.c: Likewise.
8592 * manual/examples/filesrv.c: Likewise.
8593 * manual/examples/fmtmsgexpl.c: Likewise.
8594 * manual/examples/genpass.c: Likewise.
8595 * manual/examples/inetcli.c: Likewise.
8596 * manual/examples/inetsrv.c: Likewise.
8597 * manual/examples/isockad.c: Likewise.
8598 * manual/examples/longopt.c: Likewise.
8599 * manual/examples/memopen.c: Likewise.
8600 * manual/examples/memstrm.c: Likewise.
8601 * manual/examples/mkdirent.c: Likewise.
8602 * manual/examples/mkfsock.c: Likewise.
8603 * manual/examples/mkisock.c: Likewise.
8604 * manual/examples/mygetpass.c: Likewise.
8605 * manual/examples/pipe.c: Likewise.
8606 * manual/examples/popen.c: Likewise.
8607 * manual/examples/rprintf.c: Likewise.
8608 * manual/examples/search.c: Likewise.
8609 * manual/examples/select.c: Likewise.
8610 * manual/examples/setjmp.c: Likewise.
8611 * manual/examples/sigh1.c: Likewise.
8612 * manual/examples/sigusr.c: Likewise.
8613 * manual/examples/stpcpy.c: Likewise.
8614 * manual/examples/strdupa.c: Likewise.
8615 * manual/examples/strftim.c: Likewise.
8616 * manual/examples/subopt.c: Likewise.
8617 * manual/examples/swapcontext.c: Likewise.
8618 * manual/examples/termios.c: Likewise.
8619 * manual/examples/testopt.c: Likewise.
8620 * manual/examples/testpass.c: Likewise.
8621 * manual/examples/timeval_subtract.c: Likewise.
8622
515f463f
JM
86232018-12-19 Joseph Myers <joseph@codesourcery.com>
8624
da75c1b1
JM
8625 * sysdeps/x86/fpu/math_private.h: New file.
8626 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
8627
515f463f
JM
8628 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
8629 definition.
8630 (cosh): Likewise.
8631 (tanh): Likewise.
8632
1616d034
TMQMF
86332018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
8634
8635 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
8636 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
8637 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
8638 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
8639 fields.
8640 (_dl_show_auxv): Give a special treatment to
8641 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
8642 and AT_L3_CACHEGEOMETRY.
8643 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
8644 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
8645 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
8646 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
8647
61595e3d
AS
86482018-12-19 Andreas Schwab <schwab@suse.de>
8649
8650 * nscd/connections.c (check_use): Don't abort on invalid len.
8651
bbb7dc84
ST
86522018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
8653
8654 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
8655 values in the 64bit value cases.
8656
6b5c8607 86572018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
64c2277d 8658
c4c2836a
AA
8659 * include/time.h
8660 (__ctime64_r): Add.
8661 * time/ctime_r.c
8662 (__ctime64_r): Add.
8663 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
8664
7755e504
AA
8665 * include/time.h
8666 (__ctime64): Add.
8667 * time/gmtime.c
8668 (__ctime64): Add.
8669 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
8670
a1d346ce
AA
8671 * include/time.h
8672 (__gmtime64_r): Add.
8673 * time/gmtime.c
8674 (__gmtime64_r): Add.
8675 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
8676
131db8b0
AA
8677 * include/time.h
8678 (__gmtime64): Add.
8679 * time/gmtime.c
8680 (__gmtime64): Add.
8681 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
8682
64c2277d
AA
8683 * include/time.h
8684 (__localtime64_r): Add.
8685 * time/localtime.c
8686 (__localtime64_r): Add.
8687 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
8688
56b98bf1
AZ
86892018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8690
64dd7a16
AZ
8691 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
8692 kernel_sigction definition.
8693
8b1d5da5
AZ
8694 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
8695
f9eabb19
AZ
8696 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
8697
56b98bf1
AZ
8698 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
8699 __syscall_rt_sigaction.
8700 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
8701 (kernel_sigaction): Use Linux generic defintion.
8702 (STUB): Define.
8703 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
8704 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
8705 (__syscall_rt_sigaction): Remove implementation.
8706 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
8707 hidden.
8708 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
8709 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
8710 INTERNAL_SYSCALL): Remove definitions.
8711 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
8712 action and signal set size.
8713 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
8714 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
8715
43a45c2d
AZ
87162018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8717 James Clarke <jrtc27@jrtc27.com>
8718
dfa6216f 8719 [BZ #23967]
43a45c2d
AZ
8720 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
8721 Define if SA_RESTORER is defined.
8722 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
8723 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
8724 already defined.
8725 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
8726 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
8727 definitions.
8728 (HAS_SA_RESTORER): Define.
8729 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
8730 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
8731 (HAS_SA_RESTORER): Define.
8732 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
8733 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
8734 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
8735 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
8736 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
8737
646ce7e0
JM
87382018-12-18 Joseph Myers <joseph@codesourcery.com>
8739
8740 * sysdeps/unix/sysv/linux/kernel-features.h
8741 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
8742 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
8743 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
8744 * sysdeps/unix/sysv/linux/sh/kernel-features.h
8745 (__ASSUME_ST_INO_64_BIT): Likewise.
8746 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
8747 <kernel-features.h>.
8748 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
8749 Remove conditional code.
8750 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
8751 <kernel-features.h>.
8752 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
8753 Remove conditional code.
8754 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
8755 <kernel-features.h>.
8756 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
8757 Remove conditional code.
8758 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
8759 <kernel-features.h>.
8760 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
8761 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
8762
80190d2b
SL
87632018-12-18 Stefan Liebler <stli@linux.ibm.com>
8764
8765 * sysdeps/s390/multiarch/ifunc-resolve.h
8766 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
8767 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
8768 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
8769 Delete macro definition.
8770 (s390_libc_ifunc_init): Rename to
8771 s390_libc_ifunc_expr_stfle_init.
8772 * sysdeps/s390/bzero: Use
8773 s390_libc_ifunc_expr_stfle_init instead of
8774 s390_libc_ifunc_init.
8775 * sysdeps/s390/memcmp.c: Likewise.
8776 * sysdeps/s390/memcpy.c: Likewise.
8777 * sysdeps/s390/mempcpy.c: Likewise.
8778 * sysdeps/s390/memset.c: Likewise.
8779
12f0dcb8
SL
87802018-12-18 Stefan Liebler <stli@linux.ibm.com>
8781
8782 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
8783 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
8784
25654a8c
SL
87852018-12-18 Stefan Liebler <stli@linux.ibm.com>
8786
8787 * sysdeps/s390/multiarch/Makefile
8788 (sysdep_routines): Remove wmemcmp variants.
8789 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
8790 * sysdeps/s390/multiarch/ifunc-impl-list.c
8791 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
8792 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
8793 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
8794 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
8795 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
8796 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
8797 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
8798 * sysdeps/s390/ifunc-wmemcmp.h: New file.
8799
d2a7436c
SL
88002018-12-18 Stefan Liebler <stli@linux.ibm.com>
8801
8802 * sysdeps/s390/multiarch/Makefile
8803 (sysdep_routines): Remove wmemset variants.
8804 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
8805 * sysdeps/s390/multiarch/ifunc-impl-list.c
8806 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
8807 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
8808 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
8809 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
8810 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
8811 * sysdeps/s390/multiarch/wmemset.c: Move to ...
8812 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
8813 * sysdeps/s390/ifunc-wmemset.h: New file.
8814
c62534ae
SL
88152018-12-18 Stefan Liebler <stli@linux.ibm.com>
8816
8817 * sysdeps/s390/multiarch/Makefile
8818 (sysdep_routines): Remove wmemchr variants.
8819 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
8820 * sysdeps/s390/multiarch/ifunc-impl-list.c
8821 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
8822 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
8823 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
8824 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
8825 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
8826 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
8827 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
8828 * sysdeps/s390/ifunc-wmemchr.h: New file.
8829
79b44cf6
SL
88302018-12-18 Stefan Liebler <stli@linux.ibm.com>
8831
8832 * sysdeps/s390/multiarch/Makefile
8833 (sysdep_routines): Remove wcscspn variants.
8834 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
8835 * sysdeps/s390/multiarch/ifunc-impl-list.c
8836 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
8837 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
8838 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
8839 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
8840 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
8841 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
8842 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
8843 * sysdeps/s390/ifunc-wcscspn.h: New file.
8844
8e87c1f6
SL
88452018-12-18 Stefan Liebler <stli@linux.ibm.com>
8846
8847 * sysdeps/s390/multiarch/Makefile
8848 (sysdep_routines): Remove wcspbrk variants.
8849 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
8850 * sysdeps/s390/multiarch/ifunc-impl-list.c
8851 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
8852 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
8853 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
8854 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
8855 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
8856 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
8857 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
8858 * sysdeps/s390/ifunc-wcspbrk.h: New file.
8859
8507e831
SL
88602018-12-18 Stefan Liebler <stli@linux.ibm.com>
8861
8862 * sysdeps/s390/multiarch/Makefile
8863 (sysdep_routines): Remove wcsspn variants.
8864 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
8865 * sysdeps/s390/multiarch/ifunc-impl-list.c
8866 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
8867 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
8868 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
8869 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
8870 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
8871 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
8872 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
8873 * sysdeps/s390/ifunc-wcsspn.h: New file.
8874
4753713a
SL
88752018-12-18 Stefan Liebler <stli@linux.ibm.com>
8876
8877 * sysdeps/s390/multiarch/Makefile
8878 (sysdep_routines): Remove wcsrchr variants.
8879 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
8880 * sysdeps/s390/multiarch/ifunc-impl-list.c
8881 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
8882 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
8883 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
8884 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
8885 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
8886 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
8887 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
8888 * sysdeps/s390/ifunc-wcsrchr.h: New file.
8889
c09c1b6f
SL
88902018-12-18 Stefan Liebler <stli@linux.ibm.com>
8891
8892 * sysdeps/s390/multiarch/Makefile
8893 (sysdep_routines): Remove wcschrnul variants.
8894 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
8895 * sysdeps/s390/multiarch/ifunc-impl-list.c
8896 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
8897 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
8898 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
8899 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
8900 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
8901 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
8902 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
8903 * sysdeps/s390/ifunc-wcschrnul.h: New file.
8904
cf3ccc31
SL
89052018-12-18 Stefan Liebler <stli@linux.ibm.com>
8906
8907 * sysdeps/s390/multiarch/Makefile
8908 (sysdep_routines): Remove wcschr variants.
8909 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
8910 * sysdeps/s390/multiarch/ifunc-impl-list.c
8911 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
8912 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
8913 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
8914 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
8915 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
8916 * sysdeps/s390/multiarch/wcschr.c: Move to ...
8917 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
8918 * sysdeps/s390/ifunc-wcschr.h: New file.
8919
e9873e1d
SL
89202018-12-18 Stefan Liebler <stli@linux.ibm.com>
8921
8922 * sysdeps/s390/multiarch/Makefile
8923 (sysdep_routines): Remove wcsncmp variants.
8924 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
8925 * sysdeps/s390/multiarch/ifunc-impl-list.c
8926 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
8927 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
8928 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
8929 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
8930 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
8931 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
8932 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
8933 * sysdeps/s390/ifunc-wcsncmp.h: New file.
8934
3459e23d
SL
89352018-12-18 Stefan Liebler <stli@linux.ibm.com>
8936
8937 * sysdeps/s390/multiarch/Makefile
8938 (sysdep_routines): Remove wcscmp variants.
8939 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
8940 * sysdeps/s390/multiarch/ifunc-impl-list.c
8941 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
8942 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
8943 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
8944 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
8945 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
8946 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
8947 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
8948 * sysdeps/s390/ifunc-wcscmp.h: New file.
8949
814a76e1
SL
89502018-12-18 Stefan Liebler <stli@linux.ibm.com>
8951
8952 * sysdeps/s390/multiarch/Makefile
8953 (sysdep_routines): Remove wcsncat variants.
8954 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
8955 * sysdeps/s390/multiarch/ifunc-impl-list.c
8956 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
8957 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
8958 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
8959 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
8960 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
8961 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
8962 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
8963 * sysdeps/s390/ifunc-wcsncat.h: New file.
8964
3389cae4
SL
89652018-12-18 Stefan Liebler <stli@linux.ibm.com>
8966
8967 * sysdeps/s390/multiarch/Makefile
8968 (sysdep_routines): Remove wcscat variants.
8969 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
8970 * sysdeps/s390/multiarch/ifunc-impl-list.c
8971 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
8972 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
8973 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
8974 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
8975 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
8976 * sysdeps/s390/multiarch/wcscat.c: Move to ...
8977 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
8978 * sysdeps/s390/ifunc-wcscat.h: New file.
8979
c3081bcb
SL
89802018-12-18 Stefan Liebler <stli@linux.ibm.com>
8981
8982 * sysdeps/s390/multiarch/Makefile
8983 (sysdep_routines): Remove wcpncpy variants.
8984 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
8985 * sysdeps/s390/multiarch/ifunc-impl-list.c
8986 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
8987 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
8988 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
8989 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
8990 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
8991 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
8992 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
8993 * sysdeps/s390/ifunc-wcpncpy.h: New file.
8994
0966dd86
SL
89952018-12-18 Stefan Liebler <stli@linux.ibm.com>
8996
8997 * sysdeps/s390/multiarch/Makefile
8998 (sysdep_routines): Remove wcsncpy variants.
8999 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
9000 * sysdeps/s390/multiarch/ifunc-impl-list.c
9001 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
9002 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
9003 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
9004 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
9005 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
9006 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
9007 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
9008 * sysdeps/s390/ifunc-wcsncpy.h: New file.
9009
0582e428
SL
90102018-12-18 Stefan Liebler <stli@linux.ibm.com>
9011
9012 * sysdeps/s390/multiarch/Makefile
9013 (sysdep_routines): Remove wcpcpy variants.
9014 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
9015 * sysdeps/s390/multiarch/ifunc-impl-list.c
9016 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
9017 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
9018 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
9019 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
9020 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
9021 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
9022 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
9023 * sysdeps/s390/ifunc-wcpcpy.h: New file.
9024
804f2e5c
SL
90252018-12-18 Stefan Liebler <stli@linux.ibm.com>
9026
9027 * sysdeps/s390/multiarch/Makefile
9028 (sysdep_routines): Remove wcscpy variants.
9029 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
9030 * sysdeps/s390/multiarch/ifunc-impl-list.c
9031 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
9032 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
9033 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
9034 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
9035 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
9036 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
9037 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
9038 * sysdeps/s390/ifunc-wcscpy.h: New file.
9039
c7e7cd26
SL
90402018-12-18 Stefan Liebler <stli@linux.ibm.com>
9041
9042 * sysdeps/s390/multiarch/Makefile
9043 (sysdep_routines): Remove wcsnlen variants.
9044 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
9045 * sysdeps/s390/multiarch/ifunc-impl-list.c
9046 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
9047 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
9048 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
9049 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
9050 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
9051 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
9052 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
9053 * sysdeps/s390/ifunc-wcsnlen.h: New file.
9054
2e02d0b7
SL
90552018-12-18 Stefan Liebler <stli@linux.ibm.com>
9056
9057 * sysdeps/s390/multiarch/Makefile
9058 (sysdep_routines): Remove wcslen variants.
9059 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
9060 * sysdeps/s390/multiarch/ifunc-impl-list.c
9061 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
9062 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
9063 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
9064 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
9065 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
9066 * sysdeps/s390/multiarch/wcslen.c: Move to ...
9067 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
9068 * sysdeps/s390/ifunc-wcslen.h: New file.
9069
89bfcbdf
SL
90702018-12-18 Stefan Liebler <stli@linux.ibm.com>
9071
9072 * sysdeps/s390/multiarch/Makefile
9073 (sysdep_routines): Remove memrchr variants.
9074 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
9075 * sysdeps/s390/multiarch/ifunc-impl-list.c
9076 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
9077 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
9078 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
9079 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
9080 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
9081 * sysdeps/s390/multiarch/memrchr.c: Move to ...
9082 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
9083 * sysdeps/s390/ifunc-memrchr.h: New file.
9084
196655ba
SL
90852018-12-18 Stefan Liebler <stli@linux.ibm.com>
9086
9087 * sysdeps/s390/multiarch/Makefile
9088 (sysdep_routines): Remove memccpy variants.
9089 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
9090 * sysdeps/s390/multiarch/ifunc-impl-list.c
9091 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
9092 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
9093 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
9094 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
9095 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
9096 * sysdeps/s390/multiarch/memccpy.c: Move to ...
9097 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
9098 * sysdeps/s390/ifunc-memccpy.h: New file.
9099
4c7b3cec
SL
91002018-12-18 Stefan Liebler <stli@linux.ibm.com>
9101
9102 * sysdeps/s390/multiarch/Makefile
9103 (sysdep_routines): Remove rawmemchr variants.
9104 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
9105 * sysdeps/s390/multiarch/ifunc-impl-list.c
9106 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
9107 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
9108 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
9109 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
9110 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
9111 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
9112 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
9113 * sysdeps/s390/ifunc-rawmemchr.h: New file.
9114
581a051c
SL
91152018-12-18 Stefan Liebler <stli@linux.ibm.com>
9116
9117 * sysdeps/s390/multiarch/Makefile
9118 (sysdep_routines): Remove memchr variants.
9119 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
9120 * sysdeps/s390/multiarch/ifunc-impl-list.c
9121 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
9122 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
9123 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
9124 * sysdeps/s390/multiarch/memchr.c: Move to ...
9125 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
9126 * sysdeps/s390/ifunc-memchr.h: New file.
9127 * sysdeps/s390/s390-64/memchr.S: Move to ...
9128 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
9129 for 31/64bit and ifunc handling.
9130 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
9131 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
9132 * sysdeps/s390/s390-32/memchr.S: Likewise.
9133
5d2ec20a
SL
91342018-12-18 Stefan Liebler <stli@linux.ibm.com>
9135
9136 * sysdeps/s390/multiarch/Makefile
9137 (sysdep_routines): Remove strcspn variants.
9138 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
9139 * sysdeps/s390/multiarch/ifunc-impl-list.c
9140 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
9141 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
9142 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
9143 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
9144 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
9145 * sysdeps/s390/multiarch/strcspn.c: Move to ...
9146 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
9147 * sysdeps/s390/ifunc-strcspn.h: New file.
9148
572cca93
SL
91492018-12-18 Stefan Liebler <stli@linux.ibm.com>
9150
9151 * sysdeps/s390/multiarch/Makefile
9152 (sysdep_routines): Remove strpbrk variants.
9153 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
9154 * sysdeps/s390/multiarch/ifunc-impl-list.c
9155 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
9156 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
9157 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
9158 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
9159 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
9160 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
9161 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
9162 * sysdeps/s390/ifunc-strpbrk.h: New file.
9163
483fc569
SL
91642018-12-18 Stefan Liebler <stli@linux.ibm.com>
9165
9166 * sysdeps/s390/multiarch/Makefile
9167 (sysdep_routines): Remove strspn variants.
9168 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
9169 * sysdeps/s390/multiarch/ifunc-impl-list.c
9170 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
9171 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
9172 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
9173 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
9174 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
9175 * sysdeps/s390/multiarch/strspn.c: Move to ...
9176 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
9177 * sysdeps/s390/ifunc-strspn.h: New file.
9178
26ea8760
SL
91792018-12-18 Stefan Liebler <stli@linux.ibm.com>
9180
9181 * sysdeps/s390/multiarch/Makefile
9182 (sysdep_routines): Remove strrchr variants.
9183 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
9184 * sysdeps/s390/multiarch/ifunc-impl-list.c
9185 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
9186 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
9187 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
9188 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
9189 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
9190 * sysdeps/s390/multiarch/strrchr.c: Move to ...
9191 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
9192 * sysdeps/s390/ifunc-strrchr.h: New file.
9193
a1361e65
SL
91942018-12-18 Stefan Liebler <stli@linux.ibm.com>
9195
9196 * sysdeps/s390/multiarch/Makefile
9197 (sysdep_routines): Remove strchrnul variants.
9198 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
9199 * sysdeps/s390/multiarch/ifunc-impl-list.c
9200 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
9201 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
9202 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
9203 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
9204 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
9205 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
9206 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
9207 * sysdeps/s390/ifunc-strchrnul.h: New file.
9208
32f12653
SL
92092018-12-18 Stefan Liebler <stli@linux.ibm.com>
9210
9211 * sysdeps/s390/multiarch/Makefile
9212 (sysdep_routines): Remove strchr variants.
9213 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
9214 * sysdeps/s390/multiarch/ifunc-impl-list.c
9215 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
9216 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
9217 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
9218 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
9219 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
9220 * sysdeps/s390/multiarch/strchr.c: Move to ...
9221 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
9222 * sysdeps/s390/ifunc-strchr.h: New file.
9223
316b8842
SL
92242018-12-18 Stefan Liebler <stli@linux.ibm.com>
9225
9226 * sysdeps/s390/multiarch/Makefile
9227 (sysdep_routines): Remove strncmp variants.
9228 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
9229 * sysdeps/s390/multiarch/ifunc-impl-list.c
9230 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
9231 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
9232 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
9233 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
9234 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
9235 * sysdeps/s390/multiarch/strncmp.c: Move to ...
9236 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
9237 * sysdeps/s390/ifunc-strncmp.h: New file.
9238
cdab85fe
SL
92392018-12-18 Stefan Liebler <stli@linux.ibm.com>
9240
9241 * sysdeps/s390/multiarch/Makefile
9242 (sysdep_routines): Remove strcmp variants.
9243 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
9244 * sysdeps/s390/multiarch/ifunc-impl-list.c
9245 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
9246 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
9247 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
9248 * sysdeps/s390/multiarch/strcmp.c: Move to ...
9249 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
9250 * sysdeps/s390/ifunc-strcmp.h: New file.
9251 * sysdeps/s390/s390-64/strcmp.S: Move to ...
9252 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
9253 for 31/64bit and ifunc handling.
9254 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
9255 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
9256 * sysdeps/s390/s390-32/strcmp.S: Likewise.
9257
b9353351
SL
92582018-12-18 Stefan Liebler <stli@linux.ibm.com>
9259
9260 * sysdeps/s390/multiarch/Makefile
9261 (sysdep_routines): Remove strncat variants.
9262 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
9263 * sysdeps/s390/multiarch/ifunc-impl-list.c
9264 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
9265 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
9266 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
9267 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
9268 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
9269 * sysdeps/s390/multiarch/strncat.c: Move to ...
9270 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
9271 * sysdeps/s390/ifunc-strncat.h: New file.
9272
8e5a0afb
SL
92732018-12-18 Stefan Liebler <stli@linux.ibm.com>
9274
9275 * sysdeps/s390/multiarch/Makefile
9276 (sysdep_routines): Remove strcat variants.
9277 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
9278 * sysdeps/s390/multiarch/ifunc-impl-list.c
9279 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
9280 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
9281 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
9282 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
9283 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
9284 * sysdeps/s390/multiarch/strcat.c: Move to ...
9285 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
9286 * sysdeps/s390/ifunc-strcat.h: New file.
9287
25218822
SL
92882018-12-18 Stefan Liebler <stli@linux.ibm.com>
9289
9290 * sysdeps/s390/multiarch/Makefile
9291 (sysdep_routines): Remove stpncpy variants.
9292 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
9293 * sysdeps/s390/multiarch/ifunc-impl-list.c
9294 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
9295 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
9296 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
9297 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
9298 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
9299 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
9300 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
9301 * sysdeps/s390/ifunc-stpncpy.h: New file.
9302
d1bdbf38
SL
93032018-12-18 Stefan Liebler <stli@linux.ibm.com>
9304
9305 * sysdeps/s390/multiarch/Makefile
9306 (sysdep_routines): Remove strncpy variants.
9307 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
9308 * sysdeps/s390/multiarch/ifunc-impl-list.c
9309 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
9310 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
9311 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
9312 * sysdeps/s390/multiarch/strncpy.c: Move to ...
9313 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
9314 * sysdeps/s390/ifunc-strncpy.h: New file.
9315 * sysdeps/s390/s390-64/strncpy.S: Move to ...
9316 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
9317 and adjust ifunc handling.
9318 * sysdeps/s390/s390-32/strncpy.S: Move to ...
9319 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
9320 and adjust ifunc handling.
9321 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
9322 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
9323
97044931
SL
93242018-12-18 Stefan Liebler <stli@linux.ibm.com>
9325
9326 * sysdeps/s390/multiarch/Makefile
9327 (sysdep_routines): Remove stpcpy variants.
9328 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
9329 * sysdeps/s390/multiarch/ifunc-impl-list.c
9330 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
9331 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
9332 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
9333 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
9334 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
9335 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
9336 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
9337 * sysdeps/s390/ifunc-stpcpy.h: New file.
9338
914a4e05
SL
93392018-12-18 Stefan Liebler <stli@linux.ibm.com>
9340
9341 * sysdeps/s390/multiarch/Makefile
9342 (sysdep_routines): Remove strcpy variants.
9343 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
9344 * sysdeps/s390/multiarch/ifunc-impl-list.c
9345 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
9346 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
9347 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
9348 * sysdeps/s390/multiarch/strcpy.c: Move to ...
9349 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
9350 * sysdeps/s390/ifunc-strcpy.h: New file.
9351 * sysdeps/s390/s390-64/strcpy.S: Move to ...
9352 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
9353 for 31/64bit and ifunc handling.
9354 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
9355 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
9356 * sysdeps/s390/s390-32/strcpy.S: Likewise.
9357
de10e44d
SL
93582018-12-18 Stefan Liebler <stli@linux.ibm.com>
9359
9360 * sysdeps/s390/multiarch/Makefile
9361 (sysdep_routines): Remove strnlen variants.
9362 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
9363 * sysdeps/s390/multiarch/ifunc-impl-list.c
9364 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
9365 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
9366 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
9367 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
9368 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
9369 * sysdeps/s390/multiarch/strnlen.c: Move to ...
9370 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
9371 * sysdeps/s390/ifunc-strnlen.h: New file.
9372
ff3ca374
SL
93732018-12-18 Stefan Liebler <stli@linux.ibm.com>
9374
9375 * sysdeps/s390/multiarch/Makefile
9376 (sysdep_routines): Remove strlen variants.
9377 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
9378 * sysdeps/s390/multiarch/ifunc-impl-list.c
9379 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
9380 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
9381 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
9382 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
9383 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
9384 * sysdeps/s390/multiarch/strlen.c: Move to ...
9385 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
9386 * sysdeps/s390/ifunc-strlen.h: New file.
9387
d2c4c403
SL
93882018-12-18 Stefan Liebler <stli@linux.ibm.com>
9389
9390 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
9391 * sysdeps/s390/multiarch/ifunc-impl-list.c
9392 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
9393 * sysdeps/s390/ifunc-memmem.h: New file.
9394 * sysdeps/s390/memmem.c: Likewise.
9395 * sysdeps/s390/memmem-c.c: Likewise.
9396 * sysdeps/s390/memmem-vx.c: Likewise.
9397
8c25dddd
SL
93982018-12-18 Stefan Liebler <stli@linux.ibm.com>
9399
9400 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
9401 * sysdeps/s390/multiarch/ifunc-impl-list.c
9402 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
9403 * sysdeps/s390/ifunc-strstr.h: New file.
9404 * sysdeps/s390/strstr.c: Likewise.
9405 * sysdeps/s390/strstr-c.c: Likewise.
9406 * sysdeps/s390/strstr-vx.c: Likewise.
9407
cdd927d9
SL
94082018-12-18 Stefan Liebler <stli@linux.ibm.com>
9409
9410 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
9411 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
9412 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
9413 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
9414 New defines.
9415 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
9416 * sysdeps/s390/memmove-c.c: New file.
9417 * sysdeps/s390/memmove.c: Likewise.
9418 * sysdeps/s390/multiarch/ifunc-impl-list.c
9419 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
9420
2ee1bc57
SL
94212018-12-18 Stefan Liebler <stli@linux.ibm.com>
9422
9423 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
9424 * sysdeps/s390/configure.ac: Add check for z13 support.
9425 * sysdeps/s390/configure: Regenerated.
9426
d097d976
SL
94272018-12-18 Stefan Liebler <stli@linux.ibm.com>
9428
9429 * sysdeps/s390/memcopy.h: New file.
9430
e099aab0
SL
94312018-12-18 Stefan Liebler <stli@linux.ibm.com>
9432
9433 * sysdeps/s390/s390-32/bcopy.S: Remove.
9434 * sysdeps/s390/s390-64/bcopy.S: Likewise.
9435
18eb862d
SL
94362018-12-18 Stefan Liebler <stli@linux.ibm.com>
9437
9438 * sysdeps/s390/ifunc-memcpy.h: New File.
9439 * sysdeps/s390/memcpy.S: Move to ...
9440 * sysdeps/s390/memcpy-z900.S ... here.
9441 Move implementations from memcpy-s390x.s to here.
9442 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
9443 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
9444 Remove memcpy/mempcpy variants.
9445 * sysdeps/s390/Makefile (sysdep_routines):
9446 Add memcpy/mempcpy variants.
9447 * sysdeps/s390/multiarch/ifunc-impl-list.c
9448 (__libc_ifunc_impl_list): Adjust ifunc variants for
9449 memcpy and mempcpy.
9450 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
9451 to ...
9452 * sysdeps/s390/memcpy.c: ... here.
9453 Adjust ifunc variants for memcpy.
9454 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
9455 * sysdeps/s390/mempcpy.c: ... here.
9456 Adjust ifunc variants for mempcpy.
9457 * sysdeps/s390/mempcpy.S: Delete file.
9458
df3eb8de
SL
94592018-12-18 Stefan Liebler <stli@linux.ibm.com>
9460
9461 * sysdeps/s390/s390-64/memcpy.S: Move to ...
9462 * sysdeps/s390/memcpy.S: ... here.
9463 Adjust to be usable for 31/64bit.
9464 * sysdeps/s390/s390-32/memcpy.S: Delete File.
9465 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
9466 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
9467 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
9468 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
9469 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
9470 Adjust to be usable for 31/64bit.
9471 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
9472 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
9473 * sysdeps/s390/multiarch/memcpy.c: ... here.
9474 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
9475
b7e024a8
SL
94762018-12-18 Stefan Liebler <stli@linux.ibm.com>
9477
9478 * sysdeps/s390/ifunc-memcmp.h: New File.
9479 * sysdeps/s390/memcmp.S: Move to ...
9480 * sysdeps/s390/memcmp-z900.S ... here.
9481 Move implementations from memcmp-s390x.s to here.
9482 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
9483 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
9484 Remove memcmp variants.
9485 * sysdeps/s390/Makefile (sysdep_routines):
9486 Add memcmp variants.
9487 * sysdeps/s390/multiarch/ifunc-impl-list.c
9488 (__libc_ifunc_impl_list): Adjust ifunc variants for
9489 memcmp.
9490 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
9491 to ...
9492 * sysdeps/s390/memcmp.c: ... here.
9493 Adjust ifunc variants for memcmp.
9494
6c6b8c74
SL
94952018-12-18 Stefan Liebler <stli@linux.ibm.com>
9496
9497 * sysdeps/s390/s390-64/memcmp.S: Move to ...
9498 * sysdeps/s390/memcmp.S: ... here.
9499 Adjust to be usable for 31/64bit.
9500 * sysdeps/s390/s390-32/memcmp.S: Delete File.
9501 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
9502 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
9503 Remove memcmp.
9504 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
9505 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
9506 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
9507 Adjust to be usable for 31/64bit.
9508 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
9509 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
9510 * sysdeps/s390/multiarch/memcmp.c: ... here.
9511 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
9512
07be3928
SL
95132018-12-18 Stefan Liebler <stli@linux.ibm.com>
9514
9515 * sysdeps/s390/s390-32/bzero.S: Delete file.
9516 * sysdeps/s390/s390-64/bzero.S: Likewise.
9517 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
9518 * sysdeps/s390/bzero.c: New file.
9519 * sysdeps/s390/memset-z900.S: Add bzero entry points.
9520 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
9521 * sysdeps/s390/multiarch/ifunc-impl-list.c
9522 (__libc_ifunc_impl_list): Add bzero ifunc variants.
9523
712a254a
SL
95242018-12-18 Stefan Liebler <stli@linux.ibm.com>
9525
9526 * sysdeps/s390/ifunc-memset.h: New File.
9527 * sysdeps/s390/memset.S: Move to ...
9528 * sysdeps/s390/memset-z900.S ... here.
9529 Move implementations from memset-s390x.s to here.
9530 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
9531 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
9532 Remove memset variants.
9533 * sysdeps/s390/Makefile (sysdep_routines):
9534 Add memset variants.
9535 * sysdeps/s390/multiarch/ifunc-impl-list.c
9536 (__libc_ifunc_impl_list): Adjust ifunc variants for
9537 memset.
9538 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
9539 to ...
9540 * sysdeps/s390/memset.c: ... here.
9541 Adjust ifunc variants for memset.
9542
5f1743d1
SL
95432018-12-18 Stefan Liebler <stli@linux.ibm.com>
9544
9545 * sysdeps/s390/s390-64/memset.S: Move to ...
9546 * sysdeps/s390/memset.S: ... here.
9547 Adjust to be usable for 31/64bit.
9548 * sysdeps/s390/s390-32/memset.S: Delete File.
9549 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
9550 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
9551 Remove memset.
9552 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
9553 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
9554 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
9555 Adjust to be usable for 31/64bit.
9556 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
9557 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
9558 * sysdeps/s390/multiarch/memset.c: ... here.
9559 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
9560
e8023f26
SL
95612018-12-18 Stefan Liebler <stli@linux.ibm.com>
9562
9563 * sysdeps/s390/multiarch/ifunc-resolve.h
9564 (s390_libc_ifunc_init, s390_libc_ifunc,
9565 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
9566
b8686c0d
SL
95672018-12-18 Stefan Liebler <stli@linux.ibm.com>
9568
9569 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
9570 * sysdeps/s390/configure.ac: Add check for z10 support.
9571 * sysdeps/s390/configure: Regenerated.
9572
cd815050
L
95732018-12-18 H.J. Lu <hongjiu.lu@intel.com>
9574
9575 * sysdeps/i386/atomic-machine.h: Merged with ...
9576 * sysdeps/x86_64/atomic-machine.h: To ...
9577 * sysdeps/x86/atomic-machine.h: This. New file.
9578
053c52b1
FW
95792018-12-18 Florian Weimer <fweimer@redhat.com>
9580
9581 Rewrite locale/gen-translit.pl in Python.
9582 * locale/Makefile (generated): Add C-translit.h.
9583 (before-compile): Add $(objpfx)C-translit.h.
9584 (C-translit.h): Move to $(objpfx). Create target directory.
9585 Build using Python script.
9586 * locale/gen-translit.py: New file.
9587 * locale/gen-translit.pl: Remove file.
9588 * locale/C-translit.h.in: Change comment character to '#' for
9589 easier parsing without a C preprocessor.
9590 * locale/C-translit.h: Remove generated file.
9591 * manual/install.texi (Tools for Compilation): Do not mention
9592 C-translit.h.
9593 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
9594 Remove locale/C-translit.h.
9595 * scripts/update-copyrights: Likewise.
9596 * INSTALL: Regenerate.
9597
40e6c1ec
FW
95982018-12-18 Florian Weimer <fweimer@redhat.com>
9599
9600 [BZ #23995]
9601 * localedata/locales/bi_VU: Remove executable bit from file.
9602
6b5c8607 96032018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
6e15f3e2
AA
9604
9605 * include/time.h
9606 (__localtime64): Add.
9607 * manual/maint.texi: Document Y2038 symbol handling.
9608 * time/localtime.c
9609 (__localtime64): Add.
bfb79db4 9610 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
6e15f3e2 9611
df648905
JM
96122018-12-17 Joseph Myers <joseph@codesourcery.com>
9613
551e81d9
JM
9614 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
9615 Do not clobber r12.
9616
df648905
JM
9617 * scripts/glibcextract.py (compare_macro_consts): Take parameters
9618 to allow extra macros from first or second sources.
9619 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
9620 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
9621 (tests-special): Add $(objpfx)tst-mman-consts.out.
9622 ($(objpfx)tst-mman-consts.out): New makefile target.
9623
6bbfc5c0
MH
96242018-12-17 Mao Han <han_mao@c-sky.com>
9625
9626 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
9627 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
9628 without stat64 system call support.
9629 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
9630 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
9631 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
9632 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
9633 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
9634 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
9635 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
9636 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
9637 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
9638 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
9639 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
9640
ef202e53
PE
96412018-12-15 Paul Eggert <eggert@cs.ucla.edu>
9642
9643 regex: fix storage-exhaustion error
9644 [BZ #18040]
9645 * posix/regexec.c (get_subexp):
9646 Do not continue if storage is exhausted.
9647
077caf61
AG
96482018-12-15 Assaf Gordon <assafgordon@gmail.com>
9649
9650 regex: fix heap-use-after-free error
9651 [BZ #18040]
9652 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
9653 https://debbugs.gnu.org/32592
9654 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
9655 call extend_buffers which reallocates the re_string_t internal buffer.
9656 Local variable 'buf' was not updated in such case, resulting in
9657 use-after-free.
9658 * posix/regexec.c (get_subexp): Update 'buf' after call to
9659 get_subexp_sub.
9660
0c1719e6
FW
96612018-12-15 Florian Weimer <fweimer@redhat.com>
9662
9663 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
9664 (minimum_stride_size): Use it.
9665 (support_blob_repeat_allocate): Likewise.
9666
033a2c0a
JM
96672018-12-14 Joseph Myers <joseph@codesourcery.com>
9668
9669 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
9670 definition.
9671 (acosh): Likewise.
9672 (atanh): Likewise.
9673
e361dc04
FW
96742018-12-14 Florian Weimer <fweimer@redhat.com>
9675
9676 * manual/process.texi (Process Creation Concepts): Remove
9677 documentation of process (ID) lifetime. List more process
9678 creation functions. Reference Process Identification section.
9679 (Process Identification): Add information about process ID
9680 lifetime. Describe Linux thread/task IDs.
9681 * manual/signal.texi (Signaling Another Process): Mention that the
9682 signal is always sent to the process.
9683
bd51ff5e
GG
96842018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9685
9686 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
9687 and tst-ldbl-efgcvt.
9688 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
9689 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
9690 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
9691 (fcvt_tests, output_error, output_r_error, do_test): Use the
9692 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
9693 select the type of floating-point variables and arguments; to
9694 produce extra tests for double and conversion specifiers for
9695 printf; and to set the names of called functions.
9696 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
9697 in tst-efgcvt-template.c.
9698 * misc/tst-ldbl-efgcvt.c: Likewise.
9699
268bb71e
SL
97002018-12-14 Stefan Liebler <stli@linux.ibm.com>
9701
9702 * nss/Makefile (tst-nss-test3.out): New rule.
9703
db6df070
JM
97042018-12-13 Joseph Myers <joseph@codesourcery.com>
9705
9706 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
9707 clobber sp.
9708
ade8b817
CD
97092018-12-13 fanjinke <fanjinke@hygon.cn>
9710
9711 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
9712 "HygonGenuine".
9713
3d265911
AS
97142018-12-13 Andreas Schwab <schwab@suse.de>
9715
f21e8f8c 9716 [BZ #23861]
3d265911 9717 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
f21e8f8c
AS
9718 (__pthread_rwlock_rdlock_full): Update expected value for
9719 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
9720 * nptl/tst-rwlock-pwn.c: New file.
9721 * nptl/Makefile (tests): Add tst-rwlock-pwn.
3d265911 9722
bf8ae8c0
JM
97232018-12-12 Joseph Myers <joseph@codesourcery.com>
9724
9725 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
9726 definition.
9727
de099757
LS
97282018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
9729
9730 * benchtests/scripts/compare_bench.py (do_compare): write to
9731 stderr in casestat is not present.
9732 * benchtests/scripts/compare_bench.py (plot_graphs): write to
9733 stderr in case timings field is not present. Also string showing
9734 the output filename goes into the stderr.
9735
1990185f
LS
97362018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
9737
9738 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
9739 and ZeroDivisorError exceptions.
9740 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
9741 argument to loop through user provided statistics.
9742 * benchtests/scripts/compare_bench.py (main): Include the --stats
9743 argument.
9744
587426d4
LS
97452018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
9746
9747 * benchtests/scripts/compare_bench.py (compare_runs): Continue
9748 instead of return.
9749
46703efa
FW
97502018-12-12 Florian Weimer <fweimer@redhat.com>
9751
9752 * sysdeps/posix/timespec_get.c: Add missing “any later version”
9753 clause to copyright header.
9754
1d880d4a
TMQMF
97552018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9756
9757 [BZ #23614]
9758 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
9759 registers saved in the stack frame.
9760 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
9761 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
9762
1a502f52
GG
97632018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9764
9765 * include/bits/monetary-ldbl.h: New file.
9766 * include/bits/printf-ldbl.h: Likewise.
9767 * include/bits/stdio-ldbl.h: Likewise.
9768 * include/bits/stdlib-ldbl.h: Likewise.
9769 * include/bits/syslog-ldbl.h: Likewise.
9770 * include/bits/wchar-ldbl.h: Likewise.
9771
df682d1d
GG
97722018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9773
9774 * libio/libio.h: Remove redirection for _IO_vfprintf.
9775
c2c082c1
AS
97762018-12-11 Andreas Schwab <schwab@suse.de>
9777
9778 * Makerules: Remove all references to abilist-pattern.
9779 (update-all-abi): Simplify find expression.
9780
505b5b29
SN
97812018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
9782
9783 [BZ #23961]
9784 * math/auto-libm-test-in: Add new test case.
9785 * math/auto-libm-test-out-pow: Regenerated.
9786 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
9787
304c61a2
DD
97882018-12-10 DJ Delorie <dj@redhat.com>
9789
9790 [BZ #23948]
9791 * support/test-container.c: Move postclean step to before we
9792 change namespaces.
9793
a8110b72
JM
97942018-12-10 Joseph Myers <joseph@codesourcery.com>
9795
cb7be159
JM
9796 * scripts/gen-as-const.py (main): Handle --python option.
9797 * scripts/gen-py-const.awk: Remove.
9798 * Makerules (py-const-script): Use gen-as-const.py.
9799 ($(py-const)): Likewise.
9800 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
9801 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
9802 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
9803 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
9804 ~PTHREAD_MUTEX_NO_ELISION_NP.
9805 * manual/README.pretty-printers: Update reference to
9806 gen-py-const.awk.
9807
a8110b72
JM
9808 * scripts/glibcextract.py: New file.
9809 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
9810 or tempfile. Import glibcexctract.
9811 (compute_c_consts): Remove. Moved to glibcextract.py.
9812 (gen_test): Update reference to compute_c_consts.
9813 (main): Likewise.
9814 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
9815 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
9816 * sysdeps/unix/sysv/linux/Makefile
9817 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
9818 Redirect stderr as well as stdout.
9819
f9ba9eb8
RÁE
98202018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
9821
9822 [BZ #19767]
9823 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
b39d961c
TS
9824 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
9825 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
f9ba9eb8 9826 ALWAYS_USE_VSYSCALL.
b39d961c 9827 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
f9ba9eb8
RÁE
9828 ALWAYS_USE_VSYSCALL.
9829 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
9830 ALWAYS_USE_VSYSCALL.
9831
8d20a2f4
FW
98322018-12-10 Florian Weimer <fweimer@redhat.com>
9833
9834 [BZ #23972]
9835 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
9836 offset instead of count for clarity. Fix typo in comment.
9837 (__old_getdents64): Keep track of previous offset. Use it to call
9838 handle_overflow.
9839 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
9840 that d_off is never zero.
9841
80472e2f
AS
98422018-12-10 Andreas Schwab <schwab@suse.de>
9843
9844 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
9845 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
9846 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
9847 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
9848 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
9849
0afcb29d
JM
98502018-12-10 Joseph Myers <joseph@codesourcery.com>
9851
9852 * timezone/private.h: Update from tzcode 2018g.
9853 * timezone/tzfile.h: Likewise.
9854 * timezone/tzselect.ksh: Likewise.
9855 * timezone/zdump.c: Likewise.
9856 * timezone/zic.c: Likewise.
9857
b93f4052
PP
98582018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
9859
9860 [BZ #23490]
9861 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
9862 (do_test): Adjust buffer size and fix format.
9863
7c9a7c68
DD
98642018-12-07 DJ Delorie <dj@redhat.com>
9865
9866 [BZ #23907]
9867 * malloc/tst-tcfree3.c: New.
9868 * malloc/Makefile: Add it.
9869
37caec3a
L
98702018-12-07 H.J. Lu <hongjiu.lu@intel.com>
9871
9872 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
9873
10446f5d
GG
98742018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9875
9876 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
9877 used as a mask for the mode argument of __vfscanf_internal and
9878 __vfwscanf_internal.
9879 * stdio-common/vfscanf-internal.c
9880 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
9881 (__strtof128_internal): Define to __wcstof128_internal.
9882 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
9883 __strtof128_internal or __wcstof128_internal when the format of
9884 long double is the same as _Float128.
9885
45f33aac
ST
98862018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
9887
9888 * include/unistd.h (__confstr): Add prototype and hidden prototype.
9889 * posix/confstr.c (confstr): Rename to __confstr.
9890 (__confstr): Add hidden def.
9891 (confstr): Add weak alias for __confstr.
9892 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
9893 confstr.
9894
a092ca94
L
98952018-12-07 H.J. Lu <hongjiu.lu@intel.com>
9896
9897 * NEWS: Mention getcpu.
9898 * include/sched.h (__getcpu): New libc_hidden_proto.
9899 * manual/resource.texi: Document getcpu.
9900 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
9901 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
9902 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
9903 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
9904 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
9905 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
9906 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
9907 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
9908 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
9909 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
9910 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
9911 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
9912 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
9913 Likewise.
9914 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
9915 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
9916 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
9917 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
9918 Likewise.
9919 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
9920 Likewise.
9921 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
9922 Likewise.
9923 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
9924 Likewise.
9925 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
9926 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
9927 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
9928 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
9929 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
9930 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
9931 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
9932 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
9933 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
9934 * sysdeps/unix/sysv/linux/getcpu.c: New file.
9935 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
9936 Also check getcpu.
9937
7c857b6f
ST
99382018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
9939
9940 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
9941 functions.
9942 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
9943
3a3fb755
FW
99442018-12-07 Florian Weimer <fweimer@redhat.com>
9945
9946 [BZ #17405]
9947 * posix/Makefile (routines): Add spawn_faction_addfchdir.
9948 * posix/Versions (GLIBC_2.29): Export
9949 posix_spawn_file_actions_addfchdir_np.
9950 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
9951 * posix/spawn_faction_destroy.c
9952 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
9953 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
9954 and the field action.fchdir_action.
9955 * posix/tst-spawn-chdir.c (add_chdir): New function.
9956 (do_test): Add do_fchdir loop. Call add_chdir.
9957 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
9958 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
9959 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
9960 posix_spawn_file_actions_addfchdir_np.
9961 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
9962 Likewise.
9963 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
9964 Likewise.
9965 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
9966 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
9967 Likewise.
9968 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
9969 Likewise.
9970 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
9971 Likewise.
9972 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
9973 Likewise.
9974 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
9975 Likewise.
9976 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
9977 Likewise.
9978 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
9979 (GLIBC_2.29): Likewise.
9980 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
9981 (GLIBC_2.29): Likewise.
9982 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
9983 (GLIBC_2.29): Likewise.
9984 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
9985 (GLIBC_2.29): Likewise.
9986 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
9987 Likewise.
9988 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
9989 (GLIBC_2.29): Likewise.
9990 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
9991 (GLIBC_2.29): Likewise.
9992 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
9993 (GLIBC_2.29): Likewise.
9994 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
9995 (GLIBC_2.29): Likewise.
9996 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
9997 Likewise.
9998 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
9999 Likewise.
10000 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
10001 Likewise.
10002 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
10003 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
10004 Likewise.
10005 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
10006 Likewise.
10007 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
10008 Likewise.
10009 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
10010 Likewise.
10011
c37cd439
JM
100122018-12-06 Joseph Myers <joseph@codesourcery.com>
10013
10014 * manual/texinfo.tex: Update to version 2018-09-21.20 with
10015 trailing whitespace removed.
10016 * scripts/config.guess: Update to version 2018-11-28.
10017 * scripts/config.sub: Update to version 2018-11-28.
10018 * scripts/install-sh: Update to version 2018-03-11.20.
10019 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
10020 * scripts/move-if-change: Update to version 2018-03-07 03:47.
10021
899478c2
FW
100222018-12-07 Florian Weimer <fweimer@redhat.com>
10023
10024 [BZ #23927]
10025 CVE-2018-19591
10026 * inet/tst-if_index-long.c: New file.
10027 * inet/Makefile (tests): Add tst-if_index-long.
10028
f255336a
FW
100292018-12-07 Florian Weimer <fweimer@redhat.com>
10030
10031 * support/check.h (support_record_failure_is_failed): Declare.
10032 * support/descriptors.h: New file.
10033 * support/support_descriptors.c: Likewise.
10034 * support/tst-support_descriptors.c: Likewise.
10035 * support/support_record_failure.c
10036 (support_record_failure_is_failed): New function.
10037 * support/Makefile (libsupport-routines): Add support_descriptors.
10038 (tests): Add tst-support_descriptors.
10039
35caceb1
ZW
100402018-12-05 Zack Weinberg <zackw@panix.com>
10041 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10042
10043 * stdio-common/vfprintf-internal.c
10044 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
10045 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
10046 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
10047 and __no_long_double.
10048 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
10049 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
10050 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
10051 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
10052 and __nldbl_*syslog* functions.
10053 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
10054 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
10055 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
10056 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
10057 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
10058 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
10059 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
10060 (__nldbl_vwprintf, __nldbl_wprintf):
10061 Directly call the appropriate __v*printf_internal routine, passing
10062 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
10063 variable names.
10064 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
10065 (__nldbl___printf_chk, __nldbl___snprintf_chk)
10066 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
10067 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
10068 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
10069 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
10070 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
10071 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
10072 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
10073 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
10074 Likewise, and also pass PRINTF_FORTIFY when appropriate.
10075 (__nldbl_syslog, __nldbl_vsyslog):
10076 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
10077 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
10078 appropriate.
10079 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
10080 appropriate.
10081
4e2f43f8
ZW
100822018-12-05 Zack Weinberg <zackw@panix.com>
10083 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10084
10085 [BZ #11319]
10086 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
10087 Moved here from debug/vsprintf_chk.c.
10088 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
10089 and completion logic for the strfile to match exactly what
10090 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
10091 _IO_str_init_static_internal instead of maxlen-1.
10092 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
10093 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
10094 __vsprintf_internal.
10095
10096 * debug/vsprintf_chk.c (__vsprintf_chk)
10097 * debug/sprintf_chk.c (__sprintf_chk):
10098 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
10099 'flags' argument is positive, and slen as maxlen. No need to lock
10100 the FILE and/or construct a temporary FILE. Minimize and normalize
10101 header inclusions and variable names. Do not libc_hidden_def anything.
10102
10103 * debug/asprintf_chk.c (__asprintf_chk)
10104 * debug/dprintf_chk.c (__dprintf_chk)
10105 * debug/fprintf_chk.c (__fprintf_chk)
10106 * debug/fwprintf_chk.c (__fwprintf_chk)
10107 * debug/printf_chk.c (__printf_chk)
10108 * debug/snprintf_chk.c (__snprintf_chk)
10109 * debug/swprintf_chk.c (__swprintf_chk)
10110 * debug/vasprintf_chk.c (__vasprintf_chk)
10111 * debug/vdprintf_chk.c (__vdprintf_chk)
10112 * debug/vfprintf_chk.c (__vfprintf_chk)
10113 * debug/vfwprintf_chk.c (__vfwprintf_chk)
10114 * debug/vprintf_chk.c (__vprintf_chk)
10115 * debug/vsnprintf_chk.c (__vsnprintf_chk)
10116 * debug/vswprintf_chk.c (__vswprintf_chk)
10117 * debug/vwprintf_chk.c (__vwprintf_chk)
10118 * debug/wprintf_chk.c (__wprintf_chk):
10119 Directly call the corresponding vxxprintf_internal function, passing
10120 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
10121 the FILE and/or construct a temporary FILE. Minimize and normalize
10122 header inclusions and variable names. Do not libc_hidden_def anything.
10123
10124 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
10125 __obstack_vprintf_internal.
10126 (__obstack_vprintf_chk): Convert into a wrapper that calls
10127 __obstack_vprintf_internal (these two functions already had the
10128 same code) and move to new file...
10129 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
10130 file.
10131 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
10132 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
10133 * debug/Makefile (routines): Add vobprintf_chk.
10134
10135 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
10136 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
10137 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
10138 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
10139 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
10140 (__nldbl___obstack_vfprintf_chk):
10141 Directly call the corresponding vxxprintf_internal function,
10142 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
10143 duplicate comparison of slen with 0 or maxlen from the corresponding
10144 non-__nldbl function.
10145
10146 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
10147 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
10148 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
10149 Remove libc_hidden_proto.
10150
10151 * stdio-common/vfprintf-internal.c
10152 (__vfprintf_internal, __vfwprintf_internal):
10153 Do not check _IO_FLAGS2_FORTIFY.
10154 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
10155 * libio/libioP.h: Update prototype of __vsprintf_internal and add
10156 a comment explaining why it has the maxlen argument.
10157 (_IO_acquire_lock_clear_flags2_fct): Remove.
10158 (_IO_acquire_lock_clear_flags2): Remove.
10159 (_IO_release_lock): Remove conditional statement which will
10160 now never execute.
10161 (_IO_acquire_lock): Remove variable which is now unused.
10162 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
10163 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
10164
10165 * stdio-common/Makefile (tests): Add tst-bz11319 and
10166 tst-bz11319-fortify2.
10167 (CFLAGS-tst-bz11319-fortify2.c): New macro.
10168 * stdio-common/tst-bz11319-fortify2.c: New file.
10169 * stdio-common/tst-bz11319.c: Likewise.
10170
124fc732
ZW
101712018-12-05 Zack Weinberg <zackw@panix.com>
10172 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10173
10174 * misc/syslog.c: Include libioP.h, not iolibio.h.
10175 (__vsyslog_internal): New function with the former body of
10176 __vsyslog_chk; takes mode_flags argument same as
10177 __v*printf_internal. Call __vfprintf_internal directly.
10178
10179 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
10180 Remove libc_hidden_def.
10181 (__syslog, __syslog_chk): Use __vsyslog_internal.
10182 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
10183
10184 * include/sys/syslog.h: Add multiple inclusion guard.
10185 Add prototype for __vsyslog_internal.
10186 Remove declaration and libc_hidden_proto for __vsyslog_chk.
10187
10188 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
10189 Use __vsyslog_internal.
10190
698fb75b
ZW
101912018-12-05 Zack Weinberg <zackw@panix.com>
10192 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10193
10194 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
10195 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
10196 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
10197 New functions.
10198 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
10199 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
10200
10201 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
10202 Include wctype.h here if COMPILE_WPRINTF is defined.
10203 Define __vfprintf_internal or __vfwprintf_internal, depending
10204 on COMPILE_WPRINTF.
10205 Temporarily, on entry to this function, update mode_flags
10206 according to the environmental settings corresponding to
10207 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
10208 Throughout, check mode_flags instead of __ldbl_is_dbl and
10209 _IO_FLAGS2_FORTIFY on the destination FILE.
10210 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
10211 Include vfprintf-internal.c. Don't include wctype.h.
10212 * stdio-common/vfprintf.c: New file. Just define __vfprintf
10213 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
10214 and vfprintf.
10215 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
10216 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
10217 and vfwprintf.
10218 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
10219
10220 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
10221 and add mode_flags argument; use __vfprintf_internal.
10222 (__vdprintf): New function. Alias vdprintf to this.
10223 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
10224 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
10225 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
10226 (__obstack_printf): Use __obstack_printf_internal.
10227 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
10228 public aliases __vsnprintf and vsnprintf.
10229 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
10230 called internally.
10231 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
10232 public aliases _IO_vsprintf and vsprintf.
10233 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
10234 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
10235 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
10236 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
10237 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
10238
10239 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
10240 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
10241 * stdio-common/fprintf.c, stdio-common/fxprintf.c
10242 * stdio-common/printf.c: Use __vfprintf_internal.
10243
10244 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
10245 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
10246 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
10247
10248 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
10249 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
10250 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
10251 __vfwprintf_internal.
10252
10253 * libio/libio.h: Remove libc_hidden_proto and declaration for
10254 _IO_vfprintf.
10255 Remove declaration of _IO_vfwprintf.
10256 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
10257 _IO_vsprintf.
10258 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
10259 _IO_obstack_printf.
10260 * include/stdio.h: Add prototype for __vasprintf.
10261 (__vsnprintf): Remove declaration, because there are no more
10262 internal calls.
10263 * include/wchar.h (__vfwprintf, __vswprintf): Remove
10264 declaration, because there are no more internal calls.
10265
10266 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
10267 __vsnprintf_internal, instead of _IO_vsnprintf.
10268 * argp/argp-help.c (__argp_error, __argp_failure): Use
10269 __vasprintf_internal, instead of _IO_vasprintf.
10270 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
10271 redefine, because there are no more internal calls.
10272
d91798b3
ZW
102732018-12-05 Zack Weinberg <zackw@panix.com>
10274 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10275
10276 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
10277 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
10278 Include libio/strfile.h instead of libioP.h.
10279 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
10280 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
10281 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
10282 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
10283 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
10284 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
10285 necessary. Do not set __no_long_double. Normalize variable names.
10286 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
10287 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
10288 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
10289 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
10290 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
10291 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
10292 Call __vfscanf_internal / __vfwscanf_internal directly, passing
10293 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
10294 Do not set __no_long_double. Normalize variable names.
10295
b87eb3f8
ZW
102962018-12-05 Zack Weinberg <zackw@panix.com>
10297 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10298
10299 * stdio-common/isoc99_scanf.c
10300 * stdio-common/isoc99_fscanf.c
10301 * stdio-common/isoc99_sscanf.c
10302 * stdio-common/isoc99_vscanf.c
10303 * stdio-common/isoc99_vfscanf.c
10304 * stdio-common/isoc99_vsscanf.c
10305 * wcsmbs/isoc99_wscanf.c
10306 * wcsmbs/isoc99_fwscanf.c
10307 * wcsmbs/isoc99_swscanf.c
10308 * wcsmbs/isoc99_vwscanf.c
10309 * wcsmbs/isoc99_vfwscanf.c
10310 * wcsmbs/isoc99_vswscanf.c:
10311 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
10312 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
10313 No need to lock and unlock the FILE passed to that function.
10314
10315 * stdio-common/vfscanf-internal.c
10316 (__vfscanf_internal, __vfwscanf_internal):
10317 Don't look at _IO_FLAGS2_SCANF_STD.
10318 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
10319 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
10320 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
10321
349718d4
ZW
103222018-12-05 Zack Weinberg <zackw@panix.com>
10323 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10324
10325 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
10326 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
10327 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
10328 * libio/strfile.h: Add multiple inclusion guard.
10329 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
10330
10331 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
10332 consistency with the other version of this file.
10333 (ldbl_compat_symbol): New macro.
10334 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
10335 New macro.
10336
10337 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
10338 Define __vfscanf_internal or __vfwscanf_internal, depending on
10339 COMPILE_WSCANF; don't define any other public symbols.
10340 Remove errval and code to set errp.
10341 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
10342 as the mode_flags argument.
10343 (encode_error, conv_error, input_error): Don't set errval.
10344 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
10345 Include vfscanf-internal.c.
10346 * stdio-common/vfscanf.c: New file defining the public entry
10347 point vfscanf, which calls __vfscanf_internal.
10348 * stdio-common/vfwscanf.c: New file defining the public entry
10349 point vfwscanf, which calls __vfwscanf_internal.
10350
10351 * stdio-common/iovfscanf.c: New file.
10352 * stdio-common/iovfwscanf.c: Likewise.
10353
10354 * stdio-common/Makefile (routines): Add vfscanf-internal,
10355 vfwscanf-internal, iovfscanf, iovfwscanf.
10356 * stdio-common/Versions: Mention GLIBC_2.29, so that
10357 it can be used in SHLIB_COMPAT expressions.
10358 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
10359 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
10360 Call __vfscanf_internal, instead of _IO_vfscanf.
10361 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
10362 _IO_vfscanf.
10363 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
10364 _IO_vfwscanf.
10365
10366 * libio/iovsscanf.c: Clean up includes, when possible. Use
10367 _IO_strfile_read or _IO_strfile_readw, when needed. Call
10368 __vfscanf_internal or __vfwscanf_internal directly.
10369 * libio/iovswscanf.c: Likewise.
10370 * libio/swscanf.c: Likewise.
10371 * libio/vscanf.c: Likewise.
10372 * libio/vwscanf.c: Likewise.
10373 * libio/wscanf.c: Likewise.
10374 * stdio-common/isoc99_fscanf.c: Likewise.
10375 * stdio-common/isoc99_scanf.c: Likewise.
10376 * stdio-common/isoc99_sscanf.c: Likewise.
10377 * stdio-common/isoc99_vfscanf.c: Likewise.
10378 * stdio-common/isoc99_vscanf.c: Likewise.
10379 * stdio-common/isoc99_vsscanf.c: Likewise.
10380 * stdio-common/scanf.c: Likewise.
10381 * stdio-common/sscanf.c: Likewise.
10382 * wcsmbs/isoc99_fwscanf.c: Likewise.
10383 * wcsmbs/isoc99_swscanf.c: Likewise.
10384 * wcsmbs/isoc99_vfwscanf.c: Likewise.
10385 * wcsmbs/isoc99_vswscanf.c: Likewise.
10386 * wcsmbs/isoc99_vwscanf.c: Likewise.
10387 * wcsmbs/isoc99_wscanf.c: Likewise.
10388
6b5c8607 103892018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
72b8692d
AA
10390
10391 * include/time.h
10392 (__tz_compute): Replace time_t with __time64_t.
10393 (__tz_convert): Replace time_t* with __time64_t.
10394 (__offtime): Replace time_t* with __time64_t.
10395 * time/gmtime.c
10396 (__gmtime_r): Adjust call to __tz_convert.
10397 (gmtime): Likewise.
10398 * time/localtime.c
10399 (__localtime_r): Likewise.
10400 (localtime): Likewise.
10401 * time/offtime.c: Replace time_t with __time64_t.
10402 * time/tzset.c: Likewise.
10403
bd598da9
JM
104042018-12-04 Joseph Myers <joseph@codesourcery.com>
10405
10406 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
10407 dynamic linker unless [$(run-built-tests) = yes].
10408
b2e93de0
DD
104092018-12-03 DJ Delorie <dj@delorie.com>
10410
10411 * support/test-container.c (check_for_unshare_hints): New.
10412 (main): Call it if unshare fails. Add support for "su" scriptlet
10413 command.
10414
477a02f6
JM
104152018-12-03 Joseph Myers <joseph@codesourcery.com>
10416
10417 * scripts/gen-as-const.py (compute_c_consts): Take an argument
10418 'START' to indicate that start text should be output.
10419 (gen_test): Likewise.
10420 (main): Generate 'START' for first symbol or '--' line, or at end
10421 of input if not previously generated.
10422
6af956e5
RÁE
104232018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
10424
10425 [BZ #19767]
10426 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
10427 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
10428 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
10429 ALWAYS_USE_VSYSCALL.
10430
f5ec0ea9
AZ
104312018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10432
10433 [BZ #23913]
10434 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
10435 new_argv by one.
10436
8cebd4ff
CD
104372018-12-03 Carlos O'Donell <carlos@redhat.com>
10438
10439 [BZ #23923]
10440 * locale/programs/localedef.c: Declare boolean hard_links default true.
10441 (options): Add --no-hard-links option.
10442 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
10443 * locale/programs/localedef.h: Declare prototype for hard_links.
10444 * locale/programs/locfile.c (write_locale_data): Don't use hard
10445 links if hard_links is false.
10446
c22e4c2a
L
104472018-12-03 H.J. Lu <hongjiu.lu@intel.com>
10448
10449 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
10450 cpu_features_basic.
10451 (__cache_sysconf): Likewise.
10452 (init_cacheinfo): Likewise.
10453 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
10454 populate COMMON_CPUID_INDEX_80000007 and
10455 COMMON_CPUID_INDEX_80000008.
10456 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
10457 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
10458 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
10459 (init_cpu_features): Use _Static_assert on
10460 index_arch_Fast_Unaligned_Load.
10461 __get_cpuid_registers and __get_arch_feature. Updated for
10462 cpu_features_basic. Set stepping in cpu_features.
10463 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
10464 (FEATURE_INDEX_2): New.
10465 (FEATURE_INDEX_MAX): Changed to enum.
10466 (COMMON_CPUID_INDEX_D_ECX_1): New.
10467 (COMMON_CPUID_INDEX_80000007): Likewise.
10468 (COMMON_CPUID_INDEX_80000008): Likewise.
10469 (cpuid_registers): Likewise.
10470 (cpu_features_basic): Likewise.
10471 (CPU_FEATURE_USABLE): Likewise.
10472 (bit_arch_XXX_Usable): Likewise.
10473 (cpu_features): Use cpuid_registers and cpu_features_basic.
10474 (bit_arch_XXX): Reweritten.
10475 (bit_cpu_XXX): Likewise.
10476 (index_cpu_XXX): Likewise.
10477 (reg_XXX): Likewise.
10478 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
10479 <support/check.h>.
10480 (CHECK_CPU_FEATURE): New.
10481 (CHECK_CPU_FEATURE_USABLE): Likewise.
10482 (cpu_kinds): Likewise.
10483 (do_test): Print vendor, family, model and stepping. Check
10484 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
10485 (TEST_FUNCTION): Removed.
10486 Include <support/test-driver.c> instead of
10487 "../../test-skeleton.c".
10488 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
10489 Check POPCNT instead of POPCOUNT.
10490 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
10491
7b36d26b
ST
104922018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
10493
10494 * scripts/gen-as-const.py (main): Avoid emitting empty line when
10495 there is no element in `consts'.
10496
02cd5c1a
FW
104972018-12-01 Florian Weimer <fweimer@redhat.com>
10498
10499 * support/support_capture_subprocess.c
10500 (support_capture_subprocess): Check that pipe descriptors have
10501 expected values. Close original pipe descriptors in subprocess.
10502
fc493bc9
ST
105032018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
10504
10505 [BZ #23032]
10506 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
10507 attr with __pthread_default_barrierattr.
10508 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
10509 attr with __pthread_default_condattr.
10510 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
10511 attr with __pthread_default_mutexattr.
10512 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
10513 attr with __pthread_default_rwlockattr.
10514
6310e6be
KW
105152018-12-01 Kemi Wang <kemi.wang@intel.com>
10516
10517 * manual/tunables.texi (POSIX Thread Tunables): New node.
10518 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
10519 * nptl/nptl-init.c: Include pthread_mutex_conf.h
10520 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
10521 __pthread_tunables_init.
10522 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
10523 (max_adaptive_count): Define.
10524 * nptl/pthread_mutex_conf.c: New file.
10525 * nptl/pthread_mutex_conf.h: New file.
10526 * sysdeps/generic/adaptive_spin_count.h: New file.
10527 * sysdeps/nptl/dl-tunables.list: New file.
10528 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
10529 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
10530 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
10531 Likewise.
10532
8e67b39e
PP
105332018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
10534
10535 [BZ #20544]
10536 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
10537 * stdlib/on_exit.c (__on_exit): Likewise.
10538 * stdlib/Makefile (tests): Add tst-bz20544.
10539 * stdlib/tst-bz20544.c: New test.
10540
15b8d67e
RÁE
105412018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
10542
10543 [BZ #19767]
10544 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
10545 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
10546 New.
10547
5e63c240
FW
105482018-11-30 Florian Weimer <fweimer@redhat.com>
10549
10550 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
10551 Extend error logging.
10552 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
10553 symbol.
10554
71058602 105552018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14d0e87d 10556
5fb7fc96
AZ
10557 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
10558 __sigismember instead of sigismember.
10559 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
10560 cancel_handler): New definitions.
10561 (do_system): Use posix_spawn instead of fork and execl and remove
10562 reentracy code.
10563 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
10564 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
10565 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
10566 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
10567 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
10568 * sysdeps/unix/sysv/linux/system.c: Likewise.
10569
14d0e87d
AZ
10570 [BZ #22834]
10571 [BZ #17490]
10572 * NEWS: Add new semantic for atfork with popen and system.
10573 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
10574 fork and execl.
10575
e5d262ef
TMQMF
105762018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10577
10578 [BZ #23690]
10579 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
10580 modification order when accessing reloc_result->addr.
10581 * include/link.h (reloc_result): Add field init.
10582 * nptl/Makefile (tests): Add tst-audit-threads.
10583 (modules-names): Add tst-audit-threads-mod1 and
10584 tst-audit-threads-mod2.
10585 Add rules to build tst-audit-threads.
10586 * nptl/tst-audit-threads-mod1.c: New file.
10587 * nptl/tst-audit-threads-mod2.c: Likewise.
10588 * nptl/tst-audit-threads.c: Likewise.
10589 * nptl/tst-audit-threads.h: Likewise.
10590
7e1d4240
JM
105912018-11-30 Joseph Myers <joseph@codesourcery.com>
10592
10593 * scripts/gen-as-const.py: New file.
10594 * scripts/gen-as-const.awk: Remove.
10595 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
10596 gen-as-const.py.
10597 ($(objpfx)test-as-const-%.c): Likewise.
10598
ce7387cc
L
105992018-11-29 H.J. Lu <hongjiu.lu@intel.com>
10600
10601 * elf/dl-exception.c: Include <_itoa.h>.
10602
c6a5bdc1
ST
106032018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
10604
10605 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
10606 returned by __f_setlk.
10607
a5275ba5
L
106082018-11-29 H.J. Lu <hongjiu.lu@intel.com>
10609 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10610
10611 * elf/Makefile (tests-internal): Add tst-create_format1.
10612 * elf/dl-exception.c (_dl_exception_create_format): Support
10613 %x, %lx and %zx.
10614 * elf/tst-create_format1.c: New file.
10615
3a67e81d
CAC
106162018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
10617
10618 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
10619 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
10620 gnulib.)
10621 * argp/argp-help.c (__argp_failure): Likewise.
10622
4975f0c3
MH
106232018-11-29 Mao Han <han_mao@c-sky.com>
10624
10625 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
10626 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
10627 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
10628 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
10629 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
10630 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
10631 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
10632 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
10633 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
10634 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
10635 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
10636 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
10637 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
10638 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
10639 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
10640 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
10641 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
10642 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
10643 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
10644 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
10645 (R_CKCORE_TLS_TPOFF32): New defines.
10646
250102c8
FW
106472018-11-29 Florian Weimer <fweimer@redhat.com>
10648
10649 * posix/Makefile (before-compile): Remove testcases.h and
10650 ptestcases.h.
10651 (generated): Add testcases.h and ptestcases.h.
10652 (testcases.h, ptestcases.h): Move to $(objpfx).
10653 (runtests.o): Add dependency on testcases.h.
10654 (runptests.o): Add dependency on ptestcases.h.
10655 * posix/testcases.h, posix/ptestcases.h: Remove files.
10656 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
10657 not touch posix/testcases.h and posix/ptestcases.h.
10658
96cd0558
FW
106592018-11-28 Florian Weimer <fweimer@redhat.com>
10660
10661 support: Add signal support to support_capture_subprocess_check.
10662 * support/capture_subprocess.h (support_capture_subprocess_check):
10663 Adjust comment and rename parameter.
10664 * support/support_capture_subprocess_check.c
10665 (print_actual_status): New function.
10666 (support_capture_subprocess_check): Support negative
10667 status_or_signal. Call print_actual_status.
10668 * support/tst-support_capture_subprocess.c (do_test): Call
10669 support_capture_subprocess_check.
10670 * libio/tst-vtables-common.c (termination_status)
10671 (init_termination_status): Remove.
10672 (check_for_termination): Adjust support_capture_subprocess_check
10673 call.
10674 (do_test): Remove call to init_termination_status.
10675
530504e3
JM
106762018-11-28 Joseph Myers <joseph@codesourcery.com>
10677
10678 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
10679 source directory instead of a copy.
10680 (CommandList.create_copy_dir): Remove.
10681
9a0b6970
SL
106822018-11-28 Stefan Liebler <stli@linux.ibm.com>
10683
10684 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
10685
47d8d9a2
FW
106862018-11-28 Florian Weimer <fweimer@redhat.com>
10687
10688 * support/support.h (support_quote_string): Do not use str
10689 parameter name.
10690
b473b7d8
JM
106912018-11-27 Joseph Myers <joseph@codesourcery.com>
10692
10693 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
10694 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
10695
c74a91de
FW
106962018-11-27 Florian Weimer <fweimer@redhat.com>
10697
10698 * support/support.h (support_quote_string): Declare.
10699 * support/support_quote_string.c: New file.
10700 * support/tst-support_quote_string.c: Likewise.
10701 * support/Makefile (libsupport-routines): Add
10702 support_quote_string.
10703 (tests): Add tst-support_quote_string.
10704
d527c860
FW
107052018-11-27 Florian Weimer <fweimer@redhat.com>
10706
10707 [BZ #23927]
10708 CVE-2018-19591
10709 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
10710 descriptor leak in case of ENODEV error.
10711
979cfed0
RÁE
107122018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
10713
10714 [BZ #19767]
10715 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
10716 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
10717 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
10718
ce035c6e
CD
107192018-11-26 Carlos O'Donell <carlos@redhat.com>
10720
10721 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
10722 Error for unknown lines.
10723
2bd0bfcc
JM
107242018-11-26 Joseph Myers <joseph@codesourcery.com>
10725
10726 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
10727 Touch additional files.
10728
affec03b
FW
107292018-11-26 Florian Weimer <fweimer@redhat.com>
10730
10731 [BZ #23907]
10732 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
10733 double-frees.
10734
8ae74ead
RÁE
107352018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
10736
10737 [BZ #19767]
10738 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
10739 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
10740 SHARED. Include sysdep.h.
10741 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
10742 ALWAYS_USE_VSYSCALL.
10743 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
10744 ALWAYS_USE_VSYSCALL.
10745
1e8bdc3a
RÁE
107462018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
10747
10748 [BZ #19767]
10749 * nptl/Makefile (tests-static): Add tst-cond11-static.
10750 (tests): Likewise.
10751 * nptl/tst-cond11-static.c: New File.
10752 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
10753 tst-affinity-static.
10754 (tests): Likewise.
10755 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
10756 instead of SHARED.
10757 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
10758 (USE_VSYSCALL): Likewise.
10759 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
10760 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
10761 instead of SHARED.
10762 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
10763 SHARED.
10764 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
10765 New.
10766
1283c478
JM
107672018-11-23 Joseph Myers <joseph@codesourcery.com>
10768
10769 [BZ #23915]
10770 * sysdeps/unix/sysv/linux/arm/kernel-features.h
10771 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
10772 Undefine.
10773
c089fd80
L
107742018-11-23 H.J. Lu <hongjiu.lu@intel.com>
10775
10776 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
10777 (tst-cet-legacy-1a-ARGS): New.
10778 ($(objpfx)tst-cet-legacy-1a): New target.
10779 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
10780
cc6c89fa
JM
107812018-11-22 Joseph Myers <joseph@codesourcery.com>
10782
95edd05c
JM
10783 * conform/conformtest.py (CompileSubTest.__init__): Set
10784 self.run_early to False.
10785 (ExecuteSubTest.__init__): Likewise.
10786 (HeaderTests.run): Try running all non-optional, non-XFAILed
10787 compilation tests in a single execution of the compiler.
10788
cc6c89fa
JM
10789 * conform/conformtest.py (CompileSubTest): New class.
10790 (ExecuteSubTest): Likewise.
10791 (ElementTest.run): Rename to gen_subtests. Append tests to
10792 self.subtests instead of running them.
10793 (ConstantTest.run): Likewise.
10794 (SymbolTest.run): Likewise.
10795 (TypeTest.run): Likewise.
10796 (TagTest.run): Likewise.
10797 (FunctionTest.run): Likewise.
10798 (VariableTest.run): Likewise.
10799 (MacroFunctionTest.run): Likewise.
10800 (MacroStrTest.run): Likewise.
10801 (HeaderTests.handle_test_line): Generate subtests for tests.
10802 (HeaderTests.run): Run subtests for tests.
10803
a502c529
SN
108042018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
10805
10806 * math/Versions (GLIBC_2.29): Add pow.
10807 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
10808 symbol.
10809 * math/w_pow.c: New file.
10810 * sysdeps/i386/fpu/w_pow.c: New file.
10811 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
10812 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
10813 and add necessary aliases.
10814 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
10815 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
10816 * sysdeps/mach/hurd/i386/libm.abilist: Update.
10817 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
10818 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
10819 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
10820 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
10821 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
10822 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
10823 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
10824 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
10825 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
10826 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
10827 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
10828 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
10829 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
10830 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
10831 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
10832 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
10833 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
10834 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
10835 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
10836 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
10837 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
10838 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
10839 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
10840 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
10841 __pow.
10842 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
10843 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
10844 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
10845
718d6542
SN
108462018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
10847
10848 * math/Versions (GLIBC_2.29): Add log2.
10849 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
10850 symbol.
10851 * math/w_log2.c: New file.
10852 * sysdeps/i386/fpu/w_log2.c: New file.
10853 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
10854 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
10855 and add necessary aliases.
10856 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
10857 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
10858 * sysdeps/mach/hurd/i386/libm.abilist: Update.
10859 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
10860 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
10861 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
10862 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
10863 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
10864 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
10865 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
10866 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
10867 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
10868 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
10869 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
10870 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
10871 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
10872 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
10873 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
10874 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
10875 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
10876 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
10877 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
10878 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
10879 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
10880 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
10881 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
10882
f29b7c49
SN
108832018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
10884
10885 * math/Versions (GLIBC_2.29): Add log.
10886 * math/w_log_compat.c (__log_compat): Change to versioned compat
10887 symbol.
10888 * math/w_log.c: New file.
10889 * sysdeps/i386/fpu/w_log.c: New file.
10890 * sysdeps/ia64/fpu/e_log.S: Update.
10891 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
10892 and add necessary aliases.
10893 * sysdeps/ieee754/dbl-64/w_log.c: New file.
10894 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
10895 * sysdeps/mach/hurd/i386/libm.abilist: Update.
10896 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
10897 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
10898 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
10899 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
10900 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
10901 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
10902 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
10903 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
10904 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
10905 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
10906 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
10907 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
10908 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
10909 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
10910 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
10911 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
10912 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
10913 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
10914 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
10915 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
10916 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
10917 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
10918 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
10919 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
10920 __log.
10921 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
10922 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
10923 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
10924 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
10925
c20a1056
SN
109262018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
10927
10928 * math/Versions (GLIBC_2.29): Add exp and exp2.
10929 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
10930 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
10931 * math/w_exp_compat.c (__exp_compat): Likewise.
10932 * math/w_exp.c: New file.
10933 * math/w_exp2.c: New file.
10934 * sysdeps/i386/fpu/w_exp.c: New file.
10935 * sysdeps/i386/fpu/w_exp2.c: New file.
10936 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
10937 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
10938 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
10939 and add necessary aliases.
10940 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
10941 and add necessary aliases.
10942 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
10943 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
10944 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
10945 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
10946 * sysdeps/mach/hurd/i386/libm.abilist: Update.
10947 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
10948 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
10949 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
10950 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
10951 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
10952 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
10953 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
10954 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
10955 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
10956 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
10957 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
10958 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
10959 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
10960 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
10961 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
10962 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
10963 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
10964 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
10965 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
10966 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
10967 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
10968 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
10969 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
10970 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
10971 (__ieee754_exp): Rename to __exp.
10972 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
10973 (__ieee754_exp): Rename to __exp.
10974 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
10975 (__ieee754_exp): Rename to __exp.
10976 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
10977 __exp.
10978 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
10979
bcdaad21
DD
109802018-11-20 DJ Delorie <dj@redhat.com>
10981
10982 * malloc/malloc.c (tcache_entry): Add key field.
10983 (tcache_put): Set it.
10984 (tcache_get): Likewise.
10985 (_int_free): Check for double free in tcache.
10986 * malloc/tst-tcfree1.c: New.
10987 * malloc/tst-tcfree2.c: New.
10988 * malloc/Makefile: Run the new tests.
10989 * manual/probes.texi: Document memory_tcache_double_free probe.
10990
10991 * dlfcn/dlerror.c (check_free): Prevent double frees.
10992
5770c0ad
WD
109932018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
10994
10995 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
10996
9a62a939
JM
109972018-11-20 Joseph Myers <joseph@codesourcery.com>
10998
10999 * conform/conformtest.py (ElementTest.run): Use unique identifiers
11000 in tests. Use names for format arguments.
11001 (ConstantTest.run): Likewise.
11002 (SymbolTest.run): Likewise.
11003 (TypeTest.run): Likewise.
11004 (TagTest.run): Likewise.
11005 (FunctionTest.run): Likewise.
11006 (VariableTest.run): Likewise.
11007 (MacroFunctionTest.run): Likewise.
11008 (MacroStrTest.run): Likewise.
11009 (HeaderTests.__init__): Set self.num_tests.
11010 (HeaderTests.handle_test_line): Set test.num. Increment
11011 self.num_tests.
11012
b15b1a95
ST
110132018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
11014
11015 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
11016 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
11017 SEEK_SET.
11018
0c7f97ae
MH
110192018-11-19 Mao Han <han_mao@c-sky.com>
11020
11021 * scripts/config.guess: Update to version 2018-08-29.
11022 * scripts/config.sub: Update to version 2018-08-29.
11023
35e3fbc4
FW
110242018-11-19 Florian Weimer <fweimer@redhat.com>
11025
11026 support: Print timestamps in timeout handler.
11027 * support/support_test_main.c (print_timestamp): New function.
11028 (signal_handler): Use it to print the termination time and the
11029 time of the last write to standard output.
11030
c75772e3
ZW
110312018-11-16 Zack Weinberg <zackw@panix.com>
11032 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11033
11034 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
11035 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
11036 argument.
11037 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
11038 and add flags argument. Check flags instead of __ldbl_is_dbl when
11039 deciding whether to set is_long_double.
11040 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
11041 passing zero for flags argument.
11042 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
11043
11044 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
11045 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
11046 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
11047 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
11048 variable names. Remove libc_hidden_def/libc_hidden_proto from
11049 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
11050 longer called from within the library.
11051 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
11052 for __nldbl___vstrfmon_l, declare it explicitly.
11053
11054 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
11055
346ef23f
ST
110562018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
11057
11058 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
11059 macros
11060 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
11061 F_SETLK64, F_SETLKW64, respectively.
11062 * sysdeps/mach/hurd/f_setlk.c: New file.
11063 * sysdeps/mach/hurd/f_setlk.h: New file.
11064 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
11065 f_setlk.
11066 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
11067 (__libc_fcntl): Move non-flock operations to...
11068 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
11069 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
11070
de20b81a
PE
110712018-11-15 Paul Eggert <eggert@cs.ucla.edu>
11072
5d8af156
PE
11073 mktime: DEBUG_MKTIME cleanup
11074 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
11075 And it’s no longer needed now that glibc and Gnulib both have
11076 their own testing mechanisms for mktime.
11077 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
11078
86aece3b
PE
11079 mktime: fix non-EOVERFLOW errno handling
11080 [BZ#23789]
11081 mktime was not properly reporting failures when the underlying
11082 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
11083 them like EOVERFLOW failures, and set errno to EOVERFLOW.
11084 The problem could happen on non-glibc platforms, with Gnulib.
11085 * time/mktime.c (guess_time_tm): Remove, replacing with ...
11086 (tm_diff): ... this simpler function, which does not change errno.
11087 All callers changed to deal with errno themselves.
11088 (ranged_convert, __mktime_internal): Return failure immediately if
11089 the underlying function reports any failure other than EOVERFLOW.
11090 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
11091 gap code fails.
11092
f6b3331b
PE
11093 mktime: fix bug with Y2038 DST transition
11094 [BZ#23789]
11095 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
11096 mishandle a DST transition that jumps over the Y2038 boundary.
11097 No such DST transitions are known so this is only a theoretical
11098 bug, but we might as well do things right.
11099
efbdddc3
PE
11100 mktime: make more room for overflow
11101 [BZ#23789]
11102 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
11103 This is so that we can add tm_diff results to a previous guess,
11104 which will be useful in a later patch.
11105
6c90d759
PE
11106 mktime: simplify offset guess
11107 [BZ#23789]
11108 * time/mktime.c (__mktime_internal): Omit excess precision.
11109
32c12f3f
PE
11110 mktime: new test for mktime failure
11111 [BZ#23789]
11112 Based on a test suggested by Albert Aribaud in:
11113 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
11114 * time/Makefile (tests): Add bug-mktime4.
11115 * time/bug-mktime4.c: New file.
11116
de20b81a
PE
11117 mktime: fix EOVERFLOW bug
11118 [BZ#23789]
11119 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
11120 Include libc-config.h, not config.h, for __set_errno.
11121 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
11122
8c6c3fb0
ST
111232018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
11124
11125 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
11126 __attribute_copy__ to copy attributes from name. Drop static qualifier
11127 to avoid warnings about leaf attribute not having effect on static
11128 functions.
11129
6923f6db
FW
111302018-11-13 Florian Weimer <fweimer@redhat.com>
11131
11132 * malloc/malloc.c (fastbin_push_entry): New function.
11133 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
11134 (REMOVE_FB): Remove macro.
11135 (_int_malloc): Use fastbin_pop_entry and reindent.
11136 (_int_free): Use fastbin_push_entry.
11137 (malloc_consolidate): Use atomic_exchange_acquire.
11138
53f5c659
JM
111392018-11-13 Joseph Myers <joseph@codesourcery.com>
11140
0c096dcf
JM
11141 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
11142 alias attribute, not with strong_alias.
11143
9c4b457e
JM
11144 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
11145 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
11146 with additional parameter thread.
11147 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
11148 in terms of __hidden_ver2.
11149 (hidden_tls_def): New macro.
11150 (libc_hidden_tls_def): Likewise.
11151 (rtld_hidden_tls_def): Likewise.
11152 (libm_hidden_tls_def): Likewise.
11153 (libmvec_hidden_tls_def): Likewise.
11154 (libresolv_hidden_tls_def): Likewise.
11155 (librt_hidden_tls_def): Likewise.
11156 (libdl_hidden_tls_def): Likewise.
11157 (libnss_files_hidden_tls_def): Likewise.
11158 (libnsl_hidden_tls_def): Likewise.
11159 (libnss_nisplus_hidden_tls_def): Likewise.
11160 (libutil_hidden_tls_def): Likewise.
11161 (libutil_hidden_tls_def): Likweise.
11162 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
11163 libc_hidden_tls_def.
11164 (__sim_disabled_exceptions_thread): Likewise.
11165 (__sim_round_mode_thread): Likewise.
11166
53f5c659
JM
11167 * sysdeps/sparc/sparc-ifunc.h [SHARED]
11168 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
11169 copy attributes from name.
11170
092dfde6
JM
111712018-11-12 Joseph Myers <joseph@codesourcery.com>
11172
f578f97b
JM
11173 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
11174 Use __attribute_copy__ to copy attributes from name.
11175
9a7c643a
JM
11176 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
11177 with __hidden_ver1 call.
11178 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
11179 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
11180 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
11181 (__cosf): Do not declare here.
11182 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
11183 (__sincosf): Do not declare here.
11184 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
11185 (__sinf): Do not declare here.
11186
092dfde6
JM
11187 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
11188 (__BIG_ENDIAN): Likewise.
11189 (__BYTE_ORDER): Likewise.
11190 (strong_alias): Likewise.
11191 (_strong_alias): Likewise.
11192
1ecba1fa
FW
111932018-11-12 Florian Weimer <fweimer@redhat.com>
11194
11195 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
11196 function. Move after the definition of in_smallbin_range. Do not
11197 use __builtin_expect for paths that lead to a noreturn function.
11198 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
11199 because it is unclear whether this is in fact an unlikely
11200 condition.
11201 (_int_malloc, _int_free): Adjust.
11202 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
11203 variables.
11204 * malloc/arena.c (heap_trim): Likewise.
11205
434c34bd
ST
112062018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
11207
11208 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
11209 it, free it if needed.
11210 (reauthenticate): Test and use ccwdir.
11211 (child_init_port): In non-resetids case, test and use ccwdir.
11212 (child_chdir): New nested function to set ccwdir.
7fa495cd
ST
11213 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
11214 * hurd/hurd/port.h (_hurd_port_move): New function.
11215 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
11216 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
88b26b7e
ST
11217 * hurd/Versions (_hurd_port_move): Export function.
11218 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
11219 symbol.
58bb655a
ST
11220 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
11221 of dtablesize for allocating dtable_cloexec.
434c34bd 11222
1626a1cf
MS
112232018-11-09 Martin Sebor <msebor@redhat.com>
11224
11225 * include/libc-symbols.h (__attribute_copy__): Define macro unless
11226 it's already defined.
11227 (_strong_alias): Use __attribute_copy__.
11228 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
11229 * misc/sys/cdefs.h (__attribute_copy__): New macro.
11230 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
11231 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
11232 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
11233 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
11234 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
11235 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
11236 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
11237 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
11238 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
11239 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
11240 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
11241 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
11242 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
11243 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
11244 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
11245 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
11246 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
11247
968ed530
GG
112482018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11249
11250 * misc/tst-efgcvt.c: Include support/check.h and
11251 support/test-driver.c. Do not include test-skeleton.c.
11252 (error_count): Remove.
11253 (output_error): Replace increments to error_count with calls to
11254 support_record_failure.
11255 (output_r_error): Likewise.
11256 (special): Likewise.
11257 (do_test): Unconditionally return zero.
11258 (TEST_FUNCTION): Remove.
11259
c3ec0972
JM
112602018-11-09 Joseph Myers <joseph@codesourcery.com>
11261
91faaa93
JM
11262 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
11263 not $(@D)/scratch.
11264 ($(linknamespace-header-tests)): Likewise.
11265
c3ec0972
JM
11266 * conform/conformtest.py: New file.
11267 * conform/conformtest.pl: Remove.
11268 * conform/GlibcConform.pm: Likewise.
11269 * conform/glibcconform.py (KEYWORDS_C90): New constant.
11270 (KEYWORDS_C99): Likewise.
11271 (KEYWORDS): Likewise.
11272 * conform/Makefile ($(conformtest-header-tests)): Use
11273 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
11274 option. Use --header instead of --headers.
11275 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
11276 function entries.
11277 * conform/data/spawn.h-data: Likewise.
11278 * conform/data/fcntl.h-data (openat): Add space after function
11279 name.
11280 * conform/data/wchar.h-data (wcscasecmp): Likewise.
11281 (wcscasecmp_l): Likewise.
11282 * conform/data/termios.h-data (c_cc): Add space after element
11283 name.
11284
43257c33
GG
112852018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11286
11287 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
11288 instead of manually comparing and reporting mismatching strings.
11289 * misc/tst-ldbl-error.c (do_one_test): Likewise.
11290 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
11291
e5de3b5b
JM
112922018-11-08 Joseph Myers <joseph@codesourcery.com>
11293
11294 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
11295 __ASSUME_SOCKETCALL.
11296 * sysdeps/unix/sysv/linux/i386/kernel-features.h
11297 (__ASSUME_SOCKETCALL): Remove.
11298 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
11299 (__ASSUME_SOCKETCALL): Likewise.
11300 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
11301 (__ASSUME_SOCKETCALL): Likewise.
11302 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
11303 (__ASSUME_SOCKETCALL): Likewise.
11304 * sysdeps/unix/sysv/linux/s390/kernel-features.h
11305 (__ASSUME_SOCKETCALL): Likewise.
11306 * sysdeps/unix/sysv/linux/sh/kernel-features.h
11307 (__ASSUME_SOCKETCALL): Likewise.
11308 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
11309 (__ASSUME_SOCKETCALL): Likewise.
11310
d524fa6c
L
113112018-11-08 H.J. Lu <hongjiu.lu@intel.com>
11312
11313 [BZ #23509]
11314 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
11315 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
11316 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
11317 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
11318 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
11319 lc_unknown.
11320
ac806026
AH
113212018-11-08 Alexandra Hájková <ahajkova@redhat.com>
11322
11323 [BZ #17630]
11324 * resolv/tst-resolv-network.c: Add test for getnetbyname.
11325
596cc360
JM
113262018-11-07 Joseph Myers <joseph@codesourcery.com>
11327
11328 [BZ #23867]
11329 * sysdeps/unix/sysv/linux/arm/kernel-features.h
11330 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
11331 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
11332 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
11333
00c86a37
AZ
113342018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11335
11336 * support/support_test_compare_string.c
11337 (support_test_compare_string): Fix printf format.
11338
1df872fd
FW
113392018-11-07 Florian Weimer <fweimer@redhat.com>
11340
11341 Implement TEST_COMPARE_STRING.
11342 * support/check.h (TEST_COMPARE_STRING): Define.
11343 (support_test_compare_string): Declare.
11344 * support/Makefile (libsupport-routines): Add
11345 support_test_compare_string.
11346 (tests): Add tst-test_compare_string.
11347 * support/support_test_compare_string.c: New file.
11348 * support/tst-test_compare_string.c: Likewise.
11349
295132ff
AS
113502018-11-07 Andreas Schwab <schwab@suse.de>
11351
11352 [BZ #23864]
11353 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
11354 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
11355 Undef.
11356
e143ceba
JM
113572018-11-06 Joseph Myers <joseph@codesourcery.com>
11358
11359 [BZ #23862]
11360 * sysdeps/unix/sysv/linux/sh/kernel-features.h
11361 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
11362 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
11363 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
11364 Likewise.
11365
4a938cb2
FW
113662018-11-06 Florian Weimer <fweimer@redhat.com>
11367
11368 [BZ #17405]
11369 * posix/Makefile (routines): Add spawn_faction_addchdir.
11370 (tests): Add tst-spawn-chdir.
11371 * posix/Versions (GLIBC_2.29): Add
11372 posix_spawn_file_actions_addchdir_np.
11373 * posix/spawn_faction_addchdir.c: New file.
11374 * posix/spawn_faction_destroy.c
11375 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
11376 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
11377 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
11378 chdir_action.
11379 * posix/tst-spawn-chdir.c: New file.
11380 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
11381 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
11382 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
11383 posix_spawn_file_actions_addchdir_np.
11384 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
11385 Likewise.
11386 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
11387 Likewise.
11388 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
11389 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
11390 Likewise.
11391 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
11392 Likewise.
11393 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
11394 Likewise.
11395 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
11396 Likewise.
11397 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
11398 Likewise.
11399 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
11400 Likewise.
11401 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
11402 (GLIBC_2.29): Likewise.
11403 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
11404 (GLIBC_2.29): Likewise.
11405 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
11406 (GLIBC_2.29): Likewise.
11407 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
11408 (GLIBC_2.29): Likewise.
11409 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
11410 Likewise.
11411 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
11412 (GLIBC_2.29): Likewise.
11413 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
11414 (GLIBC_2.29): Likewise.
11415 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
11416 (GLIBC_2.29): Likewise.
11417 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
11418 (GLIBC_2.29): Likewise.
11419 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
11420 Likewise.
11421 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
11422 Likewise.
11423 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
11424 Likewise.
11425 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
11426 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
11427 Likewise.
11428 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
11429 Likewise.
11430 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
11431 Likewise.
11432 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
11433 Likewise.
11434
7597b0c7
GG
114352018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11436
11437 * misc/Makefile (tests): Add tst-ldbl-error.
11438 * misc/tst-ldbl-error.c: New file.
11439
9771e6cb
GG
114402018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11441
11442 * misc/Makefile (tests): Add tst-ldbl-warn.
11443 * misc/tst-ldbl-warn.c: New file.
11444
2c03961f
GG
114452018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11446
11447 * argp/Makefile (tests): Add tst-ldbl-argp.
11448 * argp/tst-ldbl-argp.c: New file.
11449
6d6ee046
AS
114502018-11-05 Arjun Shankar <arjun@redhat.com>
11451
11452 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
11453 __gconv_path_elem and call __gconv_get_path unconditionally.
11454
bd3b0fba
AS
114552018-11-05 Andreas Schwab <schwab@suse.de>
11456
11457 [BZ #22927]
11458 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
11459 creating the first helper thread failed.
11460
2e96e980
ST
114612018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
11462
11463 * sysdeps/mach/hurd/msync.c: New file.
11464
6e36266c
FW
114652018-11-02 Florian Weimer <fweimer@redhat.com>
11466
11467 * support/shell-container.c (copy_func): Call
11468 support_copy_file_range instead of copy_file_range to support
11469 cross-device copies.
11470
599f7bee
FW
114712018-11-02 Florian Weimer <fweimer@redhat.com>
11472
11473 * support/test-container.c: Include <libc-pointer-arith.h> for
11474 ALIGN_UP.
11475
ff48ea67
ZL
114762018-11-01 Zong Li <zong@andestech.com>
11477
af1d5782
ZL
11478 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
11479 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
11480 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
11481 (__FP_FRAC_SET_8): Add implementation for RV32 use.
11482
ff48ea67
ZL
11483 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
11484 variable to avoid overlap arguments.
11485
daea71c2
JM
114862018-11-01 Joseph Myers <joseph@codesourcery.com>
11487
eac4405a
JM
11488 * posix/bug-regex22.c (main): Use puts with distinct error
11489 messages for unexpected success of re_compile_pattern, not printf
11490 with NULL argument to %s.
11491
6f30e59f
JM
11492 * stdio-common/bug22.c: Include <libc-diag.h>.
11493 (do_test): Disable -Wformat-overflow= warnings around fprintf
11494 calls outputting more than INT_MAX characters.
11495 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
11496 around printf call with NULL %s argument.
11497
daea71c2
JM
11498 [BZ #23848]
11499 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
11500 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
11501 Undefine.
11502 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
11503 (__ASSUME_RECVMSG_SYSCALL): Likewise.
11504 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
11505 (__ASSUME_SENDTO_SYSCALL): Likewise.
11506 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
11507 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
11508 [!__arch64__].
11509 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
11510 (__ASSUME_CONNECT_SYSCALL): Likewise.
11511 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
11512 (__ASSUME_RECVFROM_SYSCALL): Likewise.
11513 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
11514 Define.
11515 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
11516 Likewise.
11517 [__LINUX_KERNEL_VERSION >= 0x040400]
11518 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
11519 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
11520 Remove.
11521 (listen): Likewise.
11522 (setsockopt): Likewise.
11523
8e3c00db
FN
115242018-11-01 Fredrik Noring <noring@nocrew.org>
11525
11526 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
11527 with the ISA override.
11528
ab74d59f 115292018-10-31 Rafael Ávila de Espíndola <rafael@espindo.la>
9c3dbdbe
RAE
11530
11531 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
11532 #endif.
11533
e3a88b3e
ST
115342018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
11535
a67377e7 11536 * manual/errno.texi (EIEIO): Document how translators should
e3a88b3e 11537 translate the error message.
a67377e7
ST
11538 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
11539 printing trailing whitespaces refused by git.
11540 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
11541 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
fc783076 11542 * hurd/Makefile (user-interfaces): Add pci.
e3a88b3e 11543
3ca235ed
JM
115442018-10-30 Joseph Myers <joseph@codesourcery.com>
11545
11546 * conform/linknamespace.py: New file.
11547 * conform/linknamespace.pl: Remove file.
11548 * conform/Makefile ($(linknamespace-header-tests)): Use
11549 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
11550 option.
11551
60708030
FW
115522018-10-30 Florian Weimer <fweimer@redhat.com>
11553
11554 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
11555 memory leaks.
11556
a91e9301
FW
115572018-10-30 Florian Weimer <fweimer@redhat.com>
11558
11559 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
11560
07da99aa
FW
115612018-10-30 Florian Weimer <fweimer@redhat.com>
11562
11563 * stdlib/tst-strtod-overflow.c (do_test): Switch to
11564 support_blob_repeat.
11565
f5e7e959
FW
115662018-10-30 Florian Weimer <fweimer@redhat.com>
11567
11568 Avoid spurious test failures in stdlib/test-bz22786.
11569 * support/Makefile (libsupport-routines): Add blob_repeat.
11570 (tests): Add tst-support_blob_repeat.
11571 * support/blob_repeat.h: New file.
11572 * support/blob_repeat.c: Likewise.
11573 * support/tst-support_blob_repeat.c: Likewise.
11574 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
11575 support_blob_repeat_allocate.
11576
2dd12baa
AS
115772018-10-30 Andreas Schwab <schwab@suse.de>
11578
11579 [BZ #23125]
11580 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
11581 Don't use tail call.
11582 * elf/tst-unwind-main.c: New file.
11583 * elf/Makefile (tests): Add tst-unwind-main.
11584 (CFLAGS-tst-unwind-main.c): Define.
11585
6b5c8607 115862018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
fec8bb7c
SAA
11587
11588 [BZ #23791]
11589 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
11590 n_cs_precedes to 0.
11591 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
11592
c6982f7e
JM
115932018-10-29 Joseph Myers <joseph@codesourcery.com>
11594
954cf3c2
JM
11595 * conform/glibcconform.py: Do not import shutil.
11596 (list_exported_functions): Use tempfile.TemporaryDirectory instead
11597 of mkdtemp.
11598
c6982f7e
JM
11599 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
11600 critic_missing for versions before 3.4.
11601 * configure: Regenerated.
11602 * manual/install.texi (Tools for Compilation): Document
11603 requirement for Python to build glibc.
11604 * INSTALL: Regenerated.
11605 * Rules [PYTHON]: Make code unconditional.
11606 * benchtests/Makefile [PYTHON]: Likewise.
11607 * conform/Makefile [PYTHON]: Likewise.
11608 * manual/Makefile [PYTHON]: Likewise.
11609 * math/Makefile [PYTHON]: Likewise.
11610
46a7f24c
ST
116112018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
11612
11613 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
2d0d1d38 11614 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
b6e7c449 11615 answer to interrupt_operation, return EIEIO instead of EINTR.
5c81be53
ST
11616 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
11617 _hurd_intr_rpc_msg_about_to global point to start of controlled
11618 assembly snippet. Make it check canceled flag.
11619 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
11620 the _hurd_intr_rpc_msg_about_to point.
11621 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
11622 issue, remove cancel flag check.
46a7f24c 11623
e5b8756d
JM
116242018-10-26 Joseph Myers <joseph@codesourcery.com>
11625
11626 * scripts/build-many-glibcs.py: Remove compatibility for missing
11627 os.cpu_count and re.fullmatch.
11628
ba5b14c7
SN
116292018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
11630
11631 [BZ #23822]
11632 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
11633 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
11634 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
11635
fe61f17c
JM
116362018-10-25 Joseph Myers <joseph@codesourcery.com>
11637
11638 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
11639 macro.
11640
7c5e34d7
FW
116412018-10-25 Florian Weimer <fweimer@redhat.com>
11642
11643 [BZ #23562]
11644 [BZ #23821]
11645 XFAIL siginfo_t si_band conform test on sparc64.
11646 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
11647 (__SI_BAND_TYPE): Only override long int default type on sparc64.
11648 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
11649 (conformtest-xfail-conds): Add sparc64-linux.
11650 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
11651 sparc64.
11652 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
11653
5b784e88
JM
116542018-10-25 Joseph Myers <joseph@codesourcery.com>
11655
11656 * elf/elf.h (NT_MIPS_DSP): New macro.
11657 (NT_MIPS_FP_MODE): Likewise.
11658
41432ebe
ZL
116592018-10-25 Zong Li <zong@andestech.com>
11660
11661 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
11662 name by adding the file extension (.so).
11663
d026efea
ST
116642018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
11665
11666 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
11667 (test-xfail-ISO11/threads.h/linknamespace,
11668 test-xfail-ISO11/threads.h/conform): Add.
11669
b71ac2b9
JM
116702018-10-24 Joseph Myers <joseph@codesourcery.com>
11671
11672 * math/gen-libm-test.py: Import os.
11673 (ALL_FLOATS_MANUAL): New constant.
11674 (ALL_FLOATS_SUFFIX): Likewise.
11675 (Ulps.all_functions): New function.
11676 (real_all_ulps): Likewise.
11677 (generate_err_table_sub): Likewise.
11678 (generate_err_table): Likewise.
11679 (main): Handle -s and -m options.
11680 * manual/libm-err-tab.pl: Remove.
11681 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
11682 instead of libm-err-tab.pl.
11683 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
11684 != no].
11685 * manual/install.texi (Tools for Compilation): Document
11686 requirement for Python to build manual.
11687 * INSTALL: Regenerated.
11688
6b5c8607 116892018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
d51f99ce
AA
11690
11691 * bits/time64.h: New file.
11692 * include/time.h: Replace internal_time_t with __time64_t.
11693 * posix/bits/types (__time64_t): Add.
11694 * stdlib/Makefile: Add bits/time64.h to includes.
11695 * time/tzfile.c: Replace internal_time_t with __time64_t.
11696
97d91fcc 116972018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2a973ab7
AZ
11698
11699 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
11700 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
11701 __posix_spawn_file_actions_init, __posix_spawnattr_init,
11702 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
11703 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
11704 prototype.
11705 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
11706 * posix/spawn_faction_addclose.c
11707 (__posix_spawn_file_actions_addclose): Add hidden definition.
11708 * posix/spawn_faction_adddup2.c
11709 (__posix_spawn_file_actions_adddup2): Likewise.
11710 * posix/spawn_faction_destroy.c
11711 (__posix_spawn_file_actions_destroy): Likewise.
11712 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
11713 Likewise.
11714 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
11715 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
11716 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
11717 Likewise.
11718 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
11719 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
11720 Likewise.
11721
2954daf0
AS
117222018-10-24 Andreas Schwab <schwab@suse.de>
11723
11724 [BZ #18093]
11725 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
11726 format cache.
11727 * elf/cache.c (print_cache): Likewise.
11728
6b5c8607 117292018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
a27a4f47
AA
11730
11731 * bits/timesize.h: New file.
11732 * stdlib/Makefile (headers): Add bits/timesize.h.
11733 * sysdeps/unix/sysv/linux/bits/msq-pad.h
11734 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
11735 * sysdeps/unix/sysv/linux/bits/sem-pad.h
11736 (__SEM_PAD_AFTER_TIME): Likewise.
11737 * sysdeps/unix/sysv/linux/bits/shm-pad.h
11738 (__SHM_PAD_AFTER_TIME): Likewise.
11739 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
11740 (__MSQ_PAD_BEFORE_TIME): Likewise.
11741 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
11742 (__SEM_PAD_BEFORE_TIME): Likewise.
11743 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
11744 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
11745 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
b39d961c
TS
11746 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
11747 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
11748 (__MSQ_PAD_BEFORE_TIME): Likewise.
a27a4f47
AA
11749 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
11750 (__SEM_PAD_BEFORE_TIME): Likewise.
11751 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
11752 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
11753 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
11754 (__MSQ_PAD_BEFORE_TIME): Likewise.
11755 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
11756 (__SEM_PAD_BEFORE_TIME): Likewise.
11757 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
11758 (__SHM_PAD_BEFORE_TIME): Likewise.
11759 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
11760 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
11761 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
11762
7cc65773
L
117632018-10-24 H.J. Lu <hongjiu.lu@intel.com>
11764
11765 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
11766 USE_RDTSCP is defined.
11767 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
11768 USE_RDTSCP is defined.
11769
c3d8dc45
AZ
117702018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11771
18ad0de6
AZ
11772 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
11773 defined.
11774
c3d8dc45
AZ
11775 [BZ #23709]
11776 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
11777 independently of other flags.
11778
f1034472
FW
117792018-10-23 Florian Weimer <fweimer@redhat.com>
11780
11781 * time/tst-mktime2.c (N_STRINGS): Remove.
11782 (set_timezone): New function.
11783 (spring_forward_gap): Call it. Use FAIL_EXIT1.
11784 (mktime_test1): Report localtime failure and check errno value.
11785 Use TEST_COMPARE.
11786 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
11787 (do_test): Remove alarm call. Use set_timezone and array_length.
11788
367d7cc2
AS
117892018-10-23 Andreas Schwab <schwab@suse.de>
11790
11791 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
11792 (__start_context): Use END instead of PSEUDO_END.
11793
be8ff03f
JM
117942018-10-22 Joseph Myers <joseph@codesourcery.com>
11795
029ad711
JM
11796 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
11797 version to 4.19.
11798
8190520f
JM
11799 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
11800 version to 4.19.
11801
be8ff03f
JM
11802 [BZ #23793]
11803 * wcsmbs/c32rtomb.c: New file.
11804 * wcsmbs/mbrtoc32.c: Likewise.
11805 * wcsmbs/tst-c32-state.c: Likewise.
11806 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
11807 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
11808 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
11809 (tests): Add tst-c32-state.
11810 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
11811 $(gen-locales).
11812
2dd8e58c
L
118132018-10-21 H.J. Lu <hongjiu.lu@intel.com>
11814
11815 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
11816 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
11817
d0a74159
JM
118182018-10-19 Joseph Myers <joseph@codesourcery.com>
11819
11820 [BZ #23794]
11821 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
11822 pair and return 0 in that case, and use saved character to
11823 interpret following character.
11824 * wcsmbs/tst-c16-surrogate.c: New file.
11825 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
11826 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
11827 Depend on $(gen-locales)
11828
f997b4be
IYM
118292018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
11830
11831 [BZ #23562]
11832 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
11833 (struct siginfo_t): Use correct type for si_band.
11834
53b2bb87
FW
118352018-10-19 Florian Weimer <fweimer@redhat.com>
11836
11837 [BZ #23689]
11838 * resource/bits/types/struct_rusage.h (struct rusage): Update
11839 comment on struct. Remove extraneous field comment.
11840
0a271c8f
DM
118412018-10-18 David S. Miller <davem@davemloft.net>
11842
94a3a27f
DM
11843 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
11844 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
11845 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
11846 sysdep_routines in subdir elf.
11847 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
11848 version for __vdso_clock_gettime.
11849 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
11850 Define.
11851 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
11852 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
11853
0a271c8f
DM
11854 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
11855
72771e53
L
118562018-10-17 H.J. Lu <hongjiu.lu@intel.com>
11857
11858 * sysdeps/i386/init-arch.h: Removed.
11859 * sysdeps/i386/i586/init-arch.h: Likewise.
11860 * sysdeps/i386/i686/init-arch.h: Likewise.
11861 * sysdeps/i386/i686/hp-timing.h: Likewise.
11862 * sysdeps/x86_64/hp-timing.h: Likewise.
11863 * sysdeps/i386/isa.h: New file.
11864 * sysdeps/i386/i586/isa.h: Likewise.
11865 * sysdeps/i386/i686/isa.h: Likewise.
11866 * sysdeps/x86_64/isa.h: Likewise.
11867 * sysdeps/x86/hp-timing.h: New file.
11868 * sysdeps/x86/init-arch.h: Include <isa.h>.
11869
c2b7ccad
JM
118702018-10-17 Joseph Myers <joseph@codesourcery.com>
11871
11872 * math/libm-test-pow.inc (pow_test_data): Do not allow
11873 divide-by-zero exception for pow(+/- 0, -Inf).
11874
26756e57
ZW
118752018-10-17 Zack Weinberg <zackw@panix.com>
11876
11877 * manual/job.texi (Job Control is Optional): Remove node, as
11878 job control has not been optional in quite some time.
11879 (Job Control): Mention briefly that systems older than
11880 POSIX.1-2001 might not support job control.
11881 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
11882 defined on systems conforming to POSIX.1-2001.
11883
c5288d37
AS
118842018-10-17 Arjun Shankar <arjun@redhat.com>
11885
11886 [BZ #22062]
11887 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
11888 indentation.
11889 * (__gconv_read_conf): Mark function static.
11890 * (once): New static variable.
11891 * (__gconv_load_conf): New function.
11892 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
11893 * iconv/gconv_db.c (once): Remove static variable.
11894 * (__gconv_compare_alias): Use __gconv_load_conf instead of
11895 __gconv_read_conf.
11896 * (__gconv_find_transform): Likewise.
11897 * iconv/tst-iconv-mt.c: New test.
11898 * iconv/Makefile: Add tst-iconv_mt.
11899
8c8d2a8a
JM
119002018-10-17 Joseph Myers <joseph@codesourcery.com>
11901
11902 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
729f3402
JM
11903 bits/shm-pad.h.
11904 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
11905 (shmatt_t): Define as __syscall_ulong_t.
11906 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
11907 and [__SHM_PAD_AFTER_TIME].
11908 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
11909 Define shm_segsz and associated padding based on
11910 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
11911 Use __syscall_ulong_t instead of unsigned long int.
11912 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
11913 unsigned long int.
11914 [__USE_MISC] (struct shm_info): Likewise.
11915 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
11916 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
11917 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
11918 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
11919 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
11920 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
11921 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
11922 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
11923 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
11924 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
11925 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
11926
11927 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8c8d2a8a
JM
11928 bits/shmlba.h.
11929 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
11930 (SHMLBA): Remove macro.
11931 (__getpagesize): Remove function declaration.
11932 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
11933 <bits/shmlba.h>.
11934 (SHMLBA): Remove macro.
11935 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
11936 <bits/shmlba.h>.
11937 (SHMLBA): Remove macro.
11938 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
11939 <bits/shmlba.h>.
11940 (SHMLBA): Remove macro.
11941 (__getpagesize): Remove function declaration.
11942 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
11943 <bits/shmlba.h>.
11944 (SHMLBA): Remove macro.
11945 (__getshmlba): Remove function declaration.
11946 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
11947 (SHMLBA): Remove macro.
11948 (__getpagesize): Remove function declaration.
11949 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
11950 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
11951 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
11952 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
11953 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
11954 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
11955 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
11956 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
11957 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
11958 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
11959
403b4feb
SL
119602018-10-17 Stefan Liebler <stli@linux.ibm.com>
11961
11962 [BZ #23275]
11963 * nptl/tst-mutex10.c: New File.
11964 * nptl/Makefile (tests): Add tst-mutex10.
11965 (tst-mutex10-ENV): New variable.
11966 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
11967 Ensure that elision path is used if elision is available.
11968 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
11969 Likewise.
11970 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
11971 Likewise.
11972 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
11973 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
11974 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
11975 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
11976 Likewise.
11977 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
11978 (__pthread_mutex_cond_lock_adjust): Likewise.
11979 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
11980 Likewise.
11981 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
11982 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
11983 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
11984 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
11985 Add comments.
11986 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
11987 Use atomic_load_relaxed and atomic_store_relaxed.
11988 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
11989 Use atomic_store_relaxed.
11990
ce5a7de6
AS
119912018-10-17 Andreas Schwab <schwab@suse.de>
11992
11993 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
11994 * crypt/badsalttest.c (TIMEOUT): Likewise.
11995 * crypt/sha256c-test.c (TIMEOUT): Likewise.
11996 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
11997 * io/test-lfs.c (TIMEOUT): Likewise.
11998 * libio/tst-atime.c (TIMEOUT): Likewise.
11999 * localedata/tst-leaks.c (TIMEOUT): Likewise.
12000 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
12001 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
12002 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
12003 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
12004 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
12005 * nptl/tst-cond11.c (TIMEOUT): Likewise.
12006 * nptl/tst-cond14.c (TIMEOUT): Likewise.
12007 * nptl/tst-cond15.c (TIMEOUT): Likewise.
12008 * nptl/tst-cond24.c (TIMEOUT): Likewise.
12009 * nptl/tst-cond25.c (TIMEOUT): Likewise.
12010 * nptl/tst-kill2.c (TIMEOUT): Likewise.
12011 * nptl/tst-kill3.c (TIMEOUT): Likewise.
12012 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
12013 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
12014 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
12015 * nptl/tst-once2.c (TIMEOUT): Likewise.
12016 * nptl/tst-once3.c (TIMEOUT): Likewise.
12017 * nptl/tst-once4.c (TIMEOUT): Likewise.
12018 * nptl/tst-robust8.c (TIMEOUT): Likewise.
12019 * nptl/tst-robust9.c (TIMEOUT): Likewise.
12020 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
12021 * nptl/tst-sem14.c (TIMEOUT): Likewise.
12022 * nptl/tst-sem6.c (TIMEOUT): Likewise.
12023 * nptl/tst-signal3.c (TIMEOUT): Likewise.
12024 * nptl/tst-spin4.c (TIMEOUT): Likewise.
12025 * nptl/tst-tls3.c (TIMEOUT): Likewise.
12026 * nptl/tst-tls4.c (TIMEOUT): Likewise.
12027 * posix/tst-chmod.c (TIMEOUT): Likewise.
12028 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
12029 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
12030 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
12031 * posix/tst-regex2.c (TIMEOUT): Likewise.
12032 * posix/tst-waitid.c (TIMEOUT): Likewise.
12033 * rt/tst-aio.c (TIMEOUT): Likewise.
12034 * rt/tst-aio10.c (TIMEOUT): Likewise.
12035 * rt/tst-aio4.c (TIMEOUT): Likewise.
12036 * rt/tst-aio5.c (TIMEOUT): Likewise.
12037 * rt/tst-aio6.c (TIMEOUT): Likewise.
12038 * rt/tst-aio64.c (TIMEOUT): Likewise.
12039 * rt/tst-aio7.c (TIMEOUT): Likewise.
12040 * rt/tst-aio9.c (TIMEOUT): Likewise.
12041 * rt/tst-clock.c (TIMEOUT): Likewise.
12042 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
12043 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
12044 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
12045 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
12046 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
12047 * rt/tst-timer4.c (TIMEOUT): Likewise.
12048 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
12049 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
12050 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
12051 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
12052 * time/tst-ftime.c (TIMEOUT): Likewise.
12053 * timezone/tst-tzset.c (TIMEOUT): Likewise.
12054
6b5c8607 120552018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
75c1aee5
AY
12056
12057 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
12058 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
12059 for thunderX2.
12060
bcdb1bfa
JM
120612018-10-15 Joseph Myers <joseph@codesourcery.com>
12062
12063 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12064 bits/sem-pad.h.
12065 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
12066 instead of <bits/wordsize.h>.
12067 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
12068 and [__SEM_PAD_AFTER_TIME].
12069 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
12070 __syscall_ulong_t instead of unsigned long int.
12071 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
12072 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
12073 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
12074 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
12075 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
12076 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
12077 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
12078 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
12079 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
12080 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
12081 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
12082
f4efbdfb
PE
120832018-10-14 Paul Eggert <eggert@cs.ucla.edu>
12084
620a5d4c
PE
12085 regex: simplify by using intprops.h
12086 [BZ#23744]
12087 * posix/regex_internal.h [_LIBC]: Include intprops.h.
12088 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
12089 intprops.h defines them.
12090
f4efbdfb
PE
12091 regex: __builtin_expect → __glibc_unlikely
12092 [BZ#23744]
12093 This refactoring was prompted by a problem when the regex code is
12094 used as part of Gnulib and when the builder’s compiler does not grok
12095 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
12096 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
12097 Although this refactoring does not fix the problem directly,
12098 we might as well have Gawk use the now-preferred glibc style for when
12099 __builtin_expect is unavailable.
12100 * posix/regex_internal.h (BE): Remove.
12101 All uses replaced by __glibc_unlikely or __glibc_likely.
12102
9f9feb6d
JM
121032018-10-11 Joseph Myers <joseph@codesourcery.com>
12104
12105 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12106 bits/msq-pad.h.
12107 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
12108 instead of <bits/wordsize.h>.
12109 (msgqnum_t): Define as __syscall_ulong_t.
12110 (msglen_t): Likewise.
12111 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
12112 and [__MSQ_PAD_AFTER_TIME].
12113 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
12114 __syscall_ulong_t instead of unsigned long int.
12115 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
12116 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
12117 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
12118 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
12119 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
12120 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
12121 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
12122 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
12123 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
12124 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
12125 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
12126
b9c0f6c1
JM
121272018-10-10 Joseph Myers <joseph@codesourcery.com>
12128
2a4b25fa
JM
12129 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
12130 (struct shmid_ds): Condition padding after time fields on
12131 [__WORDSIZE == 32].
12132 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
12133 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
12134 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
12135
19e62f26
JM
12136 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
12137 (struct semid_ds): Condition padding after time fields on
12138 [__WORDSIZE == 32].
12139 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
12140 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
12141 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
12142 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
12143
b9c0f6c1
JM
12144 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
12145 (struct msqid_ds): Condition padding after time fields on
12146 [__WORDSIZE == 32].
12147 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
12148 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
12149 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
12150 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
12151
97785a61
SN
121522018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
12153
12154 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
12155
ed643089
SN
121562018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
12157
12158 * libio/tst-readline.c (TIMEOUT): Define.
12159
5a580643
PE
121602018-10-08 Paul Eggert <eggert@cs.ucla.edu>
12161
12162 mktime fix for Gnulib + coreutils
12163 [BZ#23745]
12164 This fix affects only Gnulib. Problem discovered when
12165 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
12166 * time/mktime.c:
12167 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
12168 Do not define since it is not used. Defining an unused static
12169 function prompts a warning from GCC when Coreutils is configured
12170 with --enable-gcc-warnings.
12171
c892ae04
LS
121722018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
12173
12174 * benchtests/scripts/compare_bench.py (main): set float type on
12175 threshold argument.
12176
ab74d59f 121772018-10-08 Rafał Lużyński <digitalfreak@lingonborough.com>
a68ec8ea
RL
12178
12179 [BZ #23740]
12180 * localedata/locales/kl_GL (mon): Update, the relative case.
12181 (alt_mon): Add, fill with month names in the nominative case.
12182 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
12183 (d_fmt): Set to "%b %d %Y".
12184
a1987621
JM
121852018-10-04 Joseph Myers <joseph@codesourcery.com>
12186
47c49251
JM
12187 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
12188 <bits/mman-linux.h>.
12189 (PROT_READ): Don't define here.
12190 (PROT_WRITE): Likewise.
12191 (PROT_EXEC): Likewise.
12192 (PROT_NONE): Likewise.
12193 (PROT_GROWSDOWN): Likewise.
12194 (PROT_GROWSUP): Likewise.
12195 (MAP_SHARED): Likewise.
12196 (MAP_PRIVATE): Likewise.
12197 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
12198 [__USE_MISC] (MAP_FILE): Likewise.
12199 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
12200 [__USE_MISC] (MAP_ANON): Likewise.
12201 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
12202 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
12203 (MCL_CURRENT): Likewise.
12204 (MCL_FUTURE): Likewise.
12205 (MCL_ONFAULT): Likewise.
12206 [__USE_MISC] (MADV_NORMAL): Likewise.
12207 [__USE_MISC] (MADV_RANDOM): Likewise.
12208 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
12209 [__USE_MISC] (MADV_WILLNEED): Likewise.
12210 [__USE_MISC] (MADV_DONTNEED): Likewise.
12211 [__USE_MISC] (MADV_FREE): Likewise.
12212 [__USE_MISC] (MADV_REMOVE): Likewise.
12213 [__USE_MISC] (MADV_DONTFORK): Likewise.
12214 [__USE_MISC] (MADV_DOFORK): Likewise.
12215 [__USE_MISC] (MADV_HWPOISON): Likewise.
12216 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
12217 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
12218 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
12219 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
12220 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
12221 (__MAP_ANONYMOUS): New macro.
12222 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
12223 <bits/mman-linux.h> inclusion.
12224 (MAP_FIXED): Likewise.
12225 (MS_SYNC): Likewise.
12226 (MS_ASYNC): Likewise.
12227 (MS_INVALIDATE): Likewise.
12228 [__USE_MISC] (MADV_MERGEABLE): Likewise.
12229 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
12230 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
12231 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
12232 [__USE_MISC] (MADV_DONTDUMP): Likewise.
12233 [__USE_MISC] (MADV_DODUMP): Likewise.
12234 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
12235 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
12236
a1987621
JM
12237 [BZ #23735]
12238 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
12239 Define.
12240 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
12241 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
12242 Add test-nldbl-redirect.
12243 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
12244 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
12245 $(objpfx)libnldbl_nonshared.a.
12246
e7624d70
SL
122472018-10-04 Stefan Liebler <stli@linux.ibm.com>
12248
12249 * support/support.h (support_objdir_elf_ldso): New variable.
12250 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
12251 * support/Makefile (CFLAGS-support_paths.c): Add definition
12252 for OBJDIR_ELF_LDSO_PATH.
12253 * support/test-container.c (main): Search for the ld.so
12254 which is also used by the testsuite.
12255
ab74d59f 122562018-10-02 Rafał Lużyński <digitalfreak@lingonborough.com>
dae3ed95
RL
12257
12258 [BZ #20209]
12259 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
12260 should be "sap" rather than "sab".
12261 (day): Fix spelling of Sunday, should be "sapaat" rather than
12262 "sabaat".
12263
f346b5b3
JM
122642018-10-02 Joseph Myers <joseph@codesourcery.com>
12265
12266 * math/libm-test-fma.inc (fma_test_data): Add more tests.
12267
4a06ceea
MJ
122682018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
12269
12270 [BZ #19444]
12271 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
12272 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
12273 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
12274
a06fc4a5
AZ
122752018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12276
12277 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
12278
a1ccc065
L
122792018-10-02 H.J. Lu <hongjiu.lu@intel.com>
12280
12281 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
12282 Add -mrtm.
12283 (CFLAGS-elision-unlock.c): Likewise.
12284 (CFLAGS-elision-timed.c): Likewise.
12285 (CFLAGS-elision-trylock.c): Likewise.
12286 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
12287
0b727ed4
AZ
122882018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12289
12290 [BZ #21037]
12291 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
12292 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
12293 new fd_to_filename interface.
12294 * libio/freopen64.c (freopen64): Likewise.
12295 * libio/tst-memstream.h: New file.
12296 * libio/tst-memstream4.c: Likewise.
12297 * libio/tst-wmemstream4.c: Likewise.
12298 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
12299 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
12300 and remove internal dynamic allocation.
12301
d0e91e8c
JM
123022018-10-01 Joseph Myers <joseph@codesourcery.com>
12303
12304 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
12305 (MREMAP_MAYMOVE): Do not define here.
12306 [__USE_GNU] (MREMAP_FIXED): Likewise.
12307 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
12308 (MREMAP_MAYMOVE): Define here instead.
12309 [__USE_GNU] (MREMAP_FIXED): Likewise.
12310 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
12311 (MREMAP_MAYMOVE): Remove.
12312 [__USE_GNU] (MREMAP_FIXED): Likewise.
12313
c52944e8
JM
123142018-09-28 Joseph Myers <joseph@codesourcery.com>
12315
12316 * math/fromfp.h: Do not include <math_private.h>.
12317 * math/s_cacosh_template.c: Likewise.
12318 * math/s_casin_template.c: Likewise.
12319 * math/s_casinh_template.c: Likewise.
12320 * math/s_ccos_template.c: Likewise.
12321 * math/s_cproj_template.c: Likewise.
12322 * math/s_fdim_template.c: Likewise.
12323 * math/s_fmaxmag_template.c: Likewise.
12324 * math/s_fminmag_template.c: Likewise.
12325 * math/s_iseqsig_template.c: Likewise.
12326 * math/s_ldexp_template.c: Likewise.
12327 * math/s_nextdown_template.c: Likewise.
12328 * math/w_log1p_template.c: Likewise.
12329 * math/w_scalbln_template.c: Likewise.
12330 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
12331 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
12332 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
12333 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
12334 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
12335 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
12336 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
12337 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
12338 * sysdeps/i386/fpu/s_atanl.c: Likewise.
12339 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
12340 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
12341 * sysdeps/i386/fpu/s_fdim.c: Likewise.
12342 * sysdeps/i386/fpu/s_logbl.c: Likewise.
12343 * sysdeps/i386/fpu/s_rintl.c: Likewise.
12344 * sysdeps/i386/fpu/s_significandl.c: Likewise.
12345 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
12346 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
12347 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12348 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
12349 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
12350 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
12351 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
12352 * sysdeps/ieee754/k_standardf.c: Likewise.
12353 * sysdeps/ieee754/k_standardl.c: Likewise.
12354 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
12355 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
12356 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
12357 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
12358 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
12359 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
12360 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
12361 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
12362 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
12363 * sysdeps/ieee754/s_signgam.c: Likewise.
12364 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
12365 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
12366 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
12367 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
12368 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
12369 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
12370 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
12371 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
12372 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
12373 * sysdeps/riscv/rvd/s_finite.c: Likewise.
12374 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
12375 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
12376 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
12377 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
12378 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
12379 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
12380 * sysdeps/riscv/rvf/fegetround.c: Likewise.
12381 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
12382 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
12383 * sysdeps/riscv/rvf/fesetround.c: Likewise.
12384 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
12385 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
12386 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
12387 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
12388 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
12389 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
12390 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
12391 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
12392 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
12393 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
12394 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
12395 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
12396 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
12397 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
12398 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
12399 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
12400 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
12401 <math_private.h>.
12402 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
12403
7b1f9406
L
124042018-09-28 H.J. Lu <hongjiu.lu@intel.com>
12405
12406 [BZ #23716]
12407 * sysdeps/i386/dl-cet.c: Removed.
12408 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
12409 prototype.
12410 (_dl_runtime_profile_shstk): Likewise.
12411 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
12412 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
12413
7a16bdbb
AZ
124142018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12415
12416 [BZ #23579]
12417 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
12418 do_test_with_invalid_iov): New tests.
12419 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
12420 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
12421 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
12422 errno is ENOSYS.
12423 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
12424 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
12425 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
12426
9755bc46
JM
124272018-09-27 Joseph Myers <joseph@codesourcery.com>
12428
81dca813
JM
12429 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
12430 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
12431 (MATH_REDIRECT_BINARY_ARGS): New macro.
12432 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
12433 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
12434 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
12435 header inclusion.
12436 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
12437 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
12438 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
12439 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
12440 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
12441 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
12442 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
12443 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
12444 Likewise.
12445 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
12446 Likewise.
12447 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
12448 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
12449 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
12450 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
12451 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
12452 Likewise.
12453 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
12454 Likewise.
12455 * sysdeps/generic/math_private_calls.h
12456 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
12457 Do not declare and define as an inline function.
12458 * math/divtc3.c (__divtc3): Use copysign functions instead of
12459 __copysign variants.
12460 * math/multc3.c (__multc3): Likewise.
12461 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
12462 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
12463 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
12464 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
12465 Likewise.
12466 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
12467 (__ieee754_yn): Likewise.
12468 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
12469 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
12470 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
12471 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
12472 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
12473 (__sin): Likewise.
12474 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
12475 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
12476 Likewise.
12477 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
12478 Likewise.
12479 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
12480 Likewise.
12481 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
12482 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
12483 Likewise.
12484 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
12485 (__ieee754_ynf): Likewise.
12486 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
12487 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
12488 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
12489 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
12490 Likewise.
12491 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
12492 (__ieee754_ynl): Likewise.
12493 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
12494 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
12495 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
12496 Likewise.
12497 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
12498 (__ieee754_ynl): Likewise.
12499 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
12500 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
12501 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
12502 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
12503 Likewise.
12504 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
12505 (__ieee754_ynl)
12506 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
12507 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
12508 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
12509 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
12510 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
12511
9755bc46
JM
12512 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
12513 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
12514 using MATH_REDIRECT.
12515 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
12516 header inclusion.
12517 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
12518 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
12519 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
12520 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
12521 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
12522 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
12523 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
12524 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
12525 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
12526 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
12527 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
12528 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
12529 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
12530 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
12531 (round): Redirect to __round.
12532 (__roundl): Call round instead of __round.
12533 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
12534 Remove macro.
12535 [_ARCH_PWR5X] (__roundf): Likewise.
12536 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
12537 functions instead of __round variants.
12538 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
12539 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
12540 Likewise.
12541 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
12542 Likewise.
12543 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
12544 Likewise.
12545 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
12546 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
12547 __lroundl.
12548 (__ieee754_expl): Call roundl instead of __roundl.
12549
f841c97e
AS
125502018-09-27 Andreas Schwab <schwab@suse.de>
12551
12552 [BZ #23717]
12553 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
12554 (do_test): Make st1 static.
12555
6ca8284e
AS
125562018-09-26 Andreas Schwab <schwab@suse.de>
12557
12558 [BZ #23707]
12559 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
12560 * elf/Makefile (tests): Add tst-unwind-ctor.
12561 (modules-names): Add tst-unwind-ctor-lib.
12562 ($(objpfx)tst-unwind-ctor): Depend on
12563 $(objpfx)tst-unwind-ctor-lib.so.
12564
61d8b5fe
JM
125652018-09-26 Joseph Myers <joseph@codesourcery.com>
12566
12567 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
12568 file. Most contents moved from ....
12569 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
12570 and include <bits/mman-map-flags-generic.h>.
12571 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
12572 (sysdep_headers): Add bits/mman-map-flags-generic.h.
12573 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
12574 <bits/mman-map-flags-generic.h>.
12575 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
12576 macros defined in <bits/mman-map-flags-generic.h>.
12577 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
12578 <bits/mman-map-flags-generic.h>.
12579 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
12580 defined in <bits/mman-map-flags-generic.h>.
12581
46341286
AS
125822018-09-26 Andreas Schwab <schwab@suse.de>
12583
12584 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
12585 output.
12586
b5c45e83
AZ
125872018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
12588 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12589 Fangrui Song <maskray@google.com>
12590
12591 [BZ #20480]
12592 * config.make.in (have-textrel_ifunc): New define.
12593 * configure.ac: Add check if linker supports textrel relocation with
12594 ifunc.
12595 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
12596 tst-ifunc-textrel.
12597 (CFLAGS-tst-ifunc-textrel.c): New rule.
12598 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
12599 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
12600 * elf/tst-ifunc-textrel.c: New file.
12601
8ea4d2b7
JM
126022018-09-25 Joseph Myers <joseph@codesourcery.com>
12603
d62f9ec0
JM
12604 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
12605 <bits/procfs-prregset.h>.
12606 (prgregset_t): Define using __prgregset_t.
12607 (prfpregset_t): Define using __prfpregset_t.
12608 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
12609 (sysdep_headers): Add bits/procfs-prregset.h.
12610 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
12611 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
12612 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
12613 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
12614
d0d8eb43
JM
12615 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
12616 <bits/procfs-id.h> and <bits/procfs-extra.h>.
12617 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
12618 pr_uid and pr_gid.
12619 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
12620 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
12621 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
12622 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
12623 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
12624 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
12625 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
12626 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
12627 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
12628 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
12629 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
12630 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
12631 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
12632 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
12633 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
12634 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
12635 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
12636 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
12637 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
12638 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
12639 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
12640 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
12641 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
12642 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
12643
8ea4d2b7
JM
12644 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
12645 AArch64 version. Include <bits/procfs.h>.
12646 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
12647 (sysdep_headers): Add bits/procfs.h.
12648 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
12649 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
12650 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
12651 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
12652 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
12653 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
12654 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
12655 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
12656 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
12657 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
12658 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
12659 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
12660 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
12661 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
12662 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
12663 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
12664 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
12665
c7027166
AZ
126662018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12667
12668 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
12669 Use libsupport.
12670
335a3b0a
AS
126712018-09-25 Arjun Shankar <arjun@redhat.com>
12672
12673 * iconv/gconv_int.h (__gconv_path_elem): Remove.
12674 (__gconv_max_path_elem_len): Likewise.
12675 (__gconv_nmodules): Likewise.
12676 (__gconv_get_path): Likewise.
12677 (path_elem): Move to ...
12678 * iconv/gconv_conf.c: ... here.
12679 (__gconv_get_path): Mark function static.
12680 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
12681 * iconv/gconv_open.c: ... here.
12682
462d348c
AS
126832018-09-24 Andreas Schwab <schwab@suse.de>
12684
12685 * scripts/haveversions.awk: New file.
12686 * Makerules ($(common-objpfx)Versions.def)
12687 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
12688 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
12689 Move rules ...
12690 * Makeconfig ($(common-objpfx)Versions.def)
12691 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
12692 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
12693 ... here.
12694 ($(common-objpfx)Versions.mk): New rule. Include it.
12695 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
12696 Emit error if build-obsolete-nsl = yes.
12697 * manual/install.texi (Configuring and compiling): Describe
12698 --enable-obsolete-nsl as unavaiable after version 2.28.
12699 * INSTALL: Regenerate.
12700
f0458cf4
AZ
127012018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12702
12703 * NEWS: Add note about new TLE support on powerpc64le.
12704 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
12705 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
12706 __ununsed1.
12707 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
12708 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
12709 * sysdeps/powerpc/powerpc32/sysdep.h,
12710 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
12711 ABORT_TRANSACTION): Remove macros.
12712 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
12713 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
12714 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
12715 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
12716 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
12717 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
12718 usage.
12719 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
12720
ab74d59f 127212018-09-21 Rafał Lużyński <digitalfreak@lingonborough.com>
434d45fd
RL
12722
12723 [BZ #10425]
12724 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
12725 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
12726 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
12727 which is the same as in it_IT.
12728 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
12729 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
12730
d90c9b1a
JM
127312018-09-20 Joseph Myers <joseph@codesourcery.com>
12732
7abf97be
JM
12733 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
12734 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
12735 using MATH_REDIRECT.
12736 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
12737 header inclusion.
12738 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
12739 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
12740 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
12741 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
12742 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
12743 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
12744 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
12745 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
12746 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
12747 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
12748 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
12749 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
12750 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
12751 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
12752 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
12753 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
12754 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
12755 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
12756 (ceil): Redirect to __ceil.
12757 (floor): Redirect to __floor.
12758 (trunc): Redirect to __trunc.
12759 (__truncl): Call trunc instead of __trunc.
12760 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
12761 Remove macro.
12762 [_ARCH_PWR5X] (__truncf): Likewise.
12763 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
12764 trunc functions instead of __trunc variants.
12765 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
12766 Likewise.
12767 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
12768 Likewise.
12769 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
12770 Likewise.
12771 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
12772 Likewise.
12773
d90c9b1a
JM
12774 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
12775 [__i586__ || __pentium__].
12776 [__i486__]: Handle explicitly.
12777 (HAS_CPUID): Define to 1 if above macros are undefined.
12778 (HAS_I586): Likewise.
12779 (HAS_I686): Likewise.
12780
db9a8ad4
FW
127812018-09-20 Florian Weimer <fweimer@redhat.com>
12782
12783 * misc/tst-gethostid.c: New file.
12784 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
12785 (tst-gethostid): Link with -ldl.
12786
1214ba06
MY
127872018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
12788
12789 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
12790 value from gethostbyname_r.
12791
791b350d
CD
127922018-09-19 Carlos O'Donell <carlos@redhat.com>
12793
12794 * stdlib/tst-setcontext9.c (f1): Rename to...
12795 (f1a): ... this.
12796 (f1b): New function implementing lower half of f1 in alternate stack.
12797
8e6fd2bd
PE
127982018-09-19 Paul Eggert <eggert@cs.ucla.edu>
12799
e1080e7e
PE
12800 Fix mktime localtime offset confusion
12801 [BZ #23603]
12802 * include/time.h (__mktime_internal): The localtime offset is now
12803 of type long int instead of time_t. This is the longstanding type
12804 in glibc, and it is more than enough to represent difference
12805 between localtime and gmtime even if it is 32 bits and time_t is
12806 64. Changing it now will let us avoid an unnecessary change when
12807 time_t is widened to 64 bits on 32-bit platforms.
12808 * time/mktime-internal.h (mktime_offset_t): Now long int.
12809
8e6fd2bd
PE
12810 Merge mktime, timegm from upstream Gnulib
12811 [BZ #23603][BZ #16346]
12812 This fixes some obscure problems with integer overflow.
12813 Although it looks scary, it is almost all a byte-for-byte copy
12814 from Gnulib, and the Gnulib code has been tested reasonably well.
12815 * include/intprops.h: New file, copied from Gnulib.
12816 * include/verify.h, time/mktime-internal.h:
12817 New tiny files, simplified from Gnulib.
12818 * time/mktime.c: Copy from Gnulib. This has the following changes:
12819 Do not include config.h if DEBUG_MKTIME is nonzero.
12820 Include stdbool.h, intprops.h, verify.h.
12821 Include string.h only if needed.
12822 Include stdlib.h on MS-Windows.
12823 Include mktime-internal.h.
12824 (DEBUG_MKTIME): Default to 0, and simplify later uses.
12825 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
12826 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
12827 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
12828 simplify later conditionals; default the others to zero. Use
12829 these conditionals to express only the code needed on the current
12830 platform. In uses of these conditionals, explicitly spell out how
12831 _LIBC affects things, so it’s easier to review from a glibc
12832 viewpoint.
12833 (WRAPV): Remove; no longer needed now that we have
12834 systematic overflow checking.
12835 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
12836 compartmentalize tzset issues. Move system-dependent tzsettish
12837 code here from mktime.
12838 (verify): Remove; now done by verify.h. All uses changed.
12839 (long_int): Use a more-conservative definition, to avoid
12840 integer overflow.
12841 (SHR): Remove, replacing with ...
12842 (shr): New function, which means we needn’t worry about side
12843 effects in args, and conversion analysis is simpler.
12844 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
12845 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
12846 (time_t_avg, time_t_add_ok): Remove.
12847 (mktime_min, mktime_max): New constants.
12848 (leapyear, isdst_differ): Use bool for booleans.
12849 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
12850 Use long_int, not time_t, for mktime differences.
12851 (long_int_avg): New function, replacing time_t_avg.
12852 INT_ADD_WRAPV replaces time_t_add_ok.
12853 (guess_time_tm): 6th arg is now long_int, not time_t const *.
12854 All uses changed.
12855 (convert_time): New function.
12856 (ranged_convert): Use it.
12857 (__mktime_internal): Last arg now points to mktime_offset_t, not
12858 time_t. All uses changed. This is a no-op on glibc, where
12859 mktime_offset_t is always time_t. Use int, not time_t, for UTC
12860 offset guess. Directly check for integer overflow instead of
12861 using a heuristic that works only 99.9...% of the time.
12862 Access *OFFSET only once, to avoid an unlikely race if the
12863 compiler delays a load and if this cascades into a signed integer
12864 overflow.
12865 (mktime): Move tzsettish code to my_tzset, and move
12866 localtime_offset to within mktime so that it doesn’t
12867 need a separate ifdef.
12868 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
12869 instead of localtime.
12870 * time/timegm.c: Copy from Gnulib. This has the following changes:
12871 Include mktime-internal.h.
12872 [!_LIBC]: Include config.h and time.h. Do not include
12873 timegm.h or time_r.h. Make __mktime_internal a macro,
12874 and include mktime-internal.h to get its declaration.
12875 (timegm): Temporary is now mktime_offset_t, not time_t.
12876 This affects only Gnulib.
12877
83a552b0
WD
128782018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
12879
12880 [BZ #23637]
12881 * string/test-strstr.c (pr23637): New function.
12882 (test_main): Add tests with longer needles.
12883 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
12884 * string/strstr.c (AVAILABLE): Likewise.
12885
d7347278
SN
128862018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
12887
12888 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
12889
424c4f60
SN
128902018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
12891
12892 * NEWS: Mention pow improvements.
12893 * math/Makefile (type-double-routines): Add e_pow_log_data.
12894 * sysdeps/generic/math_private.h (__exp1): Remove.
12895 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
12896 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
12897 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
12898 contraction.
12899 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
12900 (exp_inline): Remove.
12901 (__ieee754_exp): Only single double input is handled.
12902 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
12903 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
12904 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
12905 (__pow_log_data): Define.
12906 * sysdeps/ieee754/dbl-64/upow.h: Remove.
12907 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
12908 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
12909 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
12910 contraction.
12911 (CFLAGS-e_pow-fma4.c): Likewise.
12912
e4e4fde5
PE
129132018-09-18 Paul Eggert <eggert@cs.ucla.edu>
12914
dab9c348
PE
12915 Simplify tzfile fstat failure code
12916 [BZ #21716]
12917 * time/tzfile.c (__tzfile_read): Simplify slightly.
12918
e4e4fde5
PE
12919 Fix tzfile low-memory assertion failure
12920 [BZ #21716]
12921 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
12922 when registering time zone abbreviations.
12923
50bc59ca
JM
129242018-09-18 Joseph Myers <joseph@codesourcery.com>
12925
d3a43e49
JM
12926 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
12927 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
12928 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
12929 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
12930 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
12931 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
12932 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
12933 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
12934 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
12935
50bc59ca
JM
12936 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
12937 __ceil.
12938 (__ceill): Call ceil instead of __ceil.
12939 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
12940 __floor.
12941 (__floorl): Call floor instead of __floor.
12942
89983cb3
JM
129432018-09-17 Joseph Myers <joseph@codesourcery.com>
12944
71223ef9
JM
12945 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
12946 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
12947 using MATH_REDIRECT.
12948 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
12949 header inclusion.
12950 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
12951 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
12952 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
12953 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
12954 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
12955 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
12956 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
12957 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
12958 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
12959 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
12960 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
12961 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
12962 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
12963 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
12964 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
12965 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
12966 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
12967 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
12968 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
12969 Remove macro.
12970 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
12971 functions instead of __ceil variants.
12972 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
12973 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
12974 Likewise.
12975 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
12976 Likewise.
12977 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
12978 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
12979 Likewise.
12980 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
12981 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
12982
89983cb3
JM
12983 [BZ #21286]
12984 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
12985 constant.
12986 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
12987 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
12988 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
12989 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
12990 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
12991 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
12992 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
12993 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
12994 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
12995 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
12996 (ILL_BADIADDR): Remove constant.
12997 (TRAP_BRANCH): Likewise.
12998 (TRAP_HWBKPT): Likewise.
12999
e44acb20
JM
130002018-09-14 Joseph Myers <joseph@codesourcery.com>
13001
3f7f1d18
JM
13002 [BZ #23656]
13003 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
13004 Remove [_MIPS_SIM = _ABIN32] conditional case.
13005 (struct elf_prpsinfo): Likewise.
13006
d59f3e5e
JM
13007 [BZ #23649]
13008 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
13009 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
13010 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
13011 Likewise.
13012 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
13013 elf_prpsinfo): Likewise.
13014 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
13015 elf_prpsinfo): Likewise.
13016 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
13017 Likewise.
13018
f29b6f17
JM
13019 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
13020 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
13021 using MATH_REDIRECT.
13022 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
13023 header inclusion.
13024 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
13025 * sysdeps/alpha/fpu/s_rint.c: Likewise.
13026 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
13027 * sysdeps/i386/fpu/s_rintl.c: Likewise.
13028 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
13029 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
13030 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
13031 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
13032 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
13033 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
13034 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
13035 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
13036 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
13037 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
13038 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
13039 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
13040 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
13041 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
13042 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
13043 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
13044 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
13045 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
13046 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
13047 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
13048 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
13049 * sysdeps/x86_64/fpu/math_private.h: Remove file.
13050 * math/e_scalb.c (invalid_fn): Use rint functions instead of
13051 __rint variants.
13052 * math/e_scalbf.c (invalid_fn): Likewise.
13053 * math/e_scalbl.c (invalid_fn): Likewise.
13054 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
13055 Likewise.
13056 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
13057 Likewise.
13058 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
13059 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
13060 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
13061 Likewise.
13062 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
13063 Likewise.
13064 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
13065 Likewise.
13066 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
13067 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
13068
e44acb20
JM
13069 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
13070 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
13071 New macro.
13072 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
13073 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
13074 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
13075 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
13076 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
13077 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
13078 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
13079 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
13080 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
13081 && !NO_MATH_REDIRECT] (floor): Likewise.
13082 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
13083 header inclusion.
13084 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
13085 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
13086 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
13087 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
13088 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
13089 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
13090 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
13091 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
13092 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
13093 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
13094 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
13095 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
13096 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
13097 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
13098 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
13099 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
13100 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
13101 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
13102 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
13103 Remove macro.
13104 [_ARCH_PWR5X] (__floorf): Likewise.
13105 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
13106 inline function.
13107 [__SSE4_1__] (__floorf): Likewise.
13108 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
13109 instead of __floor variants.
13110 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
13111 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
13112 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
13113 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
13114 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
13115 * math/w_tgamma_compat.c (__tgamma): Likewise.
13116 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
13117 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
13118 * math/w_tgammal_compat.c (__tgammal): Likewise.
13119 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
13120 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
13121 Likewise.
13122 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
13123 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
13124 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
13125 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
13126 Likewise.
13127 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
13128 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
13129 Likewise.
13130 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
13131 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
13132 Likewise.
13133 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
13134 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
13135 Likewise.
13136 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
13137 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
13138 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
13139 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
13140 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
13141 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
13142
221e4bab
JM
131432018-09-12 Joseph Myers <joseph@codesourcery.com>
13144
13145 * elf/Makefile (modules-names-tests): New variable.
13146
3e08ff54
SN
131472018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
13148
13149 * NEWS: Mention log2 improvements.
13150 * math/Makefile (type-double-routines): Add e_log2_data.
13151 * sysdeps/i386/fpu/e_log2_data.c: New file.
13152 * sysdeps/ia64/fpu/e_log2_data.c: New file.
13153 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
13154 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
13155 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
13156 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
13157 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
13158
f41b0a43
SN
131592018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
13160
13161 * NEWS: Mention log improvement.
13162 * math/Makefile (type-double-routines): Add e_log_data.
13163 * sysdeps/i386/fpu/e_log_data.c: New file.
13164 * sysdeps/ia64/fpu/e_log_data.c: New file.
13165 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
13166 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
13167 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
13168 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
13169 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
13170 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
13171
5a274db4
L
131722018-09-12 H.J. Lu <hongjiu.lu@intel.com>
13173 Xuepeng Guo <xuepeng.guo@intel.com>
13174
13175 [BZ #23606]
13176 * sysdeps/i386/start.S: Include <sysdep.h>
13177 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
13178 enabled. Add cfi_undefined (eip).
13179
b1176270
JM
131802018-09-11 Joseph Myers <joseph@codesourcery.com>
13181
4e7fbdd7
JM
13182 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
13183 (MOVQ): Likewise.
13184 (EXTRACT_WORDS64): Likewise.
13185 (INSERT_WORDS64): Likewise.
13186 (GET_FLOAT_WORD): Likewise.
13187 (SET_FLOAT_WORD): Likewise.
13188
b1176270
JM
13189 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
13190 argument.
13191 (Config.build_gcc): Use --disable-libsanitizer for first GCC
13192 build, but not for second build if --full-gcc. Use
13193 --enable-languages=all for second build if --full-gcc.
13194 (get_parser): Add --full-gcc option.
13195 (main): Update call to Context.
13196
ab74d59f 131972018-09-10 Rafał Lużyński <digitalfreak@lingonborough.com>
527f355e
RL
13198
13199 [BZ #10797]
13200 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
13201 Single Quotation Mark).
13202 (thousands_sep): Likewise.
13203 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
13204 * localedata/locales/it_IT (thousands_sep): Use ".".
13205 (grouping): Use "3;3".
13206
7244f13d
JM
132072018-09-10 Joseph Myers <joseph@codesourcery.com>
13208
13209 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
13210 x86_64 and i686 configs using --enable-obsolete-rpc
13211 --enable-obsolete-nsl.
13212
38245425
SL
132132018-09-06 Stefan Liebler <stli@linux.ibm.com>
13214
13215 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
13216
28669f86
SL
132172018-09-06 Stefan Liebler <stli@linux.ibm.com>
13218
13219 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
13220 Increment size of new_argv by one.
13221
ab74d59f 132222018-09-05 Rafał Lużyński <digitalfreak@lingonborough.com>
a33650d1
RL
13223
13224 [BZ #17426]
13225 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
13226 * localedata/locales/ar_IN (d_fmt): Likewise.
13227 * localedata/locales/bhb_IN (d_fmt): Likewise.
13228 * localedata/locales/bho_IN (d_fmt): Likewise.
13229 * localedata/locales/bn_BD (d_fmt): Likewise.
13230 * localedata/locales/bn_IN (d_fmt): Likewise.
13231 * localedata/locales/doi_IN (d_fmt): Likewise.
13232 * localedata/locales/gu_IN (d_fmt): Likewise.
13233 * localedata/locales/hi_IN (d_fmt): Likewise.
13234 * localedata/locales/hne_IN (d_fmt): Likewise.
13235 * localedata/locales/kn_IN (d_fmt): Likewise.
13236 * localedata/locales/mag_IN (d_fmt): Likewise.
13237 * localedata/locales/mai_IN (d_fmt): Likewise.
13238 * localedata/locales/mjw_IN (d_fmt): Likewise.
13239 * localedata/locales/ml_IN (d_fmt): Likewise.
13240 * localedata/locales/mni_IN (d_fmt): Likewise.
13241 * localedata/locales/mr_IN (d_fmt): Likewise.
13242 * localedata/locales/pa_IN (d_fmt): Likewise.
13243 * localedata/locales/raj_IN (d_fmt): Likewise.
13244 * localedata/locales/sat_IN (d_fmt): Likewise.
13245 * localedata/locales/sd_IN (d_fmt): Likewise.
13246 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
13247 * localedata/locales/ta_IN (d_fmt): Likewise.
13248 * localedata/locales/ta_LK (d_fmt): Likewise.
13249 * localedata/locales/tcy_IN (d_fmt): Likewise.
13250 * localedata/locales/ur_IN (d_fmt): Likewise.
13251
13252 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
13253 * localedata/locales/ks_IN (d_fmt): Likewise.
13254 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
13255
13256 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
13257 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
13258 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
13259 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
13260
d114e6a7
SN
132612018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
13262
13263 * NEWS: Mention exp and exp2 improvements.
13264 * math/Makefile (libm-support): Remove t_exp.
13265 (type-double-routines): Add math_err and e_exp_data.
13266 * sysdeps/aarch64/libm-test-ulps: Update.
13267 * sysdeps/arm/libm-test-ulps: Update.
13268 * sysdeps/i386/fpu/e_exp_data.c: New file.
13269 * sysdeps/i386/fpu/math_err.c: New file.
13270 * sysdeps/i386/fpu/t_exp.c: Remove.
13271 * sysdeps/ia64/fpu/e_exp_data.c: New file.
13272 * sysdeps/ia64/fpu/math_err.c: New file.
13273 * sysdeps/ia64/fpu/t_exp.c: Remove.
13274 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
13275 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
13276 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
13277 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
13278 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
13279 * sysdeps/ieee754/dbl-64/math_config.h: New file.
13280 * sysdeps/ieee754/dbl-64/math_err.c: New file.
13281 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
13282 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
13283 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
13284 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
13285 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
13286 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
13287 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
13288 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13289 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
13290
b9d8c474
JM
132912018-09-05 Joseph Myers <joseph@codesourcery.com>
13292
b7cdc2ae
JM
13293 * sysdeps/alpha/fpu/math_private.h: Remove.
13294
b9d8c474
JM
13295 * sysdeps/generic/math_private.h
13296 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
13297 Move this inline function ....
13298 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
13299 * include/math.h [!_ISOMAC]: To here....
13300
418d99e6
JM
133012018-09-04 Joseph Myers <joseph@codesourcery.com>
13302
13303 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
13304 code ....
13305 [!FE_HAVE_ROUNDING_MODES]: And this code ....
13306 * include/fenv.h [!_ISOMAC]: ... to here.
13307 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
13308 (feraiseexcept): Likewise.
13309 * math/fromfp.h: Do not include <fenv_private.h>.
13310 * math/s_cexp_template.c: Likewise.
13311 * math/s_csin_template.c: Likewise.
13312 * math/s_csinh_template.c: Likewise.
13313 * math/s_ctan_template.c: Likewise.
13314 * math/s_ctanh_template.c: Likewise.
13315 * math/s_iseqsig_template.c: Likewise.
13316 * math/w_acos_compat.c: Likewise.
13317 * math/w_acosf_compat.c: Likewise.
13318 * math/w_acosl_compat.c: Likewise.
13319 * math/w_asin_compat.c: Likewise.
13320 * math/w_asinf_compat.c: Likewise.
13321 * math/w_asinl_compat.c: Likewise.
13322 * math/w_j0_compat.c: Likewise.
13323 * math/w_j0f_compat.c: Likewise.
13324 * math/w_j0l_compat.c: Likewise.
13325 * math/w_j1_compat.c: Likewise.
13326 * math/w_j1f_compat.c: Likewise.
13327 * math/w_j1l_compat.c: Likewise.
13328 * math/w_jn_compat.c: Likewise.
13329 * math/w_jnf_compat.c: Likewise.
13330 * math/w_log10_compat.c: Likewise.
13331 * math/w_log10f_compat.c: Likewise.
13332 * math/w_log10l_compat.c: Likewise.
13333 * math/w_log2_compat.c: Likewise.
13334 * math/w_log2f_compat.c: Likewise.
13335 * math/w_log2l_compat.c: Likewise.
13336 * math/w_log_compat.c: Likewise.
13337 * math/w_logf_compat.c: Likewise.
13338 * math/w_logl_compat.c: Likewise.
13339 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
13340 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
13341 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
13342 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
13343 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
13344 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
13345 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
13346 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
13347 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
13348 * sysdeps/ieee754/k_standardl.c: Likewise.
13349 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
13350 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
13351 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
13352 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
13353 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
13354 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
13355 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
13356 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
13357 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
13358 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
13359 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
13360 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
13361 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
13362 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
13363 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
13364 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
13365 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
13366 * math/w_ilogb_template.c: Include <fenv.h> instead of
13367 <fenv_private.h>.
13368 * math/w_llogb_template.c: Likewise.
13369 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
13370 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
13371
70e2ba33
JM
133722018-09-03 Joseph Myers <joseph@codesourcery.com>
13373
13374 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
13375 * math/fromfp.h: Include <fenv_private.h>.
13376 * math/math-narrow.h: Likewise.
13377 * math/s_cexp_template.c: Likewise.
13378 * math/s_csin_template.c: Likewise.
13379 * math/s_csinh_template.c: Likewise.
13380 * math/s_ctan_template.c: Likewise.
13381 * math/s_ctanh_template.c: Likewise.
13382 * math/s_iseqsig_template.c: Likewise.
13383 * math/w_acos_compat.c: Likewise.
13384 * math/w_acosf_compat.c: Likewise.
13385 * math/w_acosl_compat.c: Likewise.
13386 * math/w_asin_compat.c: Likewise.
13387 * math/w_asinf_compat.c: Likewise.
13388 * math/w_asinl_compat.c: Likewise.
13389 * math/w_ilogb_template.c: Likewise.
13390 * math/w_j0_compat.c: Likewise.
13391 * math/w_j0f_compat.c: Likewise.
13392 * math/w_j0l_compat.c: Likewise.
13393 * math/w_j1_compat.c: Likewise.
13394 * math/w_j1f_compat.c: Likewise.
13395 * math/w_j1l_compat.c: Likewise.
13396 * math/w_jn_compat.c: Likewise.
13397 * math/w_jnf_compat.c: Likewise.
13398 * math/w_llogb_template.c: Likewise.
13399 * math/w_log10_compat.c: Likewise.
13400 * math/w_log10f_compat.c: Likewise.
13401 * math/w_log10l_compat.c: Likewise.
13402 * math/w_log2_compat.c: Likewise.
13403 * math/w_log2f_compat.c: Likewise.
13404 * math/w_log2l_compat.c: Likewise.
13405 * math/w_log_compat.c: Likewise.
13406 * math/w_logf_compat.c: Likewise.
13407 * math/w_logl_compat.c: Likewise.
13408 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
13409 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
13410 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
13411 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
13412 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13413 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
13414 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
13415 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
13416 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
13417 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13418 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
13419 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
13420 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
13421 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
13422 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
13423 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
13424 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
13425 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
13426 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
13427 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
13428 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
13429 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
13430 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
13431 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
13432 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13433 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
13434 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
13435 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
13436 * sysdeps/ieee754/float128/float128_private.h: Likewise.
13437 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
13438 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
13439 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
13440 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
13441 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
13442 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
13443 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
13444 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
13445 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
13446 * sysdeps/ieee754/k_standardl.c: Likewise.
13447 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
13448 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
13449 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
13450 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
13451 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
13452 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
13453 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
13454 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
13455 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
13456 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
13457 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
13458 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
13459 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
13460 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
13461 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
13462 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
13463 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
13464 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
13465 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
13466 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
13467 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
13468 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
13469 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
13470 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
13471 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
13472 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
13473 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
13474 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
13475 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
13476 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
13477 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
13478 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
13479 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
13480 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
13481 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
13482 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
13483 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
13484 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
13485 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
13486 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
13487 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
13488 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
13489 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
13490 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
13491 * sysdeps/riscv/rvd/s_finite.c: Likewise.
13492 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
13493 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
13494 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
13495 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
13496 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
13497 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
13498 * sysdeps/riscv/rvf/fegetround.c: Likewise.
13499 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
13500 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
13501 * sysdeps/riscv/rvf/fesetround.c: Likewise.
13502 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
13503 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
13504 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
13505 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
13506 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
13507 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
13508 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
13509 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
13510 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
13511 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
13512 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
13513 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
13514 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
13515 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
13516 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
13517 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
13518
a6e8926f
PP
135192018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
13520
13521 [BZ #20271]
13522 * include/stdio.h (__libc_fatal): Mention newline in comment.
13523 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
13524 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
13525 * nscd/initgrcache.c (addinitgroupsX): Likewise.
13526 * nss/nsswitch.c (__nss_next2): Likewise.
13527 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
13528 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
13529 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
13530 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
13531 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
13532 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
13533 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
13534 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
13535 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
13536 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
13537 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
13538 * sysdeps/unix/sysv/linux/netlink_assert_response.c
13539 (__netlink_assert_response): Likewise.
13540
2bbd06bc
JM
135412018-08-31 Joseph Myers <joseph@codesourcery.com>
13542
13543 * conform/glibcconform.py: New file.
13544 * conform/list-header-symbols.py: Likewise.
13545 * conform/list-header-symbols.pl: Remove.
13546 * conform/Makefile (tests-special): Only add linknamespace tests
13547 if [PYTHON].
13548 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
13549
81b9d87b
L
135502018-08-31 H.J. Lu <hongjiu.lu@intel.com>
13551
13552 [BZ #23597]
13553 * support/Makefile (libsupport-routines): Add
13554 support_copy_file_range and xcopy_file_range.
13555 * support/support.h: Include <sys/types.h>.
13556 (support_copy_file_range): New prototype.
13557 * support/support_copy_file_range.c: New file. Copied and
13558 modified from io/copy_file_range-compat.c.
13559 * support/test-container.c (copy_one_file): Call xcopy_file_rang
13560 instead of copy_file_range.
13561 * support/xcopy_file_range.c: New file.
13562 * support/xunistd.h (xcopy_file_range): New prototype.
13563
d330f31a
CD
135642018-08-30 Carlos O'Donell <carlos@redhat.com>
13565
13566 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
13567 xpthread_create and xpthread_join.
13568
2bda273a
FW
135692018-08-30 Florian Weimer <fweimer@redhat.com>
13570
13571 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
13572
3bad2358
SL
135732018-08-30 Stefan Liebler <stli@linux.ibm.com>
13574
13575 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
13576 if malloc fails.
13577
09c12efc
JM
135782018-08-29 Joseph Myers <joseph@codesourcery.com>
13579
13580 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
13581 and minus_oflow as non-finite.
13582
ff6b2450
JM
135832018-08-28 Joseph Myers <joseph@codesourcery.com>
13584
13585 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
13586 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
13587 moved to fenv_private.h except for ...
13588 (TOINT_INTRINSICS): Kept in math_private.h.
13589 (roundtoint): Likewise.
13590 (converttoint): Likewise.
13591 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
13592 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
13593 * sysdeps/arm/math_private.h: Remove.
13594 * sysdeps/generic/fenv_private.h: New file. Contents moved from
13595 ....
13596 * sysdeps/generic/math_private.h: ... this file. Include
13597 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
13598 Include <fenv_private.h>. Remove functions and macros moved to
13599 fenv_private.h.
13600 * sysdeps/i386/fpu/math_private.h: Remove.
13601 * sysdeps/mips/math_private.h: Move to ....
13602 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
13603 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
13604 [__mips_hard_float] conditional. Include next <fenv_private.h>.
13605 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
13606 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
13607 * sysdeps/powerpc/fpu/math_private.h: Do not include
13608 <fenv_private.h>.
13609 * sysdeps/riscv/rvf/math_private.h: Move to ....
13610 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
13611 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
13612 <fenv_private.h>.
13613 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
13614 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
13615 * sysdeps/sparc/fpu/math_private.h: Remove.
13616 * sysdeps/i386/fpu/fenv_private.h: Move to ....
13617 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
13618 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
13619 <fenv_private.h>.
13620 * sysdeps/x86_64/fpu/math_private.h: Do not include
13621 <sysdeps/i386/fpu/fenv_private.h>.
13622
761404b7
FW
136232018-08-28 Florian Weimer <fweimer@redhat.com>
13624
13625 [BZ #23578]
13626 * posix/tst-regcomp-truncated.c: New file.
13627 * posix/Makefile (tests): Add it.
13628 (tst-regcomp-truncated.out): Depend on generated locales.
13629
d6c44c3d
FW
136302018-08-28 Florian Weimer <fweimer@redhat.com>
13631
13632 * support/test-container.c (main): Treat unshare failure with
13633 EPERM as an unsupported test.
13634
745664bd
FW
136352018-08-28 Florian Weimer <fweimer@redhat.com>
13636
13637 [BZ #23520]
13638 nscd: Fix use-after-free in addgetnetgrentX and its callers.
13639 * nscd/netgroupcache.c
13640 (addgetnetgrentX): Add tofreep parameter. Do not free
13641 heap-allocated buffer.
13642 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
13643 (addgetnetgrentX_ignore): New function.
13644 (addgetnetgrent): Call it.
13645 (readdgetnetgrent): Likewise.
13646
c8dd67e7
RS
136472018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
13648
13649 * string/memmem.c: Use memcmp for first match.
13650
ab74d59f 136512018-08-28 Rafał Lużyński <digitalfreak@lingonborough.com>
5abedf97
RL
13652
13653 [BZ #17426]
13654 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
13655
86de0499
DD
136562018-08-27 DJ Delorie <dj@redhat.com>
13657
13658 * support/Makefile (others): Don't list programs explicitly as a
13659 dependency of "others".
13660
c3ab2110
JM
136612018-08-27 Joseph Myers <joseph@codesourcery.com>
13662
13663 * sysdeps/generic/math-tests-trap-force.h: New file.
13664 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
13665 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
13666 * sysdeps/powerpc/math-tests.h: Remove file.
13667 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
13668
6b5c8607
TS
136692018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
13670 Torvald Riegel <triegel@redhat.com>
99ea93ca
MK
13671
13672 [BZ #23538]
13673 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
13674 Update r to include the set wake-request flag if waiters are
13675 remaining after spinning.
13676
4061791f
JM
136772018-08-27 Joseph Myers <joseph@codesourcery.com>
13678
13679 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
13680
bc680b33
PE
136812018-08-25 Paul Eggert <eggert@cs.ucla.edu>
13682
761404b7 13683 [BZ #23578]
bc680b33
PE
13684 regex: fix uninitialized memory access
13685 I introduced this bug into gnulib in commit
13686 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
13687 eventually it was merged into glibc. The bug was found by
13688 project-repo <bugs@feusi.co> and reported here:
13689 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
13690 Diagnosis and draft fix reported by Assaf Gordon here:
13691 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
13692 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
13693 * posix/regex_internal.c (build_wcs_upper_buffer):
13694 Fix bug when mbrtowc returns 0.
13695
02458a52
CD
136962018-08-24 Carlos O'Donell <carlos@redhat.com>
13697
13698 * po/be.po: Update translation.
13699
acc2842a
DD
137002018-08-24 DJ Delorie <dj@delorie.com>
13701
13702 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
13703 $(libunwind).
13704
6c3a8a9d
PP
137052018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
13706
b39d961c
TS
13707 [BZ #23400]
13708 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
13709 create temporary files in source tree.
6c3a8a9d 13710
895ef79e
JM
137112018-08-24 Joseph Myers <joseph@codesourcery.com>
13712
13713 * sysdeps/generic/math-tests-trap.h: New file.
13714 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
13715 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
13716 * sysdeps/aarch64/math-tests.h: Remove file.
13717 * sysdeps/arm/math-tests.h: Likewise.
13718 * sysdeps/riscv/math-tests.h: Likewise.
13719 * sysdeps/aarch64/math-tests-trap.h: New file.
13720 * sysdeps/arm/math-tests-trap.h: Likewise.
13721 * sysdeps/riscv/math-tests-trap.h: Likewise.
13722
ca3aac57
WD
137232018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
13724
13725 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
13726 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
13727 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
13728 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
13729 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
13730 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
13731 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
13732 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
13733 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
13734 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
13735 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
13736 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
13737 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
13738 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
13739 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
13740 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
13741 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
13742 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
13743
60bcac09
JM
137442018-08-23 Joseph Myers <joseph@codesourcery.com>
13745
13746 * sysdeps/generic/math-tests-exceptions.h: New file.
13747 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
13748 (EXCEPTION_TESTS_float): Do not define here.
13749 (EXCEPTION_TESTS_double): Likewise.
13750 (EXCEPTION_TESTS_long_double): Likewise.
13751 (EXCEPTION_TESTS_float128): Likewise.
13752 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
13753 Likewise.
13754 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
13755 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
13756 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
13757 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
13758 * sysdeps/mips/math-tests.h: Likewise.
13759 * sysdeps/nios2/math-tests.h: Likewise.
13760 * sysdeps/riscv/math-tests.h [!__riscv_flen]
13761 (EXCEPTION_TESTS_float): Do not define here.
13762 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
13763 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
13764 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
13765
3bded567
WD
137662018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
13767
13768 * NEWS: Move optimized sinf entry to 2.29.
13769
900fb446
WD
137702018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
13771
13772 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
13773
561b0bec
DD
137742018-08-22 DJ Delorie <dj@redhat.com>
13775
13776 * Makefile (testroot.pristine): New rules to initialize the
13777 test-in-container "testroot".
13778 * Makerules (all-testsuite): Add tests-container.
13779 * Rules (tests-expected): Add tests-container.
13780 (binaries-all-tests): Likewise.
13781 (tests-container): New, run these tests in the testroot container.
13782 * support/Makefile (others): Add *-container, support_paths.c,
13783 xmkdirp, and links-dso-program.
13784 * support/links-dso-program-c.c: New.
13785 * support/links-dso-program.cc: New.
13786 * support/test-container.c: New.
13787 * support/shell-container.c: New.
13788 * support/echo-container.c: New.
13789 * support/true-container.c: New.
13790 * support/xmkdirp.c: New.
13791 * support/xsymlink.c: New.
13792 * support/support_paths.c: New.
13793 * support/support.h: Add support paths prototypes.
13794 * support/xunistd.h: Add xmkdirp () and xsymlink ().
13795
13796 * nss/tst-nss-test3.c: Convert to test-in-container.
13797 * nss/tst-nss-test3.root/: New.
13798
b35d3509
PE
137992018-08-22 Paul Eggert <eggert@cs.ucla.edu>
13800
13801 regex: port Gnulib code to z/OS POSIX environment
13802 Problem reported by Arnold Robbins in:
13803 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
13804 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
13805 Undef.
13806
16a25138
JM
138072018-08-22 Joseph Myers <joseph@codesourcery.com>
13808
debc4c98
JM
13809 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
13810 (ROUNDING_TESTS_double): Remove.
13811 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
13812 (ROUNDING_TESTS_double): Remove.
13813 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
13814 (ROUNDING_TESTS_double): Remove.
13815 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
13816 (ROUNDING_TESTS_float): Remove.
13817 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
13818 (ROUNDING_TESTS_float): Remove.
13819 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
13820 (ROUNDING_TESTS_float): Remove.
13821 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
13822 !TEST_MATHVEC here.
13823 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
13824 (IF_ROUND_INIT_FE_UPWARD): Likewise.
13825
16a25138
JM
13826 * sysdeps/generic/math-tests-rounding.h: New file.
13827 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
13828 (ROUNDING_TESTS_float): Do not define here.
13829 (ROUNDING_TESTS_double): Likewise.
13830 (ROUNDING_TESTS_long_double): Likewise.
13831 (ROUNDING_TESTS_float128): Likewise.
13832 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
13833 (ROUNDING_TESTS_double): Undefine before defining.
13834 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
13835 (ROUNDING_TESTS_double): Undefine before defining.
13836 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
13837 (ROUNDING_TESTS_double): Undefine before defining.
13838 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
13839 (ROUNDING_TESTS_float): Undefine before defining.
13840 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
13841 (ROUNDING_TESTS_float): Undefine before defining.
13842 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
13843 (ROUNDING_TESTS_float): Undefine before defining.
13844 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
13845 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
13846 not define here.
13847 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
13848 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
13849 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
13850 * sysdeps/riscv/math-tests.h [!__riscv_flen]
13851 (ROUNDING_TESTS_float): Do not define here.
13852 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
13853 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
13854 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
13855 (ROUNDING_TESTS_float): Likewise.
13856 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
13857 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
13858 * sysdeps/mips/math-tests.h [__mips_soft_float]
13859 (ROUNDING_TESTS_float): Likewise.
13860 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
13861 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
13862 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
13863 (ROUNDING_TESTS_double): Likewise.
13864 (ROUNDING_TESTS_long_double): Likewise.
13865
38b0593e
TK
138662018-08-21 Tobias Klauser <tklauser@distanz.ch>
13867
13868 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
13869 (PF_XDP): New macro.
13870 (AF_XDP): New macro.
13871 (SOL_XDP): New macro.
13872
5cd7dbde
JM
138732018-08-21 Joseph Myers <joseph@codesourcery.com>
13874
13875 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
13876 (TCP_INQ): Likewise.
13877 (TCP_CM_INQ): Likewise.
13878 (TCP_REPAIR_ON): Likewise.
13879 (TCP_REPAIR_OFF): Likewise.
13880 (TCP_REPAIR_OFF_NO_WP): Likewise.
13881 (struct tcp_zerocopy_receive): New type.
13882
aa42b3db
FW
138832018-08-21 Florian Weimer <fweimer@redhat.com>
13884
13885 * support/support.h (support_descriptor_supports_holes): Declare.
13886 * support/Makefile (libsupport-routines): Add
13887 support_descriptor_supports_holes.
13888 * support/support_descriptor_supports_holes.c: New file.
13889 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
13890 and stop testing if holes are not supported.
13891 * io/test-lfs.c (do_prepare): Likewise.
13892 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
13893 Likewise.
13894 * timezone/tst-tzset.c (create_tz_file): Likewise.
13895 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
13896 variable.
13897 (do_prepare): Set it.
13898 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
13899
c7627f41
FW
139002018-08-21 Florian Weimer <fweimer@redhat.com>
13901
13902 [BZ #17248]
13903 * Makeconfig (+cflags): Do not sort (and deduplicate).
13904
ef939d92
FW
139052018-08-21 Florian Weimer <fweimer@redhat.com>
13906
13907 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
13908 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
13909
88ffb39d
FW
139102018-08-20 Florian Weimer <fweimer@redhat.com>
13911
13912 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
13913 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
13914
17419540
JM
139152018-08-20 Joseph Myers <joseph@codesourcery.com>
13916
e6edd40d
JM
13917 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
13918 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
13919 and ssi_arch members.
13920
17419540
JM
13921 * elf/elf.c (NT_VMCOREDD): New macro.
13922 (AT_MINSIGSTKSZ): Likewise.
13923
fa78896b
RS
139242018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
13925
13926 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
13927 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
13928 s_cosf-ppc64 and s_cosf-power8.
13929 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
13930 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
13931 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
13932 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
13933 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
13934 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
13935 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
13936 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
13937 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
13938 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
13939 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
13940 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
13941
86a6c75a
FW
139422018-08-17 Florian Weimer <fweimer@redhat.com>
13943
13944 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
13945
35cfefd9
FW
139462018-08-17 Istvan Kurucsai <pistukem@gmail.com>
13947
13948 * malloc/malloc.c (_int_malloc): Additional binning code checks.
13949
6413fcde
FW
139502018-08-16 Florian Weimer <fweimer@redhat.com>
13951
13952 * configure.ac: Add --with-nonshared-cflags option.
13953 * config.make.in (extra-nonshared-cflags): Set variable.
13954 * Makeconfig (CFLAGS-.oS): Use it.
13955 * manual/install.texi (Configuring and compiling): Document
13956 --with-nonshared-cflags.
13957 * configure: Regenerate.
13958 * INSTALL: Likewise.
13959
93a2584c
FW
139602018-08-16 Florian Weimer <fweimer@redhat.com>
13961
13962 * Makeconfig (ASFLAGS): Always append required assembler flags.
13963
f6f275d2 139642018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
d6db68e6
ME
13965
13966 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
13967 (malloc_consolidate): Likewise.
13968
30a17d8c
PC
139692018-08-16 Pochang Chen <johnchen902@gmail.com>
13970
13971 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
13972
953a5a4a
SP
139732018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
13974
34f86d61
SP
13975 * benchtests/bench-strlen.c (do_test): Allocate buffers before
13976 every strlen call.
13977
953a5a4a
SP
13978 * benchtests/bench-strlen.c: Print performance numbers in json.
13979
7793ad7a
RS
139802018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
13981
13982 * sysdeps/powerpc/powerpc64/multiarch/Makefile
13983 (sysdep_routines): Build strcmp-power9 and strncmp-power9
13984 only for little endian.
13985 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
13986 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
13987 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
13988 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
13989 Add check for little endian.
13990 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
13991 (__strcmp_power9): Add check for little endian.
13992 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
13993 Add check for little endian.
13994 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
13995 (__strncmp_power9): Add check for little endian.
13996 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
13997 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
13998 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
13999 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
14000 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
14001
436e4d5b
SP
140022018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
14003
14004 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
14005 [!STRLEN](STRLEN): Set to __strlen.
14006 * sysdeps/aarch64/multiarch/strlen.c: New file.
14007 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
14008 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
14009 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
14010 (__libc_ifunc_impl_list): Add strlen.
14011 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
14012 strlen_generic and strlen_asimd.
14013
126c4e3f
WD
140142018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
14015
14016 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
14017 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
14018 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
14019
49acec17
WD
140202018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
14021
14022 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
14023
fdb16de3
FW
140242018-08-14 Florian Weimer <fweimer@redhat.com>
14025
14026 [BZ #23519]
14027 * include/stdio.h (__vfxprintf): Declare.
14028 * stdio-common/fxprintf.c (__vfxprintf): New function.
14029 (__fxprintf): Call it.
14030 * misc/err.c (convert_and_print): Remove function.
14031 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
14032 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
14033 * misc/Makefile (tests): Add tst-warn-wide.
14034 * misc/tst-warn-wide.c: New file.
14035
599cf397
WD
140362018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
14037 Szabolcs Nagy <szabolcs.nagy@arm.com>
14038
14039 * NEWS: Mention sinf, cosf, sincosf.
14040 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
14041 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
14042 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
14043 constants rather than including generic sincosf.h.
14044 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
14045 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
14046 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
14047 (reduced_cos): Remove.
14048 (sinf_poly): New function.
14049 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
14050
e95c6f61
FW
140512018-08-14 Florian Weimer <fweimer@redhat.com>
14052
14053 [BZ #23521]
14054 [BZ #23522]
14055 * nss/nss_files/files-alias.c (get_next_alias): During :include:
14056 processing, bail out if no room, and close the stream before
14057 returning ERANGE.
14058 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
14059 (tst-nss-files-alias-leak): Link with libdl.
14060 (tst-nss-files-alias-leak.out): Depend on nss_files.
14061
14062 * nss/tst-nss-files-alias-leak.c: New file.
14063
2d7acfac
FW
140642018-08-14 Florian Weimer <fweimer@redhat.com>
14065
14066 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
14067 server_user, stat_user.
14068
f3cd0904
JM
140692018-08-13 Joseph Myers <joseph@codesourcery.com>
14070
17b26500
JM
14071 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
14072 version to 4.18.
14073 (io_pgetevents): New syscall.
14074 (rseq): Likewise.
14075
3c1622eb
JM
14076 * manual/install.texi (Configuring and compiling): Do not list
14077 tools used for testing pretty printers here.
14078 (Tools for Compilation): List Python, PExpect and GDB here.
14079 Update descriptions of uses of Perl and Python.
14080 * INSTALL: Regenerate.
14081
f3cd0904
JM
14082 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
14083 version to 4.18.
14084
b7b52b9d
FW
140852018-08-13 Florian Weimer <fweimer@redhat.com>
14086
14087 * misc/error.c (error): Add missing va_end call.
14088 (error_at_line): Likewise.
14089
01780188
FW
140902018-08-13 Florian Weimer <fweimer@redhat.com>
14091
14092 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
14093
44727aec
SP
140942018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
14095
8cac1f26
SP
14096 * benchtests/scripts/benchout.schema.json (properties): Add
14097 new properties.
14098
44727aec
SP
14099 * benchtests/bench-skeleton.c (main): Add duration and
14100 iterations attributes.
14101
c77bf91b
PE
141022018-08-10 Paul Eggert <eggert@cs.ucla.edu>
14103
14104 regex: Gnulib unibyte RRI uses bytes not chars
14105 Adjust the non-glibc code to agree with what Gawk needs for
14106 rational range interpretation (RRI) for regular expression ranges.
14107 In unibyte locales, Gawk wants ranges to use the underlying byte
14108 rather than the character code point. This change does not affect
14109 glibc proper.
14110 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
14111 In unibyte locales, use the byte value rather than
14112 running it through btowc.
14113
2ce7ba7d
JM
141142018-08-10 Joseph Myers <joseph@codesourcery.com>
14115
14116 * sysdeps/generic/math-tests-snan.h: New file.
14117 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
14118 (SNAN_TESTS_float): Do not define here.
14119 (SNAN_TESTS_double): Likewise.
14120 (SNAN_TESTS_long_double): Likewise.
14121 (SNAN_TESTS_float128): Likewise.
14122 * sysdeps/i386/fpu/math-tests-snan.h: New file.
14123 * sysdeps/i386/fpu/math-tests.h: Remove file.
14124 * sysdeps/ia64/math-tests-snan.h: New file.
14125 * sysdeps/ia64/math-tests.h: Remove file.
14126 * sysdeps/x86/math-tests.h: Likewise.
14127 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
14128
ea5c662c
WD
141292018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
14130 Szabolcs Nagy <szabolcs.nagy@arm.com>
14131
14132 * math/Makefile: Add s_sincosf_data.c.
14133 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
14134 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
14135 (sincosf_poly): Likewise.
14136 (reduce_small): Likewise.
14137 (reduce_large): Likewise.
14138 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
14139 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
14140 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
14141 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
14142
43cfdf8f
SN
141432018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
14144 Szabolcs Nagy <szabolcs.nagy@arm.com>
14145
14146 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
14147 (converttoint): Use lround.
14148 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
14149 document the semantics when TOINT_INTRINSICS is set.
14150 (converttoint): Likewise.
14151 (TOINT_RINT): Remove.
14152 (TOINT_SHIFT): Remove.
14153 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
14154 path.
14155
69065288
FW
141562018-08-10 Florian Weimer <fweimer@redhat.com>
14157
14158 [BZ #23497]
14159 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
14160 function.
14161 (__old_getdents64): Use getdents64. Convert entries without
14162 moving them.
14163 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
14164 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
14165 tst-readdir64-compat.
14166
8f135efc
IL
141672018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
14168
14169 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
14170 Fix unwind.
14171
71c01af5
IL
141722018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
14173
14174 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
14175 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
14176 code to s390x-mcount.h and #include it.
14177 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
14178 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
14179 (__fentry__): Add.
14180
8d997d22
IL
141812018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
14182
14183 * stdlib/Versions: Remove __fentry__.
14184 * sysdeps/i386/Versions: Add __fentry__.
14185 * sysdeps/x86_64/Versions: Add __fentry__.
14186
69e2444a
IL
141872018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
14188
14189 * sysdeps/s390/Makefile: Register the new tests.
14190 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
14191 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
14192 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
14193 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
14194 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
14195 * sysdeps/s390/tst-dl-runtime.c: New file.
14196
bde6320f
IL
141972018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
14198
14199 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
14200 Do not clobber R0.
14201
5755f5e4
IL
142022018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
14203
14204 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
14205 Do not clobber R0.
14206
c8ad8522
IL
142072018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
14208
14209 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
14210 Do not clobber R0.
14211
b215eee1
IL
142122018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
14213
14214 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
14215 Do not clobber R0.
14216
329c6fec
IL
142172018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
14218
14219 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
14220 Use symbolic offsets for stack variables.
14221
0fb7afa2
IL
142222018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
14223
14224 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
14225 Use symbolic offsets for stack variables.
14226
6954059a
IL
142272018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
14228
14229 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
14230 Use symbolic offsets for stack variables.
14231
c7099673
IL
142322018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
14233
14234 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
14235 Use symbolic offsets for stack variables.
14236
2813e41e
JM
142372018-08-09 Joseph Myers <joseph@codesourcery.com>
14238
14239 * math/gen-libm-test.py: New file.
14240 * math/gen-libm-test.pl: Remove.
14241 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
14242 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
14243 gen-libm-test.pl.
14244 ($(libm-test-c-noauto-obj)): Likewise.
14245 ($(libm-test-c-auto-obj)): Likewise.
14246 ($(libm-test-c-narrow-obj)): Likewise.
14247 (regen-ulps): Likewise.
14248 * math/README.libm-test: Update references to gen-libm-test.pl.
14249 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
14250 referencing gen-libm-test.pl.
14251 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
14252 * math/libm-test-support.c: Likewise.
14253 * math/libm-test-support.h: Likewise.
14254 * sysdeps/generic/libm-test-ulps: Likewise.
14255
be64b194
SP
142562018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
14257
14258 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
14259 Fix value.
14260
140137fb
JM
142612018-08-08 Joseph Myers <joseph@codesourcery.com>
14262
14263 * math/libm-test-nextdown.inc (do_test): Move comment to ....
14264 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
14265
b5403eca
ST
142662018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
14267
14268 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
14269 symbols.
8ac0f9e6
ST
14270 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
14271 __pthread_setspecific): Add hidden proto.
14272 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
14273 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
b5403eca 14274
014efdd7
SP
142752018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
14276
14277 * benchtests/bench-string.h (buf1_size, buf2_size): New
14278 variables.
14279 (init_sizes): New function.
14280 (test_init): Use it.
14281 (alloc_buf, exit_error): New functions.
14282 (alloc_bufs): Use ALLOC_BUF.
14283 (realloc_bufs): Remove.
14284 * benchtests/bench-memcmp.c (do_test): Adjust.
14285 * benchtests/bench-memset-large.c (do_test): Likewise.
14286 * benchtests/bench-memset-walk.c (do_test): Likewise.
14287 * benchtests/bench-memset.c (do_test): Likewise.
14288 * benchtests/bench-strncmp.c (do_test): Likewise.
14289
92a4cba7
AS
142902018-08-06 Andreas Schwab <schwab@suse.de>
14291
14292 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
14293 of CONST_THREAD_AREA.
14294
fb4c32ae
L
142952018-08-06 H.J. Lu <hongjiu.lu@intel.com>
14296
14297 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
14298 (STATE_SAVE_MASK): Likewise.
14299 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
14300 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
14301 (STATE_SAVE_MASK): Likewise.
14302 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
14303 instead of <cpu-features.h>.
14304
bf418187
DD
143052018-08-03 DJ Delorie <dj@redhat.com>
14306
14307 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
e5721f45 14308 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
bf418187 14309
bb17621a
DD
14310 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
14311
ea705eb5
JM
143122018-08-03 Joseph Myers <joseph@codesourcery.com>
14313
14314 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
14315 after TEST_* calls.
14316 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
14317 * math/libm-test-logb.inc (logb_test_data): Likewise.
14318
284f42bc
WD
143192018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
14320
14321 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
14322 * string/strstr.c (AVAILABLE): Likewise.
14323
430388d5
L
143242018-08-03 H.J. Lu <hongjiu.lu@intel.com>
14325
14326 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
14327 <init-arch.h>.
14328 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
14329 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
14330 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
14331
c5760aa9
CD
143322018-08-03 Carlos O'Donell <carlos@redhat.com>
14333
14334 * po/be.po: Update translation.
14335
6b535b84
CD
14336 * po/be.po: Update translation.
14337
ae67f2e5
L
143382018-08-03 H.J. Lu <hongjiu.lu@intel.com>
14339
14340 * sysdeps/x86/cpu-features-offsets.sym
14341 (rtld_global_ro_offsetof): Removed.
14342 (CPU_FEATURES_SIZE): Likewise.
14343 (CPUID_OFFSET): Likewise.
14344 (CPUID_SIZE): Likewise.
14345 (CPUID_EAX_OFFSET): Likewise.
14346 (CPUID_EBX_OFFSET): Likewise.
14347 (CPUID_ECX_OFFSET): Likewise.
14348 (CPUID_EDX_OFFSET): Likewise.
14349 (FAMILY_OFFSET): Likewise.
14350 (MODEL_OFFSET): Likewise.
14351 (FEATURE_OFFSET): Likewise.
14352 (FEATURE_SIZ): Likewise.
14353 (COMMON_CPUID_INDEX_1): Likewise.
14354 (COMMON_CPUID_INDEX_7): Likewise.
14355 (FEATURE_INDEX_1): Likewise.
14356 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
14357
6b5c8607 143582018-08-02 Carlos O'Donell <carlos@redhat.com>
08a5ee14
CD
14359
14360 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
14361 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
14362 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
14363 (install-locales): Depend on install-locale-archive.
14364 (install-locale-archive): Define.
7b7adbd8 14365 (install-locale-files): Define.
08a5ee14
CD
14366 (build-one-locale): Define macro.
14367 * manual/install.texi (Running make install): Document.
14368 * manual/INSTALL: Regenerate.
14369
525691bd
SP
143702018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
14371
d67d634b
SP
14372 * benchtests/scripts/compare_strings.py: Import traceback.
14373 (parse_file): Pretty-print error.
14374
525691bd
SP
14375 * NEWS: Mention the change.
14376 * elf/dl-tunables.list: Rename tune namespace to cpu.
14377 * sysdeps/powerpc/dl-tunables.list: Likewise.
14378 * sysdeps/x86/dl-tunables.list: Likewise.
14379 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
14380 cpu.name.
14381 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
14382 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
14383 * manual/README.tunables: Likewise.
14384 * manual/tunables.texi: Likewise.
14385 * sysdeps/powerpc/cpu-features.c: Likewise.
14386 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
14387 (init_cpu_features): Likewise.
14388 * sysdeps/x86/cpu-features.c: Likewise.
14389 * sysdeps/x86/cpu-features.h: Likewise.
14390 * sysdeps/x86/cpu-tunables.c: Likewise.
14391 * sysdeps/x86_64/Makefile: Likewise.
14392 * sysdeps/x86/dl-cet.c: Likewise.
14393
506d7fb1
JM
143942018-08-02 Joseph Myers <joseph@codesourcery.com>
14395
14396 [BZ #23479]
14397 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
14398 [__mips_hard_float].
14399 (FE_UNDERFLOW): Likewise.
14400 (FE_OVERFLOW): Likewise.
14401 (FE_DIVBYZERO): Likewise.
14402 (FE_INVALID): Likewise.
14403 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
14404 (FE_TOWARDZERO): Define only if [__mips_hard_float].
14405 (FE_UPWARD): Likewise.
14406 (FE_DOWNWARD): Likewise.
14407 (__FE_UNDEFINED): Define if [!__mips_hard_float]
14408 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
14409 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
14410 [__mips_hard_float].
14411 (FP_ROUNDMODE): Likewise.
14412 (FP_RND_NEAREST): Likewise.
14413 (FP_RND_ZERO): Likewise.
14414 (FP_RND_PINF): Likewise.
14415 (FP_RND_MINF): Likewise.
14416 (FP_EX_INVALID): Likewise.
14417 (FP_EX_OVERFLOW): Likewise.
14418 (FP_EX_UNDERFLOW): Likewise.
14419 (FP_EX_DIVZERO): Likewise.
14420 (FP_EX_INEXACT): Likewise.
14421 (FP_INIT_ROUNDMODE): Likewise.
14422 * sysdeps/mips/nofpu/fesetenv.c: New file.
14423 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
14424
f6dcefbe
JM
144252018-08-01 Joseph Myers <joseph@codesourcery.com>
14426
14427 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
14428 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
14429 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
14430 conditional on [FE_UPWARD].
14431
fa67ba06
PE
144322018-08-01 Paul Eggert <eggert@cs.ucla.edu>
14433
14434 regex: fix memory leak in Gnulib
14435 Problem and fix reported by Assaf Gordon in:
14436 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
14437 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
14438 range_ends members too, as they are defined in 'struct
14439 re_charset_t' even if not _LIBC. This affects only Gnulib.
14440
82c80ac2
L
144412018-08-01 H.J. Lu <hongjiu.lu@intel.com>
14442
14443 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
14444 ...
14445 (get_common_indices): This.
14446 (init_cpu_features): Updated.
14447
c0e7e2c1
JM
144482018-08-01 Joseph Myers <joseph@codesourcery.com>
14449
46f8cf57
JM
14450 * sysdeps/generic/math-tests-snan-payload.h: New file.
14451 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
14452 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
14453 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
14454 * sysdeps/generic/math-tests.h: Include
14455 <math-tests-snan-payload.h>.
14456 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
14457 * sysdeps/hppa/math-tests.h: Remove file.
14458 * sysdeps/mips/math-tests.h [!__mips_nan2008]
14459 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
14460 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
14461 Likewise.
14462
c0e7e2c1
JM
14463 * sysdeps/generic/math-tests-snan-cast.h: New file.
14464 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
14465 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
14466 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
14467 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
14468
e6855a3b 144692018-08-01 Carlos O'Donell <carlos@redhat.com>
74939c83 14470
b029723b
CD
14471 * version.h (RELEASE): Set to "development".
14472 (VERSION): Set to "2.28.9000".
14473 * NEWS (2.29): New section.
14474
3c03baca
CD
14475 * version.h (RELEASE): Set to "stable".
14476 (VERSION): Set to "2.28".
14477 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
14478 * NEWS: Add the list of bugs fixed in 2.28.
14479
74939c83
CD
14480 * po/ca.po: Update to latest version.
14481 * po/cs.po: Likewise
14482 * po/da.po: Likewise
14483 * po/el.po: Likewise
14484 * po/eo.po: Likewise
14485 * po/es.po: Likewise
14486 * po/fi.po: Likewise
14487 * po/fr.po: Likewise
14488 * po/gl.po: Likewise
14489 * po/hu.po: Likewise
14490 * po/ia.po: Likewise
14491 * po/id.po: Likewise
14492 * po/it.po: Likewise
14493 * po/ja.po: Likewise
14494 * po/ko.po: Likewise
14495 * po/lt.po: Likewise
14496 * po/nb.po: Likewise
14497 * po/nl.po: Likewise
14498 * po/pt_BR.po: Likewise
14499 * po/ru.po: Likewise
14500 * po/rw.po: Likewise
14501 * po/sk.po: Likewise
14502 * po/sl.po: Likewise
14503 * po/tr.po: Likewise
14504 * po/zh_CN.po: Likewise
14505 * po/zh_TW.po: Likewise
14506
d4b54bdf
ST
145072018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
14508
14509 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
14510 initialization...
14511 (init): ... before initializing libpthread.
14512
42fc12ef
ST
14513 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
14514 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
14515 (__mach_setup_tls): ... new function.
14516 (mach_setup_tls): New alias.
14517 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
14518 __mach_setup_thread.
14519 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
14520 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
14521 * mach/Versions [libc] (mach_setup_tls): Add symbol.
14522 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
14523
6cca855e
CD
145242018-07-31 Carlos O'Donell <carlos@redhat.com>
14525
f650932b
CD
14526 * manual/install.texi: Update versions.
14527 * INSTALL: Regenerate.
14528
6cca855e
CD
14529 * manual/contrib.texi (Contributors): Update contributions.
14530
07fdea47
CD
145312018-07-31 Carlos O'Donell <carlos@redhat.com>
14532
14533 * po/be.po: Update translations.
14534
63d5fad4
AZ
145352018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14536
14537 * sysdeps/sh/libm-test-ulps: Update.
14538
1ff712a6
CD
145392018-07-30 Carlos O'Donell <carlos@redhat.com>
14540
14541 * po/bg.po: Update translations.
14542 * po/de.po: Likewise.
14543 * po/hr.po: Likewise.
14544 * po/pt_BR.po: Likewise.
14545 * po/sv.po: Likewise.
14546 * po/vi.po: Likewise.
14547
98864ed0
L
145482018-07-30 H.J. Lu <hongjiu.lu@intel.com>
14549
14550 [BZ #23467]
14551 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
14552 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
14553 (CFLAGS-tst-cet-property-1.o): New.
14554 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
14555 ($(objpfx)tst-cet-property-2): Likewise.
14556 ($(objpfx)tst-cet-property-2.out): Likewise.
14557 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
14558 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
14559 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
14560 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
14561 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
14562
c92a00d8
L
145632018-07-30 H.J. Lu <hongjiu.lu@intel.com>
14564
14565 [BZ #23458]
14566 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
14567
99bc6241
ST
145682018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
14569
14570 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
14571 __sbrk): Do not set attribute_hidden.
af86087f 14572 * sysdeps/mach/hurd/not-errno.h: New file.
99bc6241
ST
14573 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
14574 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
14575
bcb1c4af
CD
145762018-07-27 Carlos O'Donell <carlos@redhat.com>
14577
14578 * po/uk.po: Update translations.
14579 * po/cs.po: Likewise.
14580 * po/pl.po: Likewise.
14581
4591b7db
L
145822018-07-27 H.J. Lu <hongjiu.lu@intel.com>
14583
14584 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
14585 parse beyond the note end.
14586
2c6da2f4
AZ
145872018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14588
14589 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
14590 kernel does not support OFD locks.
14591 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
14592
20365a31
ST
145932018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
14594
14595 * sysdeps/mach/hurd/Versions (libc): Make __access and
14596 __access_noerrno external so they can override the ld symbols.
14597 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
14598 __writev, __open64, __access_noerrno extern so they can be overrided.
14599 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
14600 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
14601
cb1a43db
CD
146022018-07-26 Carlos O'Donell <carlos@redhat.com>
14603
14604 * po/libc.pot: Regenerate.
14605
74759ae5
JM
146062018-07-26 Joseph Myers <joseph@codesourcery.com>
14607
14608 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
14609
da80612d
L
146102018-07-26 H.J. Lu <hongjiu.lu@intel.com>
14611
14612 [BZ #23459]
14613 * sysdeps/x86/cpu-features.c (get_extended_indices): New
14614 function.
14615 (init_cpu_features): Call get_extended_indices for both Intel
14616 and AMD CPUs.
14617 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
14618 Remove "for AMD" comment.
14619
65d87ade
L
146202018-07-26 H.J. Lu <hongjiu.lu@intel.com>
14621
14622 [BZ # 23456]
14623 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
14624 COMMON_CPUID_INDEX_80000001.
14625
c9dc4d51
SL
146262018-07-26 Stefan Liebler <stli@linux.ibm.com>
14627
14628 * string/tst-xbzero-opt.c (use_test_buffer): New function.
14629 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
14630
cfba5dbb
FW
146312018-07-26 Florian Weimer <fweimer@redhat.com>
14632
14633 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
14634 aliases for symbols not in the implementation namespace.
14635
6b5c8607 146362018-07-25 Carlos O'Donell <carlos@redhat.com>
7cd7d36f
CD
14637
14638 [BZ #23393]
14639 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
14640 lowercase in LATIN script.
14641 * localedata/Makefile (test-input): Add en_US.UTF-8.
14642 * localedata/en_US.UTF-8.in: New file.
14643 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
14644 and restore old tests.
14645 * posix/tst-regexloc.c (do_test): Add back range expression test.
14646
3fb455b3
L
146472018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14648
14649 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
14650
d6499b70
AZ
146512018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14652
14653 * nptl/threads.h: Move to ...
14654 * sysdeps/nptl/threads.h: ... here.
14655 * sysdeps/hurd/stdc-predef.h: New file.
14656
08ac6bed
L
146572018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14658
14659 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
14660 tst-cet-setcontext-1 if CET is enabled.
14661 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
14662 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
14663
9faaf938
AZ
146642018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14665
14666 * include/threads.h: Move to ...
14667 * sysdeps/nptl/threads.h: ... here.
14668 * sysdeps/htl/threads.h: New file.
14669 * conform/Makefile (linknamespace-libs-ISO11): Use
14670 static-thread-library instead of linking libpthread.
14671 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
14672
d6b8f847
FW
146732018-07-25 Florian Weimer <fweimer@redhat.com>
14674
14675 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
14676 nanoseconds into seconds.
14677 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
14678 (do_test): Likewise.
14679 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
14680 (do_test): Likewise. Avoid nanosecond overflow and spurious
14681 timeouts due to system load.
14682 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
14683 (child_wait): Increment it.
14684 (do_test): Wait as long as necessary until all expected threads
14685 have arrived.
14686
25123a1c
L
146872018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
14688 H.J. Lu <hongjiu.lu@intel.com>
14689
14690 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
14691 __ssp.
14692 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
14693 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
14694 (__push___start_context): New.
14695 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
14696 <asm/prctl.h>.
14697 (__getcontext): Record the current shadow stack base. Save the
14698 caller's shadow stack pointer and base.
14699 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
14700 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
14701 (__push___start_context): New prototype.
14702 (__makecontext): Call __push___start_context to allocate a new
14703 shadow stack, push __start_context onto the new stack as well
14704 as the new shadow stack.
14705 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
14706 <asm/prctl.h>.
14707 (__setcontext): Restore the target shadow stack.
14708 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
14709 <asm/prctl.h>.
14710 (__swapcontext): Record the current shadow stack base. Save
14711 the caller's shadow stack pointer and base. Restore the target
14712 shadow stack.
14713 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
14714 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
14715 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
14716
375a4844
L
147172018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14718
14719 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
14720 tst-setcontext8 and tst-setcontext9.
14721 * stdlib/tst-setcontext6.c: New file.
14722 * stdlib/tst-setcontext7.c: Likewise.
14723 * stdlib/tst-setcontext8.c: Likewise.
14724 * stdlib/tst-setcontext9.c: Likewise.
14725
bd4f7903
L
147262018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14727
14728 * stdlib/Makefile ((tests): Add tst-setcontext5.
14729 * stdlib/tst-setcontext5.c: New file.
14730
7e28f203
L
147312018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14732
14733 * stdlib/Makefile (tests): Add tst-setcontext4.
14734 * stdlib/tst-setcontext4.c: New file.
14735
8516ad2d
L
147362018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14737
14738 * stdlib/Makefile (tests): Add tst-swapcontext1.
14739 * stdlib/tst-swapcontext1.c: New test.
14740
fddcd003
L
147412018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14742
14743 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
14744 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
14745 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
14746 and tst-cet-legacy-4c.
14747 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
14748 and tst-cet-legacy-mod-4.
14749 (CFLAGS-tst-cet-legacy-2.c): New.
14750 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
14751 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
14752 (CFLAGS-tst-cet-legacy-3.c): Likewise.
14753 (CFLAGS-tst-cet-legacy-4.c): Likewise.
14754 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
14755 ($(objpfx)tst-cet-legacy-1): Likewise.
14756 ($(objpfx)tst-cet-legacy-2): Likewise.
14757 ($(objpfx)tst-cet-legacy-2.out): Likewise.
14758 ($(objpfx)tst-cet-legacy-2a): Likewise.
14759 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
14760 ($(objpfx)tst-cet-legacy-4): Likewise.
14761 ($(objpfx)tst-cet-legacy-4.out): Likewise.
14762 ($(objpfx)tst-cet-legacy-4a): Likewise.
14763 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
14764 (tst-cet-legacy-4a-ENV): Likewise.
14765 ($(objpfx)tst-cet-legacy-4b): Likewise.
14766 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
14767 (tst-cet-legacy-4b-ENV): Likewise.
14768 ($(objpfx)tst-cet-legacy-4c): Likewise.
14769 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
14770 (tst-cet-legacy-4c-ENV): Likewise.
14771 * sysdeps/x86/tst-cet-legacy-1.c: New file.
14772 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
14773 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
14774 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
14775 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
14776 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
14777 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
14778 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
14779 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
14780 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
14781 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
14782
9aa3113a
L
147832018-07-25 H.J. Lu <hongjiu.lu@intel.com>
14784
14785 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
14786 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
14787 with ssp_base.
14788 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
14789 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
14790 with ssp_base.
14791
9c79cec8
AS
147922018-07-25 Andreas Schwab <schwab@suse.de>
14793
14794 [BZ #23442]
14795 * locale/weightwc.h (findidx): Handle the case where usrc is a
14796 prefix of cp but one character too short.
14797
969c3355
AZ
147982018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14799
14800 * NEWS: Add ISO C threads addition.
14801
e0f9c462
FW
148022018-07-24 Florian Weimer <fweimer@redhat.com>
14803
14804 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
14805 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
14806 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
14807 4.13.
14808
394df381
L
148092018-07-24 H.J. Lu <hongjiu.lu@intel.com>
14810
14811 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
14812 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
14813 <sys/prctl.h> and <asm/prctl.h>.
14814 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
14815 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
14816 and <asm/prctl.h>.
14817 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
14818 ARCH_CET_LEGACY_BITMAP.
14819 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
14820 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
14821 * sysdeps/x86/libc-start.c: Include <startup.h>.
14822
46545530
FW
148232018-07-24 Florian Weimer <fweimer@redhat.com>
14824
14825 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
14826 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
14827
6b5c8607 148282018-07-24 Rical Jasan <rj@2c3t.io>
9d0a979e 14829 Adhemerval Zanella <adhemerval.zanella@linaro.org>
0a07288b
AZ
14830 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
14831
14832 [BZ #14092]
9d0a979e
RJ
14833 * manual/debug.texi: Update adjacent chapter name.
14834 * manual/probes.texi: Likewise.
14835 * manual/threads.texi (ISO C Threads): New section.
14836 (POSIX Threads): Convert to a section.
14837
148382018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14839 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
14840
14841 [BZ# 14092]
0a07288b
AZ
14842 * nptl/Makefile (tests): Add new test files.
14843 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
14844 * nptl/tst-cnd-basic.c: Likewise.
14845 * nptl/tst-cnd-broadcast.c: Likewise.
14846 * nptl/tst-cnd-timedwait.c: Likewise.
14847 * nptl/tst-mtx-basic.c: Likewise.
14848 * nptl/tst-mtx-recursive.c: Likewise.
14849 * nptl/tst-mtx-timedlock.c: Likewise.
14850 * nptl/tst-mtx-trylock.c: Likewise.
14851 * nptl/tst-thrd-basic.c: Likewise.
14852 * nptl/tst-thrd-detach.c: Likewise.
14853 * nptl/tst-thrd-sleep.c: Likewise.
14854 * nptl/tst-tss-basic.c: Likewise.
14855
ce7528f6
AZ
148562018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14857
c6dd669b
AZ
14858 [BZ #14092]
14859 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
14860 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
14861 symbols.
14862 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
14863 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
14864 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
14865 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
14866 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
14867 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
14868 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
14869 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
14870 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
14871 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
14872 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
14873 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
14874 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
14875 Likewise.
14876 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
14877 Likewise.
14878 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
14879 Likewise.
14880 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
14881 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
14882 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
14883 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
14884 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
14885 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
14886 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
14887 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
14888 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
14889 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
14890 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
14891 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
14892 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
14893 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
14894 Likewise.
14895 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
14896 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
14897 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
14898 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
14899 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
14900 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
14901 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
14902 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
14903 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
14904 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
14905 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
14906 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
14907 ikewise.
14908 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
14909 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
14910 Likewise.
14911 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
14912 Likewise.
14913 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
14914 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
14915 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
14916 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
14917 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
14918 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
14919 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
14920 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
14921
78d40132
AZ
14922 [BZ #14092]
14923 * conform/data/threads.h-data (thread_local): New macro.
14924 (TSS_DTOR_ITERATIONS): Likewise.
14925 (tss_t): New type.
14926 (tss_dtor_t): Likewise.
14927 (tss_create): New function.
14928 (tss_get): Likewise.
14929 (tss_set): Likewise.
14930 (tss_delete): Likewise.
14931 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
14932 tss_get, and tss_set objects.
14933 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
14934 * nptl/tss_create.c: New file.
14935 * nptl/tss_delete.c: Likewise.
14936 * nptl/tss_get.c: Likewise.
14937 * nptl/tss_set.c: Likewise.
14938 * sysdeps/nptl/threads.h (thread_local): New define.
14939 (TSS_DTOR_ITERATIONS): Likewise.
14940 (tss_t): New typedef.
14941 (tss_dtor_t): Likewise.
14942 (tss_create): New prototype.
14943 (tss_get): Likewise.
14944 (tss_set): Likewise.
14945 (tss_delete): Likewise.
14946
918311a3
AZ
14947 [BZ #14092]
14948 * conform/data/threads.h-data (cnd_t): New type.
14949 (cnd_init): New function.
14950 (cnd_signal): Likewise.
14951 (cnd_broadcast): Likewise.
14952 (cnd_wait): Likewise.
14953 (cnd_timedwait): Likewise.
14954 (cnd_destroy): Likewise.
14955 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
14956 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
14957 object.
14958 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
14959 * nptl/cnd_broadcast.c: New file.
14960 * nptl/cnd_destroy.c: Likewise.
14961 * nptl/cnd_init.c: Likewise.
14962 * nptl/cnd_signal.c: Likewise.
14963 * nptl/cnd_timedwait.c: Likewise.
14964 * nptl/cnd_wait.c: Likewise.
14965 * sysdeps/nptl/threads.h (cnd_t): New type.
14966 (cnd_init): New prototype.
14967 (cnd_signa): Likewise.
14968 (cnd_broadcast): Likewise.
14969 (cnd_wait): Likewise.
14970 (cnd_timedwait): Likewise.
14971 (cnd_destroy): Likewise.
14972
3c20a679
AZ
14973 [BZ #14092]
14974 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
14975 (once_flag): New type.
14976 (call_once): New function.
14977 * nptl/Makefile (libpthread-routines): Add call_once object.
14978 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
14979 * nptl/call_once.c: New file.
14980 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
14981 (once_flag): New type.
14982 (call_once): New prototype.
14983
18d59c1b
AZ
14984 [BZ #14092]
14985 * conform/data/threads.h-data (mtx_plain): New constant.
14986 (mtx_recursive): Likewise.
14987 (mtx_timed): Likewise.
14988 (mtx_t): New type.
14989 (mtx_init): New function.
14990 (mtx_lock): Likewise.
14991 (mtx_timedlock): Likewise.
14992 (mtx_trylock): Likewise.
14993 (mtx_unlock): Likewise.
14994 (mtx_destroy): Likewise.
14995 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
14996 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
14997 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
14998 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
14999 * nptl/mtx_destroy.c: New file.
15000 * nptl/mtx_init.c: Likewise.
15001 * nptl/mtx_lock.c: Likewise.
15002 * nptl/mtx_timedlock.c: Likewise.
15003 * nptl/mtx_trylock.c: Likewise.
15004 * nptl/mtx_unlock.c: Likewise.
15005 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
15006 (mtx_recursive): Likewise.
15007 (mtx_timed): Likewise.
15008 (mtx_t): New type.
15009 (mtx_init): New prototype.
15010 (mtx_lock): Likewise.
15011 (mtx_timedlock): Likewise.
15012 (mtx_trylock): Likewise.
15013 (mtx_unlock): Likewise.
15014 (mtx_destroy): Likewise.
15015
ce7528f6
AZ
15016 [BZ #14092]
15017 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
15018 (linknamespace-libs-ISO11): Add libpthread.a.
15019 * conform/data/threads.h-data: New file: add C11 thrd_* types and
15020 functions.
15021 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
15022 * nptl/Makefile (headers): Add threads.h.
15023 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
15024 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
15025 thrd_yield.
15026 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
15027 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
15028 thrd_join, thrd_sleep, and thrd_yield symbols.
15029 * nptl/descr.h (struct pthread): Add c11 field.
15030 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
15031 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
15032 routine with expected function prototype.
15033 (__pthread_create_2_1): Add C11 threads check based on attribute
15034 value.
15035 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
15036 * nptl/thrd_create.c: New file.
15037 * nptl/thrd_current.c: Likewise.
15038 * nptl/thrd_detach.c: Likewise.
15039 * nptl/thrd_equal.c: Likewise.
15040 * nptl/thrd_exit.c: Likewise.
15041 * nptl/thrd_join.c: Likewise.
15042 * nptl/thrd_priv.h: Likewise.
15043 * nptl/thrd_sleep.c: Likewise.
15044 * nptl/thrd_yield.c: Likewise.
15045 * include/threads.h: Likewise.
15046
e27f41ba
L
150472018-07-24 H.J. Lu <hongjiu.lu@intel.com>
15048
15049 * bits/indirect-return.h: New file.
15050 * misc/sys/cdefs.h (__glibc_has_attribute): New.
15051 * sysdeps/x86/bits/indirect-return.h: Likewise.
15052 * stdlib/Makefile (headers): Add bits/indirect-return.h.
15053 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
15054 (swapcontext): Add __INDIRECT_RETURN.
15055 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
15056 (prepare_test_buffer): Use it.
15057
21526a50
AS
150582018-07-24 Andreas Schwab <schwab@suse.de>
15059
15060 [BZ #23448]
15061 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
15062 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
15063
3650e1d9
L
150642018-07-24 H.J. Lu <hongjiu.lu@intel.com>
15065
15066 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
15067 Redefine if shadow stack is enabled.
15068 (SYSCALL_ERROR_LABEL): Likewise.
15069 (__vfork): Pop shadow stack and jump back to to caller directly
15070 when shadow stack is in use.
15071 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
15072 Redefine if shadow stack is enabled.
15073 (SYSCALL_ERROR_LABEL): Likewise.
15074 (__vfork): Pop shadow stack and jump back to to caller directly
15075 when shadow stack is in use.
15076
ca027e0f
L
150772018-07-24 H.J. Lu <hongjiu.lu@intel.com>
15078
15079 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
15080 enabled.
15081 (foo): Likewise.
15082 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
15083 (foo): Likewise.
15084
b99f1c95
JM
150852018-07-20 Joseph Myers <joseph@codesourcery.com>
15086
15087 * scripts/build-many-glibcs.py (Context.checkout): Default
15088 binutils version to 2.31 branch.
15089
c8fabb84
ZL
150902018-07-20 Zong Li <zong@andestech.com>
15091
15092 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
15093 URL of gcc's tarball.
15094
786658a0
FW
150952018-07-20 Florian Weimer <fweimer@redhat.com>
15096
15097 [BZ #23396]
15098 * posix/regcomp.c (build_equiv_class): When comparing weights, do
15099 not compare an extra byte after the end of the weights.
15100
46f2474e
ST
151012018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
15102
15103 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
15104 to 1.
8ba1520e
ST
15105 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
15106 hidden prototypes.
15107 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
15108 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
2d5c41de
ST
15109 * scripts/check-execstack.awk: Consider `xfail' variable containing a
15110 list of libraries whose stack executability is expected.
15111 * elf/Makefile ($(objpfx)check-execstack.out): Pass
15112 $(check-execstack-xfail) to check-execstack.awk through `xfail'
15113 variable.
15114 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
15115 libc.so libpthread.so.
46f2474e 15116
60088242
TS
151172018-07-20 Thomas Schwinge <tschwinge@gnu.org>
15118
15119 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
15120 SOCK_NONBLOCK.
75d5e4a0
TS
15121 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
15122 and SOCK_NONBLOCK.
de195be0
TS
15123 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
15124 implement __pipe2.
15125 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
60088242 15126
1cf4ae7f
LS
151272018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
15128
15129 * benchtests/scripts/compare_bench.py (__main__): use the argparse
15130 library to improve command line parsing.
15131 (__main__): make schema file as optional parameter (--schema),
15132 defaulting to benchtests/scripts/benchout.schema.json.
15133 (main): move out of the parsing stuff to __main_  and leave it
15134 only as caller of main comparison functions.
15135
e84bd851
L
151362018-07-19 H.J. Lu <hongjiu.lu@intel.com>
15137
15138 * NEWS: Add a note for Intel CET status.
15139 * manual/install.texi: Likewise.
15140 * INSTALL: Regenerated.
15141
df467d22
QP
151422018-07-18 Quentin PAGÈS <provaires@quentino.fr>
15143
15144 [BZ #23140]
15145 * localedata/locales/oc_FR (mon): Rename to...
15146 (alt_mon): This, then update October (typo fix).
15147 (mon): New content (genitive case, month names preceded by
15148 "de" or "d’").
15149
15150 [BZ #23422]
15151 * localedata/locales/oc_FR (abday): Update all items.
15152 (day): Update Wednesday and Saturday (typo fixes).
15153 (abmon): Update all items, except May.
15154 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
15155 (LC_IDENTIFICATION): Bump the revision number and date.
15156 Keep the "category" entries in alphabetic order.
15157 (LC_ADDRESS): Remove no longer needed comment.
15158 (LC_COLLATE): Use “copy "ca_ES"”.
15159 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
15160 "name_mrs".
15161
5c112f1b
JM
151622018-07-18 Joseph Myers <joseph@codesourcery.com>
15163
15164 * grp/tst_fgetgrent.c: Include <unistd.h>.
15165 (main): Use mkstemp instead of tmpnam.
15166 * io/test-utime.c (main): Likewise.
15167 * posix/annexc.c (macrofile): Change to modifiable array.
15168 (main): Remove macrofile here.
15169 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
15170 macrofile here.
15171 (check_header): Do not remove macrofile here.
15172 * posix/bug-getopt1.c: Include <stdlib.h>.
15173 (do_test): Use mkstemp instead of tmpnam.
15174 * posix/bug-getopt2.c: Include <stdlib.h>.
15175 (do_test): Use mkstemp instead of tmpnam.
15176 * posix/bug-getopt3.c: Include <stdlib.h>.
15177 (do_test): Use mkstemp instead of tmpnam.
15178 * posix/bug-getopt4.c: Include <stdlib.h>.
15179 (do_test): Use mkstemp instead of tmpnam.
15180 * posix/bug-getopt5.c: Include <stdlib.h>.
15181 (do_test): Use mkstemp instead of tmpnam.
15182 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
15183 (main): Use mkstemp instead of tmpnam.
15184 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
15185 (main): Use mkstemp instead of tmpnam.
15186 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
15187 (main): use mkstemp instead of tmpnam.
15188 * stdlib/isomac.c (macrofile): Change to modifiable array.
15189 (main): Remove macrofile here.
15190 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
15191 macrofile here.
15192 (check_header): Do not remove macrofile here.
15193
6d90776d
L
151942018-07-18 H.J. Lu <hongjiu.lu@intel.com>
15195
15196 * manual/tunables.texi: Document glibc.tune.x86_ibt and
15197 glibc.tune.x86_shstk.
15198
e6c69509
L
151992018-07-18 H.J. Lu <hongjiu.lu@intel.com>
15200
15201 * NEWS: Mention --enable-cet.
15202 * manual/install.texi: Document --enable-cet.
15203 * INSTALL: Regenerated.
15204
e2d40a88
L
152052018-07-18 H.J. Lu <hongjiu.lu@intel.com>
15206
15207 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
15208 Add _CET_NOTRACK before indirect jump to jump table.
15209
77a8ae09
L
152102018-07-18 H.J. Lu <hongjiu.lu@intel.com>
15211
15212 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
15213 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
15214 to jump table.
15215
90d15dc5
L
152162018-07-18 H.J. Lu <hongjiu.lu@intel.com>
15217
15218 * sysdeps/i386/i686/multiarch/strcat-sse2.S
15219 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
15220 to jump table.
15221
f1574581
L
152222018-07-18 H.J. Lu <hongjiu.lu@intel.com>
15223
15224 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
15225 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
15226 to jump table.
15227
7fb61336
L
152282018-07-18 H.J. Lu <hongjiu.lu@intel.com>
15229
15230 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
15231 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
15232 to jump table.
15233
0a899af0
L
152342018-07-18 H.J. Lu <hongjiu.lu@intel.com>
15235
15236 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
15237 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
15238 to jump table.
15239 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
15240
177824e2
L
152412018-07-18 H.J. Lu <hongjiu.lu@intel.com>
15242
15243 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
15244 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
15245 to jump table.
15246
00e7b76a
L
152472018-07-18 H.J. Lu <hongjiu.lu@intel.com>
15248
15249 * sysdeps/i386/i686/multiarch/memset-sse2.S
15250 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
15251 to jump table.
15252
7e119cd5
L
152532018-07-18 H.J. Lu <hongjiu.lu@intel.com>
15254
15255 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
15256 indirect jump to jump table.
15257
03aaf49b
L
152582018-07-18 H.J. Lu <hongjiu.lu@intel.com>
15259
15260 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
15261 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
15262 to jump table.
15263 (MEMCPY): Likewise.
15264
811e9e52
L
152652018-07-18 H.J. Lu <hongjiu.lu@intel.com>
15266
15267 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
15268 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
15269 to jump table.
15270 (MEMCPY): Likewise.
15271
8817df42
L
152722018-07-18 H.J. Lu <hongjiu.lu@intel.com>
15273
15274 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
15275 _CET_NOTRACK before indirect jump to jump table.
15276
921595d1
L
152772018-07-18 H.J. Lu <hongjiu.lu@intel.com>
15278
15279 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
15280 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
15281 to jump table.
15282
4ef60d95
L
152832018-07-18 H.J. Lu <hongjiu.lu@intel.com>
15284
15285 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
15286 indirect jump to jump table.
15287
61c4aad7
VT
152882018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
15289
15290 [BZ #22241]
15291 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
15292 (LOCALES): Likewise.
15293 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
15294 * localedata/locales/sah_RU: New file.
15295 * localedata/sah_RU.UTF-8.in: New file.
15296
be9ccd27
L
152972018-07-17 H.J. Lu <hongjiu.lu@intel.com>
15298
15299 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
15300 "sysdep.h".
15301 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
15302 _CET_ENDBR to indirect jump targets and adjust jump destination
15303 for _CET_ENDBR.
15304 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
15305 "sysdep.h".
15306 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
15307 _CET_ENDBR to indirect jump targets and adjust jump destination
15308 for _CET_ENDBR.
15309 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
15310 "sysdep.h".
15311 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
15312 _CET_ENDBR to indirect jump targets and adjust jump destination
15313 for _CET_ENDBR.
15314
5efc6777
L
153152018-07-17 H.J. Lu <hongjiu.lu@intel.com>
15316
15317 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
15318 _CET_ENDBR.
15319
562837c0
L
153202018-07-17 H.J. Lu <hongjiu.lu@intel.com>
15321
15322 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
15323 _CET_ENDBR.
15324 (_dl_tlsdesc_undefweak): Likewise.
15325 (_dl_tlsdesc_dynamic): Likewise.
15326 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
15327 (_dl_tlsdesc_resolve_rel): Likewise.
15328 (_dl_tlsdesc_resolve_rela): Likewise.
15329 (_dl_tlsdesc_resolve_hold): Likewise.
15330 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
15331 (_dl_tlsdesc_undefweak): Likewise.
15332 (_dl_tlsdesc_dynamic): Likewise.
15333 (_dl_tlsdesc_resolve_rela): Likewise.
15334 (_dl_tlsdesc_resolve_hold): Likewise.
15335
124bcde6
L
153362018-07-17 H.J. Lu <hongjiu.lu@intel.com>
15337
15338 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
15339 (_fini): Likewise.
15340 * sysdeps/x86_64/crti.S (_init): Likewise.
15341 (_fini): Likewise.
15342
ab74d59f 153432018-07-17 Rafał Lużyński <digitalfreak@lingonborough.com>
9145f033
RL
15344
15345 [BZ #23140]
15346 * localedata/locales/os_RU (mon): Rename to...
15347 (alt_mon): This.
15348 (mon): Import from CLDR (genitive case).
15349
ba2ea23d
L
153502018-07-17 H.J. Lu <hongjiu.lu@intel.com>
15351
15352 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
15353 cet-tunables.h> when CET is enabled.
15354
f753fa7d
L
153552018-07-16 H.J. Lu <hongjiu.lu@intel.com>
15356
6b5c8607 15357 [BZ #21598]
f753fa7d
L
15358 * configure.ac: Add --enable-cet.
15359 * configure: Regenerated.
15360 * elf/Makefille (all-built-dso): Add a comment.
15361 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
15362 Include <dl-prop.h>.
15363 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
15364 segment.
15365 * elf/dl-open.c: Include <dl-prop.h>.
15366 (dl_open_worker): Call _dl_open_check.
15367 * elf/rtld.c: Include <dl-prop.h>.
15368 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
15369 _rtld_main_check.
15370 * sysdeps/generic/dl-prop.h: New file.
15371 * sysdeps/i386/dl-cet.c: Likewise.
15372 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
15373 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
15374 * sysdeps/x86/cet-tunables.h: Likewise.
15375 * sysdeps/x86/check-cet.awk: Likewise.
15376 * sysdeps/x86/configure: Likewise.
15377 * sysdeps/x86/configure.ac: Likewise.
15378 * sysdeps/x86/dl-cet.c: Likewise.
15379 * sysdeps/x86/dl-procruntime.c: Likewise.
15380 * sysdeps/x86/dl-prop.h: Likewise.
15381 * sysdeps/x86/libc-start.h: Likewise.
15382 * sysdeps/x86/link_map.h: Likewise.
15383 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
15384 _CET_ENDBR.
15385 (_dl_runtime_profile): Likewise.
15386 (_dl_runtime_resolve_shstk): New.
15387 (_dl_runtime_profile_shstk): Likewise.
15388 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
15389 if CET is enabled.
15390 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
15391 (CFLAGS-.os): Likewise.
15392 (CFLAGS-.op): Likewise.
15393 (CFLAGS-.oS): Likewise.
15394 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
15395 is enabled.
15396 (tests-special): Add $(objpfx)check-cet.out.
15397 (cet-built-dso): New.
15398 (+$(cet-built-dso:=.note)): Likewise.
15399 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
15400 ($(objpfx)check-cet.out): New.
15401 (generated): Add check-cet.out.
15402 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
15403 <cet-tunables.h>.
15404 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
15405 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
15406 (init_cpu_features): Call get_cet_status to check CET status
15407 and update dl_x86_feature_1 with CET status. Call
15408 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
15409 (set_x86_shstk). Disable and lock CET in libc.a.
15410 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
15411 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
15412 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
15413 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
15414 (_CET_ENDBR): Define if not defined.
15415 (ENTRY): Add _CET_ENDBR.
15416 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
15417 x86_shstk.
15418 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
15419 _CET_ENDBR.
15420 (_dl_runtime_profile): Likewise.
15421
52b2a80f
RA
154222018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
15423
15424 [BZ #21895]
15425 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
15426 restore r2 on longjmp.
15427 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
15428 test list.
15429 Added rules to build test tst-setjmp-bug21895-static.
15430 Added module setjmp-bug21895 and rules to build a shared object from it.
15431 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
15432 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
15433
3ae725df
WD
154342018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
15435
15436 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
15437 * benchtests/bench-strstr.c: Likewise.
15438 * string/memmem.c (FASTSEARCH): Define.
15439 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
15440 Add support for FASTSEARCH.
15441 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
15442 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
15443 (FASTSEARCH): Define.
15444 * string/test-strcasestr.c: Rename __strnlen to strnlen.
15445 * string/test-strstr.c: Likewise.
15446
31e422ca
L
154472018-07-15 H.J. Lu <hongjiu.lu@intel.com>
15448
15449 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
15450 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
15451
faaee1f0
L
154522018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
15453 H.J. Lu <hongjiu.lu@intel.com>
15454
15455 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
15456 (__longjmp): Restore shadow stack pointer if shadow stack is
15457 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
15458 isn't defined for __longjmp_cancel.
15459 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
15460 (_setjmp): Save shadow stack pointer if shadow stack is enabled
15461 and SHADOW_STACK_POINTER_OFFSET is defined.
15462 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
15463 (setjmp): Save shadow stack pointer if shadow stack is enabled
15464 and SHADOW_STACK_POINTER_OFFSET is defined.
15465 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
15466 (__sigsetjmp): Save shadow stack pointer if shadow stack is
15467 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
15468 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
15469 <jmp_buf-ssp.h>.
15470 (____longjmp_chk): Restore shadow stack pointer if shadow stack
15471 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
15472 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
15473 Remove jmp_buf-ssp.sym.
15474 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
15475 <jmp_buf-ssp.h>.
15476 (____longjmp_chk): Restore shadow stack pointer if shadow stack
15477 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
15478 * sysdeps/x86/Makefile (gen-as-const-headers): Add
15479 jmp_buf-ssp.sym.
15480 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
15481 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
15482 (__longjmp): Restore shadow stack pointer if shadow stack is
15483 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
15484 isn't defined for __longjmp_cancel.
15485 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
15486 (__sigsetjmp): Save shadow stack pointer if shadow stack is
15487 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
15488
ebff9c5c
L
154892018-07-14 H.J. Lu <hongjiu.lu@intel.com>
15490
15491 [BZ #22563]
15492 * nptl/pthread_create.c: Include <tls-setup.h>.
15493 (__pthread_create_2_1): Call tls_setup_tcbhead.
15494 * sysdeps/generic/tls-setup.h: New file.
15495 * sysdeps/x86/nptl/tls-setup.h: Likewise.
15496 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
15497 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
15498 Likewise.
15499 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
15500 to feature_1.
15501 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
15502 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
15503 (X86_FEATURE_1_SHSTK): Likewise.
15504 (CET_ENABLED): Likewise.
15505 (IBT_ENABLED): Likewise.
15506 (SHSTK_ENABLED): Likewise.
15507
ab74d59f 155082018-07-13 Rafał Lużyński <digitalfreak@lingonborough.com>
0a83bad2
RL
15509
15510 [BZ #23208]
15511 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
15512 (LOCALES): Likewise.
15513 * localedata/dsb_DE.UTF-8.in: New file.
15514 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
15515
046bfed9
FW
155162018-07-12 Florian Weimer <fweimer@redhat.com>
15517
15518 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
15519 __mprotect, not mprotect.
15520
93304f5f
FW
155212018-07-11 Florian Weimer <fweimer@redhat.com>
15522
15523 * io/Makefile (headers): Add bits/statx.h.
15524
4beefeeb
MF
155252018-07-10 Mike FABIAN <mfabian@redhat.com>
15526
15527 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
15528 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
15529 and headers.
15530 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
15531 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
15532 for utf8_gen.py
15533
fd70af45
FW
155342018-07-10 Florian Weimer <fweimer@redhat.com>
15535
15536 * io/Makefile (routines): Add statx.
15537 (tests-internal): Add tst-statx.
15538 * io/Versions (GLIBC_2.28): Export statx.
15539 * io/bits/statx.h: New file.
15540 * io/sys/stat.h [__USE_GNU]: Include it.
15541 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
15542 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
15543 Define.
15544 * io/statx.c: New file.
15545 * io/statx_generic.: Likewise.
15546 * io/tst-statx.: Likewise.
15547 * include/bits/statx.h: Likewise.
15548 * sysdeps/unix/sysv/linux/kernel-features.h
15549 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
15550 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
15551 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
15552 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
15553 Undefine.
15554 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
15555 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
15556 * sysdeps/unix/sysv/linux/statx.c: New file.
15557 * manual/filesys.texi: Note that statx is undocumented.
15558 * sysdeps/**/libc*.abilist: Update.
15559
b444e8f7
AZ
155602018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15561
15562 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
15563 a kernel issue which lead to test failure in some cases.
15564
7b2f4ced
FW
155652018-07-10 Florian Weimer <fweimer@redhat.com>
15566
15567 [BZ #23036]
15568 * posix/regexec.c (check_node_accept_bytes): When comparing
15569 weights, do not compare an extra byte after the end of the
15570 weights.
15571
4fa34da6
FW
155722018-07-10 Florian Weimer <fweimer@redhat.com>
15573
15574 * libio/readline.c: Fix copyright year.
15575 * libio/tst-readline.c Likewise.
15576 * nss/tst-nss-files-hosts-getent.c: Likewise.
15577
916124ed
FW
155782018-07-06 Florian Weimer <fweimer@redhat.com>
15579
15580 [BZ #18991]
15581 * nss/nss_files/files-XXX.c (internal_getent): Use
15582 __libc_readline_unlocked. Seek back to the start of the line if
15583 parsing failes with ERANGE.
15584 (get_contents_ret, get_contents): Remove.
15585 * nss/tst-nss-files-hosts-getent.c: New file.
15586 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
15587 (tst-nss-files-hosts-getent): Link with -ldl.
15588
3f5e3f5d
FW
155892018-07-06 Florian Weimer <fweimer@redhat.com>
15590
15591 * include/stdio.h (__libc_readline_unlocked): Declare.
15592 (__ftello64, __fseeko64): Declare aliases.
15593 * libio/readline.c: New file.
15594 * libio/tst-readline.c: Likewise.
15595 (routines): Add readline.
15596 (tests-internal): Add tst-readlime.
15597 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
15598 __libc_readline_unlocked.
15599 * libio/fseeko.c (__fseeko): Rename from fseeko.
15600 (fseeko): Add alias.
15601 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
15602 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
15603 (fseeko64): Add alias.
15604 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
15605 * libio/ftello64.c (__ftello64): Rename from ftello64.
15606 (ftello64): Add alias.
15607
397c54c1
SN
156082018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
15609
15610 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
15611 HWCAP_ATOMICS.
15612
d0cd7980
SN
156132018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
15614
15615 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
15616 Use dl_hwcap without masking.
15617 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
15618 Remove HWCAP_CPUID.
15619
ddb3c626
FW
156202018-07-06 Florian Weimer <fweimer@redhat.com>
15621
15622 * conform/conformtest.pl (checknamespace): Escape literal braces
15623 in regular expressions.
15624
bce5911b
AP
156252018-07-06 Amit Pawar <amit.pawar@amd.com>
15626
15627 * sysdeps/x86/cpu-features.c (get_common_indeces):
15628 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
15629 * sysdeps/x86/cpu-features.c (init_cpu_features):
15630 AVX_Fast_Unaligned_Load is disabled for Excavator core.
15631
3a885c1f
FW
156322018-07-05 Florian Weimer <fweimer@redhat.com>
15633
15634 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
15635 protector.
15636 (CFLAGS-elf-init.oS): Likewise.
15637
38cade0c
FW
156382018-07-05 Florian Weimer <fweimer@redhat.com>
15639 Carlos O'Donell <carlos@redhat.com>
15640
15641 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
15642 $(no-stack-protector). stack_chk_fail_local.c can be compiled
15643 with stack protector enabled because there is no risk of infinite
15644 recursion.
15645
9449a295
MR
156462018-07-05 Maciej W. Rozycki <macro@mips.com>
15647
15648 [BZ #19818]
15649 [BZ #23307]
15650 * libc-abis (ABSOLUTE): New ABI.
15651 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
15652 * NEWS: Mention the new ABI.
15653
d6da5cb6
FW
156542018-07-05 Florian Weimer <fweimer@redhat.com>
15655
15656 [BZ # 17662]
15657 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
15658 (RENAME_WHITEOUT): Define.
15659 [__USE_GNU] (renameat2): Declare.
15660 * stdio-common/Makefile (routines): Add renameat2.
15661 (tests): Add tst-renameat2.
15662 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
15663 * stdio-common/renameat2.c: New file.
15664 * stdio-common/tst-renameat2.c: Likewise.
15665 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
15666 * manual/filesys.texi (Temporary Files): Note that renameat2 is
15667 undocumented.
15668 * sysdeps/unix/sysv/linux/kernel-features.h
15669 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
15670 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
15671 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
15672 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
15673 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
15674 * sysdeps/unix/sysv/linux/sh/kernel-features.h
15675 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
15676 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
15677 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
15678 * include/stdio.h (__renameat): Add alias for renameat.
15679 * stdio-common/renameat.c (__renameat): Rename from renameat.
15680 Add hidden definition and alias.
15681 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
15682 * sysdeps/mach/hurd/renameat.c: Likewise.
15683 * sysdeps/**/libc*.abilist: Add renameat2.
15684
1002d708
AZ
156852018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15686
15687 * posix/bug-regex33.c: Fix build after regex sync.
15688
34fdb893
CD
156892018-07-04 Carlos O'Donell <carlos@redhat.com>
15690
15691 [BZ #23164]
15692 * localedata/tst-langinfo-setlocale.c: New file.
15693 * localedata/tst-langinfo-setlocale-static.c: New file.
15694 * localedata/tst-langinfo-newlocale.c: New file.
15695 * localedata/tst-langinfo-newlocale-static.c: New file.
15696 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
15697 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
15698 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
15699 (tests-static): Remove tst-langinfo-static. Add
15700 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
15701 (tests-special): Remove $(objpfx)tst-langinfo.out,
15702 $(objpfx)tst-langinfo-static.out. Add
15703 $(objpfx)tst-langinfo-setlocale.out,
15704 $(objpfx)tst-langinfo-newlocale.out,
15705 $(objpfx)tst-langinfo-setlocale-static.out,
15706 $(objpfx)tst-langinfo-newlocale-static.out.
15707 ($(objpfx)tst-langinfo.out): Remove.
15708 ($(objpfx)tst-langinfo-static.out): Remove.
15709 ($(objpfx)tst-langinfo-newlocale.out): New target.
15710 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
15711 (test-xfail-tst-langinfo-newlocale-static): Add.
15712 ($(objpfx)tst-langinfo-setlocale.out): New target.
15713 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
15714 * localedata/tst-langinfo.c: Call test_locale.
15715 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
15716 data.
15717
f2873d2d
FW
157182018-07-04 Florian Weimer <fweimer@redhat.com>
15719
15720 testrun.sh: Implement --tool=strace, --tool=valgrind
15721 * Makefile (testrun-script): Define variable.
15722 (testrun.sh): Use variable.
15723 * manual/install.texi (Tools for Compilation): make 4.0 or later
15724 is required.
15725 * configure.ac: Check for make 4.0 or later.
15726 * INSTALL: Regenerate.
15727 * configure: Likewise.
15728
eb04c213
AZ
157292018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15730
15731 [BZ #23233]
15732 [BZ #21163]
15733 [BZ #18986]
15734 [BZ #13762]
15735 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
15736 * posix/PCRE.tests: Remove invalid test.
15737 * posix/bug-regex28.c: Fix expected values for used syntax.
15738 * posix/bug-regex37.c: New file.
15739 * posix/bug-regex38.c: Likewise.
15740 * posix/regcomp.c: Sync with gnulib.
15741 * posix/regex.c: Likewise.
15742 * posix/regex.h: Likewise.
15743 * posix/regex_internal.c: Likewise.
15744 * posix/regex_internal.h: Likewise.
15745 * posix/regexec.c: Likewise.
15746
b11643c2
MF
157472018-06-26 Mike FABIAN <mfabian@redhat.com>
15748
15749 [BZ #23308]
15750 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
15751 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
15752 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
15753 * localedata/unicode-gen/PropList.txt: likewise.
15754 * localedata/unicode-gen/UnicodeData.txt: likewise.
15755 * localedata/charmaps/UTF-8: Regenerate.
15756 * localedata/locales/i18n_ctype: likewise.
15757 * localedata/locales/tr_TR: likewise.
15758 * localedata/locales/translit_circle: likewise.
15759 * localedata/locales/translit_cjk_compat: likewise.
15760 * localedata/locales/translit_combining: likewise.
15761 * localedata/locales/translit_compat: likewise.
15762 * localedata/locales/translit_font: likewise.
15763 * localedata/locales/translit_fraction: likewise.
15764
5a357506
FW
157652018-07-03 Florian Weimer <fweimer@redhat.com>
15766
15767 [BZ #23363]
15768 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
15769 * stdio-common/tst-printf.sh: Adjust expected output.
15770 * LICENSES: Update.
15771
7279af00
AZ
157722018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15773
15774 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
15775 symbol.
15776
b7b88cea
GG
157772018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
15778
15779 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
15780 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
15781 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
15782 * stdio-common/tst-printfsz-islongdouble.c: New file.
15783 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
15784 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
15785 [subdir == stdio-common] (routines): Add ieee128-printf_size.
15786 [subdir == stdio-common] (tests-internal): Add
15787 test-printf-size-ieee128, and test-printf-size-ibm128.
15788 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
15789 (CFLAGS-test-printf-size-ibm128.c): New variables.
15790 [subdir == stdio-common] (tests-special): Add
15791 $(objpfx)test-printf-size-ieee128.out and
15792 $(objpfx)test-printf-size-ibm128.out.
15793 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
15794 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
15795 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
15796 __printf_sizeieee128.
15797 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
15798 New file.
15799 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
15800 Likewise.
15801 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
15802 Likewise.
15803
2b445206
SN
158042018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
15805
15806 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
15807 (exp2f_inline): Likewise.
15808 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
15809 (__math_uflowf): Likewise.
15810 (__math_may_uflowf): Likewise.
15811 (__math_divzerof): Likewise.
15812 (__math_invalidf): Likewise.
15813 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
15814 (__math_oflowf): Likewise.
15815 (__math_uflowf): Likewise.
15816 (__math_may_uflowf): Likewise.
15817 (__math_divzerof): Likewise.
15818 (__math_invalidf): Likewise.
15819
2827ab99
CD
158202018-06-29 DJ Delorie <dj@redhat.com>
15821 Carlos O'Donell <carlos@redhat.com>
15822
15823 [BZ #23329]
15824 * include/libc-symbols.h: Comment the freeres framework.
15825 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
15826 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
15827 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
15828 * dlfcn/dlerror.c: Include libc-symbols.h
15829 (__dlerror_main_freeres): New function.
15830 * dlfcn/dlfreeres.c: New file.
15831 * dlfcn/sdlfreeres.c: New file.
15832 * include/dlfcn.h: Declare __dlerror_main_freeres.
15833 * malloc/set-freeres.c: Declare __libdl_freeres, and
15834 __libpthread_freeres.
15835 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
15836 the releavant libraries are loaded.
15837 * malloc/thread-freeres.c: Add comments.
15838 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
15839 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
15840 * nptl/allocatestack.c (__nptl_free_stacks): New function.
15841 (__free_stacks): Rename to...
15842 (free_stacks): ...this. Mark static.
15843 (queue_stack): Call free_stacks.
15844 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
15845 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
15846 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
15847 ptr_freeres element from struct.
15848 (pthread_functions): Remove .ptr_freeres from struct initializer.
15849 [SHARED] (nptl_freeres): Remove.
15850 * nptl/nptlfreeres.c: New file.
15851 * nptl/pthreadP.h
15852 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
15853 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
15854 attribute_hidden.
15855 (__free_stacks): Rename to...
15856 (__nptl_stacks_freeres): ...this.
15857 (__shm_directory_freeres): Declare.
15858 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
15859 (__nptl_unwind_freeres): ...this.
15860 * resolv/res-close.c: Add comment.
15861 * resolv/resolv_conf.c: Include libc-symbols.h.
15862 * string/strerror_l.c: Include libc-symbols.h.
15863 * sunrpc/rpc_thread.c: Include libc-symbols.h.
15864 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
15865 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
15866 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
15867
37d3d244
RS
158682018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
15869
15870 * stdlib/tst-strfmon_l.c: Add tests for long double.
15871
a1e0c5fa
MW
158722018-06-29 Michael Wolf <milupo@sorbzilla.de>
15873
15874 [BZ #23208]
15875 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
15876 * localedata/locales/dsb_DE: New file.
15877
ab74d59f 158782018-06-29 Rafał Lużyński <digitalfreak@lingonborough.com>
2e0c5de6
RL
15879
15880 [BZ #23140]
15881 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
15882 genitive case).
15883 (alt_mon): New entry, import from CLDR (nominative case).
15884
cdb52c71
SL
158852018-06-29 Sylvain Lesage <severo@rednegra.net>
15886
15887 [BZ #22996]
15888 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
15889
ce76a5cb
SP
158902018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
15891
0aec4c1d
SP
15892 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
15893 Use vector registers.
15894
ce76a5cb
SP
15895 * sysdeps/aarch64/multiarch/memmove_falkor.S
15896 (__memcpy_falkor): Use vector registers.
15897
7e8989d0
MS
158982018-06-29 Martin Sebor <msebor@redhat.com>
15899
15900 * manual/stdio.texi (Customizing Printf): Mention interaction
15901 with GCC built-ins.
15902
bac15a72
MR
159032018-06-29 Maciej W. Rozycki <macro@mips.com>
15904
15905 [BZ #23307]
15906 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
15907 `st_value' is 0 if `st_shndx' is SHN_ABS.
15908 * elf/tst-absolute-zero.c: New file.
15909 * elf/tst-absolute-zero-lib.c: New file.
15910 * elf/tst-absolute-zero-lib.lds: New file.
15911 * elf/Makefile (tests): Add `tst-absolute-zero'.
15912 (modules-names): Add `tst-absolute-zero-lib'.
15913 (LDLIBS-tst-absolute-zero-lib.so): New variable.
15914 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
15915 ($(objpfx)tst-absolute-zero: New dependency.
15916
e69d994a
ZW
159172018-06-29 Zack Weinberg <zackw@panix.com>
15918
15919 * configure.ac: New command-line option --disable-crypt.
15920 Force --disable-nss-crypt when --disable-crypt is given, with a
15921 warning if it was explicitly enabled.
15922 * configure: Regenerate.
15923 * config.make.in: New boolean substitution variable $(build-crypt).
15924 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
15925 when $(build-crypt).
15926 * manual/install.texi: Document --disable-crypt.
15927 * INSTALL: Regenerate.
15928
15929 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
15930 which is never set.
15931 * conform/Makefile: Only include libcrypt.a in
15932 linknamespace-libs-xsi and linknamespace-libs-XPG4
15933 when $(build-crypt).
15934 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
15935 USE_CRYPT to 1 when $(build-crypt).
15936 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
15937 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
15938 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
15939
841785ba
ZW
159402018-06-29 Zack Weinberg <zackw@panix.com>
15941
15942 * crypt/crypt.h, posix/unistd.h: Update comments and
15943 prototypes for crypt and crypt_r.
15944
15945 * manual/crypt.texi (Cryptographic Functions): New initial
15946 exposition.
15947 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
15948 (Unpredictable Bytes): Improve initial exposition. Clarify error
15949 behavior of getentropy and getrandom.
15950 * manual/examples/genpass.c: Generate a salt using getentropy
15951 instead of the current time. Use hash $5$ (SHA-2-256).
15952 * manual/examples/testpass.c: Demonstrate validation against
15953 hashes generated with three different one-way functions.
15954
15955 * manual/intro.texi: crypt.texi does not need an overview
15956 anymore.
15957
15958 * manual/nss.texi, manual/memory.texi, manual/socket.texi
15959 * manual/terminal.texi: Consistently refer to "passphrases"
15960 * instead of "passwords", and to the "user database" instead
15961 * of the "password database".
15962 * manual/users.texi: Similarly. Add notes about how actual
15963 passphrase hashes are now stored in the shadow database.
15964 Remove 20-year-old junk todo note.
15965
6ab902e4
ZW
159662018-06-29 Zack Weinberg <zackw@panix.com>
15967
15968 * manual/crypt.texi: Use a normal top-level @node declaration.
15969 Move most of the introductory text to the 'crypt' section.
15970 Move the example programs below the @deftypefun for 'crypt_r'.
15971 Move the 'getpass' section...
15972 * manual/terminal.texi: ...here.
15973
b10a0acc
ZW
159742018-06-29 Zack Weinberg <zackw@panix.com>
15975 Florian Weimer <fweimer@redhat.com>
15976
15977 * posix/unistd.h: Do not declare encrypt.
15978 (_XOPEN_CRYPT): Remove macro definition.
15979 (crypt): Declare only for _USE_MISC.
15980 * stdlib/stdlib.h: Do not declare setkey.
15981 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
15982 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
15983
15984 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
15985 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
15986 into compat symbols. Don't define initial_perm if it's not
15987 going to be used.
15988 * crypt/cert.c: Link explicitly with the expected versions for
15989 setkey and encrypt. If they are not available at all, mark
15990 the test as unsupported.
15991
15992 * sunrpc/des_crypt.c: Unconditionally block linkage with
15993 cbc_crypt and ecb_crypt for new binaries.
15994 * sunrpc/des_soft.c: Unconditionally block linkage with
15995 des_setparity for new binaries.
15996
15997 * manual/crypt.texi: Remove the entire "DES Encryption"
15998 section. Also remove the paragraph talking about FIPS 140-2
15999 from the introduction.
16000 * manual/string.texi (strfry, memfrob): Revise. Recommend use
16001 of libgcrypt for "real" encryption, not DES.
16002 * manual/conf.texi (Constants for Sysconf): Mention that
16003 _XOPEN_CRYPT is no longer impelemented.
16004
16005 * conform/data/unistd.h-data: Remove crypt function declaration.
16006
524d796d
FW
160072018-06-29 Florian Weimer <fweimer@redhat.com>
16008
16009 [BZ #23351]
16010 * malloc/hooks.c: Update comments on restoring of dumped heaps.
16011 (disallow_malloc_check): Remove variable.
16012 (__malloc_check_init): Adjust.
16013 (malloc_set_state): Update comment.
16014 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
16015 declarations.
16016
ab74d59f 160172018-06-29 Rafał Lużyński <digitalfreak@lingonborough.com>
339124ab
RL
16018
16019 [BZ #23140]
16020 * localedata/locales/ast_ES (mon): Rename to...
16021 (alt_mon): This.
16022 (mon): Import from CLDR (genitive case).
16023
c1f86a33
DA
160242018-06-29 Daniel Alvarez <dalvarez@redhat.com>
16025 Jakub Sitnicki <jkbs@redhat.com>
16026
16027 [BZ #21812]
16028 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
16029 on NLM_F_DUMP_INTR.
16030
0b11b649
SN
160312018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
16032
16033 * manual/llio.texi: Remove spurious space.
16034
c1c2848b
FW
160352018-06-28 Florian Weimer <fweimer@redhat.com>
16036
16037 [BZ #23349]
16038 * time/bits/types/struct_timespec.h: Change header inclusion guard to
16039 _STRUCT_TIMESPEC.
16040
86a0f561
RS
160412018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
16042
16043 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
6b5c8607 16044 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
86a0f561
RS
16045 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
16046 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
16047 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
16048 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
16049 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
16050
780684eb
MR
160512018-06-27 Maciej W. Rozycki <macro@mips.com>
16052
16053 [BZ #23266]
16054 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
16055 Copy and null-terminate entries that are not terminated, in
16056 addition to empty ones.
16057
c49e1822
FW
160582018-06-27 Florian Weimer <fweimer@redhat.com>
16059
16060 [BZ #18023]
b39d961c
TS
16061 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
16062 (extend_alloca_account): Remove.
c49e1822
FW
16063 * manual/stdio.texi (Variable Arguments Output): Update comment.
16064
a833e627
JM
160652018-06-27 Joseph Myers <joseph@codesourcery.com>
16066
16067 * nptl/sockperf.c: Remove file.
16068
92d6aa85
FW
160692018-06-27 Florian Weimer <fweimer@redhat.com>
16070
16071 [BZ #18023]
16072 * elf/dl-deps.c (_dl_map_object_deps): Use struct
16073 scratch_buffer instead of extend_alloca.
16074
890c2ced
FW
160752018-06-27 Florian Weimer <fweimer@redhat.com>
16076
16077 [BZ #18023]
16078 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
16079 scratch_buffer instead of extend_alloca. Update comments.
16080
4272059d
FW
160812018-06-27 Florian Weimer <fweimer@redhat.com>
16082
16083 [BZ #18023]
16084 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
16085 instead of extend_alloca.
16086
27f10a09
JM
160872018-06-26 Joseph Myers <joseph@codesourcery.com>
16088
16089 [BZ #13888]
16090 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
16091 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
16092 /tmp.
16093 * scripts/test-installation.pl: Put temporary files in build
16094 directory, not /tmp.
16095 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
16096 (CFLAGS-bug4.c): Likewise.
16097 (CFLAGS-bug5.c): Likewise.
16098 (CFLAGS-test-fseek.c): Likewise.
16099 (CFLAGS-test-popen.c): Likewise.
16100 (CFLAGS-test_rdwr.c): Likewise.
16101 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
16102 /tmp.
16103 * stdio-common/bug4.c (main): Likewise.
16104 * stdio-common/bug5.c (main): Likewise.
16105 * stdio-common/test-fseek.c (TESTFILE): Likewise.
16106 * stdio-common/test-popen.c (do_test): Likewise.
16107 * stdio-common/test_rdwr.c (main): Likewise.
16108
05598a09
PF
161092018-06-26 Patsy Franklin <pfrankli@redhat.com>
16110
16111 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
16112 (sem_open): Set sem.newsem.pad to zero for valgrind.
16113
06ab719d
AZ
161142018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16115
16116 [BZ #20251]
16117 * NEWS: Mention fcntl64 addition.
16118 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
16119 * login/utmp_file.c: Likewise.
16120 * sysdeps/posix/fdopendir.c: Likewise.
16121 * sysdeps/posix/opendir.c: Likewise.
16122 * sysdeps/unix/pt-fcntl.c: Likewise.
16123 * include/fcntl.h (__libc_fcntl64, __fcntl64,
16124 __fcntl64_nocancel_adjusted): New prototype.
16125 (__fcntl_nocancel_adjusted): Remove prototype.
16126 * io/Makefile (routines): Add fcntl64.
16127 (CFLAGS-fcntl64.c): New rule.
16128 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
16129 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
16130 * io/fcntl.h (fcntl64): Add prototype and redirect if
16131 __USE_FILE_OFFSET64 is defined.
16132 * io/fcntl64.c: New file.
16133 * manual/llio.text: Add a note for which commands fcntl acts a
16134 cancellation point.
16135 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
16136 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
16137 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
16138 New symbols.
16139 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
16140 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
16141 non-LFS case.
16142 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
16143 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
16144 to __fcntl64_nocancel.
16145 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
16146 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
16147 to __fcntl64_nocancel.
16148 * sysdeps/generic/not-cancel.h: Likewise.
16149 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
16150 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
16151 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
16152 (fcntl64): New symbol.
16153 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
16154 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
16155 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
16156 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
16157 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
16158 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
16159 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
16160 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
16161 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
16162 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
16163 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
16164 fcntl64): Likewise.
16165 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
16166 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
16167 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
16168 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
16169 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
16170 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
16171 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
16172 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
16173 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
16174 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
16175 Likewise.
16176 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
16177 Likewise.
16178 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
16179 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
16180 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
16181
124e0258
FW
161822018-06-26 Florian Weimer <fweimer@redhat.com>
16183
16184 Run thread shutdown functions in an explicit order.
16185 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
16186 definition.
16187 (__libc_thread_freeres): Call thread shutdown functions
16188 explicitly.
16189 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
16190 * include/string.h (__strerror_thread_freeres): Declare.
16191 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
16192 arena_thread_freeres. No longer static. Remove thread shutdown
16193 hook registration.
16194 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
16195 Declare.
16196 * resolv/res-close.c (__res_thread_freeres): Renamed from
16197 res_thread_freeres. No longer static. Remove thread shutdown
16198 hook registration.
16199 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
16200 * resolv/resolv_conf.c (freeres): Remove incorrect section
16201 attribute and use libc_freeres_fn.
16202 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
16203 strerror_thread_freeres. No longer static. Remove thread
16204 shutdown hook registration.
16205 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
16206 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
16207 shutdown hook registration.
16208 * Makerules (shlib.lds): Do not provide section boundary symbols
16209 for __libc_thread_subfreeres.
16210 * manual/memory.texi (Basic Allocation): Update comment.
16211
935d920e
FW
162122018-06-26 Florian Weimer <fweimer@redhat.com>
16213
16214 Remove always-defined _RPC_THREAD_SAFE_ macro.
16215 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
16216 Do not define _RPC_THREAD_SAFE_.
16217 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
16218 conditional.
16219 * sunrpc/clnt_perr.c: Likewise.
16220 * sunrpc/clnt_raw.c: Likewise.
16221 * sunrpc/clnt_simp.c: Likewise.
16222 * sunrpc/key_call.c: Likewise.
16223 * sunrpc/rpc_common.c: Likewise.
16224 * sunrpc/rpc_main.c: Likewise.
16225 * sunrpc/rpc_thread.c: Likewise.
16226 * sunrpc/svc.c: Likewise.
16227 * sunrpc/svc_raw.c: Likewise.
16228 * sunrpc/svc_simple.c: Likewise.
16229 * sumrpc/svcauth_des.c: Likewise.
16230
29055464
FW
162312018-06-26 Florian Weimer <fweimer@redhat.com>
16232
16233 * libio/Makefile (tests-internal): Add tst-vtables,
16234 tst-vtables-interposed.
16235 * libio/tst-vtables.c: New file.
16236 * libio/tst-vtables-common.c: Likewise.
16237 * libio/tst-vtables-interposed.c: Likewise.
16238
5c0202af
FW
162392018-06-26 Florian Weimer <fweimer@redhat.com>
16240
16241 * support/support_test_main.c (support_test_main): Only call
16242 setvbuf if not disables.
16243 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
16244 * support/test-driver.h (struct test_config): Add no_setvbuf member.
16245
c402355d
FW
162462018-06-26 Florian Weimer <fweimer@redhat.com>
16247
16248 [BZ #23313]
16249 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
16250
43b1048a
FW
162512018-06-25 Florian Weimer <fweimer@redhat.com>
16252
16253 [BZ #18023]
16254 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
16255 Use struct scratch_buffer instead of extend_alloca.
16256
1599ed4e
FW
162572018-06-25 Florian Weimer <fweimer@redhat.com>
16258
16259 [BZ #18023]
16260 * nss/getent.c (initgroups_keys): Use dynarray instead of
16261 extend_alloca.
16262
a26fe163
FW
162632018-06-25 Florian Weimer <fweimer@redhat.com>
16264
16265 [BZ #18023]
16266 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
16267 Use struct scratch_buffer instead of extend_alloca.
16268
90d9d9ce
FW
162692018-06-25 Florian Weimer <fweimer@redhat.com>
16270
16271 [BZ #18023]
16272 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
16273 back to malloc directly, without stack allocations.
16274
6b7b2aba
FW
162752018-06-25 Florian Weimer <fweimer@redhat.com>
16276
16277 [BZ #18023]
16278 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
16279 of extend_alloca.
16280
2f9f0d18
FW
162812018-06-25 Florian Weimer <fweimer@redhat.com>
16282
16283 [BZ #18023]
16284 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
16285 of extend_alloca.
16286 * nscd/hstcache.c (addhstbyX): Likewise.
16287 * nscd/pwdcache.c (addpwbyX): Likewise.
16288 * nscd/servicescache.c (addservbyX): Likewise.
16289
318bad78
FW
162902018-06-25 Florian Weimer <fweimer@redhat.com>
16291
16292 [BZ #18023]
16293 * nscd/connections.c (read_cmdline): New function.
16294 (restart): Use it. Update comment.
16295
ab74d59f 162962018-06-25 Rafał Lużyński <digitalfreak@lingonborough.com>
189699ab
RL
16297
16298 [BZ #23140]
16299 * localedata/locales/csb_PL (mon): Rename to...
16300 (alt_mon): This.
16301 (abmon): Rename to...
16302 (ab_alt_mon): This.
16303 (mon): Add with proper genitive forms, copy from Wikipedia.
16304 (abmon): Likewise.
16305
ab74d59f 163062018-06-25 Rafał Lużyński <digitalfreak@lingonborough.com>
0ea3f13c
RL
16307
16308 [BZ #19485]
16309 * localedata/locales/csb_PL (mon): Fix typos:
16310 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
16311 (yesstr): Add, value is "jo".
16312 (nostr): Add, value is "nié".
16313
d93f4ff1
TMQMF
163142018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
16315
16316 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
16317 all log1p and significand functions on m680x0.
16318 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
16319 of s_significand.c..
16320 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
16321 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
16322 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
16323 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
16324 s_log1p.c and include it..
16325
f6299d2a
VC
163262018-06-21 Vincent Chen <vincentc@andestech.com>
16327
16328 * elf/elf.h (R_NDS32_NONE): New define.
16329 (R_NDS32_32_RELA): Likewise.
16330 (R_NDS32_COPY): Likewise.
16331 (R_NDS32_GLOB_DAT): Likewise.
16332 (R_NDS32_JUMP_SLOT): Likewise.
16333 (R_NDS32_RELATIVE): Likewise.
16334 (R_NDS32_TLS_TPOFF): Likewise.
16335 (R_NDS32_TLS_DESC): Likewise.
16336
61ab61c2
MW
163372018-06-21 Mark Wielaard <mark@klomp.org>
16338
16339 * elf/elf.h (R_BPF_MAP_FD): Removed.
16340 (R_BPF_64_64, R_BPF_64_32): New.
16341
f496b28e
FW
163422018-06-21 Florian Weimer <fweimer@redhat.com>
16343
16344 [BZ #23253]
16345 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
16346 Renamed from libc_feholdsetround_ctx.
16347 (default_libc_feresetround_ctx): Renamed from
16348 libc_feresetround_ctx.
16349 (default_libc_feholdsetround_noex_ctx): Renamed from
16350 libc_feholdsetround_noex_ctx.
16351 (default_libc_feresetround_noex_ctx): Renamed from
16352 libc_feresetround_noex_ctx.
16353 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
16354 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
16355 forwardning to the old implementations under the new names.
16356 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
16357 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
16358 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
16359 (libc_feresetround_ctx): Forward to default implements for i386
16360 and MATH_SET_BOTH_ROUNDING_MODES.
16361 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
16362 Add -DMATH_SET_BOTH_ROUNDING_MODES.
16363
1760daad
JM
163642018-06-20 Joseph Myers <joseph@codesourcery.com>
16365
99c7adf9
JM
16366 * string/tst-cmp.c: Include <libc-diag.h>.
16367 (strncmp_max): Disable -Wstringop-overflow= around call to
16368 strncmp.
16369 (strncasecmp_max): Disable -Wstringop-overflow= around call to
16370 strncasecmp.
16371
1760daad
JM
16372 * string/bug-strpbrk1.c: Include <libc-diag.h>.
16373 (main): Disable -Wunused-value around call to strpbrk.
16374 * string/bug-strspn1.c: Include <libc-diag.h>.
16375 (main): Disable -Wunused-value around call to strspn.
16376
209ae17c
TMQMF
163772018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
16378 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
16379
16380 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
16381 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
16382
badba23c
TMQMF
163832018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
16384
5e79e029
TMQMF
16385 * math/Makefile (libm-calls): Move s_significandF to...
16386 (gen-libm-calls): ... here.
16387 * math/s_significand_template.c: New file.
16388 * math/s_significand.c: Removed.
16389 * math/s_significandf.c: Removed.
16390 * math/s_significandl.c: Removed.
16391 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
16392 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
16393
badba23c
TMQMF
16394 * math/e_exp2_template.c (declare_mgen_finite_alias,
16395 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
16396 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
16397 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
16398
2d1c89a5
FW
163992018-06-20 Florian Weimer <fweimer@redhat.com>
16400
16401 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
16402
646c2833
JM
164032018-06-19 Joseph Myers <joseph@codesourcery.com>
16404
16405 [BZ #23280]
16406 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
16407 floating-point number to strtod functions rather than possibly
16408 negating result of those functions.
16409 * stdio-common/tst-scanf-round.c: New file.
16410 * stdio-common/Makefile (tests): Add tst-scanf-round.
16411 ($(objpfx)tst-scanf-round): Depend on $(libm).
16412
c77e4dc0
ST
164132018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
16414
16415 * sysdeps/mach/hurd/localplt.data: Move to...
16416 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
16417 R_386_GLOB_DAT like on Linux i386.
16418
91b2f3e5
JM
164192018-06-18 Joseph Myers <joseph@codesourcery.com>
16420
f2857da7
JM
16421 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
16422 (SHM_STAT_ANY): New macro.
16423 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
16424 (SHM_STAT_ANY): Likewise.
16425 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
16426 (SHM_STAT_ANY): Likewise.
16427 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
16428 (SHM_STAT_ANY): Likewise.
16429 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
16430 (SHM_STAT_ANY): Likewise.
16431 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
16432 (SHM_STAT_ANY): Likewise.
16433 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
16434 (SHM_STAT_ANY): Likewise.
16435 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
16436 (SHM_STAT_ANY): Likewise.
16437 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
16438 (SHM_STAT_ANY): Likewise.
16439 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
16440 (SHM_STAT_ANY): Likewise.
16441 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
16442 (SHM_STAT_ANY): Likewise.
16443 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
16444 (SHM_STAT_ANY): Likewise.
16445
176c7fee
JM
16446 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
16447 (SEM_STAT_ANY): New macro.
16448 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
16449 (SEM_STAT_ANY): Likewise.
16450 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
16451 (SEM_STAT_ANY): Likewise.
16452 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
16453 (SEM_STAT_ANY): Likewise.
16454 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
16455 (SEM_STAT_ANY): Likewise.
16456 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
16457 (SEM_STAT_ANY): Likewise.
16458 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
16459 (SEM_STAT_ANY): Likewise.
16460 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
16461 (SEM_STAT_ANY): Likewise.
16462 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
16463 (SEM_STAT_ANY): Likewise.
16464 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
16465 (SEM_STAT_ANY): Likewise.
16466
86bf0019
JM
16467 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
16468 (MSG_STAT_ANY): New macro.
16469 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
16470 (MSG_STAT_ANY): Likewise.
16471 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
16472 (MSG_STAT_ANY): Likewise.
16473 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
16474 (MSG_STAT_ANY): Likewise.
16475 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
16476 (MSG_STAT_ANY): Likewise.
16477 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
16478 (MSG_STAT_ANY): Likewise.
16479 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
16480 (MSG_STAT_ANY): Likewise.
16481 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
16482 (MSG_STAT_ANY): Likewise.
16483 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
16484 (MSG_STAT_ANY): Likewise.
16485 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
16486 (MSG_STAT_ANY): Likewise.
16487
91b2f3e5
JM
16488 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
16489 (MAP_TYPE): Change value to 0x2b.
16490
3fe8fc79
FW
164912018-06-18 Florian Weimer <fweimer@redhat.com>
16492
16493 [BZ #15722]
16494 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
16495 socket with SOCK_CLOEXEC.
16496
809dc95d
JM
164972018-06-18 Joseph Myers <joseph@codesourcery.com>
16498
16499 [BZ #23303]
16500 * sysdeps/powerpc/powerpc64/le/Makefile
16501 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
16502 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
16503 (gnulib-tests): Also add $(f128-loader-link) for
16504 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
16505
298a8b59
ST
165062018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
16507
16508 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
16509 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
16510 of sendfile.
16511 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
16512 (sendfile64): New strong alias.
faf7bbc2
ST
16513 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
16514 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
16515 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
f96a85e0
ST
16516 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
16517 attribute.
16518 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
16519 ___pthread_get_cleanup_stack.
932d05f0 16520 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
c1b7586c
ST
16521 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
16522 * mach/shortcut.awk: Make syscall stubs include
16523 <mach-shortcuts-hidden.h> and add hidden definition.
16524 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
7a646a93
ST
16525 (__mach_msg): Add hidden prototype.
16526 * mach/msg.c: Include <mach.h>.
16527 (__mach_msg): Add hidden definition.
b0344cf5
ST
16528 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
16529 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
16530 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
16531 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
8c9d5342
ST
16532 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
16533 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
4d0ac037
ST
16534 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
16535 prototype and definition.
16536 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
16537 hidden target for _hurd_self_sigstate.
298a8b59 16538
b12c1e79
JM
165392018-06-15 Joseph Myers <joseph@codesourcery.com>
16540
16541 [BZ #23007]
16542 * stdlib/tst-strtod-nan-sign-main.c: New file.
16543 * stdlib/tst-strtod-nan-sign.c: Likewise.
16544 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
16545 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
16546 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
16547 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
16548 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
16549
b0debe14
HB
165502018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
16551
16552 [BZ #23007]
16553 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
16554 appropriate sign.
16555
14beef75
FW
165562018-06-14 Florian Weimer <fweimer@redhat.com>
16557
16558 [BZ #23290]
16559 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
16560 that the result stays within the ISO-8859-1 range.
16561 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
16562 characters are defined in IBM273.
16563
c596630b
ST
165642018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
16565
16566 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
16567 __mach_task_self): Remove attribute_hidden.
16568
35ebb6b0
JM
165692018-06-14 Joseph Myers <joseph@codesourcery.com>
16570
16571 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
16572 ignore -Wrestrict for one test.
16573
3c7b9f1f
SE
165742018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
16575 Szabolcs Nagy <szabolcs.nagy@arm.com>
16576
16577 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
16578
c59ee916
FW
165792018-06-14 Florian Weimer <fweimer@redhat.com>
16580
16581 * scripts/update-abilist.sh: Accept empty list of files to patch.
16582
43b5ff50
ST
165832018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
16584
16585 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
16586 test-xfail-check-abi-libmachuser): Add.
c8c910ed
ST
16587 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
16588 __libc_read and __libc_write to __read and __write.
c8c6e6d6 16589 * sysdeps/hurd/include/hurd/port.h: New file.
126b3ec3
ST
16590 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
16591 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
16592 __thread_switch, __evc_wait): Move declarations to...
16593 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
16594 attribute_hidden.
06d1a826
ST
16595 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
16596 use PLT to call _hurd_self_sigstate.
43b5ff50 16597
fcd6b5ac
JM
165982018-06-13 Joseph Myers <joseph@codesourcery.com>
16599
16600 [BZ #23279]
16601 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
16602 MAX_EXP as overflowing.
16603 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
16604 overflow flag.
16605 (round_str): Output also whether result overflows in each rounding
16606 mode.
16607 * stdlib/tst-strtod-round-data: Add more tests.
16608 * stdlib/tst-strtod-round-data.h: Regenerated.
16609 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
16610 (TEST): Handle extra arguments for overflow flags.
16611 (struct test_overflow): New type.
16612 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
16613 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
16614 (test_in_one_mode): Take argument with overflow information.
16615 (do_test): Update calls to test_in_one_mode.
16616
35df5a77
CD
166172018-06-12 Carlos O'Donell <carlos@redhat.com>
16618
a745c837
CD
16619 * elf/dl-load (_dl_dst_substitute): Correct comment.
16620 (_dl_dst_count): Likewise.
16621
35df5a77
CD
16622 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
16623 lll_futex_timed_wait.
16624
48b12ed5
JM
166252018-06-12 Joseph Myers <joseph@codesourcery.com>
16626
16627 [BZ #23277]
16628 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
16629 attribute.
16630 * math/test-nan-const.c: New file.
16631 * math/Makefile (tests): Add test-nan-const.
16632 (CFLAGS-test-nan-const.c): New variable.
16633
cb8f6aff
L
166342018-06-12 H.J. Lu <hongjiu.lu@intel.com>
16635
16636 * benchtests/scripts/compare_strings.py (process_results): Add
16637 funcs argument. Compare only functions which are selected.
16638 (main): Check if base function is among selected functions.
16639 Pass selected functions to process_results.
16640 (__main__): Add -f/--functions argument.
16641
fc2ba803
HZ
166422018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
16643 Hongbo Zhang <hongbo.zhang@linaro.org>
16644
16645 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
16646 __memcpy_falkor for phecda core.
16647 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
16648 __memmove_falkor for phecda core.
16649 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
16650 __memset_falkor for phecda core.
16651 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
16652 for phecda core.
16653 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
16654 macro to identify phecda core.
16655
5aad5f61
CD
166562018-06-12 Carlos O'Donell <carlos@redhat.com>
16657 Andreas Schwab <schwab@suse.de>
16658 Dmitry V. Levin <ldv@altlinux.org>
6b5c8607 16659 Florian Weimer <fweimer@redhat.com>
5aad5f61
CD
16660
16661 [BZ #23102]
16662 [BZ #21942]
16663 [BZ #18018]
16664 [BZ #23259]
16665 CVE-2011-0536
16666 * elf/dl-dst.h: Remove DL_DST_COUNT.
16667 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
16668 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
16669 (is_dst): Comment. Support ELF gABI.
16670 (_dl_dst_count): Comment. Simplify and count DSTs.
16671 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
16672 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
16673 locals.
16674
329ea513
ZW
166752018-06-12 Zack Weinberg <zackw@panix.com>
16676
16677 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
16678 * sysdeps/unix/sysv/linux/dl-sysdep.c
16679 Include not-cancel.h. Use __close_nocancel instead of __close,
16680 __open64_nocancel instead of __open, __read_nocancel instead of
16681 __libc_read, and __write_nocancel instead of __libc_write.
16682
16683 * csu/check_fds.c (check_one_fd)
16684 * sysdeps/posix/fdopendir.c (__fdopendir)
16685 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
b39d961c 16686 instead of __fcntl and/or __libc_fcntl.
329ea513
ZW
16687
16688 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
16689 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
b39d961c 16690 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
329ea513
ZW
16691 Use __open64_nocancel instead of __open_nocancel.
16692
16693 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
16694 hidden_proto declarations to the end and issue them if either
16695 IS_IN(libc) or IS_IN(rtld).
16696 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
16697 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
16698 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
16699 read_nocancel, waitpid_nocancel, write_nocancel.
16700
b39d961c
TS
16701 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
16702 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
16703 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
329ea513 16704
b39d961c
TS
16705 * nptl/pt-fcntl.c: New file.
16706 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
16707 (libpthread-routines): Add pt-fcntl.
16708 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
16709 (__libc_fcntl): Remove attribute_hidden.
329ea513
ZW
16710 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
16711 __fcntl_nocancel_adjusted, not fcntl_common.
b39d961c 16712 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
329ea513
ZW
16713 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
16714 to fcntl_nocancel.c.
16715 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
16716 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
16717 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
16718 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
16719
16720 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
16721 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
16722 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
16723 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
16724 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
16725 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
16726 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
16727 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
16728 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
16729 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
16730 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
16731 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
16732 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
16733 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
16734 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
16735 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
16736 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
16737 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
16738 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
16739 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
16740
b39d961c
TS
16741 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
16742 libpthread-routines.
16743 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
16744 defines nothing.
329ea513 16745
b39d961c
TS
16746 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
16747 __libc_read, and __write instead of __libc_write. Define
16748 __open64 in addition to __open.
329ea513 16749
0221ce2a
L
167502018-06-12 H.J. Lu <hongjiu.lu@intel.com>
16751
16752 [BZ #23250]
16753 [BZ #10686]
16754 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
16755 to _private_tm[3] and add __glibc_reserved2.
16756 Add _Static_assert of offset of __private_ss == 0x30.
16757 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
16758 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
16759
e826574c
FW
167602018-06-12 Florian Weimer <fweimer@redhat.com>
16761
16762 x86: Make strncmp usable from rtld.
16763 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
16764 __strncmp_ia32 if in libc (and not in rtld).
16765 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
16766 strncmp if not in libc (and not to __strncmp_sse2).
16767
ab74d59f 167682018-06-12 Rafał Lużyński <digitalfreak@lingonborough.com>
c4ad5782
RL
16769
16770 [BZ #23140]
16771 * localedata/locales/gd_GB (mon): Rename to...
16772 (alt_mon): This.
16773 (mon): Import from CLDR (genitive case).
16774 * localedata/locales/hsb_DE (mon): Rename to...
16775 (alt_mon): This.
16776 (mon): Import from CLDR (genitive case).
16777 * localedata/locales/wa_BE (mon): Rename to...
16778 (alt_mon): This.
16779 (mon): Add, fill with the proper genitive forms, but CLDR data
16780 is incomplete; completed according to the comments in this file.
16781 (d_t_fmt): Do not use "di" before the month name, no longer needed.
16782
16783 * localedata/locales/wa_BE (country_name): Reword
16784 "Beljike" -> "Beldjike".
16785
ca121b11
JM
167862018-06-11 Joseph Myers <joseph@codesourcery.com>
16787
16788 [BZ #23272]
16789 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
16790 cases of non-finite arguments.
16791 * math/libm-test-fma.inc (fma_test_data): Add more tests.
16792
2b69fecb
JDA
167932018-06-10 John David Anglin <danglin@gcc.gnu.org>
16794
16795 [BZ #23174]
16796 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
16797
283d9851
AZ
167982018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16799
16800 [BZ #23264]
16801 * include/unistd.h (__execvpex): New prototype.
16802 * posix/Makefile (tests): Add tst-spawn4.
16803 (tests-internal): Add tst-spawn4-compat.
16804 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
16805 * posix/tst-spawn4-compat.c: New file.
16806 * posix/tst-spawn4.c: Likewise.
16807 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
16808 binaries as shell scripts.
16809 * sysdeps/posix/spawni.c (__spawni): Likewise.
16810
67c05796
L
168112018-06-08 H.J. Lu <hongjiu.lu@intel.com>
16812
16813 [BZ #23145]
16814 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
16815 ($(all-built-dso:=.dynsym): New target.
16816 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
16817 ($(objpfx)check-initfini.out): New target.
16818 (generated): Add check-initfini.out.
16819 * scripts/check-initfini.awk: New file.
16820 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
16821 (_fini): Likewise.
16822 * sysdeps/alpha/crti.S (_init): Mark as hidden.
16823 (_fini): Likewise.
16824 * sysdeps/arm/crti.S (_init): Mark as hidden.
16825 (_fini): Likewise.
16826 * sysdeps/hppa/crti.S (_init): Mark as hidden.
16827 (_fini): Likewise.
16828 * sysdeps/i386/crti.S (_init): Mark as hidden.
16829 (_fini): Likewise.
16830 * sysdeps/ia64/crti.S (_init): Mark as hidden.
16831 (_fini): Likewise.
16832 * sysdeps/m68k/crti.S (_init): Mark as hidden.
16833 (_fini): Likewise.
16834 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
16835 (_fini): Likewise.
16836 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
16837 (_fini): Likewise.
16838 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
16839 (_fini): Likewise.
16840 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
16841 (_fini): Likewise.
16842 * sysdeps/nios2/crti.S (_init): Mark as hidden.
16843 (_fini): Likewise.
16844 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
16845 (_fini): Likewise.
16846 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
16847 (_fini): Likewise.
16848 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
16849 (_fini): Likewise.
16850 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
16851 (_fini): Likewise.
16852 * sysdeps/sh/crti.S (_init): Mark as hidden.
16853 (_fini): Likewise.
16854 * sysdeps/sparc/crti.S (_init): Mark as hidden.
16855 (_fini): Likewise.
16856 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
16857 (_fini): Likewise.
16858
1c09524e
TMQMF
168592018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
16860
16861 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
16862 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
16863 and TF redirection to KFtype and KF only when the default
16864 long double type is not the IEEE 128-bit floating point type.
16865
0e0577c9
JM
168662018-06-05 Joseph Myers <joseph@codesourcery.com>
16867
0c1c33b2
JM
16868 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
16869 macro.
16870 (HWCAP_USCAT): Likewise.
16871 (HWCAP_ILRCPC): Likewise.
16872 (HWCAP_FLAGM): Likewise.
16873 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
16874 Increase to 28.
16875 (_dl_aarch64_cap_flags): Add new flag names.
16876
bef1cbf4
JM
16877 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
16878 (MAP_FIXED_NOREPLACE): New macro.
16879 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
16880 (MAP_FIXED_NOREPLACE): Likewise.
16881 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
16882 (MAP_FIXED_NOREPLACE): Likewise.
16883 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
16884 (MAP_FIXED_NOREPLACE): Likewise.
16885 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
16886 (MAP_FIXED_NOREPLACE): Likewise.
16887 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
16888 (MAP_FIXED_NOREPLACE): Likewise.
16889 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
16890 (MAP_FIXED_NOREPLACE): Likewise.
16891 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
16892 (MAP_FIXED_NOREPLACE): Likewise.
16893 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
16894 (MAP_FIXED_NOREPLACE): Likewise.
16895 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
16896 (MAP_FIXED_NOREPLACE): Likewise.
16897 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
16898 (MAP_FIXED_NOREPLACE): Likewise.
16899 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
16900 (MAP_FIXED_NOREPLACE): Likewise.
16901 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
16902 (MAP_FIXED_NOREPLACE): Likewise.
16903 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
16904 (MAP_FIXED_NOREPLACE): Likewise.
16905 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
16906 (MAP_FIXED_NOREPLACE): Likewise.
16907
0e0577c9
JM
16908 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
16909 version to 4.17.
16910
ab3a0da0
JM
169112018-06-04 Joseph Myers <joseph@codesourcery.com>
16912
16913 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
16914 version to 4.17
16915
d2d9dfb6
ST
169162018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
16917
16918 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
16919 int.
16920 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
16921
a650b05e
LS
169222018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
16923
16924 * benchtests/scripts/compare_string.py: (process_results) Catch
16925 exception in non-existent base_func and catch exception in
16926 non-existent attribute.
16927 (parse_file) Catch exception if input file does not exist.
16928
195abbf4
LS
169292018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
16930
16931 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
16932 options to avoid diff calculation and omit header, respectively.
16933 (main): process --no-diff and --no-header
16934
14570163
LS
169352018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
16936 H.J. Lu <hongjiu.lu@intel.com>
16937
16938 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16939 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
16940 wcsncmp-sse2.
16941 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
16942 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
16943 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
16944 and __wcsncmp_sse2.
16945 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
16946 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
16947 AVX unaligned load is fast and vzeroupper is preferred.
16948 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
16949 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
16950 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
16951 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
16952 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
16953 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
16954 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
16955 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
16956 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
16957 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
16958 is undefined.
16959
e02c026f
FW
169602018-06-01 Florian Weimer <fweimer@redhat.com>
16961
16962 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
16963 configuring with --disable-multi-arch, building with
16964 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
16965 Haswell-era CPU.
16966
d8c19275
FW
169672018-06-01 Florian Weimer <fweimer@redhat.com>
16968
16969 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
16970 results from building with “-march=x86-64 -mtune=generic
16971 -mfpmath=sse” and running on a Haswell-era CPU.
16972
0d2163eb
JM
169732018-06-01 Joseph Myers <joseph@codesourcery.com>
16974
16975 [BZ #18473]
16976 * soft-fp/sqrttf2.c: Remove file.
16977 * soft-fp/sqrtdf2.c: Move to ....
16978 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
16979 <shlib-compat.h>.
16980 (__sqrtdf2): Make conditional on
16981 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
16982 symbol.
16983 * soft-fp/sqrtsf2.c: Move to ....
16984 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
16985 <shlib-compat.h>.
16986 (__sqrtsf2): Make conditional on
16987 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
16988 symbol.
16989 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
16990 (gcc-double-routines): Remove sqrtdf2.
16991 (gcc-quad-routines): Remove sqrttf2.
16992 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
16993 Do not filter out sqrtsf2 and sqrtdf2.
16994 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
16995 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
16996
10450210
FW
169972018-06-01 Florian Weimer <fweimer@redhat.com>
16998
16999 * sysdeps/generic/libcidn.abilist: Remove file.
17000
4e8a6346
FW
170012018-06-01 Florian Weimer <fweimer@redhat.com>
17002
17003 [BZ #23236]
17004 * libio/strfile.h (struct _IO_str_fields): Rename members to
17005 discourage their use and add comment.
17006 (_IO_STR_DYNAMIC): Remove unused macro.
17007 * libio/strops.c (_IO_str_init_static_internal): Do not use
17008 callback pointers. Call malloc and free.
17009 (_IO_str_overflow): Do not use callback pointers. Call malloc
17010 and free.
17011 (enlarge_userbuf): Likewise.
17012 (_IO_str_finish): Call free.
17013 * libio/wstrops.c (_IO_wstr_init_static): Initialize
17014 _allocate_buffer_unused.
17015 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
17016 and free.
17017 (enlarge_userbuf): Likewise.
17018 (_IO_wstr_finish): Call free.
17019 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
17020 _allocate_buffer_unused, _free_buffer_unused.
17021 * libio/memstream.c (__open_memstream): Likewise.
17022 * libio/vasprintf.c (_IO_vasprintf): Likewise.
17023 * libio/wmemstream.c (open_wmemstream): Likewise.
17024
50d004c9
PP
170252018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
17026
17027 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
17028 AMD Ryzen 7 1800X.
17029
2c93fce7
RS
170302018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17031
17032 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
17033 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
17034 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
17035 New file.
17036 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
17037 Likewise.
17038 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
17039
0ce2fa69
FW
170402018-05-29 Florian Weimer <fweimer@redhat.com>
17041
17042 * support/Makefile (libsupport-routines): Add
17043 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
17044 xpthread_barrierattr_setpshared.
17045 * support/xpthread_barrierattr_destroy.c: New file.
17046 * support/xpthread_barrierattr_init.c: Likewise.
17047 * support/xpthread_barrierattr_setpshared.c: Likewise.
17048
7f7b5d8d
L
170492018-05-29 H.J. Lu <hongjiu.lu@intel.com>
17050
17051 [BZ #23206]
17052 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
17053 _r_debug and update DT_DEBUG for debugger.
17054
e4890300
FW
170552018-05-29 Florian Weimer <fweimer@redhat.com>
17056
17057 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
17058 (tst-strtod5i.out): Likewise.
17059
2c753f3e
JM
170602018-05-25 Joseph Myers <joseph@codesourcery.com>
17061
b5453d9f
JM
17062 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
17063 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
17064 (sparc64-quad-routines): New variable. Moved from ....
17065 [$(subdir) = soft-fp] (sysdep_routines): Add
17066 $(sparc64-quad-routines). Moved from ....
17067 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
17068 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
17069 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
17070 moved from ....
17071 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
17072 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
17073 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
17074 * sysdeps/sparc/sparc64/qp_add.c: ... here.
17075 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
17076 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
17077 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
17078 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
17079 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
17080 * sysdeps/sparc/sparc64/qp_div.c: ... here.
17081 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
17082 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
17083 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
17084 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
17085 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
17086 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
17087 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
17088 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
17089 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
17090 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
17091 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
17092 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
17093 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
17094 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
17095 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
17096 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
17097 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
17098 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
17099 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
17100 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
17101 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
17102 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
17103 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
17104 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
17105 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
17106 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
17107 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
17108 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
17109 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
17110 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
17111 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
17112 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
17113 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
17114 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
17115 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
17116 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
17117 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
17118 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
17119 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
17120 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
17121 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
17122 * sysdeps/sparc/sparc64/qp_util.c: ... here.
17123 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
17124 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
17125 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
17126 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
17127 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
17128 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
17129
2c753f3e
JM
17130 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
17131 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
17132 (sparc32-quad-routines): New variable. Moved from ....
17133 [$(subdir) = soft-fp] (sysdep_routines): Add
17134 $(sparc32-quad-routines). Moved from ....
17135 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
17136 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
17137 moved from ....
17138 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
17139 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
17140 * sysdeps/sparc/sparc32/q_add.c: ... here.
17141 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
17142 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
17143 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
17144 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
17145 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
17146 * sysdeps/sparc/sparc32/q_div.c: ... here.
17147 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
17148 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
17149 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
17150 * sysdeps/sparc/sparc32/q_feq.c: ... here.
17151 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
17152 * sysdeps/sparc/sparc32/q_fge.c: ... here.
17153 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
17154 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
17155 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
17156 * sysdeps/sparc/sparc32/q_fle.c: ... here.
17157 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
17158 * sysdeps/sparc/sparc32/q_flt.c: ... here.
17159 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
17160 * sysdeps/sparc/sparc32/q_fne.c: ... here.
17161 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
17162 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
17163 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
17164 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
17165 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
17166 * sysdeps/sparc/sparc32/q_mul.c: ... here.
17167 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
17168 * sysdeps/sparc/sparc32/q_neg.c: ... here.
17169 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
17170 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
17171 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
17172 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
17173 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
17174 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
17175 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
17176 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
17177 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
17178 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
17179 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
17180 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
17181 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
17182 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
17183 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
17184 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
17185 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
17186 * sysdeps/sparc/sparc32/q_sub.c: ... here.
17187 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
17188 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
17189 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
17190 * sysdeps/sparc/sparc32/q_util.c: ... here.
17191 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
17192 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
17193 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
17194 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
17195
c1dc1e1b
TMQMF
171962018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
17197 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
17198
17199 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
17200 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
17201 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
17202 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
17203
14186e8d
JM
172042018-05-24 Joseph Myers <joseph@codesourcery.com>
17205
17206 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
17207 powerpc/soft-fp.
17208 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
17209 Likewise.
17210 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
17211 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
17212
fb0e10b8
GG
172132018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
17214
17215 [BZ #23171]
17216 * math/math.h [C++] (iseqsig): Fix parameter type for the long
17217 double version.
17218
1dfeb17e
JM
172192018-05-23 Joseph Myers <joseph@codesourcery.com>
17220
17221 * sysdeps/sh/Implies: Remove sh/soft-fp.
17222 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
17223 * sysdeps/sh/sfp-machine.h: ... here.
17224
727b38df
L
172252018-05-23 H.J. Lu <hongjiu.lu@intel.com>
17226
17227 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
17228 (__mempcpy_erms): Skip zero length.
17229 (__memmove_erms): Likewise.
17230 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
17231 (__memset_erms): Likewise.
17232
2834fb46
JM
172332018-05-23 Joseph Myers <joseph@codesourcery.com>
17234
17235 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
17236 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
17237 Add functions moved from ....
17238 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
17239 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
17240 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
17241 from ....
17242 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
17243 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
17244 * sysdeps/alpha/e_sqrtl.c: ... here.
17245 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
17246 * sysdeps/alpha/local-soft-fp.h: ... here.
17247 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
17248 * sysdeps/alpha/ots_add.c: ... here.
17249 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
17250 * sysdeps/alpha/ots_cmp.c: ... here.
17251 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
17252 * sysdeps/alpha/ots_cmpe.c: ... here.
17253 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
17254 * sysdeps/alpha/ots_cvtqux.c: ... here.
17255 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
17256 * sysdeps/alpha/ots_cvtqx.c: ... here.
17257 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
17258 * sysdeps/alpha/ots_cvttx.c: ... here.
17259 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
17260 * sysdeps/alpha/ots_cvtxq.c: ... here.
17261 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
17262 * sysdeps/alpha/ots_cvtxt.c: ... here.
17263 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
17264 * sysdeps/alpha/ots_div.c: ... here.
17265 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
17266 * sysdeps/alpha/ots_mul.c: ... here.
17267 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
17268 * sysdeps/alpha/ots_nintxq.c: ... here.
17269 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
17270 * sysdeps/alpha/ots_sub.c: ... here.
17271 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
17272 * sysdeps/alpha/sfp-machine.h: ... here.
17273
7f9f1ecb
FW
172742018-05-23 Florian Weimer <fweimer@redhat.com>
17275
17276 [BZ #19728]
17277 [BZ #19729]
17278 [BZ #22247]
17279 CVE-2016-6261
17280 CVE-2016-6263
17281 CVE-2017-14062
17282 Switch to extern IDNA implementation (libidn2).
17283 * libidn: Remove subdirectory.
17284 * LICENSES: Do not mention licensing conditions for the removed
17285 libidn code.
17286 * config.h.in (HAVE_LIBIDN): Remove.
17287 * include/dlfcn.h (__libc_dlopen): Update comment.
17288 * include/idna.h: Remove file.
17289 * inet/Makefile (routines): Add idna.
17290 (tests-static, tests-internal): Add tst-idna_name_classify.
17291 (LOCALES): Generate locales for tests.
17292 (tst-idna_name_classify.out): Depend on generated locales.
17293 * inet/idna_name_classify.c: New file.
17294 * inet/tst-idna_name_classify.c: Likewise.
17295 * inet/net-internal.h (__idna_to_dns_encoding)
17296 (__idna_from_dns_encoding): Declare.
17297 * inet/net-internal.h (enum idna_name_classification): Define.
17298 (__idna_name_classify): Declare.
17299 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
17300 __idna_from_dns_encoding.
17301 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
17302 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
17303 name as a fallback in case of encoding errors.
17304 (getnameinfo): Use DEPRECATED_NI_IDN.
17305 * inet/idna.c: New file.
17306 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
17307 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
17308 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
17309 (modules-names): Add tst-no-libidn2.
17310 (extra-test-objs): Add tst-no-libidn2.os.
17311 (LDFLAGS-tst-no-libidn2.so): Set soname.
17312 (LOCALES): Set, and generate locales.
17313 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
17314 (tst-resolv-ai_idn-latin1): Likewise.
17315 (tst-resolv-ai_idn-nolibidn2): Likewise.
17316 (tst-resolv-ai_idn.out): Depend on locales.
17317 (tst-resolv-ai_idn-latin1.out): Depend on locales.
17318 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
17319 tst-no-libidn2.so.
17320 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
17321 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
17322 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
17323 * resolv/tst-resolv-ai_idn.c: New file.
17324 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
17325 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
17326 * resolv/tst-no-libidn2.c: Likewise.
17327 * support/support_format_addrinfo.c (format_ai_flags): Do not
17328 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
17329 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
17330 (gaih_inet): Call __idna_to_dns_encoding and
17331 __idna_from_dns_encoding, and use the original (punycode) name if
17332 __idna_from_dns_encoding fails due to an encoding error.
17333 (getaddrinfo): Use DEPRECATED_AI_IDN.
17334 * sysdeps/unix/inet/Subdirs (libidn): Remove.
17335 * sysdeps/unix/inet/configure: Remove file.
17336 * sysdeps/unix/inet/configure.ac: Likewise.
17337
5f7b841d
FW
173382018-05-23 Florian Weimer <fweimer@redhat.com>
17339
17340 Implement allocate_once.
17341 * include/allocate_once.h: New file.
17342 * misc/allocate_once.c: Likewise.
17343 * misc/tst-allocate_once.c: Likewise.
17344 * misc/Makefile (routines): Add allocate_once.
17345 (tests-internal): Add tst-allocate_once.
17346 (generated): Add tst-allocate_once.mtrace,
17347 tst-allocate_once-mem.out.
17348 (tests-special): Add tst-allocate_once-mem.out.
17349 (tst-allocate_once-ENV): Set MALLOC_TRACE.
17350 (tst-allocate_once-mem.out): Call mtrace.
17351 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
17352
ed983107
L
173532018-05-23 H.J. Lu <hongjiu.lu@intel.com>
17354
17355 [BZ #23196]
17356 * string/test-memcpy.c (do_test1): New function.
17357 (test_main): Call it.
17358
9aaaab7c
AS
173592018-05-23 Andreas Schwab <schwab@suse.de>
17360
17361 [BZ #23196]
17362 CVE-2018-11237
17363 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
17364 (L(preloop_large)): Save initial destination pointer in %r11 and
17365 use it instead of %rax after the loop.
17366 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
17367
5c5c0dd7
JM
173682018-05-22 Joseph Myers <joseph@codesourcery.com>
17369
8f145c77
JM
17370 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
17371 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
17372 -I../soft-fp. Moved from ....
17373 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
17374 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
17375 * sysdeps/aarch64/e_sqrtl.c: ... here.
17376 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
17377 * sysdeps/aarch64/sfp-machine.h: ... here.
17378
3d6302a5
JM
17379 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
17380 -Wmaybe-uninitialized around access to fq[0].
17381 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
17382 Likewise.
17383
5c5c0dd7
JM
17384 [BZ #18471]
17385 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
17386 aliases for non-libc case of versioned symbols.
17387 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
17388 (llseek): Define as compat symbol if
17389 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
17390 with link warning.
17391 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
17392 Make into a compat symbol, disabled for minimum symbol version
17393 GLIBC_2.28 and later.
17394 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
17395
ed0d6988
FW
173962018-05-22 Florian Weimer <fweimer@redhat.com>
17397
17398 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
17399 not add -mpreferred-stack-boundary=4.
17400 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
17401 (stack-align-test-flags): Likewise.
17402 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
17403 Likewise.
17404 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
17405 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
17406 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
17407 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
17408 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
17409 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
17410 (CFLAGS-tst-align2.c): Likewise.
17411
e28e9b1e
L
174122018-05-21 H.J. Lu <hongjiu.lu@intel.com>
17413
17414 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
17415 (index_arch_Prefer_FSRM): Likewise.
17416 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
17417 Also check Prefer_FSRM.
17418 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
17419 Also return OPTIMIZE (erms) for Prefer_FSRM.
17420
1af30adc
L
174212018-05-21 H.J. Lu <hongjiu.lu@intel.com>
17422
17423 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
17424 (index_cpu_FSRM): Likewise.
17425 (reg_FSRM): Likewise.
17426
78274dc8
JM
174272018-05-18 Joseph Myers <joseph@codesourcery.com>
17428
7c67e6e8
JM
17429 * math/gen-tgmath-tests.py: Import sys.
17430 (Tests.__init__): Initialize macros_seen.
17431 (Tests.add_tests): Add macro to macros_seen. Only generate tests
17432 if requested to do so for this macro.
17433 (Tests.add_all_tests): Take argument for macro for which to
17434 generate tests.
17435 (Tests.check_macro_list): New function.
17436 (main): Handle check-list argument and argument specifying macro
17437 for which to generate tests.
17438 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
17439 [PYTHON] (tgmath3-macro-tests): Likewise.
17440 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
17441 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
17442 not test-tgmath3.c.
17443 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
17444 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
17445 to CFLAGS.
17446 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
17447 [PYTHON] ($(foreach
17448 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
17449 rule.
17450 [PYTHON] (tests-special): Add
17451 $(objpfx)test-tgmath3-macro-list.out.
17452 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
17453
ebc129fd
JM
17454 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
17455 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
17456 later.
17457
78274dc8
JM
17458 [BZ #22639]
17459 * time/tzset.c (SECSPERDAY): Cast to time_t.
17460 * time/tst-y2039.c: New file.
17461 * time/Makefile (tests): Add tst-y2039.
17462
6f7fdeeb
LS
174632018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
17464
17465 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
17466 (PREFETCH_ONE_SET): Remove duplicate line.
17467
e363a91c
FW
174682018-05-17 Florian Weimer <fweimer@redhat.com>
17469
17470 * sysdeps/generic/math-type-macros-double.h: Include
17471 <math-nan-payload-double.h> after <libm-alias-double.h>.
17472 * sysdeps/generic/math-type-macros-float.h: Include
17473 <math-nan-payload-float.h> after <libm-alias-float.h>.
17474 * sysdeps/generic/math-type-macros-float128.h: Include
17475 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
17476 * sysdeps/generic/math-type-macros-ldouble.h: Include
17477 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
17478
dae6c43c
AS
174792018-05-17 Andreas Schwab <schwab@suse.de>
17480
17481 * resolv/res_send.c (__res_context_send): Don't set errno when
17482 returing error after malloc failure.
17483
0068c085
L
174842018-05-17 H.J. Lu <hongjiu.lu@intel.com>
17485
17486 * nptl/allocatestack.c (allocate_stack): Remove the
17487 !__ASSUME_PRIVATE_FUTEX paths.
17488 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
17489 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
17490 Likewise.
17491 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
17492 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
17493 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
17494 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
17495 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
17496 !__ASSUME_PRIVATE_FUTEX path.
17497 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
17498 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
17499 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
17500 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
17501 !__ASSUME_PRIVATE_FUTEX macros.
17502 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
17503 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
17504 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
17505 * sysdeps/unix/sysv/linux/kernel-features.h
17506 (__ASSUME_PRIVATE_FUTEX): Removed.
17507
632a6cbe
JM
175082018-05-17 Joseph Myers <joseph@codesourcery.com>
17509
17510 * math/Makefile (libm-narrow-fns): Add div.
17511 (libm-test-funcs-narrow): Likewise.
17512 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
17513 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
17514 * math/gen-auto-libm-tests.c (test_functions): Add div.
17515 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
17516 (NARROW_DIV_ROUND_TO_ODD): Likewise.
17517 (NARROW_DIV_TRIVIAL): Likewise.
17518 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
17519 macro.
17520 (__ddivl): Likewise.
17521 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
17522 ddiv.
17523 (CFLAGS-nldbl-ddiv.c): New variable.
17524 (CFLAGS-nldbl-fdiv.c): Likewise.
17525 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
17526 __nldbl_ddivl.
17527 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
17528 prototype.
17529 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
17530 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
17531 * math/auto-libm-test-in: Add tests of div.
17532 * math/auto-libm-test-out-narrow-div: New generated file.
17533 * math/libm-test-narrow-div.inc: New file.
17534 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
17535 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
17536 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
17537 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
17538 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
17539 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
17540 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
17541 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
17542 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
17543 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
17544 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
17545 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
17546 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
17547 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
17548 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
17549 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
17550 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
17551 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
17552 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17553 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
17554 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
17555 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
17556 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
17557 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
17558 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
17559 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
17560 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
17561 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
17562 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
17563 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
17564 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
17565 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
17566 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
17567 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
17568 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
17569 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
17570 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
17571 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
17572 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
17573 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
17574 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
17575 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
17576 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
17577 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
17578
8c78faa9
AZ
175792018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17580
17581 [BZ #23178]
17582 * nscd/nscd-client.h (sendfileall): Remove prototype.
17583 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
17584 (handle_request): Use writeall instead of sendfileall.
17585 * nscd/aicache.c (addhstaiX): Likewise.
17586 * nscd/grpcache.c (cache_addgr): Likewise.
17587 * nscd/hstcache.c (cache_addhst): Likewise.
17588 * nscd/initgrcache.c (addinitgroupsX): Likewise.
17589 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
17590 * nscd/pwdcache.c (cache_addpw): Likewise.
17591 * nscd/servicescache.c (cache_addserv): Likewise.
17592 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
17593 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
17594 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
17595 Remove define.
17596
04958880
L
175972018-05-16 H.J. Lu <hongjiu.lu@intel.com>
17598
17599 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
17600 Include <string/strncat.c>.
17601 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
17602 alias.
17603 (__GI___strncat): New hidden alias.
17604
c9992d13
JM
176052018-05-16 Joseph Myers <joseph@codesourcery.com>
17606
17607 * sysdeps/mips/mips32/libm-test-ulps: Update.
17608 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
17609
2afece36
FW
176102018-05-16 Florian Weimer <fweimer@redhat.com>
17611
17612 * support/Makefile (libsupport-routines): Add support_quote_blob,
17613 support_test_compare_blob.
17614 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
17615 * support/check.h (TEST_COMPARE_BLOB): Define.
17616 (support_test_compare_blob): Declare.
17617 * support/support.h (support_quote_blob): Declare.
17618 * support/support_quote_blob.c: New file.
17619 * support/support_test_compare_blob.c: Likewise.
17620 * support/tst-support_quote_blob.c: Likewise.
17621 * support/tst-test_compare_blob.c: Likewise.
17622
9761bf4d
FW
176232018-05-16 Florian Weimer <fweimer@redhat.com>
17624
17625 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
17626 of <strtod_nan_double.h>.
17627 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
17628 instead of SET_MANTISSA.
17629 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
17630 of include <strtod_nan_float.h>.
17631 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
17632 instead of <strtod_nan_ldouble.h>.
17633 * stdlib/strtod_nan_double.h: Move to ...
17634 * sysdeps/generic/math-nan-payload-double.h: ... here.
17635 (FLOAT): Remove definition.
17636 (SET_MANTISSA): Rename to ...
17637 (SET_NAN_PAYLOAD): ... this.
17638 * stdlib/strtod_nan_float.h: Move to ...
17639 * sysdeps/generic/math-nan-payload-float.h: ... here.
17640 (FLOAT): Remove definition.
17641 (SET_MANTISSA): Rename to ...
17642 (SET_NAN_PAYLOAD): ... this.
17643 * sysdeps/generic/math-type-macros-double.h: Include
17644 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
17645 instead of <math-svid-compat.h>.
17646 * sysdeps/generic/math-type-macros-float.h: Include
17647 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
17648 instead of <math-svid-compat.h>.
17649 * sysdeps/generic/math-type-macros-float128.h: Include
17650 <math-nan-payload-float128.h>.
17651 * sysdeps/generic/math-type-macros-ldouble.h: Include
17652 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
17653 instead of <math-svid-compat.h>.
17654 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
17655 check for definition.
17656 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
17657 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
17658 Include <ieee754_float128.h>.
17659 (FLOAT): Remove definition.
17660 (SET_MANTISSA): Rename to ...
17661 (SET_NAN_PAYLOAD): ... this.
17662 * sysdeps/ieee754/float128/strtof128_nan.c: Include
17663 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
17664 Do not include <float128_private.h>.
17665 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
17666 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
17667 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
17668 (FLOAT): Remove definition.
17669 (SET_MANTISSA): Rename to ...
17670 (SET_NAN_PAYLOAD): ... this.
17671 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
17672 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
17673 (FLOAT): Remove definition.
17674 (SET_MANTISSA): Rename to ...
17675 (SET_NAN_PAYLOAD): ... this.
17676 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
17677 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
17678 (FLOAT): Remove definition.
17679 (SET_MANTISSA): Rename to ...
17680 (SET_NAN_PAYLOAD): ... this.
17681 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
17682 of "../stdlib/strtod_nan_double.h".
17683 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
17684 of "../stdlib/strtod_nan_float.h".
17685 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
17686 instead of "../stdlib/strtod_nan_ldouble.h".
17687 * manual/arith.texi (Parsing of Floats): Adjust comment.
17688
69a01461
JM
176892018-05-16 Joseph Myers <joseph@codesourcery.com>
17690
17691 * math/Makefile (libm-narrow-fns): Add mul.
17692 (libm-test-funcs-narrow): Likewise.
17693 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
17694 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
17695 * math/gen-auto-libm-tests.c (test_functions): Add mul.
17696 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
17697 (NARROW_MUL_ROUND_TO_ODD): Likewise.
17698 (NARROW_MUL_TRIVIAL): Likewise.
17699 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
17700 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
17701 macro.
17702 (__dmull): Likewise.
17703 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
17704 dmul.
17705 (CFLAGS-nldbl-dmul.c): New variable.
17706 (CFLAGS-nldbl-fmul.c): Likewise.
17707 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
17708 __nldbl_dmull.
17709 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
17710 prototype.
17711 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
17712 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
17713 * math/auto-libm-test-in: Add tests of mul.
17714 * math/auto-libm-test-out-narrow-mul: New generated file.
17715 * math/libm-test-narrow-mul.inc: New file.
17716 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
17717 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
17718 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
17719 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
17720 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
17721 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
17722 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
17723 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
17724 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
17725 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
17726 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
17727 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
17728 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
17729 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
17730 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
17731 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
17732 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
17733 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
17734 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17735 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
17736 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
17737 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
17738 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
17739 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
17740 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
17741 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
17742 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
17743 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
17744 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
17745 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
17746 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
17747 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
17748 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
17749 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
17750 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
17751 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
17752 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
17753 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
17754 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
17755 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
17756 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
17757 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
17758 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
17759 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
17760
a15529fd
L
177612018-05-14 H.J. Lu <hongjiu.lu@intel.com>
17762
17763 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
17764 with *%eax in call.
17765
98ee36c7
L
177662018-05-14 H.J. Lu <hongjiu.lu@intel.com>
17767
17768 * sysdeps/i386/ldsodefs.h: Removed.
17769 * sysdeps/x86_64/ldsodefs.h: Moved to ...
17770 * sysdeps/x86/ldsodefs.h: This.
17771 (La_i86_regs): New.
17772 (La_i86_retval): Likewise.
17773 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
17774 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
17775
e322ec32
L
177762018-05-14 H.J. Lu <hongjiu.lu@intel.com>
17777
17778 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
17779 unnecessary testl.
17780
0937e209
AM
177812018-05-13 Alan Modra <amodra@gmail.com>
17782
17783 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
17784 R_PARISC_TLS_DTPOFF32 reloc addend.
17785
5db7d705
TMQMF
177862018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
17787
17788 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
17789 * math/math.h: Restrict the prototype definition for the functions
17790 issignaling(_Float128) and iszero(_Float128); and template
17791 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
17792 __HAVE_FLOAT128_UNLIKE_LDBL.
17793 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
17794 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
17795 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
17796 __f128() constants; define the type _Float128 as long double;
17797 and reuse long double in __CFLOAT128.
17798
b4d5b8b0
JM
177992018-05-11 Joseph Myers <joseph@codesourcery.com>
17800
17801 * sysdeps/generic/math_private.h: Do not include
17802 <math-barriers.h>.
17803 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
17804 <math_private.h>.
17805 * math/fromfp.h: Include <math-barriers.h>.
17806 * math/math-narrow.h: Likewise.
17807 * math/s_nextafter.c: Likewise.
17808 * math/s_nexttowardf.c: Likewise.
17809 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
17810 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
17811 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
17812 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
17813 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
17814 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
17815 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
17816 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
17817 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
17818 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
17819 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
17820 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
17821 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
17822 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
17823 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
17824 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
17825 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
17826 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
17827 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
17828 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
17829 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
17830 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
17831 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
17832 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
17833 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
17834 * sysdeps/ieee754/k_standardl.c: Likewise.
17835 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
17836 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
17837 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
17838 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
17839 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
17840 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
17841 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
17842 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
17843 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
17844 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
17845 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
17846 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
17847 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
17848 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
17849 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
17850 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
17851 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
17852 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
17853 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
17854 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
17855 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
17856 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
17857
fc79706a
FW
178582018-05-11 Florian Weimer <fweimer@redhat.com>
17859
17860 Use 64-bit epoch values in the time zone file parser.
17861 * include/time.h (internal_time_t): Define.
17862 (__tzfile_compute): Use it.
17863 * time/tzfile.c (struct leap): Use internal_time_t for epoch
17864 member.
17865 (transitions): Switch to internal_time_t.
17866 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
17867 types.
17868 (__tzfile_compute): Use internal_time_t for timer argument. Check
17869 for truncation before calling __offtime.
17870
89aacb51
FW
178712018-05-11 Florian Weimer <fweimer@redhat.com>
17872
17873 [BZ #23166]
17874 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
17875 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
17876 Likewise.
17877 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
17878 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
17879 export without --enable-obsolete-rpc.
17880 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
17881 symbol. This should not have been exported, ever.
17882
ab74d59f 178832018-05-11 Rafał Lużyński <digitalfreak@lingonborough.com>
bb066cb8
RL
17884
17885 [BZ #23152]
17886 * localedata/locales/gd_GB (abmon): Fix typo in May:
17887 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
17888
70c97f84
SP
178892018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
17890
db725a45
SP
17891 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
17892 Use multiple registers to copy data in loop tail.
17893
70c97f84
SP
17894 * sysdeps/aarch64/multiarch/memmove_falkor.S
17895 (__memmove_falkor): Use multiple registers to move data in
17896 loop tail.
17897
8f5b00d3
JM
178982018-05-10 Joseph Myers <joseph@codesourcery.com>
17899
17900 * math/math-underflow.h: New file.
17901 * sysdeps/generic/math_private.h: Do not include <float.h>.
17902 (fabs_tg): Remove macro. Moved to math-underflow.h.
17903 (min_of_type_f): Likewise.
17904 (min_of_type_): Likewise.
17905 (min_of_type_l): Likewise.
17906 (min_of_type_f128): Likewise.
17907 (min_of_type): Likewise.
17908 (math_check_force_underflow): Likewise.
17909 (math_check_force_underflow_nonneg): Likewise.
17910 (math_check_force_underflow_complex): Likewise.
17911 * math/e_exp2_template.c: Include <math-underflow.h>.
17912 * math/k_casinh_template.c: Likewise.
17913 * math/s_catan_template.c: Likewise.
17914 * math/s_catanh_template.c: Likewise.
17915 * math/s_ccosh_template.c: Likewise.
17916 * math/s_cexp_template.c: Likewise.
17917 * math/s_clog10_template.c: Likewise.
17918 * math/s_clog_template.c: Likewise.
17919 * math/s_csin_template.c: Likewise.
17920 * math/s_csinh_template.c: Likewise.
17921 * math/s_csqrt_template.c: Likewise.
17922 * math/s_ctan_template.c: Likewise.
17923 * math/s_ctanh_template.c: Likewise.
17924 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
17925 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
17926 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
17927 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
17928 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
17929 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
17930 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
17931 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
17932 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
17933 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
17934 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
17935 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
17936 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
17937 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
17938 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
17939 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
17940 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
17941 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
17942 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
17943 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
17944 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
17945 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
17946 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
17947 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
17948 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
17949 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
17950 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
17951 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
17952 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
17953 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
17954 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
17955 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
17956 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
17957 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
17958 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
17959 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
17960 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
17961 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
17962 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
17963 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
17964 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
17965 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
17966 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
17967 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
17968 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
17969 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
17970 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
17971 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
17972 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
17973 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
17974 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
17975 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
17976 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
17977 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
17978 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
17979 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
17980 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
17981 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
17982 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
17983 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
17984 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
17985 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
17986 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
17987 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
17988 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
17989 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
17990 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
17991 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
17992 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
17993 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
17994 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
17995 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
17996 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
17997 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
17998 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
17999 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
18000 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
18001 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
18002 * sysdeps/x86/fpu/powl_helper.c: Likewise.
18003 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
18004 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
18005 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
18006 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
18007 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
18008
9ed2e15f
JM
180092018-05-09 Joseph Myers <joseph@codesourcery.com>
18010
18011 * sysdeps/generic/math-barriers.h: New file.
18012 * sysdeps/generic/math_private.h [!math_opt_barrier]
18013 (math_opt_barrier): Move to math-barriers.h.
18014 [!math_opt_barrier] (math_force_eval): Likewise.
18015 * sysdeps/aarch64/fpu/math-barriers.h: New file.
18016 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
18017 math-barriers.h.
18018 (math_force_eval): Likewise.
18019 * sysdeps/alpha/fpu/math-barriers.h: New file.
18020 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
18021 math-barriers.h.
18022 (math_force_eval): Likewise.
18023 * sysdeps/x86/fpu/math-barriers.h: New file.
18024 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
18025 math-barriers.h.
18026 (math_force_eval): Likewise.
18027 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
18028 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
18029 multiple-include guard for rename.
18030 * sysdeps/powerpc/fpu/math-barriers.h: New file.
18031 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
18032 math-barriers.h.
18033 (math_force_eval): Likewise.
18034
5460617d
PP
180352018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
18036
18037 [BZ #22786]
43d4f3d5 18038 CVE-2018-11236
5460617d
PP
18039 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
18040 computation.
18041 * stdlib/Makefile (test-bz22786): New test.
18042 * stdlib/test-bz22786.c: New test.
18043
aaee3cd8
JM
180442018-05-09 Joseph Myers <joseph@codesourcery.com>
18045
18046 * include/math-narrow-eval.h: New file. Contents moved from ....
18047 * sysdeps/generic/math_private.h: ... here.
18048 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
18049 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
18050 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
18051 * stdlib/strtod_l.c: Likewise.
18052 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
18053 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
18054 * sysdeps/i386/fpu/s_fdim.c: Likewise.
18055 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
18056 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
18057 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
18058 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
18059 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
18060 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
18061 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
18062 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
18063 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
18064 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
18065 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
18066 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
18067 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
18068 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
18069 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
18070 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
18071 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
18072 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
18073 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
18074 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
18075 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
18076 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
18077 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
18078 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
18079 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
18080 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
18081
0555c477
AS
180822018-05-08 Andreas Schwab <schwab@suse.de>
18083
18084 * sysdeps/nptl/internaltypes.h: Fix comment.
18085
50d7d351
L
180862018-05-07 H.J. Lu <hongjiu.lu@intel.com>
18087
18088 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
18089 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
18090 hidden.
18091
543477f7
SP
180922018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
18093
18094 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
18095 of I into loop header.
18096 * benchtests/bench-memmove-walk.c
18097 (test_main): Likewise.
18098
180992018-05-07 Alexandre Oliva <oliva@gnu.org>
ffa81c22
AO
18100
18101 Revert:
18102 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
18103 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
18104
0065aaaa
PP
181052018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
18106
18107 [BZ #20419]
18108 * elf/dl-load.c (open_verify): Fix stack overflow.
18109 * elf/Makefile (tst-big-note): New test.
18110 * elf/tst-big-note-lib.S: New.
18111 * elf/tst-big-note.c: New.
18112
b289cd9d
JM
181132018-05-04 Joseph Myers <joseph@codesourcery.com>
18114
18115 * scripts/abilist.awk: Ignore absolute symbols.
18116 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
18117 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
18118 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
18119 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
18120 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
18121 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
18122 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
18123 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
18124 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
18125 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
18126 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
18127 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
18128 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
18129 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
18130 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
18131 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
18132 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
18133 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
18134 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
18135 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
18136 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
18137 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
18138 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
18139 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
18140 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
18141 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
18142 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
18143 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
18144 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
18145 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
18146 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
18147 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
18148 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
18149 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
18150 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
18151 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
18152 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
18153 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
18154 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
18155 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
18156 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
18157 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
18158 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
18159 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
18160 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
18161 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
18162 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
18163 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
18164 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
18165 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
18166 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
18167 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
18168 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
18169 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
18170 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
18171 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
18172 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
18173 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
18174 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
18175 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
18176 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
18177 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
18178 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
18179 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
18180 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
18181 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
18182 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
18183 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
18184 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
18185 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
18186 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
18187 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
18188 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
18189 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
18190 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
18191 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
18192 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
18193 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
18194 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
18195 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
18196 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
18197 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
18198 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
18199 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
18200 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
18201 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
18202 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
18203 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
18204 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
18205 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
18206 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
18207 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
18208 Likewise.
18209 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
18210 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
18211 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
18212 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
18213 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
18214 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
18215 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
18216 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
18217 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
18218 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
18219 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
18220 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
18221 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
18222 Likewise.
18223 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
18224 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
18225 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
18226 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
18227 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
18228 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
18229 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
18230 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
18231 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
18232 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
18233 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
18234 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
18235 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
18236 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
18237 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
18238 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
18239 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
18240 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
18241 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
18242 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
18243 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
18244 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
18245 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
18246 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
18247 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
18248 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
18249 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
18250 Likewise.
18251 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
18252 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
18253 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
18254 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
18255 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
18256 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
18257 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
18258 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
18259 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
18260 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
18261 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
18262 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
18263 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
18264 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
18265 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
18266 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
18267 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
18268 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
18269 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
18270 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
18271 Likewise.
18272 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
18273 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
18274 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
18275 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
18276 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
18277 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
18278 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
18279 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
18280 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
18281 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
18282 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
18283 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
18284 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
18285 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
18286 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
18287 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
18288 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
18289 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
18290 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
18291 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
18292 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
18293 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
18294 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
18295 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
18296 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
18297 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
18298 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
18299 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
18300 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
18301 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
18302 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
18303 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
18304 Likewise.
18305 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
18306 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
18307 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
18308 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
18309 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
18310 Likewise.
18311 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
18312 Likewise.
18313 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
18314 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
18315 Likewise.
18316 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
18317 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
18318 Likewise.
18319 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
18320 Likewise.
18321 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
18322 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
18323 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
18324 Likewise.
18325 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
18326 Likewise.
18327 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
18328 Likewise.
18329 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
18330 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
18331 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
18332 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
18333 Likewise.
18334 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
18335 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
18336 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
18337 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
18338 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
18339 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
18340 Likewise.
18341 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
18342 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
18343 Likewise.
18344 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
18345 Likewise.
18346 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
18347 Likewise.
18348 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
18349 Likewise.
18350 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
18351 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
18352 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
18353 Likewise.
18354 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
18355 Likewise.
18356 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
18357 Likewise.
18358 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
18359 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
18360 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
18361 Likewise.
18362 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
18363 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
18364 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
18365 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
18366 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
18367 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
18368 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
18369 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
18370 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
18371 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
18372 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
18373 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
18374 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
18375 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
18376 Likewise.
18377 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
18378 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
18379 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
18380 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
18381 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
18382 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
18383 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
18384 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
18385 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
18386 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
18387 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
18388 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
18389 Likewise.
18390 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
18391 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
18392 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
18393 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
18394 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
18395 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
18396 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
18397 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
18398 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
18399 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
18400 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
18401 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
18402 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
18403 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
18404 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
18405 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
18406 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
18407 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
18408 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
18409 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
18410 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
18411 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
18412 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
18413 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
18414 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
18415 Likewise.
18416 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
18417 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
18418 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
18419 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
18420 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
18421 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
18422 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
18423 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
18424 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
18425 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
18426 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
18427 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
18428 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
18429 Likewise.
18430 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
18431 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
18432 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
18433 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
18434 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
18435 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
18436 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
18437 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
18438 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
18439 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
18440 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
18441 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
18442 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
18443 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
18444 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
18445 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
18446 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
18447 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
18448 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
18449 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
18450 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
18451 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
18452 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
18453 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
18454 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
18455 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
18456 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
18457 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
18458 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
18459 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
18460 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
18461 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
18462 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
18463 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
18464 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
18465 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
18466 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
18467 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
18468
16609018
SL
184692018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
18470
18471 [BZ #23137]
18472 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
18473 Use atomic_load_acquire to load __tid.
18474
556f5c46
L
184752018-05-02 H.J. Lu <hongjiu.lu@intel.com>
18476
18477 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
18478 Restore the pointer into %rdx, after syscall and use %rdx,
18479 instead of %rsi, to restore context.
18480
8b8f32b2
L
184812018-05-02 H.J. Lu <hongjiu.lu@intel.com>
18482
18483 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
18484 Pop the pointer into %rdx after syscall and use %rdx, instead
18485 of %rsi, to restore context.
18486
d6cc1829
L
184872018-05-02 H.J. Lu <hongjiu.lu@intel.com>
18488
18489 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
18490 handlers after setjmp.
18491 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
18492 defined.
18493 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
18494 <libc-pointer-arith.h>.
18495 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
18496 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
18497 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
18498 _JUMP_BUF_SIGSET_BITS_PER_WORD.
18499 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
18500 * sysdeps/x86/__longjmp_cancel.S: New file.
18501 * sysdeps/x86/longjmp.c: Likewise.
18502 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
18503
cf2478d5
AZ
185042018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18505
18506 * NEWS: Add ustat.h deprecation entry.
18507 * bits/ustat.h: Remove file.
18508 * misc/sys/ustat.h: Likewise.
18509 * misc/ustat.h: Likewise.
18510 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
18511 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
18512 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
18513 compatibility mode.
18514 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
18515 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
18516 generic Linux implementation.
18517
dc115e1c
TMQMF
185182018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
18519
18520 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
18521 * math/w_expl_compat.c: Likewise.
18522 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
18523
6b5c8607 185242018-04-30 Raymond Nicholson <rain1@airmail.cc>
340d9652
RN
18525
18526 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
18527
c57bf7c1
AZ
185282018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18529
18530 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
18531 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
18532 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
18533 Remove.
18534 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
18535 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
18536 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
18537 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
18538 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
18539 and SYSCALL_LL64.
18540
06135c33
TMQMF
185412018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
18542
33927914
TMQMF
18543 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
18544
06135c33
TMQMF
18545 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
18546 * math/w_asin_template.c: Likewise.
18547 * math/w_atanh_template.c: Likewise.
18548
3a33b069
GG
185492018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
18550
18551 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
18552 to powerpc/powerpc64/be for big-endian.
18553 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
18554 little-endian.
18555
18556 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
18557 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
18558 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
18559 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
18560 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
18561 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
18562 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
18563 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
18564 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
18565 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
18566 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
18567 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
18568 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
18569 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
18570 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
18571 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
18572 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
18573 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
18574 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
18575 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
18576 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
18577 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
18578 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
18579 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
18580 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
18581 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
18582 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
18583 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
18584 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
18585 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
18586 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
18587 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
18588
18589 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
18590 adjusted to imply powerpc64 and older processors on powerpc64/be.
18591 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
18592 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
18593 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
18594 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
18595 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
18596 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
18597 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
18598 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
18599 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
18600 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
18601 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
18602 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
18603 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
18604 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
18605 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
18606 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
18607 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
18608 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
18609 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
18610 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
18611 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
18612 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
18613 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
18614 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
18615 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
18616 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
18617 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
18618 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
18619 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
18620 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
18621 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
18622
18623 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
18624 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
18625 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
18626 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
18627
18628 * sysdeps/powerpc/powerpc64/be/Implies: New file.
18629 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
18630 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
18631 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
18632
18633 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
18634 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
18635 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
18636 * sysdeps/powerpc/powerpc64le/configure: Likewise.
18637 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
18638 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
18639 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
18640 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
18641 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
18642 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
18643 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
18644
18645 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
18646 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
18647 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
18648 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
18649 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
18650 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
18651 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
18652 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
18653 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
18654 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
18655 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
18656
18657 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
18658 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
18659 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
18660 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
18661 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
18662 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
18663 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
18664 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
18665 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
18666 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
18667 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
18668 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
18669
18670 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
18671 and adjusted to imply olders processors.
18672 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
18673 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
18674 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
18675 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
18676 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
18677 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
18678 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
18679 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
18680 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
18681 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
18682 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
18683
18684 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
18685 powerpc64/le.
18686 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
18687 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
18688
18689 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
18690 powerpc64le.
18691 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
18692 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
18693
18694 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
18695 powerpc64/be.
18696 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
18697 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
18698 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
18699
18700 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
18701 powerpc64 and adjusted.
18702 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
18703 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
18704 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
18705 Likewise.
18706
a3fb6b6b
JM
187072018-04-27 Joseph Myers <joseph@codesourcery.com>
18708
18709 * sysdeps/tile: Remove.
18710 * sysdeps/unix/sysv/linux/tile: Likewise.
18711 * README (tilegx-*-linux-gnu): Remove from list of supported
18712 configurations.
18713 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
18714 contribution of support for generic Linux kernel syscall
18715 interface.
18716 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
18717 tilegx configurations.
18718 (Config.install_linux_headers): Do not handle tile.
18719 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
18720 in comment.
18721 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
18722 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
18723 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
18724 conditional undefine and redefine.
18725 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
18726 in comment.
18727 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
18728 conditional undefine and redefine.
18729
7a6f7478
AJ
187302018-04-26 Aurelien Jarno <aurelien@aurel32.net>
18731
18732 * signal/tst-sigaction.c: New file to test BZ #23069.
18733 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
18734
81b49e96
TMQMF
187352018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
18736
18737 [BZ #22766]
18738 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
18739 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
18740 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
18741 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
18742
7d80f48e
AZ
187432018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18744
18745 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
18746 _DIRENT_MATCHES_DIRENT64 is not defined.
18747 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
18748 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
18749 is defined.
18750 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
18751 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
18752
42a2bf58
JM
187532018-04-25 Joseph Myers <joseph@codesourcery.com>
18754
18755 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
18756 version to GCC 8 branch.
18757
9320ca88
JM
187582018-04-24 Joseph Myers <joseph@codesourcery.com>
18759
5e14bb97
JM
18760 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
18761 (check_no_hidden): Use type of original function when declaring
18762 alias.
18763
9320ca88
JM
18764 * sysdeps/unix/sysv/linux/sys/ptrace.h
18765 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
18766 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
18767 (struct __ptrace_seccomp_metadata): New type.
18768 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
18769 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18770 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
18771 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18772 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
18773 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18774 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
18775 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18776 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
18777 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18778 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
18779 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18780 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
18781 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18782 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
18783 (PTRACE_SECCOMP_GET_METADATA): Likewise.
18784
af7e376b
AZ
187852018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18786
18787 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
18788 defined.
18789 * dirent/versionsort.c (versionsort): Likewise.
18790 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
18791 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
18792 * dirent/versionsort64.c (versionsort64): Likewise.
18793 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
18794 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
18795 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
18796 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
18797 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
18798 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
18799 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
18800 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
18801 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
18802 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
18803 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
18804 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
18805 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
18806 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
18807
da5e0361
JM
188082018-04-23 Joseph Myers <joseph@codesourcery.com>
18809
18810 * elf/elf.h (NT_PPC_PKEY): New macro.
18811
6b5c8607 188122018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
ea76691a
DSN
18813
18814 [BZ #23094]
18815 * localedata/locales/hr_HR: fix thousands_sep and
18816 mon_thousands_sep
18817
573963e3
JM
188182018-04-20 Joseph Myers <joseph@codesourcery.com>
18819
18820 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
18821 (XTABS): Define to TAB3.
18822
c0123b3b
AZ
188232018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18824
0900a849
AZ
18825 * sysdeps/hppa/fpu/libm-test-ulps: Update.
18826
c0123b3b
AZ
18827 * dirent/scandir-tail-common.c: New file.
18828 * dirent/scandir-tail.c: Use scandir-tail-common.c.
18829 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
18830 * dirent/scandir.c: Use scandir-tail-common.c.
18831 * dirent/scandirat.c: Likewise.
18832 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
18833 * dirent/scandir64.c (scandir64): Always build and alias to scandir
18834 if _DIRENT_MATCHES_DIRENT64 is defined.
18835 * dirent/scandirat64.c (scandirat64): Likewise.
18836 * include/dirent.h (__scandir_tail): Only define iff
18837 _DIRENT_MATCHES_DIRENT64 is not defined.
18838 (__scandir64_tail): Define regardless.
18839 (__scandirat, scandirat64): Remove libc_hidden_proto.
18840 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
18841 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
18842 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
18843 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
18844 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
18845 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
18846 * sysdeps/unix/sysv/linux/scandir64.c: New file.
18847
458b94f6
JM
188482018-04-20 Joseph Myers <joseph@codesourcery.com>
18849
18850 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
18851 New macro.
18852 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
18853 Increase to 24.
18854 (_dl_aarch64_cap_flags): Add asimdfhm.
18855
9f0437e8
CLT
188562018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
18857
18858 * sysdeps/nios2/libm-test-ulps: Update.
18859
298d0e31
AZ
188602018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18861
50511ca4
AZ
18862 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
18863 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
18864
298d0e31
AZ
18865 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
18866 requirements.
6b5c8607 18867 (_DIRENT_MATCHES_DIRENT64): Undef
298d0e31
AZ
18868 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
18869 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
18870 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
18871 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
18872 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
18873 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
18874 use getdents64 syscalls as base.
18875 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
18876 symbol if required.
18877 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
18878 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
18879 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
18880 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
18881 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
18882 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
18883 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
18884 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
18885 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
18886 (__get_clockfreq_via_proc_openprom): Use __getdents64.
18887 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
18888
0085be14
SL
188892018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
18890
18891 * scripts/test_printers_common.py (init_test): Disable lock elision.
18892
da796524
SL
188932018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
18894
18895 * math/test-tgmath.c (count_double, count_float,
18896 count_ldouble, count_cdouble, count_cfloat,
18897 count_cldouble): Use volatile int.
18898
0dd25301
ST
188992018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
18900
18901 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
18902 (conformtest-xfail-conds): Add i386-gnu.
cbc256b1 18903 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
0dd25301
ST
18904 i386-gnu.
18905 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
18906 ipc_perm.cuid, ipc_perm.cgid): Likewise.
18907 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
18908 msqid_ds.msg_lrpid): Likewise.
18909 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
18910 Likewise.
18911 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
18912 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
9d9f8f03
ST
18913 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
18914 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
18915 unsigned int.
18916 (struct statvfs64): Likewise.
f55a4fde
ST
18917 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
18918 Likewise.
77b93390
ST
18919 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
18920 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
18921 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
18922 instead of wait_queue.
18923 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
18924 instead of vm_area_struct.
5cd2931a
ST
18925 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
18926 struct sched_param definition to it.
e60c3f2b
ST
18927 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
18928 * bits/types/struct_sched_param.h: New file.
18929 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
18930 <bits/types/struct_sched_param.h> instead of <sched.h>.
18931 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
5cd2931a
ST
18932 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
18933 generic version but include <bits/pthreadtypes.h> to make struct
18934 sigevent's sigev_notify_attributes field a pthread_attr_t*.
ed370924
ST
18935 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
18936 non-compliant.
a564872d
ST
18937 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
18938 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
18939 [__USE_XOPEN] (OFDEL): New macro.
18940 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
a279b8ed 18941 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
5dbfe13b
ST
18942 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
18943 prototypes.
18944 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
18945 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
81b032c8
ST
18946 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
18947 non-compliant.
18948 * sysdeps/i386/sys/ucontext.h: Likewise.
18949 * sysdeps/m68k/sys/ucontext.h: Likewise.
18950 * sysdeps/mips/sys/ucontext.h: Likewise.
18951 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
f00b62ec
ST
18952 * sysdeps/mach/hurd/i386/Makefile
18953 (test-xfail-POSIX/fcntl.h/conform): Add.
18954 (test-xfail-POSIX/signal.h/conform): Add.
18955 (test-xfail-POSIX/semaphore.h/conform): Add.
18956 (test-xfail-POSIX/regex.h/conform): Add.
18957 (test-xfail-POSIX/aio.h/conform): Add.
18958 (test-xfail-POSIX/mqueue.h/conform): Add.
18959 (test-xfail-POSIX/sys/types.h/conform): Add.
18960 (test-xfail-UNIX98/fcntl.h/conform): Add.
18961 (test-xfail-UNIX98/netdb.h/conform): Add.
18962 (test-xfail-UNIX98/signal.h/conform): Add.
18963 (test-xfail-UNIX98/semaphore.h/conform): Add.
18964 (test-xfail-UNIX98/regex.h/conform): Add.
18965 (test-xfail-UNIX98/aio.h/conform): Add.
18966 (test-xfail-UNIX98/ftw.h/conform): Add.
18967 (test-xfail-UNIX98/mqueue.h/conform): Add.
18968 (test-xfail-UNIX98/netinet/in.h/conform): Add.
18969 (test-xfail-UNIX98/sys/wait.h/conform): Add.
18970 (test-xfail-UNIX98/sys/sem.h/conform): Add.
18971 (test-xfail-UNIX98/sys/uio.h/conform): Add.
18972 (test-xfail-UNIX98/sys/socket.h/conform): Add.
18973 (test-xfail-UNIX98/sys/types.h/conform): Add.
18974 (test-xfail-UNIX98/stdlib.h/conform): Add.
18975 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
18976 (test-xfail-POSIX2008/fcntl.h/conform): Add.
18977 (test-xfail-POSIX2008/netdb.h/conform): Add.
18978 (test-xfail-POSIX2008/signal.h/conform): Add.
18979 (test-xfail-POSIX2008/semaphore.h/conform): Add.
18980 (test-xfail-POSIX2008/regex.h/conform): Add.
18981 (test-xfail-POSIX2008/aio.h/conform): Add.
18982 (test-xfail-POSIX2008/mqueue.h/conform): Add.
18983 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
18984 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
18985 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
18986 (test-xfail-POSIX2008/sys/types.h/conform): Add.
18987 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
18988 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
18989 (test-xfail-XOPEN2K/netdb.h/conform): Add.
18990 (test-xfail-XOPEN2K/signal.h/conform): Add.
18991 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
18992 (test-xfail-XOPEN2K/regex.h/conform): Add.
18993 (test-xfail-XOPEN2K/aio.h/conform): Add.
18994 (test-xfail-XOPEN2K/ftw.h/conform): Add.
18995 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
18996 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
18997 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
18998 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
18999 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
19000 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
19001 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
19002 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
19003 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
19004 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
19005 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
19006 (test-xfail-XOPEN2K8/signal.h/conform): Add.
19007 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
19008 (test-xfail-XOPEN2K8/regex.h/conform): Add.
19009 (test-xfail-XOPEN2K8/aio.h/conform): Add.
19010 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
19011 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
19012 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
19013 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
19014 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
19015 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
19016 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
19017 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
19018 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
19019 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
cbc256b1
ST
19020 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
19021 i386-gnu.
19022 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
19023 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
0dd25301 19024
d6397de3
JM
190252018-04-18 Joseph Myers <joseph@codesourcery.com>
19026
19027 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
19028 --enable-obsolete for powerpc-linux-gnuspe.
19029
8323a902
ST
190302018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
19031
3dc0814c 19032 * conform/data/sys/un.h-data: Allow sun_ prefix.
c5896a45 19033 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
d4379e02 19034 prototypes.
c5896a45
ST
19035 * sysdeps/mach/include/mach.h: Likewise.
19036 * sysdeps/mach/include/mach/mig_support.h: Likewise.
19037 * sysdeps/mach/include/mach_error.h: Likewise.
8323a902 19038
743b9c2a
AZ
190392018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19040
19041 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
19042 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
19043 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
19044 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
19045
326e74e7
AS
190462018-04-16 Andreas Schwab <schwab@suse.de>
19047
19048 [BZ #19527]
19049 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
19050
6b5c8607 190512018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
a14d8acd
PM
19052
19053 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
19054 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
19055
a700e7cb
DD
190562018-04-12 DJ Delorie <dj@redhat.com>
19057
19058 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
19059 version to 4.16.
19060
d8abfab7
SL
190612018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
19062
19063 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
19064 (struct kernel_sigaction): Use the same definition on 31bit as is used
19065 on 64bit.
19066
583a27d5
FW
190672018-04-09 Florian Weimer <fweimer@redhat.com>
19068
19069 [BZ #23037]
19070 * resolv/res_send.c (send_dg): Use designated initializers instead
19071 of assignment to zero-initialize other fields of struct mmsghdr.
19072
243f59e5
AZ
190732018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19074
942de61a
AZ
19075 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
19076 __READDIR_ALIAS): Undefine after usage.
19077 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
19078 __READDIR_R_ALIAS): Likewise.
19079 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
19080 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
19081 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
19082 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
19083 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
19084 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
19085 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
19086 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
19087 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
19088 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
19089 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
19090 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
19091 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
19092 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
19093 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
19094 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
19095 * sysdeps/unix/sysv/linux/readdir.c: New file.
19096 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
19097 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
19098 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
19099
243f59e5
AZ
19100 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
19101
690c3475
AS
191022018-04-06 Andreas Schwab <schwab@linux-m68k.org>
19103
19104 * manual/charset.texi (Converting a Character): Fix typo.
19105
6b5c8607 191062018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
b4a5d26d 19107
bbc2062a
AZ
19108 * sysdeps/sparc/fpu/libm-test-ulps: Update.
19109
fa7c6199
AZ
19110 * sysdeps/arm/libm-test-ulps: Update.
19111
b4a5d26d
AZ
19112 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
19113 as base implementation.
19114 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
19115 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
19116 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
19117 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
19118 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
19119 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
19120 remove unrequired definitions and update comments.
19121 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
19122 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
19123 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
19124 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
19125 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
19126 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
19127 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
19128 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
19129 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
19130 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
19131 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
19132 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
19133 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
19134 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
19135 and RESET_SA_RESTORER hooks.
19136
db9e55ff
SL
191372018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
19138
19139 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
19140
cf138b0c
FW
191412018-04-05 Florian Weimer <fweimer@redhat.com>
19142
19143 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
19144 integer overflow, memory leak on error, and indeterminate errno
19145 value. Add a null wide character to terminate the result string.
19146 * manual/charset.texi (Converting a Character): Mention embedded
19147 null bytes in the mbrtowc input string. Explain what happens in
19148 the -2 result case. Do not claim that mbrtowc is simple or
19149 obvious to use. Adjust the description of the code example. Use
19150 @code, not @var, for concrete variables.
19151
0f339252
FW
191522018-04-05 Florian Weimer <fweimer@redhat.com>
19153
19154 * manual/examples/mbstouwcs.c: New file.
19155 * manual/charset.texi (Converting a Character): Include it.
19156
e5f9508a
ST
191572018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
19158
c120981d
ST
19159 * include/dirent.h (dirfd): Add hidden proto.
19160 * dirent/dirfd.c (dirfd): Add hidden def.
19161 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
19162 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
e5f9508a 19163
b2fd61ca
TMQMF
191642018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
19165
19166 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
19167 sin, cos and sincos to 1 ULP.
19168
10a446dd
MR
191692018-04-04 Maciej W. Rozycki <macro@mips.com>
19170
e7feec37
MR
19171 [BZ #19818]
19172 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
19173 symbols.
19174 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
19175 * elf/tst-absolute-sym.c: New file.
19176 * elf/tst-absolute-sym-lib.c: New file.
19177 * elf/tst-absolute-sym-lib.lds: New file.
19178 * elf/Makefile (tests): Add `tst-absolute-sym'.
19179 (modules-names): Add `tst-absolute-sym-lib'.
19180 (LDLIBS-tst-absolute-sym-lib.so): New variable.
19181 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
19182 ($(objpfx)tst-absolute-sym): New dependency.
19183
10a446dd
MR
19184 [BZ #19818]
19185 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
19186 parameter.
19187 (SYMBOL_ADDRESS): New macro.
19188 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
19189 SYMBOL_ADDRESS for symbol address calculation.
19190 * elf/dl-runtime.c (_dl_fixup): Likewise.
19191 (_dl_profile_fixup): Likewise.
19192 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
19193 * elf/rtld.c (dl_main): Likewise.
19194 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
19195 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
19196 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
19197 (elf_machine_rela): Likewise.
19198 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
19199 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
19200 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
19201 (elf_machine_rela): Likewise.
19202 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
19203 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
19204 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
19205 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
19206 Likewise.
19207 (elf_machine_reloc): Likewise.
19208 (elf_machine_got_rel): Likewise.
19209 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
19210 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
19211 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
19212 Likewise.
19213 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
19214 Likewise.
19215 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
19216 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
19217 Likewise.
19218 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
19219 Likewise.
19220 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
19221 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
19222 Likewise.
19223 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
19224 Likewise.
19225 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
19226 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
19227
9185f86d
ZW
192282018-04-04 Zack Weinberg <zackw@panix.com>
19229
19230 * sysdeps/generic/internal-signals.h: Include signal.h,
19231 sigsetops.h, and stdbool.h.
19232 (__libc_signal_block_all): Actually block all signals.
19233 (__libc_signal_block_app): Likewise.
19234 (__libc_signal_restore_set): Actually restore the signal mask.
19235
b07367bc
FW
192362018-04-04 Florian Weimer <fweimer@redhat.com>
19237
19238 inet: Actually build and run tst-deadline.
19239 * inet/Makefile (tests-internal): Add tst-deadline and do not
19240 overwrite the variable.
19241 (tests-static-internal): Remove variable.
19242
f2652643
L
192432018-04-03 H.J. Lu <hongjiu.lu@intel.com>
19244
19245 [BZ #22947]
19246 * bits/uio-ext.h (RWF_APPEND): New.
19247 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
19248 * manual/llio.texi: Document RWF_APPEND.
19249 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
19250 (RWF_SUPPORTED): Add RWF_APPEND.
19251
6b5c8607 192522018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
d2dc5467
AZ
19253
19254 [BZ #22391]
19255 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
19256 check for internal nptl signals.
19257 * nptl/sigaction.c (__sigaction): Likewise.
19258 * signal/sigaddset.c (sigaddset): Likewise.
19259 * signal/sigdelset.c (sigdelset): Likewise.
19260 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
19261 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
19262 value.
19263 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
19264 to filter out internal nptl signals.
19265 * signal/tst-sigset.c (do_test): Check ech signal indidually and
19266 also check realtime signals using standard macros.
19267 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
19268 __is_internal_signal, __libc_signal_block_all,
19269 __libc_signal_block_app, __libc_signal_restore_set): New functions.
19270 * sysdeps/nptl/sigfillset.c: Remove file.
19271 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
19272 Change return to bool.
19273 (__clear_internal_signals): Remove SIGTIMER clean since it is
19274 equal to SIGCANEL on Linux.
19275 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
19276 signal set was constructed using standard functions.
19277
511ed56f
ST
192782018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
19279
92846492
ST
19280 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
19281 ifname is too long.
e8ef51b1
ST
19282 * hurd/hurdsig.c (interrupted_reply_port_location): Use
19283 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
ff297b70
ST
19284 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
19285 hidden def.
19286 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
d8440a21
ST
19287 * signal/sigaddset.c: Include <sigsetopts.h>.
19288 * signal/sigdelset.c: Likewise.
511ed56f 19289
e88ecbbf
WD
192902018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
19291
19292 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
19293 (__cos): Likewise.
19294 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
19295 logic as sin and cos.
19296
aef3e255
WD
192972018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
19298
19299 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
19300 inputs. Return correct sign.
19301 (do_sincos): Remove small input check before do_sin, let do_sin set
19302 the sign.
19303 (__sin): Likewise.
19304 (__cos): Likewise.
19305
72f6e9a3
WD
193062018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
19307
19308 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
19309 (do_cos_slow): Likewise.
19310 (do_sin_slow): Likewise.
19311 (reduce_and_compute): Likewise.
19312 (slow): Likewise.
19313 (slow1): Likewise.
19314 (slow2): Likewise.
19315 (sloww): Likewise.
19316 (sloww1): Likewise.
19317 (sloww2): Likewise.
19318 (bslow): Likewise.
19319 (bslow1): Likewise.
19320 (bslow2): Likewise.
19321 (cslow2): Likewise.
19322
64909583
WD
193232018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
19324
19325 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
19326 (do_cos): Remove corp parameter and calculations.
19327 (do_sin): Likewise.
19328 (do_sincos): Remove cor variable.
19329 (__sin): Use do_sincos for huge inputs.
19330 (__cos): Likewise.
19331 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
19332 (reduce_and_compute_sincos): Remove unused function.
19333
d9469deb
WD
193342018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
19335
19336 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
19337 reduce_sincos, improve accuracy to 136 bits.
19338 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
19339 (__sin): Use improved reduction and simplified do_sincos calculation.
19340 (__cos): Likewise.
19341 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
19342
7a5640f2
WD
193432018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
19344
19345 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
19346 (do_sincos_2): Likewise.
19347 (__sin): Remove middle range reduction case.
19348 (__cos): Likewise.
19349 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
19350 reduction case.
19351
19a8b9a3
WD
193522018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
19353
19354 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
19355 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
19356 inputs.
19357 (__cos): Likewise.
19358 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
19359
f72aa11d
JM
193602018-04-03 Joseph Myers <joseph@codesourcery.com>
19361
19362 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
19a8b9a3 19363 version to 4.16
f72aa11d 19364
8e4754ed
AZ
193652018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19366
19367 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
19368 Remove definitions.
19369 (opendir_oflags): Use O_DIRECTORY regardless.
19370 (__opendir, __opendirat): Remove need_isdir_precheck usage.
19371 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
19372
8e2666ea
ST
193732018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
19374
19375 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
19376 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
19377 macros.
19378 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
19379 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
19380 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
19381 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
deed72f6
ST
19382 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
19383 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
8e2666ea 19384
ad2b41bf
ST
19385 * htl/Makefile: Bump licence to LGPL 2.1+.
19386 * htl/alloca_cutoff.c: Likewise.
19387 * htl/cthreads-compat.c: Likewise.
19388 * htl/lockfile.c: Likewise.
19389 * htl/pt-alloc.c: Likewise.
19390 * htl/pt-cancel.c: Likewise.
19391 * htl/pt-cleanup.c: Likewise.
19392 * htl/pt-create.c: Likewise.
19393 * htl/pt-dealloc.c: Likewise.
19394 * htl/pt-detach.c: Likewise.
19395 * htl/pt-exit.c: Likewise.
19396 * htl/pt-getattr.c: Likewise.
19397 * htl/pt-initialize.c: Likewise.
19398 * htl/pt-internal.h: Likewise.
19399 * htl/pt-join.c: Likewise.
19400 * htl/pt-self.c: Likewise.
19401 * htl/pt-setcancelstate.c: Likewise.
19402 * htl/pt-setcanceltype.c: Likewise.
19403 * htl/pt-sigmask.c: Likewise.
19404 * htl/pt-spin-inlines.c: Likewise.
19405 * htl/pt-testcancel.c: Likewise.
19406 * htl/pt-yield.c: Likewise.
19407 * htl/tests/test-1.c: Likewise.
19408 * htl/tests/test-10.c: Likewise.
19409 * htl/tests/test-11.c: Likewise.
19410 * htl/tests/test-12.c: Likewise.
19411 * htl/tests/test-13.c: Likewise.
19412 * htl/tests/test-14.c: Likewise.
19413 * htl/tests/test-15.c: Likewise.
19414 * htl/tests/test-16.c: Likewise.
19415 * htl/tests/test-17.c: Likewise.
19416 * htl/tests/test-2.c: Likewise.
19417 * htl/tests/test-3.c: Likewise.
19418 * htl/tests/test-4.c: Likewise.
19419 * htl/tests/test-5.c: Likewise.
19420 * htl/tests/test-6.c: Likewise.
19421 * htl/tests/test-7.c: Likewise.
19422 * htl/tests/test-8.c: Likewise.
19423 * htl/tests/test-9.c: Likewise.
19424 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
19425 * sysdeps/htl/bits/cancelation.h: Likewise.
19426 * sysdeps/htl/bits/pthread-np.h: Likewise.
19427 * sysdeps/htl/bits/pthread.h: Likewise.
19428 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
19429 * sysdeps/htl/bits/semaphore.h: Likewise.
19430 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
19431 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
19432 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
19433 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
19434 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
19435 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
19436 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
19437 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
19438 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
19439 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
19440 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
19441 * sysdeps/htl/old_pt-atfork.c: Likewise.
19442 * sysdeps/htl/pt-atfork.c: Likewise.
19443 * sysdeps/htl/pt-attr-destroy.c: Likewise.
19444 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
19445 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
19446 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
19447 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
19448 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
19449 * sysdeps/htl/pt-attr-getscope.c: Likewise.
19450 * sysdeps/htl/pt-attr-getstack.c: Likewise.
19451 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
19452 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
19453 * sysdeps/htl/pt-attr-init.c: Likewise.
19454 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
19455 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
19456 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
19457 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
19458 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
19459 * sysdeps/htl/pt-attr-setscope.c: Likewise.
19460 * sysdeps/htl/pt-attr-setstack.c: Likewise.
19461 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
19462 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
19463 * sysdeps/htl/pt-attr.c: Likewise.
19464 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
19465 * sysdeps/htl/pt-barrier-init.c: Likewise.
19466 * sysdeps/htl/pt-barrier-wait.c: Likewise.
19467 * sysdeps/htl/pt-barrier.c: Likewise.
19468 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
19469 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
19470 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
19471 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
19472 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
19473 * sysdeps/htl/pt-cond-destroy.c: Likewise.
19474 * sysdeps/htl/pt-cond-init.c: Likewise.
19475 * sysdeps/htl/pt-cond-signal.c: Likewise.
19476 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
19477 * sysdeps/htl/pt-cond-wait.c: Likewise.
19478 * sysdeps/htl/pt-cond.c: Likewise.
19479 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
19480 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
19481 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
19482 * sysdeps/htl/pt-condattr-init.c: Likewise.
19483 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
19484 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
19485 * sysdeps/htl/pt-destroy-specific.c: Likewise.
19486 * sysdeps/htl/pt-equal.c: Likewise.
19487 * sysdeps/htl/pt-getconcurrency.c: Likewise.
19488 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
19489 * sysdeps/htl/pt-getschedparam.c: Likewise.
19490 * sysdeps/htl/pt-getspecific.c: Likewise.
19491 * sysdeps/htl/pt-init-specific.c: Likewise.
19492 * sysdeps/htl/pt-key-create.c: Likewise.
19493 * sysdeps/htl/pt-key-delete.c: Likewise.
19494 * sysdeps/htl/pt-key.h: Likewise.
19495 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
19496 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
19497 * sysdeps/htl/pt-mutex-init.c: Likewise.
19498 * sysdeps/htl/pt-mutex-lock.c: Likewise.
19499 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
19500 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
19501 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
19502 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
19503 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
19504 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
19505 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
19506 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
19507 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
19508 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
19509 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
19510 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
19511 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
19512 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
19513 * sysdeps/htl/pt-mutexattr.c: Likewise.
19514 * sysdeps/htl/pt-once.c: Likewise.
19515 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
19516 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
19517 * sysdeps/htl/pt-rwlock-init.c: Likewise.
19518 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
19519 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
19520 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
19521 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
19522 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
19523 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
19524 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
19525 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
19526 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
19527 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
19528 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
19529 * sysdeps/htl/pt-setconcurrency.c: Likewise.
19530 * sysdeps/htl/pt-setschedparam.c: Likewise.
19531 * sysdeps/htl/pt-setschedprio.c: Likewise.
19532 * sysdeps/htl/pt-setspecific.c: Likewise.
19533 * sysdeps/htl/pt-spin.c: Likewise.
19534 * sysdeps/htl/pt-startup.c: Likewise.
19535 * sysdeps/htl/pthread.h: Likewise.
19536 * sysdeps/htl/sem-close.c: Likewise.
19537 * sysdeps/htl/sem-destroy.c: Likewise.
19538 * sysdeps/htl/sem-getvalue.c: Likewise.
19539 * sysdeps/htl/sem-init.c: Likewise.
19540 * sysdeps/htl/sem-open.c: Likewise.
19541 * sysdeps/htl/sem-post.c: Likewise.
19542 * sysdeps/htl/sem-timedwait.c: Likewise.
19543 * sysdeps/htl/sem-trywait.c: Likewise.
19544 * sysdeps/htl/sem-unlink.c: Likewise.
19545 * sysdeps/htl/sem-wait.c: Likewise.
19546 * sysdeps/hurd/htl/pt-kill.c: Likewise.
19547 * sysdeps/i386/htl/pt-machdep.h: Likewise.
19548 * sysdeps/mach/htl/pt-block.c: Likewise.
19549 * sysdeps/mach/htl/pt-spin.c: Likewise.
19550 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
19551 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
19552 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
19553 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
19554 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
19555 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
19556 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
19557 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
19558 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
19559 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
19560 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
19561 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
19562 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
19563 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
19564 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
19565 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
19566 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
19567 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
19568 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
19569 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
19570 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
19571 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
19572 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
19573 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
19574 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
19575 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
19576 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
19577 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
19578 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
19579 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
19580 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
19581 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
19582 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
19583 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
19584 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
19585 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
19586 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
19587 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
19588 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
19589 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
19590 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
19591 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
19592 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
19593
fb03b04b
ST
19594 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
19595 * README: Remove the mention of out-of-tree patches needed for
19596 GNU/Hurd.
19597
fa9e1555
ST
19598 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
19599 (UTIME_NOW, UTIME_OMIT): Define macros.
19600
f6fb29d2
ST
19601 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
19602 instead of pthread_detach.
19603 (__cthread_fork): Call __pthread_create instead of pthread_create.
19604 (__cthread_keycreate): Call __pthread_key_create instead of
19605 pthread_key_create.
19606 (__cthread_getspecific): Call __pthread_getspecific instead of
19607 pthread_getspecific.
19608 (__cthread_setspecific): Call __pthread_setspecific instead of
19609 pthread_setspecific.
19610 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
19611 __pthread_mutex_unlock instead of pthread_mutex_lock and
19612 pthread_mutex_unlock.
19613 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
19614 ___pthread_get_cleanup_stack.
19615 (__pthread_get_cleanup_stack): New strong alias.
19616 * htl/pt-create.c: Include <pthreadP.h>.
19617 (entry_point): Call __pthread_exit instead of pthread_exit.
19618 (pthread_create): Rename to __pthread_create.
19619 (pthread_create): New strong alias.
19620 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
19621 (pthread_detach): New strong alias.
19622 (__pthread_detach): Call __pthread_cond_broadcast instead of
19623 pthread_cond_broadcast.
fe9748cc
ST
19624 * htl/pt-exit.c: Include <pthreadP.h>.
19625 (__pthread_exit): Call __pthread_setcancelstate and
19626 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
19627 __pthread_get_cleanup_stack.
f6fb29d2
ST
19628 * htl/pt-testcancel.c: Include <pthreadP.h>.
19629 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
19630 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
19631 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
19632 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
19633 pthread_attr_getstacksize.
19634 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
19635 Rename to __pthread_attr_getstackaddr.
19636 (pthread_attr_getstackaddr): New strong alias.
19637 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
19638 Rename to __pthread_attr_getstacksize.
19639 (pthread_attr_getstacksize): New strong alias.
19640 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
19641 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
19642 (pthread_attr_setstack): New strong alias.
19643 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
19644 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
19645 pthread_attr_getstacksize, pthread_attr_setstacksize and
19646 pthread_attr_setstackaddr.
19647 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
19648 Rename to __pthread_attr_setstackaddr.
19649 (pthread_attr_setstackaddr): New strong alias.
19650 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
19651 Rename to __pthread_attr_setstacksize.
19652 (pthread_attr_setstacksize): New strong alias.
19653 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
19654 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
19655 pthread_exit.
19656 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
19657 (__pthread_key_create): New hidden def.
19658 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
19659 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
19660 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
19661 __pthread_exit, __pthread_key_create, __pthread_getspecific,
19662 __pthread_setspecific, __pthread_setcancelstate,
19663 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
19664 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
19665 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
19666 declarations.
19667 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
19668 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
19669 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
19670 (pthread_attr_setstackaddr): New strong alias.
19671 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
19672 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
19673 (pthread_attr_setstacksize): New strong alias.
19674 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
19675 (call_exit): Call __pthread_exit instead of pthread_exit.
19676 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
19677 (_pthread_mutex_init): New hidden definition.
19678 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
19679 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
19680 instead of pthread_attr_init and pthread_attr_setstack.
19681
dba2bdbe
ST
19682 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
19683 __vm_deallocate instead of vm_allocate and vm_deallocate.
19684 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
19685 setenv.
19686 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
19687 of geteuid.
19688 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
19689 strdup.
19690 * hurd/siginfo.c: Include <libioP.h>.
19691 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
19692 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
19693 munmap.
dba2bdbe
ST
19694 * mach/devstream.c: Include <libioP.h>.
19695 (dealloc_ref): Call __mach_port_deallocate instead of
19696 mach_port_deallocate.
19697 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
19698 Call __mach_port_deallocate instead of mach_port_deallocate.
19699 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
19700 pathconf.
19701 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
19702 munmap.
19703 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
19704 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
19705 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
19706 of munmap.
19707 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
19708 of close.
19709 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
19710 instead of sysconf.
19711 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
19712 __clock_gettime instead of clock_gettime.
19713 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
19714 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
19715 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
19716 * sysdeps/unix/bsd/stty.c (stty): Likewise.
19717 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
19718 tcgetattr.
19719 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
19720 __clock_gettime and __nanosleep instead of clock_gettime and
19721 nanosleep.
7a8f45e3
ST
19722 * hurd/catch-signal.c (hurd_catch_signal): Rename to
19723 __hurd_catch_signal.
19724 (hurd_catch_signal): New strong alias.
19725 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
19726 __hurd_catch_signal instead of hurd_catch_signal.
19727 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
19728 * hurd/hurdexec.c (_hurd_init): Add hidden def.
19729 * hurd/hurdinit.c (_hurd_init): Add hidden def.
19730 * hurd/hurdsig.c: Include <mach/mig_support.h>.
19731 (_hurd_thread_sigstate): Add hidden def.
19732 (_hurd_internal_post_signal): Use __mutex_unlock instead of
19733 mutex_unlock.
19734 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
19735 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
19736 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
19737 __hurd_file_name_path_lookup.
19738 (hurd_file_name_path_lookup): New strong alias.
19739 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
19740 hurd_file_name_path_lookup.
19741 * mach/errstring.c (mach_error_type): Add hidden def.
19742 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
19743 * mach/mutex-init.c (__mutex_init): Add hidden def.
19744 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
19745 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
19746 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
19747 * sysdeps/mach/hurd/getcwd.c
19748 (_hurd_canonicalize_directory_name_internal): Rename to
19749 __hurd_canonicalize_directory_name_internal.
19750 (_hurd_canonicalize_directory_name_internal): New strong alias.
19751 (__canonicalize_directory_name_internal, __getcwd): Call
19752 __hurd_canonicalize_directory_name_internal instead of
19753 _hurd_canonicalize_directory_name_internal.
19754 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
19755 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
19756 hidden defs.
19757 * sysdeps/hurd/include/hurd.h: New file.
19758 * sysdeps/hurd/include/hurd/fd.h: New file.
19759 * sysdeps/hurd/include/hurd/signal.h: New file.
19760 * sysdeps/mach/include/lock-intern.h: New file.
19761 * sysdeps/mach/include/mach.h: New file.
19762 * sysdeps/mach/include/mach/mig_support.h: New file.
19763 * sysdeps/mach/include/mach_error.h: New file.
a758c293
ST
19764 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
19765 prototype.
19766 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
19767 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
19768 _HEADER_H_HIDDEN_DEF macro.
19769 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
19770 _hurd_fd_error_signal): Add hidden prototype.
19771 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
19772 hidden def.
82dbf555
ST
19773 * libio/iolibio.h (_IO_puts): New hidden prototype.
19774 * libio/ioputs.c (_IO_puts): New hidden def.
171488a2
ST
19775 * sysdeps/mach/hurd/localplt.data: New file.
19776
33574c17 197772018-04-02 Agustina Arzille <avarzille@riseup.net>
b39d961c
TS
19778 Amos Jeffries <squid3@treenet.co.nz>
19779 David Michael <fedora.dm0@gmail.com>
19780 Marco Gerards <marco@gnu.org>
19781 Marcus Brinkmann <marcus@gnu.org>
19782 Neal H. Walfield <neal@gnu.org>
19783 Pino Toscano <toscano.pino@tiscali.it>
19784 Richard Braun <rbraun@sceen.net>
19785 Roland McGrath <roland@gnu.org>
19786 Samuel Thibault <samuel.thibault@ens-lyon.org>
19787 Thomas DiModica <ricinwich@yahoo.com>
19788 Thomas Schwinge <tschwinge@gnu.org>
33574c17
ST
19789
19790 * htl: New directory.
19791 * sysdeps/htl: New directory.
19792 * sysdeps/hurd/htl: New directory.
19793 * sysdeps/i386/htl: New directory.
19794 * sysdeps/mach/htl: New directory.
19795 * sysdeps/mach/hurd/htl: New directory.
19796 * sysdeps/mach/hurd/i386/htl: New directory.
19797 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
19798 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
19799 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
19800
03e2aa50
ST
198012018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
19802
19803 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
19804 signals in thread created for runing timers.
19805
1aa52ced
FW
198062018-04-01 Florian Weimer <fweimer@redhat.com>
19807
19808 * support/support_format_addrinfo.c (support_format_addrinfo):
19809 Include unknown error number in formatted result.
19810
4d76d3e5
FW
198112018-03-29 Florian Weimer <fweimer@redhat.com>
19812
19813 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
19814 capture SIGBUS.
19815
d39c0a45
AZ
198162018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19817
19818 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
19819 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
19820 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
19821 (__ASSUME_CLONE_BACKWARDS): Define.
19822
cc8a1620
JH
198232018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
19824
57408435 19825 [BZ #23024]
cc8a1620
JH
19826 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
19827 early when linux sentinel value is set.
19828
8bfd94d0
ST
198292018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
19830
19831 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
19832
f178e59f
AS
198332018-03-27 Andreas Schwab <schwab@suse.de>
19834
19835 [BZ #23005]
19836 * resolv/res_send.c (__res_context_send): Return ENOMEM if
19837 allocation of private copy of nsaddr_list fails.
19838
5f45f96a
JM
198392018-03-26 Joseph Myers <joseph@codesourcery.com>
19840
19841 [BZ #16552]
19842 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
19843 * sysdeps/unix/sysv/linux/umount.c: ... here.
19844 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
19845 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
19846 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
19847 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
19848 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
19849 * sysdeps/unix/sysv/linux/umount.S: Likewise.
19850 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
19851
3dfd23eb
AS
198522018-03-26 Andreas Schwab <schwab@suse.de>
19853
19854 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
19855 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
19856 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
19857 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
19858 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
19859 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
19860 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
19861 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
19862 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
19863 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
19864 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
19865 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
19866 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
19867 (R_RISCV_NUM): Define.
19868
fa97d2ab
ST
198692018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
19870
19871 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
19872 TLS declaration of errno.
37be82a0
ST
19873 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
19874 __libc_setup_tls.
19875 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
19876 (ARCH_SETUP_TLS): Likewise.
19877 * sysdeps/mach/hurd/libc-start.h: New file copied from
19878 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
978a6803
ST
19879 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
19880 instead of __libc_setup_tls.
37be82a0 19881 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
978a6803
ST
19882 __libc_setup_tls before initializing libpthread and running _hurd_init
19883 which starts the signal thread.
19884 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
19885 Declare function.
2d813d7b 19886 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
fa97d2ab 19887
b8114edd
L
198882018-03-24 H.J. Lu <hongjiu.lu@intel.com>
19889
19890 [BZ #22998]
19891 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
19892 after it is defined.
19893
cd66c0e5
AS
198942018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
19895 Max Horn <max@quendi.de>
19896
19897 [BZ #22644]
43d4f3d5 19898 CVE-2017-18269
cd66c0e5
AS
19899 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
19900 branch conditions.
19901 * string/test-memmove.c (do_test2): New testcase.
19902
a4406139
JM
199032018-03-22 Joseph Myers <joseph@codesourcery.com>
19904
19905 * sysdeps/generic/frame.h: Remove file.
19906 * sysdeps/arm/frame.h: Likewise.
19907 * sysdeps/hppa/frame.h: Likewise.
19908 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
19909 macro.
19910 (GET_FRAME): Likewise.
19911 (GET_STACK): Likewise.
19912 (CALL_SIGHANDLER): Likewise.
19913 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
19914 Likewise.
19915 (GET_FRAME): Likewise.
19916 (GET_STACK): Likewise.
19917 (CALL_SIGHANDLER): Likewise.
19918 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
19919 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19920 (GET_FRAME): Likewise.
19921 (GET_STACK): Likewise.
19922 (CALL_SIGHANDLER): Likewise.
19923 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
19924 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19925 (GET_FRAME): Likewise.
19926 (GET_STACK): Likewise.
19927 (ADVANCE_STACK_FRAME): Likewise.
19928 (CALL_SIGHANDLER): Likewise.
19929 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
19930 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19931 (GET_FRAME): Likewise.
19932 (GET_STACK): Likewise.
19933 (CALL_SIGHANDLER): Likewise.
19934 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
19935 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19936 (GET_FRAME): Likewise.
19937 (GET_STACK): Likewise.
19938 (CALL_SIGHANDLER): Likewise.
19939 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
19940 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19941 (GET_FRAME): Likewise.
19942 (GET_STACK): Likewise.
19943 (CALL_SIGHANDLER): Likewise.
19944 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
19945 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19946 (GET_FRAME): Likewise.
19947 (GET_STACK): Likewise.
19948 (CALL_SIGHANDLER): Likewise.
19949 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
19950 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19951 (GET_FRAME): Likewise.
19952 (GET_STACK): Likewise.
19953 (CALL_SIGHANDLER): Likewise.
19954 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
19955 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19956 (GET_FRAME): Likewise.
19957 (GET_STACK): Likewise.
19958 (CALL_SIGHANDLER): Likewise.
19959 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
19960 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19961 (GET_FRAME): Likewise.
19962 (GET_STACK): Likewise.
19963 (CALL_SIGHANDLER): Likewise.
19964 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
19965 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19966 (GET_FRAME): Likewise.
19967 (GET_STACK): Likewise.
19968 (CALL_SIGHANDLER): Likewise.
19969 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
19970 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19971 (GET_FRAME): Likewise.
19972 (GET_STACK): Likewise.
19973 (CALL_SIGHANDLER): Likewise.
19974 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
19975 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19976 (FIRST_FRAME_POINTER): Likewise.
19977 (ADVANCE_STACK_FRAME): Likewise.
19978 (GET_STACK): Likewise.
19979 (GET_FRAME): Likewise.
19980 (CALL_SIGHANDLER): Likewise.
19981 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
19982 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19983 (ADVANCE_STACK_FRAME): Likewise.
19984 (GET_STACK): Likewise.
19985 (GET_FRAME): Likewise.
19986 (CALL_SIGHANDLER): Likewise.
19987 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
19988 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19989 (GET_FRAME): Likewise.
19990 (GET_STACK): Likewise.
19991 (CALL_SIGHANDLER): Likewise.
19992 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
19993 (SIGCONTEXT_EXTRA_ARGS): Likewise.
19994 (GET_FRAME): Likewise.
19995 (GET_STACK): Likewise.
19996 (CALL_SIGHANDLER): Likewise.
19997
ffec7b27
JM
199982018-03-21 Joseph Myers <joseph@codesourcery.com>
19999
20000 * sysdeps/x86_64/backtrace.c: Move to ....
20001 * debug/backtrace.c: ... here.
20002 * sysdeps/aarch64/backtrace.c: Remove file.
20003 * sysdeps/alpha/backtrace.c: Likewise.
20004 * sysdeps/hppa/backtrace.c: Likewise.
20005 * sysdeps/ia64/backtrace.c: Likewise.
20006 * sysdeps/mips/backtrace.c: Likewise.
20007 * sysdeps/nios2/backtrace.c: Likewise.
20008 * sysdeps/riscv/backtrace.c: Likewise.
20009 * sysdeps/sh/backtrace.c: Likewise.
20010 * sysdeps/tile/backtrace.c: Likewise.
20011
8a07b0c4
JM
200122018-03-20 Joseph Myers <joseph@codesourcery.com>
20013
d0c5d731
JM
20014 [BZ #22987]
20015 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
20016 function.
20017 (fdimf): Likewise.
20018 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
20019
8a07b0c4
JM
20020 [BZ #17343]
20021 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
20022 possibly overflowing computations.
20023
ceb54b9b
ST
200242018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
20025
20026 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
20027 values from Linux-specific section now that it is in the GNU section.
20028 * sysdeps/gnu/errlist.c: Regenerate.
20029
8d3f9e85
JM
200302018-03-20 Joseph Myers <joseph@codesourcery.com>
20031
20032 * math/Makefile (libm-narrow-fns): Add sub.
20033 (libm-test-funcs-narrow): Likewise.
20034 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
20035 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
20036 * math/gen-auto-libm-tests.c (test_functions): Add sub.
20037 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
20038 (NARROW_SUB_ROUND_TO_ODD): Likewise.
20039 (NARROW_SUB_TRIVIAL): Likewise.
20040 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
20041 macro.
20042 (__dsubl): Likewise.
20043 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
20044 dsub.
20045 (CFLAGS-nldbl-dsub.c): New variable.
20046 (CFLAGS-nldbl-fsub.c): Likewise.
20047 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
20048 __nldbl_dsubl.
20049 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
20050 prototype.
20051 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
20052 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
20053 * math/auto-libm-test-in: Add tests of sub.
20054 * math/auto-libm-test-out-narrow-sub: New generated file.
20055 * math/libm-test-narrow-sub.inc: New file.
20056 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
20057 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
20058 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
20059 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
20060 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
20061 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
20062 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
20063 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
20064 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
20065 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
20066 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
20067 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
20068 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
20069 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
20070 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
20071 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
20072 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
20073 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
20074 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
20075 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
20076 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
20077 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
20078 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
20079 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
20080 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
20081 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
20082 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
20083 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
20084 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
20085 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
20086 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
20087 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
20088 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
20089 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
20090 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
20091 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
20092 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
20093 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
20094 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
20095 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
20096 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
20097 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
20098 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
20099 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
20100 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
20101 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
20102
d473f015
JM
201032018-03-19 Joseph Myers <joseph@codesourcery.com>
20104
20105 [BZ #20079]
20106 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
20107
fbce6f72
WD
201082018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
20109
20110 * benchtests/bench-timing.h (attribute_hidden): Undefine.
20111
72e7ffc3
RB
201122018-03-18 Richard Braun <rbraun@sceen.net>
20113
20114 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
20115 thread reference.
20116
542c20a1
AA
201172018-03-18 Agustina Arzille <avarzille@riseup.net>
20118
20119 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
20120 (__libc_cleanup_fct): Define function.
20121 (__libc_cleanup_region_start, __libc_cleanup_region_end,
20122 __libc_cleanup_end): Rewrite implementation using
20123 __attribute__ ((__cleanup__)).
20124 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
fb4cc8a0
AA
20125 * hurd/Makefile (routines): Add hurdlock.
20126 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
20127 interface.
20128 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
20129 * hurd/hurdpid.c: Include <lowlevellock.h>
20130 (_S_msg_proc_newids): Use lll_wait to synchronize.
20131 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
20132 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
20133 * mach/Makefile (lock-headers): Remove machine-lock.h.
20134 * mach/lock-intern.h: Include <lowlevellock.h> instead of
20135 <machine-lock.h>.
20136 (__spin_lock_t): New type.
20137 (__SPIN_LOCK_INITIALIZER): New macro.
20138 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
20139 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
20140 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
20141 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
20142 (__mutex_init): Initialize with lll.
20143 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
20144 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
20145 needing lll.
20146 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
20147 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
20148 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
20149 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
20150 (__setpgid): Use lll for synchronization.
20151 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
20152 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
20153 instead of <cthreads.h>.
20154 (_IO_lock_inexpensive): New macro
20155 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
20156 (__libc_lock_self0): New declaration.
20157 (__libc_lock_owner_self): New macro.
20158 (__libc_key_t): Remove type.
20159 (_LIBC_LOCK_INITIALIZER): New macro.
20160 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
20161 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
20162 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
20163 __libc_lock_define_initialized_recursive,
20164 __rtld_lock_define_initialized_recursive,
20165 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
20166 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
20167 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
20168 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
20169 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
20170 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
20171 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
20172 New macros.
20173 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
20174 * hurd/hurdlock.c: New file.
20175 * hurd/hurdlock.h: New file.
20176 * mach/lowlevellock.h: New file
542c20a1 20177
9a37922e
ST
201782018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
20179
20180 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
489999cc
ST
20181 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
20182 when opening a symlink with O_NOFOLLOW.
72103e73
ST
20183 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
20184 path when flags contains O_NOFOLLOW.
20185 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
20186 if flags contains O_DIRECTORY and the result is a directory.
aa218929
ST
20187 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
20188 oneself when the pointer given in D is nul (as set by ext2fs).
20bc801b
ST
20189 * sysdeps/mach/hurd/mlockall.c: New file.
20190 * sysdeps/mach/hurd/munlockall.c: New file.
9a37922e 20191
34e6a869
ST
201922018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
20193
20194 * hurd/hurdsig.c: Include <pthread.h>.
20195 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
20196 get the signal thread stack layout.
dc33bef3
ST
20197 * hurd/Makefile (headers): Remove threadvar.h.
20198 (inline-headers): Remove threadvar.h.
20199 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
20200 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
20201 __hurd_threadvar_max, __hurd_errno_location.
20202 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
20203 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
20204 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
20205 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
20206 unless TLS is not initialized yet, in which case we do not need a
20207 critical section yet anyway.
20208 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
20209 <machine-sp.h>.
20210 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
20211 declarations.
20212 (__hurd_threadvar_index): Remove enum.
20213 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
20214 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
20215 inlines.
20216 (__hurd_reply_port0): New variable declaration.
20217 (__hurd_local_reply_port): New macro.
20218 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
20219 (interrupted_reply_port_location): Add thread_t parameter. Use it
20220 with THREAD_TCB to access thread-local variables.
20221 (_hurdsig_abort_rpcs): Pass ss->thread to
20222 interrupted_reply_port_location.
20223 (_hurd_internal_post_signal): Likewise.
20224 (_hurdsig_init): Use presence of cthread_fork instead of
20225 __hurd_threadvar_stack_mask to start signal thread by hand.
20226 Remove signal thread threadvar initialization.
20227 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
20228 * hurd/sigunwind.c: Include <hurd/threadvar.h>
20229 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
20230 of threadvar.
20231 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
20232 __libc_lock_self0.
20233 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
20234 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
20235 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
20236 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
20237 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
20238 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
20239 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
20240 define variables.
20241 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
20242 <hurd/threadvar.h>.
20243 [IS_IN(rtld)] (rtld_errno): New variable.
20244 [IS_IN(rtld)] (__errno_location): New weak function.
20245 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
20246 * sysdeps/mach/hurd/errno.c: Remove file.
20247 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
20248 (__fork): Remove THREADVAR_SPACE macro and its use.
20249 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
20250 variable.
20251 (init): Do not initialize threadvar.
20252 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
20253 symbol.
20254 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
20255 __hurd_local_reply_port instead of threadvar.
20256 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
20257 _hurd_sigstate fields.
20258 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
20259 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
20260 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
20261 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
20262 instead of threadvar.
20263 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
20264 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
20265 (use_threadvar, global_reply_port): Remove variables.
20266 (__hurd_reply_port0): New variable.
20267 (__mig_get_reply_port): Use __hurd_local_reply_port and
20268 __hurd_reply_port0 instead of threadvar.
20269 (__mig_dealloc_reply_port): Likewise.
20270 (__mig_init): Do not initialize threadvar.
20271 * sysdeps/mach/hurd/profil.c: Fix comment.
c2fb08c7
ST
20272 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
20273 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
20274 cthread_keycreate, cthread_getspecific, cthread_setspecific to
20275 __cthread_fork, __cthread_detach, __pthread_getattr_np,
20276 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
20277 __cthread_setspecific.
20278 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
20279 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
20280 __cthread_t instead of cthread_fork, cthread_detach,
20281 pthread_getattr_np, pthread_attr_getstack.
20282 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
20283 __cthread_keycreate.
20284 (cthread_getspecific): Rename to __cthread_getspecific.
20285 (cthread_setspecific): Rename to __cthread_setspecific.
20286 (__libc_getspecific): Use __cthread_getspecific instead of
20287 cthread_getspecific.
20288 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
20289 __cthread_keycreate instead of cthread_keycreate.
20290 (__libc_setspecific): Use __cthread_setspecific instead of
20291 cthread_setspecific.
20292 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
20293 Likewise.
dd28d4ba
ST
20294 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
20295 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
20296 testing whether it is defined.
34e6a869 20297
f8baf2a2
ST
202982018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
20299
20300 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
20301 Define macro.
20302 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
20303 * sysdeps/mach/i386/thread_state.h
20304 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
20305 i386_THREAD_STATE.
20306 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
20307 i386_THREAD_STATE.
20308 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
20309
20310 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
20311 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
20312
20313 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
20314 macros.
20315 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
20316 descriptor instead of creating a new one.
20317 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
20318
20319 * mach/setup-thread.c: Include <ldsodefs.h>.
20320 (__mach_setup_thread): Call _dl_allocate_tls, pass
20321 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
20322 MACHINE_THREAD_STATE_FLAVOR, before getting
20323 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
20324 MACHINE_THREAD_STATE_FLAVOR with the result.
20325 * hurd/hurdfault.c (_hurdsig_fault_init): Call
20326 MACHINE_THREAD_STATE_FIX_NEW.
20327 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
20328 too. Add original thread parameter.
20329
34ba96b8
JM
203302018-03-16 Joseph Myers <joseph@codesourcery.com>
20331
5d75b75f
JM
20332 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
20333 Remove inline function.
20334
34ba96b8
JM
20335 * sysdeps/i386/fpu/libm-test-ulps: Update.
20336 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
20337
22679b2c
WD
203382018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
20339
20340 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
20341 commit.
20342
c429a8d8
JM
203432018-03-15 Joseph Myers <joseph@codesourcery.com>
20344
20345 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
20346 (__sincos_code): Remove define and undefine.
20347 [__FAST_MATH__] (__sincos): Remove inline function.
20348 [__FAST_MATH__] (__sincosf): Remove inline function.
20349 [__FAST_MATH__] (__sincosl): Remove inline function.
20350 (__atan2l): Remove inline functions.
20351 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
20352 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
20353 function.
20354 (floor): Remove inline function.
20355 (ceil): Likewise.
20356 [__FAST_MATH__] (__ldexp_code): Remove macro.
20357 [__FAST_MATH__] (ldexp): Remove inline function.
20358 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
20359 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
20360 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
20361 [__USE_ISOC99] (__lrint_code): Remove macro.
20362 [__USE_ISOC99] (__llrint_code): Likewise.
20363 [__USE_ISOC99] (lrintf): Remove inline function.
20364 [__USE_ISOC99] (lrint): Likewise.
20365 [__USE_ISOC99] (lrintl): Likewise.
20366 [__USE_ISOC99] (llrint): Likewise.
20367 [__USE_ISOC99] (llrintf): Likewise.
20368 [__USE_ISOC99] (llrintl): Likewise.
20369
700593fd
WD
203702018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
20371
20372 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
20373 (__ieee754_sqrtf): Remove.
20374 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
20375 (__ieee754_sqrtf): Remove.
20376 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
20377 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
20378 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
20379 (__ieee754_sqrtf): Remove.
20380 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
20381 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
20382 (sqrtf): Remove.
20383 (sqrtl): Remove.
20384 (__ieee754_sqrt): Remove.
20385 (__ieee754_sqrtf): Remove.
20386 (__ieee754_sqrtl): Remove.
20387 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
20388 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
20389 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
20390 (__ieee754_sqrtf): Remove.
20391 (__ieee754_sqrtl): Remove.
20392
f67a8147
WD
203932018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
20394
20395 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
20396 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
20397 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
20398 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
20399 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
20400 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
20401 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
20402 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
20403 Likewise.
20404 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
20405 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
20406 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
20407 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
20408 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
20409 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
20410 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
20411 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
20412 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
20413 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
20414 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
20415 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
20416 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
20417 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
20418 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
20419 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
20420 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
20421 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
20422 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
20423 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
20424 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
20425 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
20426 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
20427 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
20428 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
20429 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
20430 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
20431 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
20432 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
20433 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
20434 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
20435 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
20436 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
20437 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
20438 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
20439 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
20440 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
20441 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
20442 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
20443 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
20444
1294b189
WD
204452018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
20446
20447 * include/math.h (sqrt): Declare with asm redirect.
20448 (sqrtf): Likewise.
20449 (sqrtl): Likewise.
20450 (sqrtf128): Likewise.
20451 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
20452 nonlib and libnldbl with -fmath-errno.
20453 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
20454 * math/w_sqrt_template.c: Likewise.
20455 * math/w_sqrtf_compat.c: Likewise.
20456 * math/w_sqrtl_compat.c: Likewise.
20457 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
20458 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
20459 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
20460 complex.h.
20461
f1c8185d
WD
204622018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
20463
20464 * benchtests/Makefile: Define _ISOMAC.
20465 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
20466 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
20467 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
20468 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
20469 * benchtests/bench-timing.h: Define attribute_hidden.
20470
b47c3e76
SP
204712018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
20472
20473 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
20474 mov + lsr.
20475
ab74d59f 204762018-03-15 Rafał Lużyński <digitalfreak@lingonborough.com>
807fee29
RL
20477
20478 [BZ #22963]
20479 * localedata/locales/cs_CZ (mon): Rename to...
20480 (alt_mon): This.
20481 (mon): Import from CLDR (genitive case).
20482
ab74d59f 204832018-03-15 Rafał Lużyński <digitalfreak@lingonborough.com>
e7155a28
RL
20484
20485 [BZ #22937]
20486 * localedata/locales/el_CY (abmon): Rename to...
20487 (ab_alt_mon): This.
20488 (abmon): Import from CLDR (abbreviated genitive case).
20489 * localedata/locales/el_GR (abmon): Rename to...
20490 (ab_alt_mon): This.
20491 (abmon): Import from CLDR (abbreviated genitive case).
20492
ab74d59f 204932018-03-15 Rafał Lużyński <digitalfreak@lingonborough.com>
71d7b121
RL
20494
20495 [BZ #22932]
20496 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
20497
a00bffe8
RB
204982018-03-15 Robert Buj <robert.buj@gmail.com>
20499
20500 [BZ #22848]
20501 * localedata/locales/ca_ES (abmon): Rename to...
20502 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
20503 (mon): Rename to...
20504 (alt_mon): This.
20505 (abmon): Import from CLDR (genitive case, month names preceded by
20506 "de" or "d’").
20507 (mon): Likewise.
20508 (abday): Synchronize with CLDR.
20509 (d_t_fmt): Likewise.
20510 (d_fmt): Likewise.
20511 (am_pm): Likewise.
20512
20513 (LC_TIME): Improve indentation.
20514 (LC_TELEPHONE): Likewise.
20515 (LC_NAME): Likewise.
20516 (LC_ADDRESS): Likewise.
20517
f9555d73
JM
205182018-03-14 Joseph Myers <joseph@codesourcery.com>
20519
20520 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
20521 (lrintf): Remove definitions used only with old GCC.
20522 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
20523 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
20524 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
20525 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
20526 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
20527 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
20528 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
20529 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
20530 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
20531 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
20532 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
20533 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
20534 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
20535 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
20536 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
20537 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
20538 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
20539 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
20540 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
20541 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
20542 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
20543 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
20544 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
20545 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
20546 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
20547 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
20548 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
20549 [__FAST_MATH__] (__M_SQRT2): Remove macro.
20550
d46f84de
SP
205512018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
20552
20553 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
20554 instruction to unbreak builds with binutils 2.26 and older.
20555
7108f1f9
SP
205562018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
20557
20558 * sysdeps/aarch64/strncmp.S (count): New macro.
20559 (strncmp): Store misaligned length in SRC1 in COUNT.
20560 (mutual_align): Adjust.
20561 (misaligned8): Load dword at a time when it is safe.
20562
2cc7bad0
ZW
205632018-03-12 Zack Weinberg <zackw@panix.com>
20564
20565 [BZ #1190]
20566 [BZ #19476]
20567 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
20568 if the _IO_EOF_SEEN bit is already set; update commentary.
20569 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
20570 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
20571
20572 * support/support_openpty.c, support/tty.h: New files.
20573 * support/Makefile (libsupport-routines): Add support_openpty.
20574
20575 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
20576 New test cases.
20577 * libio/Makefile (tests): Add tst-fgetc-after-eof.
20578 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
20579
778f1974
DL
205802018-03-12 Dmitry V. Levin <ldv@altlinux.org>
20581
20582 * po/pt_BR.po: Update translations.
20583
6b5c8607 205842018-03-12 David Michael <fedora.dm0@gmail.com>
da6d4404
DM
20585
20586 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
20587 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
20588 get a port to the startup server.
20589
d3da750d
ZW
205902018-03-11 Zack Weinberg <zackw@panix.com>
20591
20592 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
20593 before nldbl-compat.h.
20594
054b72cc
ZW
205952018-03-10 Zack Weinberg <zackw@panix.com>
20596
0d13dfa1
ZW
20597 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
20598 math.h or math_private.h.
20599
20600 * sysdeps/alpha/fpu/s_isnan.c
20601 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
20602 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
20603 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
20604 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
20605 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
20606 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
20607 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
20608 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
20609 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
20610 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
20611 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
20612 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
20613 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
20614 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
20615 Include math_private.h.
20616
20617 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
20618 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
20619 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
20620 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
20621 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
20622 * sysdeps/powerpc/power7/fpu/s_logb.c:
20623 Include math.h and math_private.h.
20624
054b72cc
ZW
20625 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
20626 uses of $at in .set noat / .set at.
20627
6253bacd
L
206282018-03-10 H.J. Lu <hongjiu.lu@intel.com>
20629
20630 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
20631 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
20632 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
20633 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
20634 Likewise.
20635
229855e5
FW
206362018-03-09 Florian Weimer <fweimer@redhat.com>
20637
20638 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
20639 in comment.
20640
9aa5c222
AJ
206412018-03-09 Aurelien Jarno <aurelien@aurel32.net>
20642
20643 [BZ #22919]
20644 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
20645 Add nop before __startcontext, add explaining comments.
20646
3dc21497
AZ
206472018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20648
e921c89e
AZ
20649 [BZ #22926]
20650 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
20651 empty for __SPE__.
20652 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
20653 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
20654 Do not build hardware transactional code for __SPE__.
20655 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
20656 (__lll_trylock_elision): Likewise.
20657 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
20658 (__lll_unlock_elision): Likewise.
20659
d9f26dab 20660 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
3dc21497
AZ
20661 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
20662 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
20663 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
20664 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
20665 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
20666 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
20667 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
20668 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
20669 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
20670 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
20671 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
20672 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
20673 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
20674 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
20675 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
20676 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
20677 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
20678 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
20679 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
20680 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
20681 * sysdeps/unix/sysv/linux/arm/kernel-features.h
20682 (__ASSUME_CLONE_BACKWARDS): Define.
20683 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
20684 __clone2 if __NR_clone2 is defined.
20685 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
20686 (__ASSUME_CLONE_BACKWARDS): Likewise.
20687 * sysdeps/unix/sysv/linux/i386/kernel-features.h
20688 (__ASSUME_CLONE_BACKWARDS): Likewise.
20689 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
20690 (__ASSUME_CLONE2): Likewise.
20691 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
20692 (__ASSUME_CLONE_BACKWARDS3): Likewise.
20693 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
20694 variants and the define architecture can use.
20695 (__ASSUME_CLONE_DEFAULT): Define as default.
20696 * sysdeps/unix/sysv/linux/mips/kernel-features.h
20697 (__ASSUME_CLONE_BACKWARDS): Likewise.
20698 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
20699 (__ASSUME_CLONE_BACKWARDS): Likewise.
20700 * sysdeps/unix/sysv/linux/s390/kernel-features.h
20701 (__ASSUME_CLONE_BACKWARDS2): Likewise.
20702
adc95fb0
SP
207032018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
20704
4e54d918
SP
20705 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
20706
30a81dae
SP
20707 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
20708 time.
20709
adc95fb0
SP
20710 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
20711 (do_test_limit): Likewise.
20712
20713 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
20714 for every implementation.
20715 (do_test): Likewise.
20716
20717 * benchtests/bench-strncmp.c: Convert output to json.
20718
4e9066bc
ST
207192018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
20720
20721 * io/futimens.c: Add missing start-of-file descriptive comment.
20722 * io/utime.c: Likewise.
20723 * misc/futimesat.c: Likewise.
20724 * misc/utimes.c: Likewise.
20725 * sysdeps/mach/hurd/futimesat.c: Likewise.
20726 * sysdeps/mach/hurd/utimes.c: Likewise.
20727 * sysdeps/posix/utime.c: Likewise.
20728 * sysdeps/posix/utimes.c: Likewise.
20729 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
20730 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
20731 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
20732 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
20733
ec1300cf
ST
207342018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
20735
20736 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
20737 hurd_futimes.
20738 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
20739 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
20740 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
20741 (__futimens): Move implementation to...
20742 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
20743 utime_tvalue_from_tspec): ... new helper functions.
20744 (hurd_futimens): New function.
20745 * sysdeps/mach/hurd/futimesat.c: New file.
20746 * sysdeps/mach/hurd/utimensat.c: New file.
20747
bbe762d1
FC
207482018-03-05 Flávio Cruz <flaviocruz@gmail.com>
20749
20750 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
20751 UTIME_OMIT): New macros.
20752 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
20753 before reverting to converting time spec to time value and calling
20754 __file_utimes.
20755 * sysdeps/mach/hurd/utime-helper.c: New file.
20756 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
20757 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
20758 reverting to utime_tvalue_from_tval and __file_utimes.
20759 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
20760 (__lutimes): Just call hurd_futimens after lookup.
20761 * sysdeps/mach/hurd/utimes.c: Likewise.
20762
a1ede3a4
ST
207632018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
20764
20765 * bits/sigaction.h: Add include guard.
20766 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
20767 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
20768 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
20769 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
20770 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
20771 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
20772 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
20773 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
20774 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
20775
6900d2ca
JM
207762018-03-05 Joseph Myers <joseph@codesourcery.com>
20777
20778 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
20779 -Wmaybe-uninitialized for -Os.
20780 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
20781 this disabling.
20782
68448be2
AZ
207832018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20784
5226a81f
AZ
20785 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
20786 __INO_T_MATCHES_INO64_T is defined.
20787 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
20788 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
20789 of definition.
20790 * dirent/alphasort64.c: Likewise.
20791 * dirent/scandir.c: Likewise.
20792 * dirent/scandir64-tail.c: Likewise.
20793 * dirent/scandir64.c: Likewise.
20794 * dirent/scandirat.c: Likewise.
20795 * dirent/scandirat64.c: Likewise.
20796 * dirent/versionsort.c: Likewise.
20797 * dirent/versionsort64.c: Likewise.
20798 * include/dirent.h: Likewise.
20799
fbd01e6c
AZ
20800 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
20801 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
20802 for socketpair endpoint.
20803 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
20804 WRITE_BUFFER_SIZE as buffer size for sending socket.
20805 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
20806 issue on system where send is implemented with sendto syscall.
20807 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
20808 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
20809 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
20810 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
20811
68448be2
AZ
20812 [BZ #21269]
20813 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
20814 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
20815 sa_restorer for vDSO case.
20816 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
20817
eb1ca47e
ST
208182018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
20819
20820 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
e30c291a
ST
20821 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
20822 * hurd/hurd/ioctl.h: Include <mach/port.h>
20823 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
f4bff843
ST
20824 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
20825 <mach/mach_types.h> and <mach/message.h>.
430fd945
ST
20826 (headers): Move mach/param.h to bits/mach/param.h.
20827 * sysdeps/mach/i386/mach/param.h: Move file to ...
20828 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
20829 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
20830 of <mach/param.h>.
3403cb7d
ST
20831 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
20832 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
20833 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
48d34cbc
ST
20834 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
20835 trivial, for C++ conformity.
44c6376c 20836 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
95dfdbd2
ST
20837 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
20838 Process mig output through $(migheadersed).
20839 * hurd/Makefile (migheadersed): Define variable.
a726c87a
ST
20840 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
20841 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
20842 headers.
ba89615d
ST
20843 * hurd/hurd.h: Include <bits/types/sigset_t.h>
20844 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
20845 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
20846 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
20847 <bits/types/sigset_t.h>.
20848 [!defined __USE_GNU]: Do not #error out.
20849 (struct hurd_sigstate): Use _NSIG instead of NSIG.
20850 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
20851 Include <stddef.h> and <bits/types/sigset_t.h>
20852 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
20853 instead of sighandler_t.
974393ea
ST
20854 * stdlib/errno.h (error_t): Move definition to...
20855 * bits/types/error_t.h: ... new header.
20856 * stdlib/Makefile (headers): Add bits/types/error_t.h.
20857 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
20858 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
20859 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
20860 * hurd/hurd.h: Include <bits/types/error_t.h>
20861 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
20862 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
20863 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
20864 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
20865 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
20866 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
8d965cde 20867 * sysdeps/mach/hurd/futimens.c: New file.
eb1ca47e 20868
eaf6753f
AS
208692018-03-03 Andreas Schwab <schwab@linux-m68k.org>
20870
20871 [BZ #22918]
20872 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
20873 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
20874 * nscd/gai.c (__nss_hosts_database): Readd definition.
20875 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
20876 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
20877 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
20878
4dc23804
JM
208792018-03-02 Joseph Myers <joseph@codesourcery.com>
20880
20881 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
20882 (ifunc_one): Likewise.
20883
1c81d55f
DD
208842018-03-01 DJ Delorie <dj@delorie.com>
20885
20886 [BZ #22342]
20887 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
20888 key value.
20889
b717c14f
MR
208902018-03-01 Maciej W. Rozycki <macro@mips.com>
20891
20892 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
20893 `match_pid' parameter.
20894 (td_ta_thr_iter): Update accordingly.
20895
1efe1358
FW
208962018-03-01 Florian Weimer <fweimer@redhat.com>
20897
20898 * nptl/Makefile (install-lib-ldscripts): Remove.
20899 (install): Remove rule.
20900 ($(inst_libdir)/libpthread.so): Likewise.
20901
a527f09c
MF
209022018-03-01 Mike FABIAN <mfabian@redhat.com>
20903
20904 [BZ #22896]
20905 * localedata/locales/an_ES: update month and day names,
20906 improve d_fmt, improve postal_fmt, add country_post,
20907 add country_isbn
20908
35d660b0
MF
209092018-03-01 Mike FABIAN <mfabian@redhat.com>
20910
20911 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
20912 Ukrainian instead of Bulgarian.
20913
1a2f44a8
FW
209142018-03-01 Florian Weimer <fweimer@redhat.com>
20915
20916 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
20917 reference.
20918
bd60ce86
FW
209192018-03-01 Florian Weimer <fweimer@redhat.com>
20920
20921 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
20922 * nptl/Makefile (routines): Add pthread_atfork.
20923 (static-only-routines): Set to pthread_atfork.
20924 (libpthread-routines): Remove pthread_atfork.
20925 (libpthread-static-only-routines): Remove.
20926 (install): Update comment.
20927 (libpthread.so): Do not install libpthread_nonshared.a.
20928 (tests): Do not link with libpthread_nonshared.a.
20929 (generated): Remove libpthread_nonshared.a.
20930 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
20931 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
20932 with libpthread_nonshared.a.
20933
000f290f
JM
209342018-02-28 Joseph Myers <joseph@codesourcery.com>
20935
e2bcf6a8
JM
20936 [BZ #22902]
20937 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
20938 (libc_feholdexcept_setroundf128): New macro.
20939 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
20940
000f290f
JM
20941 [BZ #15105]
20942 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
20943 libc_hidden_def.
20944 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
20945 * include/inttypes.h: New file.
20946
02f2fead
JM
209472018-02-27 Joseph Myers <joseph@codesourcery.com>
20948
20949 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
20950 -Os in two more places.
20951
874c56d7
MF
209522018-02-27 Mike FABIAN <mfabian@redhat.com>
20953
20954 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
20955 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
20956 be sorted correctly at the moment because of a bug.
20957
15973854
MF
209582018-02-27 Mike FABIAN <mfabian@redhat.com>
20959
20960 [BZ #22550] - es_ES locale (and other es_* locales): collation should
20961 treat ñ as a primary different character, sync the collation
20962 for Spanish with CLDR.
20963 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
20964 * localedata/Makefile: Add new test files.
20965 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
20966 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
20967 collation order.
20968 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
20969 * localedata/am_ET.UTF-8.in: New test file.
20970 * localedata/az_AZ.UTF-8.in: Likewise.
20971 * localedata/be_BY.UTF-8.in: Likewise.
20972 * localedata/ber_DZ.UTF-8.in: Likewise.
20973 * localedata/ber_MA.UTF-8.in: Likewise.
20974 * localedata/bg_BG.UTF-8.in: Likewise.
20975 * localedata/br_FR.UTF-8.in: Likewise.
20976 * localedata/cmn_TW.UTF-8.in: Likewise.
20977 * localedata/crh_UA.UTF-8.in: Likewise.
20978 * localedata/csb_PL.UTF-8.in: Likewise.
20979 * localedata/cv_RU.UTF-8.in: Likewise.
20980 * localedata/cy_GB.UTF-8.in: Likewise.
20981 * localedata/dz_BT.UTF-8.in: Likewise.
20982 * localedata/eo.UTF-8.in: Likewise.
20983 * localedata/es_ES.UTF-8.in: Likewise.
20984 * localedata/fa_IR.UTF-8.in: Likewise.
20985 * localedata/fi_FI.UTF-8.in: Likewise.
20986 * localedata/fil_PH.UTF-8.in: Likewise.
20987 * localedata/fur_IT.UTF-8.in: Likewise.
20988 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
20989 * localedata/ha_NG.UTF-8.in: Likewise.
20990 * localedata/ig_NG.UTF-8.in: Likewise.
20991 * localedata/ik_CA.UTF-8.in: Likewise.
20992 * localedata/kk_KZ.UTF-8.in: Likewise.
20993 * localedata/ku_TR.UTF-8.in: Likewise.
20994 * localedata/ky_KG.UTF-8.in: Likewise.
20995 * localedata/ln_CD.UTF-8.in: Likewise.
20996 * localedata/mi_NZ.UTF-8.in: Likewise.
20997 * localedata/ml_IN.UTF-8.in: Likewise.
20998 * localedata/mn_MN.UTF-8.in: Likewise.
20999 * localedata/mr_IN.UTF-8.in: Likewise.
21000 * localedata/mt_MT.UTF-8.in: Likewise.
21001 * localedata/nb_NO.UTF-8.in: Likewise.
21002 * localedata/om_KE.UTF-8.in: Likewise.
21003 * localedata/os_RU.UTF-8.in: Likewise.
21004 * localedata/ps_AF.UTF-8.in: Likewise.
21005 * localedata/ro_RO.UTF-8.in: Likewise.
21006 * localedata/ru_RU.UTF-8.in: Likewise.
21007 * localedata/sc_IT.UTF-8.in: Likewise.
21008 * localedata/se_NO.UTF-8.in: Likewise.
21009 * localedata/sq_AL.UTF-8.in: Likewise.
21010 * localedata/sv_SE.UTF-8.in: Likewise.
21011 * localedata/szl_PL.UTF-8.in: Likewise.
21012 * localedata/tg_TJ.UTF-8.in: Likewise.
21013 * localedata/tk_TM.UTF-8.in: Likewise.
21014 * localedata/tt_RU.UTF-8.in: Likewise.
21015 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
21016 * localedata/ug_CN.UTF-8.in: Likewise.
21017 * localedata/uz_UZ.UTF-8.in: Likewise.
21018 * localedata/vi_VN.UTF-8.in: Likewise.
21019 * localedata/yi_US.UTF-8.in: Likewise.
21020 * localedata/yo_NG.UTF-8.in: Likewise.
21021 * localedata/zh_CN.UTF-8.in: Likewise.
21022 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
21023 file and fix bugs in the collation.
21024 * localedata/locales/az_AZ: Likewise.
21025 * localedata/locales/be_BY: Likewise.
21026 * localedata/locales/ber_DZ: Likewise.
21027 * localedata/locales/ber_MA: Likewise.
21028 * localedata/locales/bg_BG: Likewise.
21029 * localedata/locales/br_FR: Likewise.
21030 * localedata/locales/br_FR@euro: Likewise.
21031 * localedata/locales/ca_ES: Likewise.
21032 * localedata/locales/cns11643_stroke: Likewise.
21033 * localedata/locales/crh_UA: Likewise.
21034 * localedata/locales/cs_CZ: Likewise.
21035 * localedata/locales/csb_PL: Likewise.
21036 * localedata/locales/cv_RU: Likewise.
21037 * localedata/locales/cy_GB: Likewise.
21038 * localedata/locales/da_DK: Likewise.
21039 * localedata/locales/dz_BT: Likewise.
21040 * localedata/locales/en_CA: Likewise.
21041 * localedata/locales/eo: Likewise.
21042 * localedata/locales/es_CU: Likewise.
21043 * localedata/locales/es_EC: Likewise.
21044 * localedata/locales/es_ES: Likewise.
21045 * localedata/locales/es_US: Likewise.
21046 * localedata/locales/et_EE: Likewise.
21047 * localedata/locales/fa_IR: Likewise.
21048 * localedata/locales/fi_FI: Likewise.
21049 * localedata/locales/fil_PH: Likewise.
21050 * localedata/locales/fur_IT: Likewise.
21051 * localedata/locales/gez_ER@abegede: Likewise.
21052 * localedata/locales/ha_NG: Likewise.
21053 * localedata/locales/hr_HR: Likewise.
21054 * localedata/locales/hsb_DE: Likewise.
21055 * localedata/locales/hu_HU: Likewise.
21056 * localedata/locales/ig_NG: Likewise.
21057 * localedata/locales/ik_CA: Likewise.
21058 * localedata/locales/is_IS: Likewise.
21059 * localedata/locales/iso14651_t1_pinyin: Likewise.
21060 * localedata/locales/kk_KZ: Likewise.
21061 * localedata/locales/ku_TR: Likewise.
21062 * localedata/locales/ky_KG: Likewise.
21063 * localedata/locales/ln_CD: Likewise.
21064 * localedata/locales/lt_LT: Likewise.
21065 * localedata/locales/lv_LV: Likewise.
21066 * localedata/locales/mi_NZ: Likewise.
21067 * localedata/locales/ml_IN: Likewise.
21068 * localedata/locales/mn_MN: Likewise.
21069 * localedata/locales/mr_IN: Likewise.
21070 * localedata/locales/mt_MT: Likewise.
21071 * localedata/locales/nb_NO: Likewise.
21072 * localedata/locales/om_KE: Likewise.
21073 * localedata/locales/os_RU: Likewise.
21074 * localedata/locales/pl_PL: Likewise.
21075 * localedata/locales/ps_AF: Likewise.
21076 * localedata/locales/ro_RO: Likewise.
21077 * localedata/locales/ru_RU: Likewise.
21078 * localedata/locales/ru_UA: Likewise.
21079 * localedata/locales/sc_IT: Likewise.
21080 * localedata/locales/se_NO: Likewise.
21081 * localedata/locales/si_LK: Likewise.
21082 * localedata/locales/sq_AL: Likewise.
21083 * localedata/locales/sv_FI: Likewise.
21084 * localedata/locales/sv_FI@euro: Likewise.
21085 * localedata/locales/sv_SE: Likewise.
21086 * localedata/locales/szl_PL: Likewise.
21087 * localedata/locales/tg_TJ: Likewise.
21088 * localedata/locales/ti_ER: Likewise.
21089 * localedata/locales/tk_TM: Likewise.
21090 * localedata/locales/tl_PH: Likewise.
21091 * localedata/locales/tr_TR: Likewise.
21092 * localedata/locales/tt_RU: Likewise.
21093 * localedata/locales/tt_RU@iqtelif: Likewise.
21094 * localedata/locales/ug_CN: Likewise.
21095 * localedata/locales/uk_UA: Likewise.
21096 * localedata/locales/uz_UZ: Likewise.
21097 * localedata/locales/uz_UZ@cyrillic: Likewise.
21098 * localedata/locales/vi_VN: Likewise.
21099 * localedata/locales/yi_US: Likewise.
21100 * localedata/locales/yo_NG: Likewise.
21101
ce6636b0
MF
211022018-02-27 Mike FABIAN <mfabian@redhat.com>
21103
21104 * gen-locales.mk: Make test files which contain @ modifiers in their
21105 name work.
21106 * localedata/gen-locale.sh: Likewise.
21107
ac3a3b4b
MF
211082018-02-27 Mike FABIAN <mfabian@redhat.com>
21109
21110 * posix/tst-fnmatch.input: Fix results for range expressions
21111 for non C locales.
21112 * posix/tst-regexloc.c: Do not use a range expression for
21113 de_DE.ISO-8859-1 locale.
21114
770cbe14
MF
211152018-02-27 Mike FABIAN <mfabian@redhat.com>
21116
21117 * posix/bug-regex5.c: Fix test case because with the new
21118 iso14651_t1_common file, the da_DK locale now has 6 collating elements
21119 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
21120 file.
21121
0fc355d9
MF
211222018-02-27 Mike FABIAN <mfabian@redhat.com>
21123
21124 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
21125 downloaded from ISO, the collation order of @-. and space has changed.
21126 Therefore, this test file needed to be adapted.
21127 * localedata/fr_CA.UTF-8.in: Likewise.
21128 * localedata/fr_FR.UTF-8.in: Likewise.
21129 * localedata/uk_UA.UTF-8.in: Likewise.
21130
43f3893f
MF
211312018-02-27 Mike FABIAN <mfabian@redhat.com>
21132
21133 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
21134 order of ȥ in the new iso14651_t1_common file.
21135 * localedata/pl_PL.UTF-8.in: Likewise.
21136
df74ef78
MF
211372018-02-27 Mike FABIAN <mfabian@redhat.com>
21138
21139 * localedata/locales/iso14651_t1_common: Add sections for various
21140 scripts to the iso14651_t1_common file.
21141
d5adfbad
MF
211422018-02-27 Mike FABIAN <mfabian@redhat.com>
21143
21144 * localedata/locales/iso14651_t1_common: Use the code point of a
21145 character in the fourth collation level instead of IGNORE for all
21146 entries which have IGNORE on all 4 levels.
21147
5f5a9610
MF
211482018-02-27 Mike FABIAN <mfabian@redhat.com>
21149
21150 * localedata/locales/iso14651_t1_common: Add some convenient collation
21151 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
21152 rules similar to those in CLDR.
21153
8a97e900
MF
211542018-02-27 Mike FABIAN <mfabian@redhat.com>
21155
21156 * localedata/locales/iso14651_t1_common: The new version of this
21157 file downloaded from ISO contained several syntax errors which
21158 are fixed by this patch.
21159
bbdd2fba
MF
211602018-02-27 Mike FABIAN <mfabian@redhat.com>
21161
21162 * localedata/locales/iso14651_t1_common: replace all <U.....>
21163 with <U000.....> because glibc understands only 4 digit or 8 digit
21164
1569e551
MF
211652018-02-27 Mike FABIAN <mfabian@redhat.com>
21166
21167 * localedata/locales/iso14651_t1_common: Necessary changes
21168 to make the file downloaded from ISO usable by glibc.
21169
9479b6d5
MF
211702018-02-27 Mike FABIAN <mfabian@redhat.com>
21171
21172 [BZ #14095]
21173 * localedata/locales/iso14651_t1_common: Update file to
21174 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
21175
03b540b3
ST
211762018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
21177
21178 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
21179 of <nptl/pthreadP.h>
21180 (thread_attr_compare): Move function to...
eb937a52 21181 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
03b540b3 21182 * sysdeps/nptl/timer_routines.h: ... new header.
7211eba6 21183 * sysdeps/mach/hurd/gai_misc.h: New file.
03b540b3 21184
20602c72
JM
211852018-02-26 Joseph Myers <joseph@codesourcery.com>
21186
f54d8f73
JM
21187 * string/strcoll_l.c: Include <libc-diag.h>.
21188 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
21189 declarations of seq1 and seq2.
21190
20602c72
JM
21191 [BZ #15105]
21192 * stdlib/atoi.c (atoi): Use libc_hidden_def.
21193 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
21194
f5f473a9
DL
211952018-02-26 Dmitry V. Levin <ldv@altlinux.org>
21196
21197 [BZ #22433]
21198 [BZ #22807]
21199 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
21200 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
21201 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
21202 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
21203 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
21204 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
21205
398c6fdd
TMQMF
212062018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
21207
21208 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
21209 macros used in __ptrace_request.
21210
f5d1f629
L
212112018-02-23 H.J. Lu <hongjiu.lu@intel.com>
21212
21213 [BZ #22792]
21214 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
21215 to $(CC).
21216 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
21217 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
21218 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
21219 <tcb-offsets.h>.
21220
54412d20
JM
212212018-02-23 Joseph Myers <joseph@codesourcery.com>
21222
21223 [BZ #15105]
21224 * ctype/ctype.c (tolower): Use libc_hidden_def.
21225 (toupper): Likewise.
21226 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
21227 [!_ISOMAC] (toupper): Likewise.
21228
81be4b5e
MF
212292018-02-23 Mike FABIAN <mfabian@redhat.com>
21230
21231 * localedata/Makefile: Remove --quiet argument when
21232 installing locales
21233
9d5cfd8e
MF
212342018-02-23 Mike FABIAN <mfabian@redhat.com>
21235
21236 [BZ #17438]
21237 * localedata/locales/pt_BR (LC_TIME): use / instead of -
21238 in d_fmt.
21239 * localedata/locales/pt_PT (LC_TIME): likewise
21240
6c7269f3
MF
212412018-02-23 Mike FABIAN <mfabian@redhat.com>
21242
21243 [BZ #22646]
21244 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
21245 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
21246 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
21247
92aabad9
AZ
212482018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21249
4cdc25a4
AZ
21250 * sysdeps/sparc/fpu/libm-test-ulps: Update.
21251
27761a10
AZ
21252 * nptl/Makefile (routines): Remove unregister-atfork.
21253 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
21254 (fork_handler_alloc): Remove function.
21255 (fork_handlers, fork_handler_init): New variables.
21256 (__fork_lock): Rename to atfork_lock.
21257 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
21258 to use a dynamic array to add/remove atfork handlers.
21259 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
21260 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
21261 Remove declaration.
21262 (fork_handler): Remove next, refcntr, and need_signal member.
21263 (__run_fork_handler_type): New enum.
21264 (__run_fork_handlers): New prototype.
21265 * nptl/register-atfork.c: Remove file.
21266 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
21267
92aabad9
AZ
21268 * sysdeps/nptl/nptl-signals.h: Move to ...
21269 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
21270 comments.
21271 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
21272 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
21273 unnecessary check for SIGTIMER.
21274 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
21275 remove unnecessary removal of SIGTIMER.
21276 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
21277 include-signals.h rename.
21278 * nptl/pthreadP.h: Likewise.
21279 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
21280 __is_internal_signal instead of __nptl_is_internal_signal.
21281
6b5c8607 212822018-02-22 Andrew Waterman <andrew@sifive.com>
fdcc6253 21283
7e04eb29 21284 [BZ # 22884]
fdcc6253
AW
21285 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
21286 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
21287 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
21288 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
21289
8090720a
DD
212902018-02-22 DJ Delorie <dj@delorie.com>
21291
21292 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
21293
6ca24c43
SP
212942018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
21295
21296 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
21297 do_misaligned, not misaligned8.
21298
e9537ddd
SE
212992018-02-22 Steve Ellcey <sellcey@cavium.com>
21300
21301 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
21302 Add memcpy_thunderx2.
21303 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
21304 Increment to 4.
21305 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
21306 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
21307 and IS_THUNDERX2PA checks.
21308 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
21309 Use macro to set name appropriately.
21310 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
21311 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
21312 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
21313 New macro.
21314 (IS_THUNDERX2): New macro.
21315
6e336476
SL
213162018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
21317
21318 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
21319
34957904
ZW
213202018-02-21 Zack Weinberg <zackw@panix.com>
21321
30bfee26
ZW
21322 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
21323 Define here, unconditionally.
21324 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
21325 * libio/libioP.h: Remove #if 0 blocks.
21326 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
21327 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
21328 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
21329
21330 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
21331 Assume weak_alias is always defined.
21332
21333 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
21334 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
21335 Remove #if 0 and #ifdef TODO blocks.
21336 Assume text_set_element is always defined.
21337
21338 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
21339 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
21340 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
21341
df6c012b
ZW
21342 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
21343 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
21344 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
21345 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
21346 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
21347 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
21348 Reformat bit flags for _flags field to make occupancy clearer.
21349 Update commentary.
21350 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
21351 Keep definitions consistent with those in libio/libio.h.
21352
21353 * libio/libio.h (_IO_file_flags): Remove macro.
21354 All uses changed to _flags.
21355
177aad3f
ZW
21356 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
21357 (__HAVE_COLUMN, _IO_BE): Don't define.
21358 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
21359 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
21360 * libio/libioP.h (EOF): Don't define.
21361 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
21362 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
21363 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
21364 testing _IO_UNIFIED_JUMPTABLES.
21365
9964a145
ZW
21366 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
21367 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
21368 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
21369 (_IO_size_t): Delete; all uses changed to size_t.
21370 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
21371 (_IO_off_t): Delete; all uses changed to off_t.
21372 (_IO_off64_t): Delete; all uses changed to off64_t.
21373 (_IO_pid_t): Delete; all uses changed to pid_t.
21374 (_IO_uid_t): Delete; all uses changed to uid_t.
21375 (_IO_wint_t): Delete; all uses changed to wint_t.
21376 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
21377 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
21378 (_IO_cookie_io_functions_t): Delete; all uses changed to
21379 cookie_io_functions_t.
21380 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
21381 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
21382 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
21383 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
21384
21385 * libio/iofopncook.c: Remove unnecessary forward declarations.
21386 * libio/iolibio.h: Correct outdated commentary.
21387 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
21388 * stdio-common/fxprintf.c (__fxprintf_nocancel):
21389 Remove unnecessary casts.
21390 * stdio-common/getline.c: Use _IO_getdelim directly.
21391 Don't redefine ssize_t.
21392 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
21393 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
21394 Remove outdated comments.
21395 * stdio-common/vfscanf.c: Don't redefine va_list.
21396
34957904
ZW
21397 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
21398 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
21399 Remove preprocessor conditionals on _LIBC and __USE_GNU,
21400 which are always true, and __cplusplus, which is always false.
21401
30ac923d
JM
214022018-02-21 Joseph Myers <joseph@codesourcery.com>
21403
039c721a
JM
21404 [BZ #15105]
21405 [BZ #19463]
21406 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
21407 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
21408 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
21409 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
21410 libc_hidden_proto.
21411 [!_ISOMAC] (putc_unlocked): Likewise.
21412 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
21413 define inline if [__USE_EXTERN_INLINES].
21414 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
21415 putc_unlocked.
21416
30ac923d
JM
21417 [BZ #15105]
21418 [BZ #19463]
21419 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
21420 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
21421 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
21422 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
21423 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
21424 getc_unlocked.
21425 * time/tzfile.c (__tzfile_read): Likewise.
21426
7ec5f946
MF
214272018-02-21 Mike FABIAN <mfabian@redhat.com>
21428
21429 [BZ #22517]
21430 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
21431
0d217f40
RJ
214322018-02-21 Rical Jasan <ricaljasan@pacific.net>
21433
21434 * io/fcntl.h: Fix a typo in a comment.
21435
862b4502
RJ
214362018-02-21 Rical Jasan <ricaljasan@pacific.net>
21437
21438 [BZ #22862]
21439 * include/features.h: Add _ISOC11_SOURCE to test for whether to
21440 define _DEFAULT_SOURCE.
21441 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
21442
999a6dab
FW
214432018-02-21 Florian Weimer <fweimer@redhat.com>
21444
21445 [BZ #20890]
21446 * elf/cache.c (save_cache): Call fsync on temporary file before
21447 renaming it.
21448 (save_aux_cache): Call fdatasync on temporary file before renaming
21449 it.
21450
52a01100
FW
214512018-02-21 Florian Weimer <fweimer@redhat.com>
21452
21453 [BZ #22787]
21454 * include/caller.h: Remove file.
21455 * elf/dl-caller.c: Likewise.
21456 * elf/Makefile (dl-routines): Remove dl-caller.
21457 (shared-only-routines): Do not add dl-caller.
21458 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
21459 __check_caller.
21460 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
21461 member.
21462 (dl_open_worker): Do not call __check_caller.
21463 (_dl_open): Do not set caller_dl_open member.
21464 * elf/rtld.c (_rtld_global_ro): Do not initialize
21465 _dl_check_caller member.
21466 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
21467 _dl_check_caller member.
21468 (_dl_check_caller): Remove declaration.
21469 * sysdeps/unix/sysv/linux/dl-execstack.c
21470 (_dl_make_stack_executable): Do not call __check_caller.
21471
b5bf62e4
ST
214722018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
21473
21474 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
315304d2 21475 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
b5bf62e4 21476
e8d190b9
RJ
214772018-02-20 Rical Jasan <ricaljasan@pacific.net>
21478
21479 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
21480 description.
21481
6a3962c4
RJ
214822018-02-20 Rical Jasan <ricaljasan@pacific.net>
21483
da81ae64 21484 [BZ #16335]
6a3962c4
RJ
21485 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
21486 of 199606L, 200112L, and 200809L.
21487 (_XOPEN_SOURCE): Document special values of 600 and 700.
21488 (_ISOC11_SOURCE): Document macro.
21489 (_ATFILE_SOURCE): Likewise.
21490 (_FORTIFY_SOURCE): Likewise.
21491
ec481ad8
JM
214922018-02-19 Joseph Myers <joseph@codesourcery.com>
21493
21494 [BZ #15105]
21495 [BZ #19463]
21496 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
21497 and define as weak alias of __ferror_unlocked. Use
21498 libc_hidden_weak.
21499 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
21500 libc_hidden_proto.
21501 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
21502 function if [__USE_EXTERN_INLINES].
21503 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
21504 ferror_unlocked.
21505
7d15ef84
RJ
215062018-02-19 Rical Jasan <ricaljasan@pacific.net>
21507
21508 [BZ #6889]
21509 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
21510
f8d79582
AJ
215112018-02-18 Aurelien Jarno <aurelien@aurel32.net>
21512
21513 [BZ #22818]
21514 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
21515 the GLIBC_2.1 version.
21516
56456a2a
AJ
215172018-02-18 Aurelien Jarno <aurelien@aurel32.net>
21518
21519 [BZ #21508]
21520 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
21521 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
21522 intl/tst-gettext-de.po from po/de.po by removing the
21523 POT-Creation-Date line.
21524 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
21525 ../po/de.po.
21526 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
21527 ../po/de.po.
21528
13768813
ST
215292018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
21530
21531 * mach/Makefile (headers): Add mach/param.h.
21532 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
21533 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
dd1efd8c
ST
21534 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
21535 (__ptsname_r): Move implementation to...
21536 (__ptsname_internal): ... new function. Add filling the STP
21537 structure.
13768813 21538
6aca1b61
JDA
215392018-02-17 John David Anglin <danglin@gcc.gnu.org>
21540
21541 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
21542 idouble to 1 ULP.
21543
16efad51
RJ
215442018-02-16 Rical Jasan <ricaljasan@pacific.net>
21545
21546 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
21547 syntax.
21548
87245073
SL
215492018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
21550
21551 * nptl/Makefile (tst-mutex8-ENV): Delete.
21552 * nptl/tst-mutex8.c (check_type):
21553 Add runtime check if mutex will be elided.
21554
7fc03cf3
JM
215552018-02-15 Joseph Myers <joseph@codesourcery.com>
21556
db9881ec
JM
21557 [BZ #20980]
21558 [BZ #21234]
21559 * manual/install.texi (Configuring and compiling): Describe
21560 passing CC and CFLAGS on configure command line, not as
21561 environment variables. Use @code markup on those variables.
21562 Specify what options go in CC and what go in CFLAGS. Note the
21563 requirement to compile with optimization.
21564 * INSTALL: Regenerated.
21565
3785b31c
JM
21566 [BZ #18124]
21567 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
21568 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
21569 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
21570 __sigprocmask instead of sigprocmask.
21571 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
21572 Likewise.
21573 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
21574 __sigsetjmp and sigprocmask.
21575
055ac2a7
JM
21576 [BZ #15105]
21577 * include/argz.h (argz_next): Use libc_hidden_proto.
21578 (__argz_next): Likewise.
21579 * string-argz-next.c (__argz_next): Use libc_hidden_def.
21580 (argz_next): Use libc_hidden_weak.
21581
e4452a2d
JM
21582 [BZ #15105]
21583 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
21584 libc_hidden_proto.
21585 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
21586 libc_hidden_def.
21587
499b3153
JM
21588 [BZ #15105]
21589 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
21590 libc_hidden_proto.
21591 * libio/iofputs.c (fputs): Use libc_hidden_weak.
21592
7fc03cf3
JM
21593 [BZ #15105]
21594 [BZ #19463]
21595 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
21596 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
21597 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
21598 (__feof_unlocked): New declaration, and inline function if
21599 [__USE_EXTERN_INLINES].
21600 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
21601 instead of feof_unlocked.
21602 * intl/localealias.c [_LIBC] (FEOF): Likewise.
21603 * nss/nsswitch.c (nss_parse_file): Likewise.
21604 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
21605 Likewise.
21606 * time/getdate.c (__getdate_r): Likewise.
21607 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
21608 Define as macro to call __feof_unlocked.
21609
0c8a67a5
WD
216102018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
21611
21612 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
21613
610ee1fc
WD
216142018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
21615
21616 * math/Makefile: Remove mpexp.c and mplog.c
21617 * sysdeps/i386/fpu/mpexp.c: Delete file.
21618 * sysdeps/i386/fpu/mplog.c: Likewise.
21619 * sysdeps/ia64/fpu/mpexp.c: Likewise.
21620 * sysdeps/ia64/fpu/mplog.c: Likewise.
21621 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
21622 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
21623 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
21624 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
21625 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
21626 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
21627 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
21628 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
21629 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
21630 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
21631 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
21632 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
21633 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
21634 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
21635 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
21636 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
21637
8e7196c8
SL
216382018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
21639
21640 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
21641
4f55ad0b
AZ
216422018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21643
21644 * sysdeps/sh/libm-test-ulps: Update.
21645
261a851c
TMQMF
216462018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
21647
21648 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
21649 idouble to 1 ULP.
21650
e16deca6
ZW
216512018-02-12 Zack Weinberg <zackw@panix.com>
21652
21653 [BZ #19239]
21654 * posix/sys/types.h: Don't include sys/sysmacros.h.
21655 * misc/sys/sysmacros.h: Remove the conditional deprecation
21656 warnings for the macros defined by this header.
21657
de800d83
SN
216582018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
21659
21660 * manual/probes.texi: Remove slowexp probes.
21661 * math/Makefile: Remove slowexp.
21662 * sysdeps/generic/math_private.h (__slowexp): Remove.
21663 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
21664 document error bounds.
21665 * sysdeps/i386/fpu/slowexp.c: Remove.
21666 * sysdeps/ia64/fpu/slowexp.c: Remove.
21667 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
21668 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
21669 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
21670 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
21671 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
21672 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
21673 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
21674 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
21675 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
21676 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
21677 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
21678
c3d466cb
WD
216792018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
21680
21681 [BZ #13932]
21682 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
21683 * benchtests/pow-inputs: Update comment for slow path cases.
21684 * manual/probes.texi (slowpow_p10): Delete removed probe.
21685 (slowpow_p10): Likewise.
21686 * math/Makefile: Remove halfulp.c and slowpow.c.
21687 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
21688 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
21689 (__halfulp): Remove.
21690 (__slowpow): Remove.
21691 * sysdeps/i386/fpu/halfulp.c: Delete file.
21692 * sysdeps/i386/fpu/slowpow.c: Likewise.
21693 * sysdeps/ia64/fpu/halfulp.c: Likewise.
21694 * sysdeps/ia64/fpu/slowpow.c: Likewise.
21695 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
21696 improve comments and add error analysis.
21697 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
21698 (power1): Remove function:
21699 (log1): Remove error argument, add error analysis.
21700 (my_log2): Remove function.
21701 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
21702 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
21703 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
21704 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
21705 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
21706 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
21707 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
21708 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
21709 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
21710 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
21711 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
21712 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
21713 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
21714 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
21715
7bb087bd
ST
217162018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
21717
21718 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
21719 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
21720
2fd4bbaa
DL
217212018-02-10 Dmitry V. Levin <ldv@altlinux.org>
21722
21723 [BZ #22433]
21724 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
21725 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
21726 and PTRACE_SETHBPREGS.
21727
402ecba4
ZW
217282018-02-10 Zack Weinberg <zackw@panix.com>
21729
21730 [BZ #22830]
21731 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
21732 correctly.
21733 * malloc/tst-malloc-stats-cancellation.c: New test case.
21734 * malloc/Makefile: Add new test case.
21735
4f5b921e
WD
217362018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
21737
21738 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
21739
a85b70db
JM
217402018-02-10 Joseph Myers <joseph@codesourcery.com>
21741
d8742dd8
JM
21742 * math/Makefile (libm-narrow-fns): Add add.
21743 (libm-test-funcs-narrow): Likewise.
21744 * math/Versions (GLIBC_2.28): Add narrowing add functions.
21745 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
21746 * math/gen-auto-libm-tests.c (test_functions): Add add.
21747 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
21748 (NARROW_ADD_ROUND_TO_ODD): Likewise.
21749 (NARROW_ADD_TRIVIAL): Likewise.
21750 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
21751 macro.
21752 (__daddl): Likewise.
21753 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
21754 dadd.
21755 (CFLAGS-nldbl-dadd.c): New variable.
21756 (CFLAGS-nldbl-fadd.c): Likewise.
21757 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
21758 __nldbl_daddl.
21759 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
21760 prototype.
21761 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
21762 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
21763 * math/auto-libm-test-in: Add tests of add.
21764 * math/auto-libm-test-out-narrow-add: New generated file.
21765 * math/libm-test-narrow-add.inc: New file.
21766 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
21767 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
21768 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
21769 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
21770 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
21771 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
21772 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
21773 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
21774 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
21775 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
21776 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
21777 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
21778 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
21779 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
21780 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
21781 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
21782 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
21783 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
21784 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
21785 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
21786 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21787 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21788 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
21789 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
21790 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21791 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21792 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
21793 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
21794 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
21795 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
21796 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21797 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
21798 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
21799 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
21800 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
21801 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
21802 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
21803 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21804 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21805 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
21806 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21807 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21808 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
21809 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
21810 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21811 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21812
a85b70db
JM
21813 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
21814 (f128-pairs): New variable.
21815 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
21816 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
21817 to CFLAGS.
21818 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
21819 Also make tests add $(f128-loader-link) to gnulib-tests.
21820
6a1ff640
DD
218212018-02-09 DJ Delorie <dj@redhat.com>
21822
21823 [BZ #22827]
21824 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
21825 64-bit ELF type for 64-bit ELF objects.
21826
bfd47587
JM
218272018-02-09 Joseph Myers <joseph@codesourcery.com>
21828
31958338
JM
21829 * math/libm-test-driver.c (snan_tests_arg): New variable.
21830 * math/libm-test-support.h (snan_tests_arg): New declaration.
21831 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
21832
8e554659
JM
21833 * math/Makefile (test-type-pairs): New variable.
21834 (test-type-pairs-f64xf128-yes): Likewise.
21835 (tests): Add test-narrow-macros.
21836 (libm-test-funcs-narrow): New variable.
21837 (libm-test-c-narrow): Likewise.
21838 (generated): Add $(libm-test-c-narrow).
21839 (libm-tests-base-narrow): New variable.
21840 (libm-tests-narrow): Likewise.
21841 (libm-tests): Add $(libm-tests-narrow).
21842 (libm-tests-for-type): Handle $(libm-tests-narrow).
21843 (libm-test-c-narrow-obj): New variable.
21844 ($(libm-test-c-narrow-obj)): New rule.
21845 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
21846 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
21847 $(o-iterator) to set dependencies and CFLAGS.
21848 * math/gen-auto-libm-tests.c: Document use for narrowing
21849 functions.
21850 (output_for_one_input_case): Take argument NARROW.
21851 (generate_output): Likewise. Update call to
21852 output_for_one_input_case.
21853 (main): Take --narrow option. Update call to generate_output.
21854 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
21855 (apply_lit): Update call to _apply_lit.
21856 (apply_arglit): New function.
21857 (parse_args): Handle "a" arguments.
21858 (parse_auto_input): Handle format names using ":".
21859 * math/README.libm-test: Document "a" parameter type.
21860 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
21861 (ARG_TYPE_TRUE_MIN): Likewise.
21862 (ARG_TYPE_MAX): Likwise.
21863 (ARG_MIN_EXP): Likewise.
21864 (ARG_MAX_EXP): Likewise.
21865 (ARG_MANT_DIG): Likewise.
21866 (TEST_COND_arg_ibm128): Likewise.
21867 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
21868 (TEST_COND_arg_fmt): New macro.
21869 (init_max_error): Update prototype.
21870 * math/libm-test-support.c (test_ibm128): New variable.
21871 (init_max_error): Take argument testing_ibm128 and set test_ibm128
21872 instead of using [TEST_COND_ibm128] conditional.
21873 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
21874 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
21875 [TEST_NARROW] (TEST_MSG): New definition.
21876 (arg_plus_zero): New macro.
21877 (arg_minus_zero): Likewise.
21878 (arg_plus_infty): Likewise.
21879 (arg_minus_infty): Likewise.
21880 (arg_qnan_value_pl): Likewise.
21881 (arg_qnan_value): Likewise.
21882 (arg_snan_value_pl): Likewise.
21883 (arg_snan_value): Likewise.
21884 (arg_max_value): Likewise.
21885 (arg_min_value): Likewise.
21886 (arg_min_subnorm_value): Likewise.
21887 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
21888 (RUN_TEST_LOOP_aa_f): New macro.
21889 (TEST_SUFF): New macro.
21890 (TEST_SUFF_STR): Likewise.
21891 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
21892 (TEST_COND_any_ibm128): New macro.
21893 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
21894 this_func. Update call to init_max_error.
21895 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
21896 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
21897 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
21898 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
21899 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
21900 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
21901 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
21902 * math/test-math-scalar.h (TEST_NARROW): Likewise.
21903 * math/test-math-vector.h (TEST_NARROW): Likewise.
21904 * math/test-arg-double.h: New file.
21905 * math/test-arg-float128.h: Likewise.
21906 * math/test-arg-float32x.h: Likewise.
21907 * math/test-arg-float64.h: Likewise.
21908 * math/test-arg-float64x.h: Likewise.
21909 * math/test-arg-ldouble.h: Likewise.
21910 * math/test-math-narrow.h: Likewise.
21911 * math/test-narrow-macros.c: Likewise.
21912 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
21913 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
21914 test-narrow-macros-ldbl-64.
21915 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
21916
63716ab2
JM
21917 * math/bits/mathcalls-narrow.h: New file.
21918 * include/bits/mathcalls-narrow.h: Likewise.
21919 * math/math-narrow.h: Likewise.
21920 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
21921 (__MATHCALL_NARROW_ARGS_2): Likewise.
21922 (__MATHCALL_NARROW_ARGS_3): Likewise.
21923 (__MATHCALL_NARROW_NORMAL): Likewise.
21924 (__MATHCALL_NARROW_REDIR): Likewise.
21925 (__MATHCALL_NARROW): Likewise.
21926 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
21927 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
21928 defined.
21929 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
21930 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
21931 (libm-narrow-fns): New variable.
21932 (libm-narrow-types-basic): Likewise.
21933 (libm-narrow-types-ldouble-yes): Likewise.
21934 (libm-narrow-types-float128-yes): Likewise.
21935 (libm-narrow-types-float128-alias-yes): Likewise.
21936 (libm-narrow-types): Likewise.
21937 (libm-routines): Add narrowing functions.
21938 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
21939 (libc_feholdexcept_setroundf128): New macro.
21940 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
21941 * sysdeps/ieee754/float128/float128_private.h: Include
21942 <math/math-narrow.h>.
21943 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
21944 Undefine and redefine.
21945 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
21946 (libm_alias_float_ldouble): Undefine and redefine.
21947 (libm_alias_double_ldouble): Likewise.
21948
bfd47587
JM
21949 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
21950
3f8d9d58
WD
219512018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
21952
21953 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
21954 FPCR/FPSR.
21955
1f6676d7
RJ
219562018-02-09 Rical Jasan <ricaljasan@pacific.net>
21957
21958 * manual/creature.texi: Convert references to gcc.info to gcc.
21959 * manual/stdio.texi: Likewise.
21960 * manual/string.texi: Likewise.
21961
d80441dd
JM
219622018-02-07 Joseph Myers <joseph@codesourcery.com>
21963
15081be9
JM
21964 [BZ #17979]
21965 * posix/bits/types.h (__int_least8_t): New typedef.
21966 (__uint_least8_t): Likewise.
21967 (__int_least16_t): Likewise.
21968 (__uint_least16_t): Likewise.
21969 (__int_least32_t): Likewise.
21970 (__uint_least32_t): Likewise.
21971 (__int_least64_t): Likewise.
21972 (__uint_least64_t): Likewise.
21973 * sysdeps/generic/stdint.h (int_least8_t): Define using
21974 __int_least8_t.
21975 (int_least16_t): Define using __int_least16_t.
21976 (int_least32_t): Define using __int_least32_t.
21977 (int_least64_t): Define using __int_least64_t.
21978 (uint_least8_t): Define using __uint_least8_t.
21979 (uint_least16_t): Define using __uint_least16_t.
21980 (uint_least32_t): Define using __uint_least32_t.
21981 (uint_least64_t): Define using __uint_least64_t.
21982 * wcsmbs/uchar.h: Include <bits/types.h>.
21983 (char16_t): Define using __uint_least16_t conditional only on
21984 [!__USE_ISOCXX11].
21985 (char32_t): Define using __uint_least32_t conditional only on
21986 [!__USE_ISOCXX11].
21987 * wcsmbs/test-char-types.c: New file.
21988 * wcsmbs/Makefile (tests): Add test-char-types.
21989
d80441dd
JM
21990 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
21991 version to 4.0.1.
21992
6c6c962a
ZW
219932018-02-07 Zack Weinberg <zackw@panix.com>
21994
63fb8f9a
ZW
21995 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
21996 Delete all contents except for definitions of _G_HAVE_MMAP and
21997 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
21998 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
21999 sysdeps/unix/sysv/linux/_G_config.h. Make same content
22000 change as above.
22001
22002 * libio/libio.h: Don't include bits/_G_config.h here.
22003 Include stddef.h with __need_wchar_t defined. Include
22004 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
22005 Define _IO_iconv_t here, directly.
22006 Don't define _IO_HAVE_ST_BLKSIZE.
22007 * libio/libioP.h: Include _G_config.h here. Move include of
22008 shlib-compat.h up with rest of includes. Simplify conditionals
22009 controlling definition of _IO_JUMPS_OFFSET.
22010
22011 * csu/init.c: Remove always-true #if around entire file.
22012 Don't include stdio.h. Set _IO_stdin_used to hardwired
22013 constant 0x20001, and update commentary.
22014 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
22015 Replace all uses of _G_va_list with __gnuc_va_list.
22016 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
22017 instead of #if _IO_HAVE_ST_BLKSIZE.
22018 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
22019 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
22020 not #ifdef.
22021
6c6c962a
ZW
22022 * libio/bits/libio.h: Move back to libio/libio.h and adjust
22023 multiple-include guard to match.
22024 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
22025 into this file.
22026 Remove preprocessor conditionals that are always true and/or
22027 redundant to other preprocessor conditionals in the same nest.
22028 Include shlib-compat.h unconditionally.
22029 Error out if _LIBC is not defined, or if _ISOMAC is defined,
22030 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
22031 defined after including stdio.h.
22032 Use __BEGIN_DECLS/__END_DECLS.
22033
22034 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
22035 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
22036 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
22037
a4fea3f2
ZW
220382018-02-07 Zack Weinberg <zackw@panix.com>
22039
22040 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
22041 New single-type headers split from _G_config.h.
22042 * libio/bits/types/cookie_io_functions_t.h
22043 * libio/bits/types/struct_FILE.h
22044 New single-type headers split from libio.h.
22045
22046 * libio/Makefile: Install the above new headers. Don't install
22047 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
22048 bits/libio-ldbl.h.
22049 * libio/_G_config.h, libio/libio.h: Delete file.
22050
22051 * libio/bits/libio.h: Remove improper-inclusion guard.
22052 Include stdio.h and don't repeat anything that it does.
22053 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
22054 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
22055 __io_read_fn as cookie_read_function_t,
22056 __io_write_fn as cookie_write_function_t,
22057 __io_seek_fn as cookie_seek_function_t,
22058 __io_close_fn as cookie_close_function_t,
22059 and _IO_cookie_io_functions_t as cookie_io_functions_t.
22060 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
22061 here, in the "compatibility defines" section. Remove an #if 0
6c6c962a 22062 block. Use the "body" macros from bits/types/struct_FILE.h to
a4fea3f2
ZW
22063 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
22064 and _IO_ferror_unlocked.
22065 Move prototypes of __uflow and __overflow...
22066
22067 * libio/stdio.h: ...here. Don't include bits/libio.h.
22068 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
6c6c962a 22069 directly from stdarg.h. Include bits/types/__fpos_t.h,
a4fea3f2
ZW
22070 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
22071 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
22072 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
22073 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
22074 cookie_io_functions_t, not _IO_cookie_io_functions_t;
22075 __ssize_t, not _IO_ssize_t. Unconditionally define
22076 BUFSIZ as 8192 and EOF as (-1).
22077
22078 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
22079 macros from bits/types/struct_FILE.h instead of _IO_* macros
22080 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
22081 instead of _IO_ssize_t.
22082 * libio/bits/stdio2.h: Similarly.
22083
22084 * libio/iolibio.h: Add multiple-include guard.
22085 Include bits/libio.h after stdio.h.
22086 * libio/libioP.h: Add multiple-include guard.
22087 Include stdio.h and bits/libio.h before iolibio.h.
22088
6c6c962a 22089 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
a4fea3f2
ZW
22090 * include/bits/types/cookie_io_functions_t.h
22091 * include/bits/types/struct_FILE.h: New wrappers.
22092
22093 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
6c6c962a
ZW
22094 Get definitions of _G_fpos_t and _G_fpos64_t from
22095 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
22096 respectively. Remove improper-inclusion guards.
a4fea3f2 22097
6c6c962a 22098 * conform/data/stdio.h-data: Update expectations of va_list.
a4fea3f2 22099 * scripts/check-installed-headers.sh: Remove special case for
6c6c962a 22100 libio.h and _G_config.h.
a4fea3f2 22101
ce999220
JM
221022018-02-07 Joseph Myers <joseph@codesourcery.com>
22103
8b4a1182
JM
22104 [BZ #15105]
22105 [BZ #19463]
22106 * include/sys/sysmacros.h [!_ISOMAC]
22107 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
22108 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
22109 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
22110 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
22111 libc_hidden_proto.
22112 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
22113 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
22114 Likewise.
22115 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
22116 Undefine and redefine to add use __gnu_dev_ prefix.
22117 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
22118 Likewise.
22119 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
22120 and define as hidden inline function.
22121 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
22122 Likewise.
22123 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
22124 Likewise.
22125 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
22126 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
22127 (gnu_dev_minor): Likewise.
22128 (gnu_dev_makedev): Likewise.
22129 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
22130 makedev.
22131 * posix/wordexp.c (exec_comm_child): Likewise.
22132 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
22133 instead of minor and __gnu_dev_major instead of major.
22134 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
22135 __gnu_dev_major instead of major.
22136 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
22137 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
22138 instead of gnu_dev_minor.
22139 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
22140 (SLAVE_P): Likewise.
22141 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
22142 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
22143 instead of major.
22144
ce999220
JM
22145 [BZ #21313]
22146 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
22147 in another place.
22148 * locale/weightwc.h (findidx): Likewise.
22149
b7c83ca3
WD
221502018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
22151
22152 * manual/probes.texi (slowlog): Delete documentation of removed probe.
22153 (slowlog_inexact): Likewise
22154 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
22155 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
22156
388ff7bd
IG
221572018-02-07 Igor Gnatenko <ignatenko@redhat.com>
22158
22159 [BZ #22797]
22160 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
22161 missing second underscore to parameter name.
22162
663e7d78
JM
221632018-02-06 Joseph Myers <joseph@codesourcery.com>
22164
0d40d0ec
JM
22165 [BZ #14508]
22166 [BZ #15512]
22167 [BZ #17082]
22168 [BZ #20530]
22169 * bits/byteswap.h: Update file comment. Do not include
22170 <bits/byteswap-16.h>.
22171 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
22172 constant.
22173 (__bswap_16): Define as inline function.
22174 (__bswap_constant_32): Reformat definition.
22175 (__bswap_32): Always define as inline function, not macro, using
22176 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
22177 otherwise __bswap_constant_32.
22178 (__bswap_constant_64): Reformat definition. Do not use
22179 __extension__ here.
22180 (__bswap_64): Always define as inline function, not macro. Use
22181 __extension__ on function definition. Use __builtin_bswap64 if
22182 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
22183 * string/test-endian-file-scope.c: New file.
22184 * string/test-endian-sign-conversion.c: Likewise.
22185 * string/Makefile (headers): Remove bits/byteswap-16.h.
22186 (tests): Add test-endian-file-scope and
22187 test-endian-sign-conversion.
22188 (CFLAGS-test-endian-sign-conversion.c): New variable.
22189 * bits/byteswap-16.h: Remove file.
22190 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
22191 * sysdeps/ia64/bits/byteswap.h: Likewise.
22192 * sysdeps/m68k/bits/byteswap.h: Likewise.
22193 * sysdeps/s390/bits/byteswap-16.h: Likewise.
22194 * sysdeps/s390/bits/byteswap.h: Likewise.
22195 * sysdeps/tile/bits/byteswap.h: Likewise.
22196 * sysdeps/x86/bits/byteswap-16.h: Likewise.
22197 * sysdeps/x86/bits/byteswap.h: Likewise.
22198
383e87c9
JM
22199 [BZ #17721]
22200 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
22201 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
22202 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
22203 199901L] (__restrict): Define to restrict.
22204
d92c2759
JM
22205 [BZ #19667]
22206 * string/testcopy.c: Include <support/support.h>. Do not include
22207 <malloc.h>. Use <support/test-driver.c>.
22208 (main): Rename to do_test. Make static. Use xmalloc instead of
22209 malloc.
22210
625fb764
JM
22211 [BZ #13575]
22212 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
22213 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
22214 (SSIZE_MAX): Define to INT_MAX.
22215 * posix/test-ssize-max.c: New file.
22216 * posix/Makefile (tests): Add test-ssize-max.
22217
02325d6c
JM
22218 [BZ #19668]
22219 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
22220 <support/support.h>. Do not include <malloc.h>.
22221 (query_auxv): Use xmalloc instead of malloc.
22222
663e7d78
JM
22223 [BZ #14553]
22224 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
22225 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
22226 instead of loff_t.
22227
6b5c8607 222282018-02-06 Florian Weimer <fweimer@redhat.com>
6d7aa2b5
FW
22229
22230 [BZ #18023]
22231 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
22232 Use scratch_buffer instead of extend_alloca.
22233
de6da571
ZW
222342018-02-06 Zack Weinberg <zackw@panix.com>
22235
26c07172
ZW
22236 * libio/stdio.h: Don't define getc or putc as macros.
22237 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
22238 not _IO_getc and _IO_putc.
22239
de6da571
ZW
22240 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
22241 * stdio-common/tstgetln.c: Don't redefine ssize_t.
22242
92669d6e
JM
222432018-02-06 Joseph Myers <joseph@codesourcery.com>
22244
c2b84df9
JM
22245 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
22246 (TCP_FASTOPEN_NO_COOKIE): Likewise.
22247
41376f8c
JM
22248 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
22249
d28bf648
JM
22250 [BZ #14890]
22251 * elf/elf.h (NT_PRFPREG): New macro.
22252 (NT_S390_VXRS_LOW): Likewise.
22253 (NT_S390_VXRS_HIGH): Likewise.
22254 (NT_S390_GS_CB): Likewise.
22255 (NT_S390_GS_BC): Likewise.
22256 (NT_S390_RI_CB): Likewise.
22257
e76def72
JM
22258 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
22259 (MAP_SYNC): New macro.
22260 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
22261 Likewise.
22262 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
22263 (MAP_SYNC): Likewise.
22264 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
22265 (MAP_SYNC): Likewise.
22266 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
22267 (MAP_SYNC): Likewise.
22268 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
22269 (MAP_SYNC): Likewise.
22270 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
22271 (MAP_SYNC): Likewise.
22272 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
22273 (MAP_SYNC): Likewise.
22274 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
22275 Likewise.
22276 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
22277 Likewise.
22278
92669d6e
JM
22279 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
22280 (MAP_SHARED_VALIDATE): New macro.
22281 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
22282 (MAP_SHARED_VALIDATE): Likewise.
22283
6a5cac49
L
222842018-02-05 H.J. Lu <hongjiu.lu@intel.com>
22285
22286 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
22287 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
22288 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
22289
b44e0dfb
L
222902018-02-05 H.J. Lu <hongjiu.lu@intel.com>
22291
22292 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
22293 (DT_NUM): Updated to 35.
22294
f886c16c
L
222952018-02-05 H.J. Lu <hongjiu.lu@intel.com>
22296
22297 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
22298 __builtin_expect with __glibc_likely and __glibc_unlikely.
22299 (elf_machine_rela): Likewise.
22300 (elf_machine_lazy_rel): Likewise.
22301
06fbebff
L
223022018-02-05 H.J. Lu <hongjiu.lu@intel.com>
22303
22304 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
8f4bf93f 22305 __builtin_expect with __glibc_likely and __glibc_unlikely.
06fbebff
L
22306 (elf_machine_lazy_rel): Likewise.
22307
371b220f
L
223082018-02-05 H.J. Lu <hongjiu.lu@intel.com>
22309
22310 [BZ #22638]
22311 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
22312 SHARED.
65805016 22313 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
371b220f 22314
f649a1b8
AS
223152018-02-05 Andreas Schwab <schwab@suse.de>
22316
22317 [BZ #22761]
22318 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
22319 string.
22320
9fdb340e
ST
223212018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
22322
22323 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
22324 not check against PTHREAD_STACK_MIN.
22325
09e56b9e
SM
223262018-02-02 Sean McKean <smckean83@gmail.com>
22327
22328 [BZ #22735]
22329 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
22330
d4b4a00a
FW
223312018-02-02 Florian Weimer <fweimer@redhat.com>
22332
22333 [BZ #22753]
22334 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
22335 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
22336 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
22337 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
22338 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
22339 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
22340 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
22341 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
22342 * manual/llio.texi (Scatter-Gather): Mention offset -1.
22343 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
22344 * misc/tst-preadvwritev2.c (do_test): Call it.
22345 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
22346
3dfcbfa1
SP
223472018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
22348
84c94d2f
SP
22349 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
22350
96e6a716
SP
22351 * benchtests/bench-memcmp.c: Print json instead of plain text.
22352
3dfcbfa1
SP
22353 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
22354 every test run.
22355
049375e2
JM
223562018-02-01 Joseph Myers <joseph@codesourcery.com>
22357
39f898c6
JM
22358 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
22359 version to 4.15.
22360 (s390_sthyi): New syscall.
22361
6f9a3dd8
JM
22362 * sysdeps/generic/ldbl-classify-compat.h: New file.
22363 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
22364 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
22365 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
22366 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
22367 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
22368 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
22369 * sysdeps/ieee754/dbl-64/s_finite.c: Include
22370 <ldbl-classify-compat.h>.
22371 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
22372 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
22373 <ldbl-classify-compat.h>.
22374 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
22375 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
22376 <ldbl-classify-compat.h>.
22377 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
22378 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
22379 <ldbl-classify-compat.h>.
22380 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
22381 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
22382 <ldbl-classify-compat.h>.
22383 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
22384 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
22385 <ldbl-classify-compat.h>.
22386 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
22387 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
22388 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
22389 * sysdeps/m68k/coldfire/math_private.h: Remove file.
22390 * sysdeps/microblaze/math_private.h: Likewise.
22391 * sysdeps/nios2/math_private.h: Likewise.
22392 * sysdeps/sh/math_private.h: Likewise.
22393
eb65a3d5
JM
22394 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
22395 * sysdeps/m68k/coldfire/math_private.h: ... here.
22396 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
22397 * sysdeps/tile/math_private.h: Likewise.
22398 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
22399 Remove macro.
22400 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
22401 Likewise.
22402
8a6bb1d0
JM
22403 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
22404 Remove macro.
22405 (libc_fetestexcept): Likewise.
22406 (libc_feupdateenv_test): Likewise.
22407 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
22408 (libc_fetestexcept): Likewise.
22409 (libc_feupdateenv_test): Likewise.
22410 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
22411 (libc_fetestexcept): Likewise.
22412 (libc_feupdateenv_test): Likewise.
22413 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
22414 (libc_fetestexcept): Likewise.
22415 (libc_feupdateenv_test): Likewise.
22416
ae1fcb7b
JM
22417 * sysdeps/generic/math_private.h
22418 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
22419 New inline function.
22420 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
22421 Likewise.
22422
b1c347e2
JM
22423 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
22424 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
22425 * sysdeps/generic/math_private.h
22426 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
22427 inline function.
22428 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
22429 Likewise.
22430 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
22431 Likewise.
22432 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
22433 Likewise.
22434 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
22435 Likewise.
22436 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
22437 Likewise.
22438 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
22439 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
22440 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
22441 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
22442 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
22443 (__fegetenv): Likewise.
22444 (fesetenv): Likewise.
22445 (__fesetenv): Likewise.
22446 (feupdateenv): Likewise.
22447 (__feupdateenv): Likewise.
22448 (fegetround): Likewise.
22449 (__fegetround): Likewise.
22450 (fesetround): Likewise.
22451 (__fesetround): Likewise.
22452
d23a4962
JM
22453 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
22454 (feraiseexcept): New macro.
22455 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
22456 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
22457 Remove macro.
22458 (__feraiseexcept): Likewise.
22459 (feclearexcept): Likewise.
22460 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
22461 (__feraiseexcept): Likewise.
22462 (feclearexcept): Likewise.
22463 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
22464 (__feraiseexcept): Likewise.
22465 (feclearexcept): Likewise.
22466 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
22467 (__feraiseexcept): Likewise.
22468 (feclearexcept): Likewise.
22469 (fetestexcept): Likewise.
22470
5f167950
JM
22471 * sysdeps/m68k/coldfire/math-tests.h: New file.
22472
ccc9035a
JM
22473 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
22474 * sysdeps/m68k/bits/fenv.h: ... here.
22475 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
22476 not define.
22477 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
22478 Likewise.
22479 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
22480 Likewise.
22481 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
22482 Likewise.
22483 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
22484 Likewise.
22485 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
22486 Define to 0.
22487 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
22488 (__FE_UNDEFINED): New enum constant.
22489 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
22490 Do not define.
22491 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
22492 Likewise.
22493 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
22494 Likewise.
22495 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
22496 to match generic bits/fenv.h.
22497 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
22498 Do not define.
22499
049375e2
JM
22500 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
22501 packed on bits.
22502 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
22503 * soft-fp/half.h (union _FP_UNION_H): Likewise.
22504 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
22505 * soft-fp/single.h (union _FP_UNION_S): Likewise.
22506
f1d73681
CD
225072018-02-01 Carlos O'Donell <carlos@redhat.com>
22508 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
22509 Joseph Myers <joseph@codesourcery.com>
22510
22511 [BZ #21314]
22512 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
22513 (__log1p): Disable -Wmaybe-uninitialized for -Os around
22514 computation using c.
22515 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
22516 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
22517 computation using c.
22518
242cbc90
DL
225192018-02-01 Dmitry V. Levin <ldv@altlinux.org>
22520
086ee48e
DL
22521 * version.h (RELEASE): Set to "development".
22522 (VERSION): Set to "2.27.9000".
22523 * NEWS (2.28): New section.
22524
23158b08
DL
22525 * version.h (RELEASE): Set to "stable".
22526 (VERSION): Set to "2.27".
22527 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
22528
242cbc90
DL
22529 * NEWS: Add the list of bugs fixed in 2.27.
22530
673e2305
AZ
225312018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22532
22533 * stdlib/test-atexit-race-common.c (do_test): Check stack size
22534 against PTHREAD_STACK_MIN.
22535
ced64e01
DL
225362018-02-01 Dmitry V. Levin <ldv@altlinux.org>
22537
22538 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
22539 New entries.
ab74d59f 22540 (Rafał Lużyński, Andreas Schwab): Update.
ced64e01 22541
ab74d59f 225422018-02-01 Rafał Lużyński <digitalfreak@lingonborough.com>
c10c9a5e
RL
22543
22544 [BZ #10871]
22545 * NEWS: List the languages which actually use the alternative
22546 months feature in this release. Also explain that "alt_mon" and
22547 "ab_alt_mon" are optional.
22548
650ba77a
IM
225492018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
22550
22551 [BZ #22765]
22552 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
22553
93493119
DL
225542018-01-31 Dmitry V. Levin <ldv@altlinux.org>
22555
22556 * manual/install.texi (Tools for Compilation): Update the newest
22557 versions of gcc, binutils, texinfo, gawk, bison, and sed.
22558 * INSTALL: Regenerated.
22559
363e4519 225602018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
407552cf
ST
22561
22562 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
22563 instead of __builtin_expect.
22564
d7536874
FW
225652018-01-30 Florian Weimer <fweimer@redhat.com>
22566
22567 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
22568 data.
22569 * nss/tst-nss-getpwent.c (do_test): Likewise.
22570
ab74d59f 225712018-01-30 Rafał Lużyński <digitalfreak@lingonborough.com>
9a1b267d
RL
22572
22573 [BZ #10871]
22574 * localedata/locales/hr_HR (mon): Rename to...
22575 (alt_mon): This.
22576 (mon): Import from CLDR (genitive case).
22577 (d_t_fmt): Update the comment.
22578
9a179328
AS
225792018-01-29 Andreas Schwab <schwab@linux-m68k.org>
22580
22581 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
22582 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
22583 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
22584
e01e0ddc
ST
225852018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
22586
22587 * mach/Versions: Fix version when __mach_host_self_ was added.
22588 * hurd/Versions: Fix version when _hurd_exec_paths was added.
22589 * sysdeps/mach/hurd/i386/ld.abilist: New file.
22590 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
22591 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
22592 * sysdeps/mach/hurd/i386/libc.abilist: New file.
22593 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
22594 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
22595 * sysdeps/mach/hurd/i386/libm.abilist: New file.
22596 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
22597 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
22598 * sysdeps/mach/hurd/i386/librt.abilist: New file.
22599 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
ba729de6
ST
22600 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
22601 || to respect codestyle.
2aadb705
ST
22602 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
22603 (do_test_bz20181): Rename accordingly.
406e7a0a
ST
22604 * malloc/malloc.c: Include <assert.h>.
22605 (assert): Do not define.
22606 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
99dfbef4
ST
22607 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
22608 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
ac56adbb 22609 * sysdeps/mach/hurd/hp-timing.h: New file.
ef4cf463 22610 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
e01e0ddc 22611
521877e1
PD
226122018-01-29 Darius Rad <darius@bluespec.com>
22613
22614 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
22615
532cf290
PD
226162018-01-29 Palmer Dabbelt <palmer@sifive.com>
22617
22618 * sysdeps/init_array/crti.S (.section .init_array): Add
22619 PREINIT_FUNCTION when defined.
40ca951b 22620 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
4215e276 22621 * config.h.in: Regenerate.
ba9e25a6
PD
22622 * manual/platform.texi: Add RISC-V documenation for
22623 __riscv_flush_icache.
c776fa11
PD
22624 * sysdeps/riscv/__longjmp.S: New file.
22625 * sysdeps/riscv/backtrace.c: Likewise.
22626 * sysdeps/riscv/bits/endian.h: Likewise.
22627 * sysdeps/riscv/bits/setjmp.h: Likewise.
22628 * sysdeps/riscv/bits/wordsize.h: Likewise.
22629 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
22630 * sysdeps/riscv/bsd-setjmp.c: Likewise.
22631 * sysdeps/riscv/dl-trampoline.S: Likewise.
22632 * sysdeps/riscv/gccframe.h: Likewise.
22633 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
22634 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
22635 * sysdeps/riscv/machine-gmon.h: Likewise.
22636 * sysdeps/riscv/memusage.h: Likewise.
22637 * sysdeps/riscv/setjmp.S: Likewise.
22638 * sysdeps/riscv/sys/asm.h: Likewise.
22639 * sysdeps/riscv/tls-macros.h: Likewise.
33712660
PD
22640 * sysdeps/riscv/dl-tls.h: New file.
22641 * sysdeps/riscv/libc-tls.c: Likewise.
22642 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
22643 * sysdeps/riscv/nptl/tls.h: Likewise.
22644 * sysdeps/riscv/stackinfo.h: Likewise.
67236aeb
PD
22645 * sysdeps/riscv/bits/fenv.h: New file.
22646 * sysdeps/riscv/e_sqrtl.c: Likewise.
22647 * sysdeps/riscv/fpu_control.h: Likewise.
22648 * sysdeps/riscv/math-tests.h: Likewise.
22649 * sysdeps/riscv/nofpu/Implies: Likewise.
22650 * sysdeps/riscv/sfp-machine.h: Likewise.
22651 * sysdeps/riscv/tininess.h: Likewise.
b2cb5e02
PD
22652 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
22653 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
22654 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
22655 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
22656 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
22657 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
22658 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
22659 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
22660 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
22661 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
22662 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
22663 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
22664 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
22665 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
22666 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
22667 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
22668 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
22669 * sysdeps/riscv/rvd/s_finite.c: Likewise.
22670 * sysdeps/riscv/rvd/s_fma.c: Likewise.
22671 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
22672 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
22673 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
22674 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
22675 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
22676 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
22677 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
22678 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
22679 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
22680 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
22681 * sysdeps/riscv/rvf/fegetround.c: Likewise.
22682 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
22683 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
22684 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
22685 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
22686 * sysdeps/riscv/rvf/fesetround.c: Likewise.
22687 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
22688 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
22689 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
22690 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
22691 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
22692 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
22693 * sysdeps/riscv/rvf/math_private.h: Likewise.
22694 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
22695 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
22696 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
22697 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
22698 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
22699 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
22700 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
22701 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
22702 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
22703 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
22704 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
22705 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
22706 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
22707 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
22708 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
22709 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
d1c09b24
PD
22710 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
22711 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
22712 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
22713 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
36960f0c
PD
22714 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
22715 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
22716 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
22717 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
22718 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
22719 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
22720 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
22721 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
22722 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
7f33b09c
PD
22723 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
22724 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
22725 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
22726 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
22727 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
22728 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
22729 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
22730 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
22731 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
22732 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
22733 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
22734 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
22735 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
22736 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
22737 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
22738 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
22739 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
22740 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
22741 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
22742 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
22743 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
22744 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
ee53fed9
PD
22745 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
22746 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
22747 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
2268c433
PD
22748 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
22749 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
22750 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
22751 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
22752 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
22753 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
22754 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
22755 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
22756 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
22757 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
22758 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
22759 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
22760 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
22761 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
c5061557
PD
22762 * sysdeps/riscv/Implies: New file.
22763 * sysdeps/riscv/Makefile: Likewise.
22764 * sysdeps/riscv/configure: Likewise.
22765 * sysdeps/riscv/configure.ac: Likewise.
22766 * sysdeps/riscv/nptl/Makefile: Likewise.
22767 * sysdeps/riscv/preconfigure: Likewise.
22768 * sysdeps/riscv/rv64/Implies-after: Likewise.
22769 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
22770 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
22771 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
22772 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
22773 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
22774 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
22775 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
22776 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
22777 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
22778 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
22779 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
0fd5d876
PD
22780 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
22781 (Config): Likewise.
532cf290 22782
cdd14619
FW
227832018-01-29 Florian Weimer <fweimer@redhat.com>
22784
22785 [BZ #22701]
22786 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
22787 libnsl_hidden_proto.
22788 * include/rpcsvc/yp.h (yp_xdrall): Declare with
22789 libnsl_hidden_proto.
22790 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
22791 * nis/Makefile (libnsl-routines): Add nss-default only for
22792 build-obsolete-nsl.
22793 * nis/nis_defaults.c (__nis_default_ttl): Add
22794 libnsl_hidden_nolink_def.
22795 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
22796 declaration.
22797 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
22798 * nis/ypclnt.c (yp_maplist): Likewise.
22799
b7ccb5de
RN
228002018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
22801
22802 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
22803 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
22804
522623e4
JM
228052018-01-29 Joseph Myers <joseph@codesourcery.com>
22806
e3aa6999
JM
22807 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
22808 clean -dxfq for git updates when replacing sources.
22809
088de7d0
JM
22810 * scripts/build-many-glibcs.py (Config.build_gcc): Use
22811 --disable-libcilkrts unconditionally, not just for the final GCC
22812 build for Hurd.
22813
522623e4
JM
22814 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
22815 version to 4.15.
22816
ab74d59f 228172018-01-29 Rafał Lużyński <digitalfreak@lingonborough.com>
8b406f87
RL
22818
22819 [BZ #10871]
22820 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
22821 case).
22822
ab74d59f 228232018-01-29 Rafał Lużyński <digitalfreak@lingonborough.com>
105e90bd
RL
22824
22825 [BZ #10871]
22826 * localedata/locales/be_BY (mon): Rename to...
22827 (alt_mon): This, then synchronize with CLDR (nominative case).
22828 (abmon): Rename to...
22829 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
22830 (mon): Import from CLDR (genitive case).
22831 (abmon): Likewise.
22832 * localedata/locales/be_BY@latin (mon): Rename to...
22833 (alt_mon): This.
22834 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
22835
22836 * localedata/locales/be_BY@latin (lang_name): Reworded to
22837 "biełaruskaja mova".
22838
ab74d59f 228392018-01-29 Rafał Lużyński <digitalfreak@lingonborough.com>
561cb414
RL
22840
22841 [BZ #10871]
22842 * localedata/locales/el_CY (mon): Renamed to...
22843 (alt_mon): This.
22844 (mon): Import from CLDR (genitive case).
22845 * localedata/locales/el_GR: Likewise.
22846
ab74d59f 228472018-01-29 Rafał Lużyński <digitalfreak@lingonborough.com>
f7bdf30d
RL
22848
22849 [BZ #10871]
22850 * localedata/locales/ru_RU (mon): Rename to...
22851 (alt_mon): This.
22852 (abmon): Rename to...
22853 (ab_alt_mon): This.
22854 (mon): Import from CLDR (genitive case).
22855 (abmon): Copy from the old content except the 5th month which is
22856 now in the genitive case, even when abbreviated.
22857 * localedata/locales/ru_UA: Likewise.
22858 * time/tst-strptime.c (day_tests): Add an actual example of
22859 a difference between %b and %Ob in Russian.
22860
85285a0c
ST
228612018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
22862
22863 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
da8168df
ST
22864 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
22865 a `c' variable.
3538a4b6 22866 * resolv/res-close.c: Include <stdlib.h>.
b29848b9
ST
22867 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
22868 <sys/wait.h>, <time.h>, <sys/uio.h>.
22869 (NOT_CANCEL_H): Add inclusion guard.
4f66dc23 22870 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
147d1dbb
ST
22871 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
22872 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
22873 return 0.
05ebfe87
ST
22874 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
22875 vm_address_t * to ElfW(Addr) * for dl_main parameter.
61a3a8c6
ST
22876 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
22877 instead of void *.
22878 * sysdeps/pthread/timer_create.c (timer_create): Do not use
22879 timer_ptr2id to cast struct timer_node * to void *.
d4d5b2dd
ST
22880 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
22881 --disable-libcilkrts to gcc configure.
19fd8d0d
ST
22882 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
22883 and make them the default for now.
903d3633
ST
22884 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
22885 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
7dab2d00
ST
22886 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
22887 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
22888 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
22889 MACH_IPC_COMPAT.
06fac9f5
ST
22890 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
22891 __task_terminate would ever return successfully.
f8177753
ST
22892 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
22893 to global scope.
41cdb1eb
ST
22894 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
22895 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
660b7bff
ST
22896 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
22897 critical section to make code simpler and avoid warning.
22898 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
22899 critical section to make code simpler and avoid warning.
844bf921
ST
22900 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
22901 const char * instead of char *.
f8bee46c
ST
22902 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
22903 __hurd_file_name_split, hurd_file_name_split,
22904 __hurd_directory_name_split, hurd_directory_name_split,
22905 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
22906 hurd_file_name_path_lookup): Make lookup function parameter take a
22907 const char *name instead of char *name.
22908 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
22909 __hurd_directory_name_split): Likewise.
22910 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
22911 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
40066975
ST
22912 * sysdeps/mach/hurd/check_native.c: New file.
22913 * sysdeps/mach/hurd/check_pf.c: New file.
7c5b106d
ST
22914 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
22915 (__freeifaddrs): Define macro to freeifaddrs.
5f982b0b
ST
22916 * sysdeps/mach/hurd/libhurduser.abilist: New file.
22917 * sysdeps/mach/libmachuser.abilist: New file.
cef7166a
ST
22918 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
22919 (do_test_bz20181): Rename accordingly.
22920 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
3fc1ecf9
ST
22921 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
22922 <sys/mount.h>.
28f6186f
ST
22923 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
22924 version only if __USE_EXTERN_INLINES is defined.
22925 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
22926 __hurd_sockfail): Likewise.
22927 (_hurd_fd_get): Always declare functions, and provide inline versions
22928 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
22929 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
22930 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
22931 _hurd_port_set): Always declare functions, and provide inline versions
22932 only if __USE_EXTERN_INLINES and _LIBC are defined and
22933 IS_IN(libc).
22934 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
22935 _hurd_critical_section_unlock): Likewise.
22936 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
22937 * __hurd_threadvar_location): Likewise.
22938 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
22939 _hurd_userlink_clear): Likewise.
22940 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
22941 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
22942 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
22943 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
22944 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
22945 __spin_lock_locked): Likewise.
22946 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
22947 __spin_lock_locked): Likewise.
22948 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
22949 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
22950 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
22951 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
22952 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
b1025304
ST
22953 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
22954 _POSIX_NO_TRUNC): Define to 0.
a902a086
ST
22955 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
22956 check size against PTHREAD_STACK_MIN.
625ba81e
ST
22957 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
22958 IS_IN(libpthread)]: Include <sigsetops.h>.
2e52dff4
ST
22959 * mach/Makefile (user-interfaces): Add mach/gnumach.
22960 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
22961 * sysdeps/mach/configure (mach_interface_list): Regenerate.
80463dc6
ST
22962 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
22963 instead of invalid -1.
1f89ac71
ST
22964 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
22965 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
22966 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
22967 <net/ppp_defs.h>.
85285a0c 22968
1fd1e27c 229692018-01-27 Thomas Schwinge <tschwinge@gnu.org>
84814e2a
TS
22970
22971 * hurd/fcntl-internal.h: New file.
22972
3854c5a8
JC
229732018-01-27 James Clarke <jrtc27@jrtc27.com>
22974
7e23a7dd
JC
22975 * sysdeps/hppa/fpu/libm-test-ulps: Update.
22976
3854c5a8
JC
22977 * sysdeps/alpha/fpu/libm-test-ulps: Update.
22978
5503f413
AS
229792018-01-26 Andreas Schwab <schwab@linux-m68k.org>
22980
22981 [BZ #22701]
22982 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
22983 Build only shared objects.
22984
caaf7804
CD
229852018-01-26 Carlos O'Donell <carlos@redhat.com>
22986
22987 * README: Update for hppa.
22988
1cbf818d
PM
229892018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
22990
caaf7804
CD
22991 * sysdeps/sparc/fpu/libm-test-ulps: Update
22992 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
1cbf818d 22993
caaf7804 229942018-01-26 Carlos O'Donell <carlos@redhat.com>
2ec0e7ea
CD
22995
22996 Revert:
22997
22998 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
22999
23000 [BZ #22563]
23001 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
23002 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
23003 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
23004 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
23005 to feature_1.
23006
23007 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
23008
23009 [BZ #22563]
23010 * bits/types/__cancel_jmp_buf_tag.h: New file.
23011 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
23012 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
23013 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
23014 * nptl/Makefile (headers): Add
23015 bits/types/__cancel_jmp_buf_tag.h.
23016 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
23017 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
23018 * sysdeps/nptl/pthread.h: Include
23019 <bits/types/__cancel_jmp_buf_tag.h>.
23020 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
23021 __cancel_jmp_buf.
23022 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
23023
ab74d59f 230242018-01-25 Rafał Lużyński <digitalfreak@lingonborough.com>
65f6c94e
RL
23025
23026 [BZ #10871]
23027 * localedata/locales/uk_UA (mon): Renamed to...
23028 (alt_mon): This.
23029 (alt_digits): "0" removed and then renamed to...
23030 (mon): This.
23031 (date_fmt): Definition changed not to use the alternative
23032 digits hack.
23033
fb58aac5
PD
230342018-01-25 Palmer Dabbelt <palmer@sifive.com>
23035
23036 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
23037 FLAG_RISCV_FLOAT_ABI_DOUBLE.
23038 * elf/elf.h (EF_RISCV_RVC): New define.
23039 (EF_RISCV_FLOAT_ABI): Likewise.
23040 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
23041 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
23042 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
23043 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
23044 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
23045 define.
23046 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
23047
128c43a2
AS
230482018-01-25 Andreas Schwab <schwab@suse.de>
23049
23050 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
23051 single quotes.
23052 * sysdeps/gnu/configure: Regenerate.
23053 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
23054 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
23055 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
23056 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
23057 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
23058 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
23059 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
23060 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
23061
f9015003
ST
230622018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
23063
48130690 23064 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
47c4b4b0 23065 URL, and run autoconf, make it the default for now.
f9015003 23066
91b2cffa
JM
230672018-01-24 Joseph Myers <joseph@codesourcery.com>
23068
3005b705
JM
23069 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
23070 soft-float ColdFire configuration.
23071
69231fab
JM
23072 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
23073 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
23074 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
23075
d4c7e1d0
JM
23076 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
23077 MicroBlaze file.
23078
0cfe5be5
JM
23079 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
23080 ....
23081 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
23082 ... here.
23083 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
23084 New file.
23085
91b2cffa
JM
23086 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
23087 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
23088 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
23089 file.
23090
c739e191
SN
230912018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
23092
23093 [BZ #22742]
23094 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
23095 Rename to __reserved and add comment.
23096 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
23097 Rename to __reserved.
23098
394b5bac
JM
230992018-01-24 Joseph Myers <joseph@codesourcery.com>
23100
23101 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
23102 i686-gnu configurations.
23103 (Context.run_builds): Include mig, gnumach and hurd in components
23104 considered.
23105 (Context.checkout): Add mig, gnumach and hurd to components.
23106 (Context.checkout_tar): Add URL mappings for mig, gnumach and
23107 hurd.
23108 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
23109 (Config.build): Install gnumach headers, build mig and install
23110 hurd headers for 'gnu' OS.
23111 (Config.install_gnumach_headers): New function.
23112 (Config.install_hurd_headers): Likewise.
23113 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
23114 when building for 'gnu' OS.
23115
28c3f14f
TK
231162018-01-23 Tobias Klauser <tklauser@distanz.ch>
23117
23118 * manual/tunables.texi (Hardware Capability Tunables): Fix
23119 spelling.
23120
0f5e2da1
RJ
231212018-01-22 Rical Jasan <ricaljasan@pacific.net>
23122
23123 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
23124 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
23125 (ALTMON_11, ALTMON_12): Improve documentation.
23126 * manual/time.texi (strftime): Likewise.
23127
ab74d59f 231282018-01-22 Rafał Lużyński <digitalfreak@lingonborough.com>
7817b14a
RL
23129
23130 [BZ #10871]
23131 * localedata/locales/pl_PL: Alternative month names added,
23132 primary month names are genitive now.
23133 * time/tst-strptime.c (day_tests): Actually use a genitive case
23134 of a month name in Polish language.
23135
ab74d59f 231362018-01-22 Rafał Lużyński <digitalfreak@lingonborough.com>
22390764
RL
23137
23138 [BZ #10871]
23139 * manual/locale.texi: Document ALTMON_1..12 constants for
23140 nl_langinfo. Specify when to use ALTMON instead of MON.
23141 * manual/time.texi (strftime, strptime): Document GNU extension
23142 permitting O modifier with %B and %b. Specify when to use
23143 %OB instead of %B.
23144
ab74d59f 231452018-01-22 Rafał Lużyński <digitalfreak@lingonborough.com>
761a585c
RL
23146
23147 [BZ #10871]
23148 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
23149 names, define them as the same as abbreviated month names explicitly.
23150 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
23151 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
23152 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
23153 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
23154 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
23155 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
23156 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
23157 _NL_WABALTMON_12): New enum constants.
23158 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
23159 wab_alt_mon, and ab_alt_mon_defined members.
23160 (time_output): Output ab_alt_mon and wab_alt_mon members.
23161 (time_read): Read them, initialize them as copies of abmon and wabmon
23162 respectively if they are missing, initialize ab_alt_mon_defined.
23163 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
23164 * locale/programs/locfile-kw.h: Regenerate.
23165 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
23166 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
23167 and ru_RU.UTF-8.
23168 * time/strftime_l.c (a_altmonth, aam_len): New macros.
23169 [!COMPILE_WIDE] (ABALTMON_1): New macro.
23170 (__strftime_internal): Handle %Ob and %Oh formats.
23171 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
23172 (__strptime_internal): Handle %Ob and %Oh formats.
23173 * time/tst-strptime.c (day_tests): Add more tests to parse different
23174 forms of month names including the new %Ob format specifier.
23175
ab74d59f 231762018-01-22 Rafał Lużyński <digitalfreak@lingonborough.com>
95cb863a
RL
23177
23178 [BZ #10871]
23179 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
23180 define them as the same as primary full month names explicitly.
23181 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
23182 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
23183 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
23184 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
23185 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
23186 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
23187 _NL_WALTMON_12): New enum constants.
23188 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
23189 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
23190 macros.
23191 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
23192 walt_mon, and alt_mon_defined members.
23193 (time_output): Output alt_mon and walt_mon members.
23194 (time_read): Read them, initialize them as copies of mon and wmon
23195 respectively if they are missing, initialize alt_mon_defined.
23196 * locale/programs/locfile-kw.gperf (alt_mon): Define.
23197 * locale/programs/locfile-kw.h: Regenerate.
23198 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
23199 * localedata/tst-langinfo.c (map): Add tests for the new constants
23200 ALTMON_1 .. ALTMON_12.
23201 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
23202 and pl_PL.UTF-8.
23203 * time/strftime_l.c (f_altmonth): New macro.
23204 (__strftime_internal): Handle %OB format.
23205 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
23206 (__strptime_internal): Handle %OB format.
23207 * time/tst-strptime.c (day_tests): Add tests to parse different forms
23208 of month names including the new %OB format specifier.
23209
4612268a
TMQMF
232102018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
23211
23212 [BZ #22685]
23213 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
23214 from ABORT_TRANSACTION.
23215 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
23216 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
23217 ABORT_TRANSACTION_IMPL): Likewise.
23218 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
23219 Linux code, but remove the code that aborts transactions.
23220
64f63cb4
ST
232212018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
23222
23223 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
23224
ab74d59f 232252018-01-19 Rafał Lużyński <digitalfreak@lingonborough.com>
32ac6e92
RL
23226
23227 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
23228 in date: "2004-14-09" should be "2004-09-14".
23229 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
23230 "2003-15-09" should be "2003-09-15".
23231
8e448310
AS
232322018-01-18 Arjun Shankar <arjun@redhat.com>
23233
23234 [BZ #22343]
71aa429b 23235 [BZ #22774]
4590634f 23236 CVE-2018-6485
71aa429b 23237 CVE-2018-6551
8e448310
AS
23238 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
23239 after padding.
23240 (_int_memalign): check for integer overflow before calling
23241 _int_malloc.
23242 * malloc/tst-malloc-too-large.c: New test.
23243 * malloc/Makefile: Add tst-malloc-too-large.
23244
ab74d59f 232452018-01-18 Rafał Lużyński <digitalfreak@lingonborough.com>
e234d7cb
RL
23246
23247 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
23248 in date: "2017-24-07" should be "2017-07-24".
23249 * localedata/locales/mai_IN: Likewise.
23250 * localedata/locales/mai_NP: Likewise.
23251
48b66019
DL
232522018-01-17 Dmitry V. Levin <ldv@altlinux.org>
23253
23254 * po/ru.po: Update translations.
23255
1eeddc58
JM
232562018-01-17 Joseph Myers <joseph@codesourcery.com>
23257
23258 [BZ #22719]
23259 * sysdeps/hppa/backtrace.c: New file.
23260
207a72e2
L
232612018-01-17 H.J. Lu <hongjiu.lu@intel.com>
23262
23263 [BZ #22715]
23264 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
23265 align La_x86_64_retval to VEC_SIZE.
23266
4942c4ea
JM
232672018-01-16 Joseph Myers <joseph@codesourcery.com>
23268
23269 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
23270 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
23271
10d200db
FW
232722018-01-16 Florian Weimer <fweimer@redhat.com>
23273
23274 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
23275 Move tst-thread-exit-clobber ...
23276 [$(CXX)] (tests-unsupported): ... to here.
23277
953c49cc
SN
232782018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
23279
23280 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
23281 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
23282 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
23283 (_dl_aarch64_cap_flags): Update.
23284 (_DL_HWCAP_COUNT): Update.
23285
afce1991
SN
232862018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
23287
23288 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
23289 (_DL_HWCAP_LAST): Remove.
23290 (_DL_HWCAP_COUNT): Move to ...
23291 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
23292 (_DL_HWCAP_COUNT): ... here.
23293
b725132d
FW
232942018-01-16 Florian Weimer <fweimer@redhat.com>
23295
23296 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
23297 mode with GNU extensions.
23298
c9e613a7
AH
232992018-01-15 Alan Hayward <alan.hayward@arm.com>
23300
23301 * elf/elf.h (NT_ARM_SVE): Define.
23302
860b0240
FW
233032018-01-15 Florian Weimer <fweimer@redhat.com>
23304
23305 [BZ #22636]
23306 * nptl/tst-minstack-throw.cc: New file.
23307 * nptl/Makefile (tests): Add tst-minstack-throw.
23308 (LDLIBS-tst-minstack-throw): Link with libstdc++.
23309 [!CXX] (tests-unsupported): Add tst-minstack-throw.
23310
16d0f6ac
JM
233112018-01-15 Joseph Myers <joseph@codesourcery.com>
23312
23313 * scripts/build-many-glibcs.py (Context.checkout): Default
23314 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
23315 version to 1.1.0.
23316
505d3910
CD
233172018-01-13 Carlos O'Donell <carlos@redhat.com>
23318
23319 [BZ #22707]
23320 * elf/elf.h (DF_1_STUB): Define.
23321 (DF_1_PIE): Define.
23322
af1e6be4
TMQMF
233232018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
23324
23325 [BZ #22697]
23326 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
23327 Do not add 0.5 to integer or out-of-range arguments.
23328
98d13ce0
DL
233292018-01-12 Dmitry V. Levin <ldv@altlinux.org>
23330
23331 * po/bg.po: Update translations.
23332 * po/cs.po: Likewise.
23333 * po/de.po: Likewise.
23334 * po/ko.po: Likewise.
23335 * po/pl.po: Likewise.
23336 * po/sv.po: Likewise.
23337 * po/uk.po: Likewise.
23338 * po/vi.po: Likewise.
23339
3d1d7928
SN
233402018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
23341
23342 * aarch64/start.S (_start): Use __wrap_main.
23343 (__wrap_main): New local symbol.
23344
52a713fd
DL
233452018-01-12 Dmitry V. Levin <ldv@altlinux.org>
23346
23347 [BZ #22679]
23348 CVE-2018-1000001
23349 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
23350 generic_getcwd if the path returned by getcwd syscall is not absolute.
23351 * io/tst-getcwd-abspath.c: New test.
23352 * io/Makefile (tests): Add tst-getcwd-abspath.
23353
249a5895
IK
233542018-01-12 Istvan Kurucsai <pistukem@gmail.com>
23355
23356 * malloc/malloc.c (malloc_consolidate): Add size check.
23357
1a51e46e
FW
233582018-01-12 Florian Weimer <fweimer@redhat.com>
23359
23360 * support/write_message.c (write_message): Preserve errno.
23361 * support/check.c (print_failure): Likewise.
23362 * support/support_test_verify_impl.c (support_test_verify_impl):
23363 Likewise.
23364 * support/support_test_compare_failure.c
23365 (support_test_compare_failure): Likewise.
23366
9a08a366
FW
233672018-01-12 Florian Weimer <fweimer@redhat.com>
23368
23369 [BZ #22701]
23370 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
23371 Prevent installation of libnsl.so.
23372 (libnsl-inhibit-o): Do not build (or install) static libraries.
23373
80647883 233742018-01-12 Egmont Koblinger <egmont@gmail.com>
f172187b
EK
23375
23376 [BZ #22657]
23377 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
23378 before the day number which may produce a double space.
23379 (date_fmt): Likewise.
23380
c8924f1f
JM
233812018-01-12 Joseph Myers <joseph@codesourcery.com>
23382
23383 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
23384 instead of fegetenv.
23385
da09e6fa
JM
233862018-01-11 Joseph Myers <joseph@codesourcery.com>
23387
23388 [BZ #22702]
23389 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
23390 comment to say exceptions are discarded.
23391 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
23392 __fegetenv.
23393 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
23394 be enabled.
23395
08c6e952
FW
233962018-01-11 Florian Weimer <fweimer@redhat.com>
23397
23398 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
23399 and error message.
23400
d8b77890
FW
234012018-01-11 Florian Weimer <fweimer@redhat.com>
23402
23403 [BZ #22636]
23404 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
23405 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
23406
b303185d
JM
234072018-01-10 Joseph Myers <joseph@codesourcery.com>
23408
23409 [BZ #22693]
23410 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
23411 negative arguments in test for NaN or infinity argument.
23412
ee61d028
DL
234132018-01-10 Dmitry V. Levin <ldv@altlinux.org>
23414
23415 * po/libc.pot: Regenerate.
23416
f993b875
FW
234172018-01-10 Florian Weimer <fweimer@redhat.com>
23418
23419 [BZ #22636]
23420 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
23421 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
23422
09085ede
ST
234232018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
23424
23425 * hurd/hurd/fd.h: Include <fcntl.h>
23426 (__hurd_at_flags): New function.
23427 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
23428 with call to __hurd_at_flags.
23429 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
23430 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
23431 __faccessat
23432 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
23433 (__access_noerrno): Use __faccessat_common instead of access_common.
23434 (__access): Likewise.
23435 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
23436 with a call to __faccessat.
23437 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
23438 (__faccessat_common): ... this. Move implementation of __access into it when
23439 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
23440 reauthenticate_cwdir_at helper to implement AT mechanism.
23441 (__faccessat_noerrno): New function, just calls __faccessat_common.
23442 (__faccessat): New function, just calls __faccessat_common.
23443 (faccessat): Define weak alias.
23444
12727488
JM
234452018-01-10 Joseph Myers <joseph@codesourcery.com>
23446
87faac55
JM
23447 [BZ #22691]
23448 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
23449 (CFLAGS-s_fmaxmagl.c): New variable.
23450 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
23451
12727488
JM
23452 [BZ #22690]
23453 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
23454 long int for arguments of possibly overflowing addition or
23455 subtraction.
23456 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
23457
e134ca17
JM
234582018-01-09 Joseph Myers <joseph@codesourcery.com>
23459
b2584ac2
JM
23460 [BZ #22688]
23461 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
23462 (CFLAGS-e_remainderl.c): New variable.
23463
e134ca17
JM
23464 [BZ #22687]
23465 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
23466 variable.
23467 (CFLAGS-s_cacoshl.c): Likewise.
23468 (CFLAGS-s_casinhl.c): Likewise.
23469 (CFLAGS-s_catanl.c): Likewise.
23470 (CFLAGS-s_catanhl.c): Likewise.
23471 (CFLAGS-s_cexpl.c): Likewise.
23472 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
23473 (CFLAGS-s_csinhl.c): Likewise.
23474 (CFLAGS-s_clogl.c): Likewise.
23475 (CFLAGS-s_clog10l.c): Likewise.
23476 (CFLAGS-s_csinl.c): Likewise.
23477 (CFLAGS-s_csqrtl.c): Likewise.
23478
d31a4a48
ST
234792017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
234802017-01-09 Svante Signell <svante.signell@gmail.com>
311ba8dc
ST
23481
23482 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
23483 (_hurd_exec_paths): New function.
23484 * hurd/hurd.h (_hurd_exec): Deprecate function.
23485 (_hurd_exec_paths): Declare function.
23486 * hurd/Versions: Export _hurd_exec_paths.
23487 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
23488 (__execve): Use __getcwd to build absolute path, and use
23489 _hurd_exec_paths instead of _hurd_exec.
23490 * sysdeps/mach/hurd/spawni.c: Likewise.
23491 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
23492 _hurd_exec.
23493
d7ff3f11
DL
234942018-01-08 Dmitry V. Levin <ldv@altlinux.org>
23495
23496 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
23497 test instead of failing in case of ENOENT returned by posix_openpt.
23498
401311cf
FW
234992018-01-08 Florian Weimer <fweimer@redhat.com>
23500
23501 resolv: Support binary labels in test framework.
23502 * support/resolv_test.c (struct to_be_freed): Remove.
23503 (struct compressed_name): New.
23504 (allocate_compressed_name, ascii_tolower)
23505 (compare_compressed_name): New functions.
23506 (struct resolv_response_builder): Update type of
23507 compression_offsets for use with tsearch. Rempve to_be_freed.
23508 (response_push_pointer_to_free): Remove function.
23509 (resolv_response_add_name): Rewrite using struct compressed_name
23510 and tsearch instead of hsearch_r.
23511 (response_builder_allocate): Remove initialization of
23512 compression_offsets.
23513 (response_builder_free): Update for removal of to_be_freed. Use
23514 tdestroy instead of hdestroy_r.
23515 * resolv/Makefile (tests): Add tst-resolv-binary.
23516 (tst-resolv-binary): Link with -lresolv -lpthread.
23517
2b3aa446
FW
235182018-01-08 Florian Weimer <fweimer@redhat.com>
23519
23520 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
23521 time. Pass positive flag instead of negative flag to
23522 support_test_compare_failure.
23523 (support_test_compare_failure): Change negative parameter to
23524 positive.
23525 * support/support_test_compare_failure.c (report)
23526 (support_test_compare_failure): Likewise.
23527 * support/tst-test_compare.c (return_ssize_t, return_int): New.
23528 (do_test): Check int/size_t, ssize_t/size_t comparisons.
23529
630f4cc3
SN
235302018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
23531
23532 [BZ #22637]
23533 * nptl/descr.h (stackblock, stackblock_size): Update comments.
23534 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
23535 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
23536 stacksize.
23537 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
23538
c70e4e9c
L
235392018-01-08 H.J. Lu <hongjiu.lu@intel.com>
23540
23541 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23542 Add s_sincosf-sse2 and s_sincosf-fma.
23543 (CFLAGS-s_sincosf-fma.c): New.
23544 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
23545 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
23546 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
23547 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
23548 __sincosf is defined.
23549
579396ee
FW
235502018-01-08 Florian Weimer <fweimer@redhat.com>
23551
23552 * nptl/tst-thread-exit-clobber.cc: New file.
23553 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
23554 C++11 mode.
23555 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
23556 (tests): Add tst-thread-exit-clobber.
23557 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
23558
dabd75b6
FW
235592018-01-08 Florian Weimer <fweimer@redhat.com>
23560
23561 * support/check.h (support_static_assert): Define.
23562 (TEST_COMPARE): Use it.
23563
c2e014cc
AJ
235642018-01-07 Aurelien Jarno <aurelien@aurel32.net>
23565
23566 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
23567 [!__RLIM_T_MATCHES_RLIM64_T]
23568 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
23569 __getrlimit64. Add libc_hidden_weak.
23570
31a98837
PD
235712018-01-06 Palmer Dabbelt <palmer@sifive.com>
23572
23573 * elf/elf.h (R_RISCV_NONE): New define.
23574 (R_RISCV_32): Likewise.
23575 (R_RISCV_64): Likewise.
23576 (R_RISCV_RELATIVE): Likewise.
23577 (R_RISCV_COPY): Likewise.
23578 (R_RISCV_JUMP_SLOT): Likewise.
23579 (R_RISCV_TLS_DTPMOD32): Likewise.
23580 (R_RISCV_TLS_DTPMOD64): Likewise.
23581 (R_RISCV_TLS_DTPREL32): Likewise.
23582 (R_RISCV_TLS_DTPREL64): Likewise.
23583 (R_RISCV_TLS_TPREL32): Likewise.
23584 (R_RISCV_TLS_TPREL64): Likewise.
00505532
PD
23585 * Makerules (make-link-multidir): Make directories before linking into
23586 them.
150bbac1
PD
23587 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
23588 define.
23589 (VDSO_HASH_LINUX_4_15): Likewise.
1598f3ad
PD
23590 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
23591 in subdirectories of lib.
8e13c51b
PD
23592 * nptl/Makefile (/librt.so): Always depend on
23593 "$(shared-thread-library)".
31a98837 23594
fad7d57e
ST
235952018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
23596
23597 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
4a5ce6e9
ST
23598 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
23599 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
23600 (___tls_get_addr).
23601 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
107a35a5
ST
23602 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
23603 "-O2 -march=i686".
01c7e549 23604 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
f417d92c
ST
23605 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
23606 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
23607 * sysdeps/gnu/glob-lstat-compat.c: New file.
23608 * sysdeps/gnu/glob64-lstat-compat.c: New file.
200fc24b 23609 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
fad7d57e 23610
3a32b716
TMQMF
236112018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
23612
23613 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
23614 Reserve 16 chars to reloc_addr before calling _itoa_word.
23615
24731685
AJ
236162018-01-05 Aurelien Jarno <aurelien@aurel32.net>
23617
23618 [BZ #22678]
23619 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
23620 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
23621
19be56d8
AJ
23622 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
23623 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
23624
a6d0afb5
AJ
23625 * resource/tst-getrlimit.c: Add copyright header.
23626
8e900969
AJ
236272018-01-05 Aurelien Jarno <aurelien@aurel32.net>
23628 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23629
23630 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
23631 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
23632 Define __GI_getrlimit64 as weak alias of __getrlimit64.
23633 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
23634 instead.
23635 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
23636 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
23637 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
23638 RLIM64_INFINITY): Fix values to match the kernel ones.
23639 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
23640 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
23641 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
23642 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
23643 getrlimit64@@GLIBC_2_27.
23644 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
23645 and setrlimit64.
23646 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
23647 getrlimit, setrlimit, getrlimit64 and setrlimit64.
23648 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
23649 setrlimit, getrlimit64 and setrlimit64.
23650
0d0bc784
AJ
236512018-01-05 Aurelien Jarno <aurelien@aurel32.net>
23652
23653 [BZ #22648]
23654 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
23655 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
23656
ba374b6d
JM
236572018-01-04 Joseph Myers <joseph@codesourcery.com>
23658
23659 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
23660 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
23661 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
23662
4854ddd8
AZ
236632018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23664
b0a4eca2
AZ
23665 [BZ #15479]
23666 [BZ #22666]
23667 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
23668 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
23669
4854ddd8
AZ
23670 [BZ #15479]
23671 [BZ #22665]
23672 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
23673 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
23674 * sysdeps/alpha/fpu/s_floor.c: Likewise.
23675 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
23676
8a5df95f
FW
236772018-01-04 Florian Weimer <fweimer@redhat.com>
23678
23679 [BZ #22667]
23680 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
23681 Align the stack before calling exit.
23682 * stdlib/tst-makecontext-align.c: New file.
23683 * stdlib/Makefile (tests): Add tst-makecontext-align.
23684
82eef55f
FW
236852018-01-04 Florian Weimer <fweimer@redhat.com>
23686
23687 Add support for calling dlvsym from libc.so.
23688 * include/dlfcn.h (__libc_dlvsym): Declare.
23689 * elf/Makefile (tests-static-internal): Add
23690 tst-libc_dlvsym-static.
23691 (tests-internal): Add tst-libc_dlvsym.
23692 (modules-names): Add tst-libc_dlvsym-dso.
23693 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
23694 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
23695 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
23696 object tst-libc_dlvsym-dso.so needs to be built before running
23697 these tests.
23698 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
23699 * elf/Versions: Export __libc_dlvsym.
23700 * elf/dl-libc.c (struct do_dlvsym_args): New.
23701 (do_dlvsym, __libc_dlvsym): New functions.
23702 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
23703 (_dl_open_hook2): New variable.
23704 (__libc_register_dl_open_hook): Set it.
23705 * elf/tst-libc_dlvsym-dso.c: New file.
23706 * elf/tst-libc_dlvsym-static.c: Likewise.
23707 * elf/tst-libc_dlvsym.c: Likewise.
23708 * elf/tst-libc_dlvsym.h: Likewise.
23709
1714fc06
ST
237102018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
23711
23712 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
23713 include <sys/mount.h>.
23714
3c7d0312
WD
237152018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
23716
23717 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
23718 Add __NO_MATH_ERRNO__ check.
23719
7eff0954
JM
237202018-01-02 Joseph Myers <joseph@codesourcery.com>
23721
23722 * sysdeps/mips/mips32/libm-test-ulps: Update.
23723 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
23724
77f49956
FW
237252018-01-02 Florian Weimer <fweimer@redhat.com>
23726
23727 * misc/tst-pselect.c: Add copyright header.
23728
363e4519 237292018-01-02 Aurelien Jarno <aurelien@aurel32.net>
d35989be
AJ
23730
23731 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
23732 comment.
23733 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
23734 comment.
23735 (settrlimit): Rename into setrlimit.
23736 (__sttrlimit): Rename into __setrlimit.
23737
3e4226ff
AJ
23738 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
23739 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
23740 never defined in that case.
23741
b9256ab6
JM
237422018-01-02 Joseph Myers <joseph@codesourcery.com>
23743
28fd6a44
JM
23744 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
23745
a4933a15
JM
23746 * sysdeps/arm/libm-test-ulps: Update.
23747
b9256ab6
JM
23748 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
23749 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
23750
4cf82d23
RS
237512018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23752
23753 * NEWS: Add cosf and sincosf to list of optimized functions.
23754
6a9dd7a7
AJ
237552018-01-02 Aurelien Jarno <aurelien@aurel32.net>
23756
23757 [BZ #22660]
23758 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
23759 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
23760 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
23761 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
23762
dbba87d5
DL
237632018-01-01 Dmitry V. Levin <ldv@altlinux.org>
23764
b05cb613
DL
23765 [BZ #22433]
23766 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
23767
dbba87d5
DL
23768 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
23769 making a copy of it.
23770
688903eb
JM
237712018-01-01 Joseph Myers <joseph@codesourcery.com>
23772
66ac23de
JM
23773 * manual/texinfo.tex: Update to version 2017-12-26.21 with
23774 trailing whitespace removed.
23775 * scripts/config.guess: Update to version 2018-01-01.
23776 * scripts/config.sub: Update to version 2018-01-01.
23777 * scripts/move-if-change: Update from gnulib.
23778
09533208
JM
23779 * NEWS: Update copyright dates.
23780 * catgets/gencat.c (print_version): Likewise.
23781 * csu/version.c (banner): Likewise.
23782 * debug/catchsegv.sh: Likewise.
23783 * debug/pcprofiledump.c (print_version): Likewise.
23784 * debug/xtrace.sh (do_version): Likewise.
23785 * elf/ldconfig.c (print_version): Likewise.
23786 * elf/ldd.bash.in: Likewise.
23787 * elf/pldd.c (print_version): Likewise.
23788 * elf/sotruss.sh: Likewise.
23789 * elf/sprof.c (print_version): Likewise.
23790 * iconv/iconv_prog.c (print_version): Likewise.
23791 * iconv/iconvconfig.c (print_version): Likewise.
23792 * locale/programs/locale.c (print_version): Likewise.
23793 * locale/programs/localedef.c (print_version): Likewise.
23794 * login/programs/pt_chown.c (print_version): Likewise.
23795 * malloc/memusage.sh (do_version): Likewise.
23796 * malloc/memusagestat.c (print_version): Likewise.
23797 * malloc/mtrace.pl: Likewise.
23798 * manual/libc.texinfo: Likewise.
23799 * nptl/version.c (banner): Likewise.
23800 * nscd/nscd.c (print_version): Likewise.
23801 * nss/getent.c (print_version): Likewise.
23802 * nss/makedb.c (print_version): Likewise.
23803 * posix/getconf.c (main): Likewise.
23804 * scripts/test-installation.pl: Likewise.
23805 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
23806
688903eb
JM
23807 * All files with FSF copyright notices: Update copyright dates
23808 using scripts/update-copyrights.
23809 * locale/programs/charmap-kw.h: Regenerated.
23810 * locale/programs/locfile-kw.h: Likewise.
23811
4f820792
ZW
238122017-12-31 Zack Weinberg <zackw@panix.com>
23813
23814 * libio/bits/libio-ldbl.h: Correct check for improper
23815 inclusion. Add own multiple include guard.
23816
3e3c904d
AJ
238172017-12-30 Aurelien Jarno <aurelien@aurel32.net>
23818 Dmitry V. Levin <ldv@altlinux.org>
23819
23820 [BZ #22625]
31f96325 23821 CVE-2017-16997
3e3c904d
AJ
23822 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
23823 string token expansion. Check for NULL pointer or empty string possibly
23824 returned by expand_dynamic_string_token.
23825 (decompose_rpath): Check for empty path after dynamic string
23826 token expansion.
23827
7e21972b
DL
238282017-12-29 Dmitry V. Levin <ldv@altlinux.org>
23829
c48831d0
DL
23830 [BZ #22433]
23831 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
23832
ac583f50
DL
23833 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
23834 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
23835 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
23836 and PTRACE_SYSCALL.
23837 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
23838 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
23839 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
23840 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
23841 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
23842 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
23843
7e21972b
DL
23844 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
23845 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
23846 __ptrace_peeksiginfo_flags, ptrace): Move to ...
23847 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
23848 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
23849 bits/ptrace-shared.h.
23850 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
23851 <bits/ptrace-shared.h>.
23852 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
23853 __ptrace_peeksiginfo_flags, ptrace): Remove.
23854 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
23855 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
23856 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
23857 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
23858 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
23859
72f29e3a
AJ
238602017-12-29 Aurelien Jarno <aurelien@aurel32.net>
23861
23862 [BZ #17804]
23863 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
23864 end of the loop. Improve comments.
23865
54e4efc2
AJ
238662017-12-29 Zack Weinberg <zackw@panix.com>
23867
23868 [BZ #22615]
23869 * manual/errno.texi (Checking for Errors): Explicitly say that errno
23870 might be set on success.
23871
f8aa69be
AJ
238722017-12-29 Aurelien Jarno <aurelien@aurel32.net>
23873
23874 [BZ #22611]
23875 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
23876 is unchanged on success.
23877
97f13188
DL
238782017-12-27 Dmitry V. Levin <ldv@altlinux.org>
23879
2bd86632
DL
23880 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
23881 updated.
23882 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
23883 expand_dynamic_string_token): Likewise.
23884 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
23885 is_path argument.
23886
1c36e1e6
DL
23887 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
23888 contains ':'.
23889
97f13188
DL
23890 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
23891 is set and name contains ':', and all code depending on these checks.
23892
48a8f832
ZW
238932017-12-24 Zack Weinberg <zackw@panix.com>
23894
23895 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
23896 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
23897 respectively.
23898 * libio/libio.h: Rename the original version of this file to
23899 libio/bits/libio.h. Error out if not included by stdio.h or the
23900 stub libio.h.
23901 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
23902 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
23903 if not included by bits/libio.h or the stub _G_config.h.
23904 * sysdeps/unix/sysv/linux/_G_config.h: Move to
23905 sysdeps/unix/sysv/linux/bits. Error out if not included by
23906 bits/libio.h or the stub _G_config.h.
23907 * libio/stdio.h: Include bits/libio.h, not libio.h.
23908 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
23909 well as libio.h and _G_config.h.
23910
23911 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
23912 * libio/strfile.h, stdio-common/vfscanf.c
23913 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
23914 Include stdio.h, not _G_config.h nor libio.h.
23915 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
23916 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
23917
23918 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
23919
a47ad79a
DL
239202017-12-23 Dmitry V. Levin <ldv@altlinux.org>
23921
23922 [BZ #22347]
23923 * stdlib/getrandom.c (getrandom): Fix comment.
23924 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
23925
363e4519 239262017-12-23 Aurelien Jarno <aurelien@aurel32.net>
e65a5644 23927
f5c558f3
AJ
23928 [BZ #21161]
23929 * manual/arith.texi (strtoul): Fix a typo.
23930
e65a5644
AJ
23931 [BZ #22596]
23932 * manual/arith.texi (finite): Fix the description of the return
23933 value.
23934
ed8ae46b
EB
239352017-12-22 Eric Blake <ebb9@byu.net>
23936
23937 Avoid gcc warnings on cygwin
23938 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
23939 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
23940 Avoid unused variable.
23941
bad7a0c8
FW
239422017-12-22 Florian Weimer <fweimer@redhat.com>
23943
23944 * io/Makefile (routines): Add copy_file_range.
23945 (tests): Add tst-copy_file_range.
23946 (tests-static, tests-internal): Add tst-copy_file_range-compat.
23947 * io/Versions (GLIBC_2.27): Export copy_file_range.
23948 * io/copy_file_range-compat.c: New file.
23949 * io/copy_file_range.c: Likewise.
23950 * io/tst-copy_file_range-compat.c: Likewise.
23951 * io/tst-copy_file_range.c: Likewise.
23952 * manual/llio.texi (Copying File Data): New section.
23953 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
23954 * support/Makefile (libsupport-routines): Add support-xfstat,
23955 xftruncate, xlseek.
23956 * support/support-xfstat.c: New file.
23957 * support/xftruncate.c: Likewise.
23958 * support/xlseek.c: Likewise.
23959 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
23960 * sysdeps/unix/sysv/linux/**.abilist: Update.
23961 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
23962
6cb86fd2
SN
239632017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
23964
23965 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
23966 disable-multi-arch variant to aarch64-linux-gnu.
23967
41d11b15
JM
239682017-12-20 Joseph Myers <joseph@codesourcery.com>
23969
23970 * manual/texinfo.tex: Update to version 2017-12-18.20 with
23971 trailing whitespace removed.
23972 * scripts/config.guess: Update to version 2017-12-17.
23973 * scripts/config.sub: Update to version 2017-11-23.
23974 * scripts/install-sh: Update to version 2017-09-23.17.
23975 * scripts/move-if-change: Update to version 2017-09-13 06:45.
23976
4735850f
AZ
239772017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23978
8d2d239c
AZ
23979 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
23980 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
23981 * sysdeps/tile/_mcount.S (__mcount): Likewise.
23982 * sysdeps/tile/crti.S (_init, _fini): Likewise.
23983 * sysdeps/tile/crtn.S: Likewise.
23984 * sysdeps/tile/dl-start.S (_start): Likewise.
23985 * sysdeps/tile/dl-trampoline.S: Likewise.
23986 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
23987 * sysdeps/tile/start.S (_start): Likewise.
23988 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
23989 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
23990 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
23991 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
23992 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
23993 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
23994 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
23995
24d1d8ec
AZ
23996 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
23997 comment.
23998 * sysdeps/tile/preconfigure: Remove tilegx folder.
23999 * sysdeps/tile/tilegx/Implies: Move definitions to ...
24000 * sysdeps/tile/Implies: ... here.
24001 * sysdeps/tile/tilegx/Makefile: Move rules to ...
24002 * sysdeps/tile/Makefile: ... here.
24003 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
24004 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
24005 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
24006 * sysdeps/tile/bits/wordsize.h: ... here.
24007 * sysdeps/tile/tilegx/*: Move to ...
24008 * sysdeps/tile/*: ... here.
24009 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
24010 * sysdeps/tile/tilegx32/Implies: ... here.
24011 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
24012 * sysdeps/tile/tilegx64/Implies: ... here.
24013 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
24014 to ...
24015 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
24016 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
24017 * sysdeps/unix/sysv/linux/tile/*: ... here.
24018 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
24019 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
24020 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
24021 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
24022
ed95f611
AZ
24023 * README: Remove tilepro-*-linux-gnu from supported architecture.
24024 * scripts/build-many-glibcs.py: Likewise.
24025 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
24026 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
24027 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
24028 elf_machine_matches_host, elf_machine_dynamic,
24029 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
24030 howto, elf_machine_rela): Likewise.
24031 * sysdeps/tile/dl-start.S (_start): Likewise.
24032 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
24033 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
24034 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
24035 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
24036 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
24037 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
24038 Likewise.
24039 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
24040 * sysdeps/tile/preconfigure: Likewise.
24041 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
24042 POINTER_CHK_GUARD): Likewise.
24043 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
24044 * sysdeps/tile/start.S (_start): Likewise.
24045 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
24046 Likewise.
24047 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
24048 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
24049 CMOVNEZ): Remove.
24050 * sysdeps/unix/sysv/linux/tile/bits/environments.h
24051 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
24052 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
24053 Likewise.
24054 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
24055 * sysdeps/tile/tilepro/Implies: Remove file.
24056 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
24057 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
24058 * sysdeps/tile/tilepro/memchr.c: Likewise.
24059 * sysdeps/tile/tilepro/memcpy.S: Likewise.
24060 * sysdeps/tile/tilepro/memset.c: Likewise.
24061 * sysdeps/tile/tilepro/memusage.h: Likewise.
24062 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
24063 * sysdeps/tile/tilepro/strchr.c: Likewise.
24064 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
24065 * sysdeps/tile/tilepro/strlen.c: Likewise.
24066 * sysdeps/tile/tilepro/strrchr.c: Likewise.
24067 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
24068 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
24069 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
24070 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
24071 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
24072 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
24073 Likewise.
24074 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
24075 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
24076 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
24077 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
24078 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
24079 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
24080 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
24081 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
24082 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
24083 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
24084 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
24085 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
24086 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
24087 tilepro mention in comment.
24088
4735850f
AZ
24089 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
24090 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
24091 * nptl/pthread_join_common.c: New file: common function used on
24092 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
24093 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
24094 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
24095 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
24096 (cleanup): Move definition to pthread_join_common.c.
24097 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
24098 Remove superflous checks.
24099 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
24100 Likewise.
24101
8bfb461e
SN
241022017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
24103
24104 * sysdeps/aarch64/libm-test-ulps: Update.
24105
4e001969
AZ
241062017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24107
24108 * sysdeps/aarch64/memset.S (MEMSET): Define.
24109
8a26ad2a
FW
241102017-12-20 Florian Weimer <fweimer@redhat.com>
24111
24112 [BZ #22635]
24113 nptl: Provide full implementation of pthread_self in libc.so.
24114 * nptl/Makefile (routines): Add pthread_self.
24115 (libpthread-routines): Replace pthread_self with
24116 compat-pthread_self.
24117 * nptl/forward.c (pthread_self): Remove.
24118 * nptl/nptl-init.c (pthread_functions): Do not initialize
24119 ptr_pthread_self.
24120 * nptl/pthread_self.c (pthread_self): Remove weak alias.
24121 * nptl/compat-pthread_self.c: New file.
24122 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
24123 Remove ptr_pthread_self.
24124
5069ff32
AR
241252017-12-19 Arnold D. Robbins <arnold@skeeve.com>
24126
24127 * posix/regcomp.c: Fix spelling in comments.
24128 * posix/regex.h: Likewise.
24129 * posix/regex_internal.c: Likewise.
24130 * posix/regexec.c: Likewise.
24131
c85e54ac
GG
241322017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
24133
24134 [BZ #22377]
24135 * math/Makefile [C++] (tests): Add test for iseqsig.
24136 * math/math.h [C++] (iseqsig): New implementation, which does
24137 not rely on __MATH_TG/__builtin_types_compatible_p.
24138 * math/test-math-iseqsig.cc: New file.
24139 * sysdeps/powerpc/powerpc64le/Makefile
24140 (CFLAGS-test-math-iseqsig.cc): New variable.
24141
10e93d96
DL
241422017-12-19 Dmitry V. Levin <ldv@altlinux.org>
24143
24144 * elf/dl-load.c (is_trusted_path): Remove.
24145 (fillin_rpath): Remove check_trusted argument and its use,
24146 all callers changed.
24147
ce16eb52
L
241482017-12-19 H.J. Lu <hongjiu.lu@intel.com>
24149
24150 [BZ #22630]
24151 * Makeconfig (link-pie-before-libc): Replace -pie with
24152 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
24153 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
24154 (tst-dlopen-aout-no-pie): New.
24155 (LDFLAGS-tst-prelink): Removed.
24156 (tst-prelink-no-pie): New.
24157 (LDFLAGS-tst-main1): Removed.
24158 (tst-main1-no-pie): New.
24159 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
24160 (tst-gmon-no-pie): New.
24161
126adc89
L
241622017-12-19 H.J. Lu <hongjiu.lu@intel.com>
24163
24164 * manual/install.texi: Document that --enable-static-pie
24165 implies PIE.
24166 * INSTALL: Regenerated.
24167
648615e1
BE
241682017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
24169
24170 [BZ #21309]
24171 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
24172 unsigned.
24173
f1e00502
JM
241742017-12-19 Joseph Myers <joseph@codesourcery.com>
24175
24176 Revert:
24177
24178 2017-12-19 Joseph Myers <joseph@codesourcery.com>
24179
24180 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
24181
24182 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
24183
24184 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
24185 <errno.h>. Include "eexp.tbl".
24186 (half): New constant.
24187 (one): Likewise.
24188 (__ieee754_exp): Rewrite.
24189 (__slowexp): Remove prototype.
24190 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
24191 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
24192 * sysdeps/i386/fpu/slowexp.c: Likewise.
24193 * sysdeps/ia64/fpu/slowexp.c: Likewise.
24194 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
24195 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
24196 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
24197 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
24198 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
24199 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
24200 comment.
24201 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
24202 (CPPFLAGS-slowexp.c): Remove variable.
24203 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24204 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
24205 (CFLAGS-slowexp-fma.c): Remove variable.
24206 (CFLAGS-slowexp-fma4.c): Likewise.
24207 (CFLAGS-slowexp-avx.c): Likewise.
24208 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
24209 define as macro.
24210 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
24211 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
24212 * math/Makefile (type-double-routines): Remove slowexp.
24213 * manual/probes.texi (slowexp_p6): Remove.
24214 (slowexp_p32): Likewise.
24215
d711a00f
AZ
242162017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24217
e184ac3a
AZ
24218 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
24219 arithmetic.
24220
d711a00f
AZ
24221 * lib/glob.c (glob): Do not pass NULL to mempcpy.
24222
6f58c10d
JM
242232017-12-19 Joseph Myers <joseph@codesourcery.com>
24224
24225 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
24226
6fd0a3c6
PM
242272017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
24228
24229 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
24230 <errno.h>. Include "eexp.tbl".
24231 (half): New constant.
24232 (one): Likewise.
24233 (__ieee754_exp): Rewrite.
24234 (__slowexp): Remove prototype.
24235 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
24236 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
24237 * sysdeps/i386/fpu/slowexp.c: Likewise.
24238 * sysdeps/ia64/fpu/slowexp.c: Likewise.
24239 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
24240 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
24241 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
24242 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
24243 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
24244 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
24245 comment.
24246 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
24247 (CPPFLAGS-slowexp.c): Remove variable.
24248 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24249 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
24250 (CFLAGS-slowexp-fma.c): Remove variable.
24251 (CFLAGS-slowexp-fma4.c): Likewise.
24252 (CFLAGS-slowexp-avx.c): Likewise.
24253 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
24254 define as macro.
24255 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
24256 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
24257 * math/Makefile (type-double-routines): Remove slowexp.
24258 * manual/probes.texi (slowexp_p6): Remove.
24259 (slowexp_p32): Likewise.
24260
3bb1ef58 242612017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6b5c8607 24262 James Clarke <jrtc27@jrtc27.com>
3bb1ef58
AZ
24263
24264 [BZ #22603]
24265 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
24266 addition.
24267
554e3d51
AZ
242682017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24269
24270 [BZ #22605]
24271 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
24272 code.
24273
cba595c3
L
242742017-12-19 H.J. Lu <hongjiu.lu@intel.com>
24275
24276 [BZ #22563]
24277 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
24278 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
24279 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
24280 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
24281 to feature_1.
24282
f81ddabf
L
242832017-12-19 H.J. Lu <hongjiu.lu@intel.com>
24284
24285 [BZ #22563]
24286 * bits/types/__cancel_jmp_buf_tag.h: New file.
24287 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
24288 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
24289 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
24290 * nptl/Makefile (headers): Add
24291 bits/types/__cancel_jmp_buf_tag.h.
24292 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
24293 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
24294 * sysdeps/nptl/pthread.h: Include
24295 <bits/types/__cancel_jmp_buf_tag.h>.
24296 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
24297 __cancel_jmp_buf.
24298 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
24299
1a49fc59
L
243002017-12-18 H.J. Lu <hongjiu.lu@intel.com>
24301
24302 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
24303 --enable-static-pie variants to x86_64, x32 and i686.
24304
8e52f573
JM
243052017-12-19 Joseph Myers <joseph@codesourcery.com>
24306
66425185
JM
24307 [BZ #22631]
24308 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
24309 argument for attrubutes. All callers changed.
24310 (__inline_mathop1): Likewise. All callers changed.
24311 (__inline_mathop): Likewise. All callers changed.
24312 [__USE_MISC] (scalbn): Use __inline_forward instead of
24313 __inline_forward_c.
24314 [__USE_ISOC99] (scalbln): Likewise.
24315 [__USE_ISOC99] (nearbyint): Likewise.
24316 [__USE_ISOC99] (lrint): Likewise.
24317 [__USE_MISC] (scalbnf): Likewise.
24318 [__USE_ISOC99] (scalblnf): Likewise.
24319 [__USE_ISOC99] (nearbyintf): Likewise.
24320 [__USE_ISOC99] (lrintf): Likewise.
24321 [__USE_MISC] (scalbnl): Likewise.
24322 [__USE_ISOC99] (scalblnl): Likewise.
24323 [__USE_ISOC99] (nearbyintl): Likewise.
24324 [__USE_ISOC99] (lrintl): Likewise.
24325 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
24326 __inline_mathop and __m81_defun changed.
24327
8e52f573
JM
24328 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
24329 CPU or FPU for ARM hard-float configurations.
24330
1421f39b
JM
243312017-12-18 Joseph Myers <joseph@codesourcery.com>
24332
40c4162d
JM
24333 * nptl/tst-attr3.c: Include <libc-diag.h>.
24334 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
24335
5983df32
JM
24336 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
24337
1421f39b
JM
24338 * string/tester.c (test_strncat): Also disable -Warray-bounds
24339 warnings for two tests.
24340
00c714df
L
243412017-12-18 H.J. Lu <hongjiu.lu@intel.com>
24342
24343 [BZ #22614]
24344 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
24345 $(cc-pie-default) == yes.
24346 * config.make.in (cc-pie-default): New.
24347 * configure.ac (libc_cv_pie_default): Renamed to ...
24348 (libc_cv_cc_pie_default): This.
24349 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
24350 * configure: Regenerated.
24351
8e1472d2
FW
243522017-12-18 Florian Weimer <fweimer@redhat.com>
24353
24354 [BZ #20204]
24355 ld.so: Harden dl-libc/libdl hooks.
24356 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
24357 (rtld_active): New function.
24358 * dlfcn/dladdr.c (__dladdr): Call it.
24359 * dlfcn/dladdr1.c (__dladdr1): Likewise.
24360 * dlfcn/dlclose.c (__dlcose): Likewise.
24361 * dlfcn/dlerror.c (__dlerror): Likewise.
24362 * dlfcn/dlinfo.c (__dlinfo): Likewise.
24363 * dlfcn/dlmopen.c (__dlmopen): Likewise.
24364 * dlfcn/dlopen.c (__dlopen): Likewise.
24365 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
24366 * dlfcn/dlsym.c (__dlsym): Likewise.
24367 * dlfcn/dlvsym.c (__dlvsym): Likewise.
24368 * libio/vtables.c (_IO_vtable_check): Likewise.
24369 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
24370 (__libc_dlclose): Likewise.
24371 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
24372 assignment.
24373
49b036bc
JM
243742017-12-18 Joseph Myers <joseph@codesourcery.com>
24375
24376 [BZ #22446]
24377 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
24378 buffers for readlink input and output.
24379
368b6c8d
ST
243802017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
24381
c85c564d
ST
24382 [BZ #22624]
24383 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
24384 inhibit_stack_protector.
24385
368b6c8d
ST
24386 [BZ #22624]
24387 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
24388 inhibit_stack_protector.
24389
bb195224
DL
243902017-12-18 Dmitry V. Levin <ldv@altlinux.org>
24391
24392 [BZ #22627]
24393 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
24394 code and invocation.
24395
14d886ed
SN
243962017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
24397
24398 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
24399
7d38eb38
AJ
244002017-12-16 Aurelien Jarno <aurelien@aurel32.net>
24401
24402 [BZ #22505]
24403 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
24404
2e77deef
RS
244052017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24406
24407 * sysdeps/s390/fpu/libm-test-ulps: Update.
24408
0b9bef6d
RS
244092017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24410
24411 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
24412
984ae996
RS
244132017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24414
24415 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
24416 constants to s_sincosf.h file.
24417 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
24418 * sysdeps/ieee754/flt-32/s_sincosf.c: New
24419 implementation.
24420 * sysdeps/ieee754/flt-32/s_sincosf.h:
24421 New file.
24422
363e4519 244232017-12-12 Carlos O'Donell <carlos@redhat.com>
93930ea9
CD
24424
24425 [BZ #14681]
24426 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
24427 before mtrace.
24428
9d7a3741
L
244292017-12-15 H.J. Lu <hongjiu.lu@intel.com>
24430
24431 [BZ #19574]
24432 * INSTALL: Regenerated.
24433 * Makeconfig (real-static-start-installed-name): New.
24434 (pic-default): Updated for --enable-static-pie.
24435 (pie-default): New for --enable-static-pie.
24436 (default-pie-ldflag): Likewise.
24437 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
24438 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
24439 Replace $(static-start-installed-name) with
24440 $(real-static-start-installed-name).
24441 (+prectorT): Updated for --enable-static-pie.
24442 (+postctorT): Likewise.
24443 (CFLAGS-.o): Add $(pie-default).
24444 (CFLAGS-.op): Likewise.
24445 * NEWS: Mention --enable-static-pie.
24446 * config.h.in (ENABLE_STATIC_PIE): New.
24447 * configure.ac (--enable-static-pie): New configure option.
24448 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
24449 (have-static-pie): Likewise.
24450 Enable static PIE if linker supports --no-dynamic-linker.
24451 (ENABLE_STATIC_PIE): New AC_DEFINE.
24452 (enable-static-pie): New LIBC_CONFIG_VAR.
24453 * configure: Regenerated.
24454 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
24455 gr$(start-installed-name) for --enable-static-pie.
24456 (extra-objs): Likewise.
24457 (install-lib): Likewise.
24458 (extra-objs): Add static-reloc.o and static-reloc.os
24459 ($(objpfx)$(start-installed-name)): Also depend on
24460 $(objpfx)static-reloc.o.
24461 ($(objpfx)r$(start-installed-name)): New.
24462 ($(objpfx)g$(start-installed-name)): Also depend on
24463 $(objpfx)static-reloc.os.
24464 ($(objpfx)gr$(start-installed-name)): New.
24465 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
24466 in libc.a.
24467 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
24468 initimage.
24469 * csu/static-reloc.c: New file.
24470 * elf/Makefile (routines): Add dl-reloc-static-pie.
24471 (elide-routines.os): Likewise.
24472 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
24473 (tst-tls1-static-non-pie-no-pie): New.
24474 * elf/dl-reloc-static-pie.c: New file.
24475 * elf/dl-support.c (_dl_get_dl_main_map): New function.
24476 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
24477 STATIC_PIE_BOOTSTRAP.
24478 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
24479 * gmon/Makefile (tests): Add tst-gmon-static-pie.
24480 (tests-static): Likewise.
24481 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
24482 (tst-gmon-static-no-pie): New.
24483 (CFLAGS-tst-gmon-static-pie.c): Likewise.
24484 (CRT-tst-gmon-static-pie): Likewise.
24485 (tst-gmon-static-pie-ENV): Likewise.
24486 (tests-special): Likewise.
24487 ($(objpfx)tst-gmon-static-pie.out): Likewise.
24488 (clean-tst-gmon-static-pie-data): Likewise.
24489 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
24490 * gmon/tst-gmon-static-pie.c: New file.
24491 * manual/install.texi: Document --enable-static-pie.
24492 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
24493 (_dl_get_dl_main_map): Likewise.
24494 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
24495 * sysdeps/x86_64/configure.ac: Likewise.
24496 * sysdeps/i386/configure: Regenerated.
24497 * sysdeps/x86_64/configure: Likewise.
24498 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
24499 (ASFLAGS-.op): Likewise.
24500
95511aab
JM
245012017-12-15 Joseph Myers <joseph@codesourcery.com>
24502
24503 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
24504 * posix/tst-mmap-offset.c (fname): Use /tmp.
24505 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
24506
a7e3edf4
SE
245072017-12-15 Steve Ellcey <sellcey@cavium.com>
24508
24509 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
24510
d232f2e1
TS
245112017-12-15 Thomas Schwinge <thomas@codesourcery.com>
24512
24513 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
24514 errno.
24515
174edbde
JM
245162017-12-15 Joseph Myers <joseph@codesourcery.com>
24517
5170fa49
JM
24518 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
24519 --with-float=hard for arm-linux-gnueabihf configurations.
24520
f2da2fd8
JM
24521 [BZ #14121]
24522 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
24523 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
24524 ($(mo-installed)): Use $(objpfx)%.mo.
24525 (realclean): Remove rule.
24526
0c4fe28d
JM
24527 * po/Makefile (linguas): Remove rule and dependencies.
24528 (linguas.mo): Likewise.
24529 (.PHONY): Do not depend on linguas and linguas.mo.
24530 (podir): Remove variable.
24531 (pofiles): Likewise.
24532 [$(pofiles)] (%.po): Remove rule.
24533
174edbde
JM
24534 * sysdeps/sparc/sparc32/Makefile
24535 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
24536 start-of-line whitespace in argument of echo.
24537 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
24538 with whitespace. Generate __wrap_.udiv alias.
24539 * sysdeps/sparc/sparc32/rem.S: Regenerated.
24540 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
24541 * sysdeps/sparc/sparc32/udiv.S: Likewise.
24542 * sysdeps/sparc/sparc32/urem.S: Likewise.
24543
1e36806f
RS
245442017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24545
24546 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
24547 for aligned inputs.
24548
aa6932aa
SP
245492017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
24550
5f1603c3
SP
24551 * benchtests/bench-strcmp.c: Print output in JSON format.
24552
aa6932aa
SP
24553 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
24554
3ff3dfa5
FW
245552017-12-14 Florian Weimer <fweimer@redhat.com>
24556
24557 [BZ #22607]
24558 CVE-2017-1000409
24559 * elf/dl-load.c (_dl_init_paths): Compute number of components in
24560 the expanded path string.
24561
8a0b17e4
FW
245622017-12-14 Florian Weimer <fweimer@redhat.com>
24563
24564 [BZ #22606]
24565 CVE-2017-1000408
24566 * elf/dl-load.c (system_dirs): Update comment.
24567 (nsystem_dirs_len): Use array_length.
24568 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
24569
f58bd7f0
FW
245702017-12-14 Florian Weimer <fweimer@redhat.com>
24571
24572 Simplify compiling most of support/ outside of glibc.
24573 * support/check_addrinfo.c: Include <string.h>.
24574 * support/check_dns_packet.c: Likewise.
24575 * support/check_hostent.c: Likewise.
24576 * support/support_can_chroot.c: Include <support/xunistd.h>.
24577 * support/support_format_addrinfo.c: Include <stdlib.h>
24578 * support/support_format_dns_packet.c: Include <stdbool.h>.
24579 * support/support_format_hostent.c: Include <stdlib.h>.
24580 * support/support_format_netent.c: Likewise.
24581 * support/support_write_string.c: Include <support/xunistd.h>.
24582 * support/xdlfcn.c: Include <stddef.h>.
24583
4ca945e9
L
245842017-12-14 H.J. Lu <hongjiu.lu@intel.com>
24585
24586 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
24587
1b6e07f8
PM
245882017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
24589 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24590
e6a1c5dc
PM
24591 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
24592 (sysdeps_routines): Add memset-niagara7.
24593 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
24594 Likewise.
24595 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
24596 file.
24597 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
24598 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
24599 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
24600 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
24601 Add niagara7 option.
24602 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
24603 memset.
24604
1b6e07f8
PM
24605 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
24606 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
24607 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
24608 Likewise.
24609 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
24610 New file.
24611 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
24612 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
24613 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
24614 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
24615 and __memmove_niagara7.
24616 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
24617 Add niagara7 option.
24618 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
24619 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
24620 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
24621 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
24622 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
24623
bfb7bf22
JM
246242017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
24625
767a26d6
JM
24626 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
24627 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
24628 * sysdeps/sparc/sparc64/memmove.S: Likewise.
24629 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
24630
bfb7bf22
JM
24631 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
24632 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
24633 _dl_sparc_cap_flags array.
24634 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
24635
2bce01eb
SP
246362017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
24637
24638 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
24639 time whenever possible.
24640
363e4519 246412017-12-12 Carlos O'Donell <carlos@redhat.com>
243b6333
CD
24642
24643 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
24644 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
24645
6f7c0092
JM
246462017-12-12 Joseph Myers <joseph@codesourcery.com>
24647
24648 * soft-fp/fmadf4.c: Move to ....
24649 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
24650 * soft-fp/fmasf4.c: Move to ....
24651 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
24652 * soft-fp/fmatf4.c: Move to ....
24653 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
24654 * sysdeps/ieee754/soft-fp/Makefile: New file.
24655 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
24656 * sysdeps/arm/preconfigure: Regenerated.
24657 * sysdeps/arm/nofpu/Implies: New file.
24658 * sysdeps/arm/s_fma.c: Remove file.
24659 * sysdeps/arm/s_fmaf.c: Likewise.
24660 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
24661 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
24662 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
24663 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
24664 * sysdeps/microblaze/s_fma.c: Remove file.
24665 * sysdeps/microblaze/s_fmaf.c: Likewise.
24666 * sysdeps/mips/mips32/nofpu/Implies: New file.
24667 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
24668 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
24669 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
24670 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
24671 * sysdeps/mips/ieee754/s_fma.c: Remove file.
24672 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
24673 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
24674 implementation.
24675 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
24676 * sysdeps/nios2/s_fma.c: Remove file.
24677 * sysdeps/nios2/s_fmaf.c: Likewise.
24678 * sysdeps/sh/nofpu/Implies: New file.
24679 * sysdeps/sh/s_fma.c: Remove file.
24680 * sysdeps/sh/s_fmaf.c: Likewise.
24681 * sysdeps/tile/Implies: Add ieee754/soft-fp.
24682 * sysdeps/tile/s_fma.c: Remove file.
24683 * sysdeps/tile/s_fmaf.c: Likewise.
24684
ac817e08
L
246852017-12-12 H.J. Lu <hongjiu.lu@intel.com>
24686
24687 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24688 Add s_cosf-sse2 and s_cosf-fma.
24689 (CFLAGS-s_cosf-fma.c): New.
24690 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
24691 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
24692 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
24693
eb428576
SE
246942017-12-12 Steve Ellcey <sellcey@cavium.com>
24695
24696 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
24697
c80acdc3
AZ
246982017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24699
cc683f7e
AZ
24700 * libio/Makefile (tests): Add tst-bz22415.
24701 (tst-bz22415-ENV): New rule.
24702 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
24703 (tests-special): Add tst-bz22415-mem.out.
24704 ($(objpfx)tst-bz22415-mem.out): New rule.
24705 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
24706 in case of a successful seek operation.
24707 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
24708 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
24709 buffer is required.
24710 * libio/tst-bz22415.c: New test.
24711
c80acdc3
AZ
24712 * sysdeps/ia64/fpu/libm-test-ulps: Update.
24713
363e4519 247142017-12-12 James Clarke <jrtc27@jrtc27.com>
89bd8016
JC
24715
24716 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
24717 __IPC_64 to 0 to avoid IPC_64 being set.
24718
4e0dca54
SN
247192017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
24720
24721 [BZ #22593]
24722 * math/bits/mathcalls.h (nextafter): Remove const.
24723 (nexttoward): Likewise.
24724
8df5d347
JM
247252017-12-12 Joseph Myers <joseph@codesourcery.com>
24726
24727 * configure.ac (--with-fp): Remove configure option.
24728 (with_fp_cond): New variable.
24729 (libc_cv_with_fp): New configure test. Use this variable instead
24730 of with_fp.
24731 * configure: Regenerated.
24732 * config.make.in (with-fp): Use @libc_cv_with_fp@.
24733 * manual/install.texi (Configuring and compiling): Remove
24734 --without-fp.
24735 * INSTALL: Regenerated.
24736 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
24737 * sysdeps/mips/preconfigure (with_fp_cond): Define.
24738 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
24739 * sysdeps/sh/preconfigure (with_fp_cond): Define.
24740 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
24741 use --without-fp to configure glibc.
24742
0cee1257
RJ
247432017-12-12 Rical Jasan <ricaljasan@pacific.net>
24744
24745 * manual/locale.texi (nl_langinfo): Fix a typo.
24746
363e4519 247472017-12-12 Aurelien Jarno <aurelien@aurel32.net>
f54ad2f9
AJ
24748
24749 [BZ #22588]
24750 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
24751
36975e8e
L
247522017-12-11 H.J. Lu <hongjiu.lu@intel.com>
24753
24754 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
24755 (CFLAGS-argp-parse.c): Likewise.
24756 (CFLAGS-argp-fmtstream.c): Likewise.
24757 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
24758 (CPPFLAGS-sha512-crypt.c): Likewise.
24759 (CPPFLAGS-md5-crypt.c): Likewise.
24760 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
24761 (CFLAGS-stack_chk_fail_local.c): Likewise.
24762 (CFLAGS-backtrace.c): Likewise.
24763 (CFLAGS-sprintf_chk.c): Likewise.
24764 (CFLAGS-snprintf_chk.c): Likewise.
24765 (CFLAGS-vsprintf_chk.c): Likewise.
24766 (CFLAGS-vsnprintf_chk.c): Likewise.
24767 (CFLAGS-asprintf_chk.c): Likewise.
24768 (CFLAGS-vasprintf_chk.c): Likewise.
24769 (CFLAGS-obprintf_chk.c): Likewise.
24770 (CFLAGS-dprintf_chk.c): Likewise.
24771 (CFLAGS-vdprintf_chk.c): Likewise.
24772 (CFLAGS-printf_chk.c): Likewise.
24773 (CFLAGS-fprintf_chk.c): Likewise.
24774 (CFLAGS-vprintf_chk.c): Likewise.
24775 (CFLAGS-vfprintf_chk.c): Likewise.
24776 (CFLAGS-gets_chk.c): Likewise.
24777 (CFLAGS-fgets_chk.c): Likewise.
24778 (CFLAGS-fgets_u_chk.c): Likewise.
24779 (CFLAGS-fread_chk.c): Likewise.
24780 (CFLAGS-fread_u_chk.c): Likewise.
24781 (CFLAGS-swprintf_chk.c): Likewise.
24782 (CFLAGS-vswprintf_chk.c): Likewise.
24783 (CFLAGS-wprintf_chk.c): Likewise.
24784 (CFLAGS-fwprintf_chk.c): Likewise.
24785 (CFLAGS-vwprintf_chk.c): Likewise.
24786 (CFLAGS-vfwprintf_chk.c): Likewise.
24787 (CFLAGS-fgetws_chk.c): Likewise.
24788 (CFLAGS-fgetws_u_chk.c): Likewise.
24789 (CFLAGS-read_chk.c): Likewise.
24790 (CFLAGS-pread_chk.c): Likewise.
24791 (CFLAGS-pread64_chk.c): Likewise.
24792 (CFLAGS-recv_chk.c): Likewise.
24793 (CFLAGS-recvfrom_chk.c): Likewise.
24794 (CFLAGS-tst-longjmp_chk.c): Likewise.
24795 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
24796 (CFLAGS-tst-longjmp_chk2.c): Likewise.
24797 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
24798 (CFLAGS-tst-longjmp_chk3.c): Likewise.
24799 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
24800 (CFLAGS-tst-chk1.c): Likewise.
24801 (CFLAGS-tst-chk2.c): Likewise.
24802 (CFLAGS-tst-chk3.c): Likewise.
24803 (CFLAGS-tst-chk4.cc): Likewise.
24804 (CFLAGS-tst-chk5.cc): Likewise.
24805 (CFLAGS-tst-chk6.cc): Likewise.
24806 (CFLAGS-tst-lfschk1.c): Likewise.
24807 (CFLAGS-tst-lfschk2.c): Likewise.
24808 (CFLAGS-tst-lfschk3.c): Likewise.
24809 (CFLAGS-tst-lfschk4.cc): Likewise.
24810 (CFLAGS-tst-lfschk5.cc): Likewise.
24811 (CFLAGS-tst-lfschk6.cc): Likewise.
24812 (CFLAGS-tst-ssp-1.c): Likewise.
24813 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
24814 (CFLAGS-scandir64.c): Likewise.
24815 (CFLAGS-scandir-tail.c): Likewise.
24816 (CFLAGS-scandir64-tail.c): Likewise.
24817 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
24818 (CFLAGS-dl-tunables.c): Likewise.
24819 (CFLAGS-dl-runtime.c): Likewise.
24820 (CFLAGS-dl-lookup.c): Likewise.
24821 (CFLAGS-dl-iterate-phdr.c): Likewise.
24822 (CFLAGS-vismain.c): Likewise.
24823 (CFLAGS-tst-linkall-static.c): Likewise.
24824 (CFLAGS-tst-linkall-static.c): Likewise.
24825 (CPPFLAGS-dl-load.c): Likewise.
24826 (CFLAGS-ldconfig.c): Likewise.
24827 (CFLAGS-dl-cache.c): Likewise.
24828 (CFLAGS-cache.c): Likewise.
24829 (CFLAGS-rtld.c): Likewise.
24830 (CFLAGS-multiload.c): Likewise.
24831 (CFLAGS-filtmod1.c): Likewise.
24832 (CFLAGS-tst-align.c): Likewise.
24833 (CFLAGS-tst-align2.c): Likewise.
24834 (CFLAGS-tst-alignmod.c): Likewise.
24835 (CFLAGS-tst-alignmod2.c): Likewise.
24836 (CPPFLAGS-tst-execstack.c): Likewise.
24837 (CFLAGS-tst-ptrguard1-static.c): Likewise.
24838 (CFLAGS-tst-latepthreadmod.c): Likewise.
24839 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
24840 (CFLAGS-getgrnam_r.c): Likewise.
24841 (CFLAGS-getgrent_r.c): Likewise.
24842 (CFLAGS-getgrent.c): Likewise.
24843 (CFLAGS-fgetgrent.c): Likewise.
24844 (CFLAGS-fgetgrent_r.c): Likewise.
24845 (CFLAGS-putgrent.c): Likewise.
24846 (CFLAGS-initgroups.c): Likewise.
24847 (CFLAGS-getgrgid.c): Likewise.
24848 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
24849 (CFLAGS-getsgent.c): Likewise.
24850 (CFLAGS-fgetsgent.c): Likewise.
24851 (CFLAGS-fgetsgent_r.c): Likewise.
24852 (CFLAGS-putsgent.c): Likewise.
24853 (CFLAGS-getsgnam.c): Likewise.
24854 (CFLAGS-getsgnam_r.c): Likewise.
24855 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
24856 (CFLAGS-iconv_charmap.c): Likewise.
24857 (CFLAGS-dummy-repertoire.c): Likewise.
24858 (CFLAGS-charmap.c): Likewise.
24859 (CFLAGS-linereader.c): Likewise.
24860 (CFLAGS-simple-hash.c): Likewise.
24861 (CFLAGS-gconv_conf.c): Likewise.
24862 (CFLAGS-iconvconfig.c): Likewise.
24863 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
24864 (CFLAGS-gethstbyad.c): Likewise.
24865 (CFLAGS-gethstbynm_r.c): Likewise.
24866 (CFLAGS-gethstbynm.c): Likewise.
24867 (CFLAGS-gethstbynm2_r.c): Likewise.
24868 (CFLAGS-gethstbynm2.c): Likewise.
24869 (CFLAGS-gethstent_r.c): Likewise.
24870 (CFLAGS-gethstent.c): Likewise.
24871 (CFLAGS-rcmd.c): Likewise.
24872 (CFLAGS-getnetbynm_r.c): Likewise.
24873 (CFLAGS-getnetbynm.c): Likewise.
24874 (CFLAGS-getnetbyad_r.c): Likewise.
24875 (CFLAGS-getnetbyad.c): Likewise.
24876 (CFLAGS-getnetent_r.c): Likewise.
24877 (CFLAGS-getnetent.c): Likewise.
24878 (CFLAGS-getaliasent_r.c): Likewise.
24879 (CFLAGS-getaliasent.c): Likewise.
24880 (CFLAGS-getrpcent_r.c): Likewise.
24881 (CFLAGS-getrpcent.c): Likewise.
24882 (CFLAGS-getservent_r.c): Likewise.
24883 (CFLAGS-getservent.c): Likewise.
24884 (CFLAGS-getprtent_r.c): Likewise.
24885 (CFLAGS-getprtent.c): Likewise.
24886 (CFLAGS-either_ntoh.c): Likewise.
24887 (CFLAGS-either_hton.c): Likewise.
24888 (CFLAGS-getnetgrent.c): Likewise.
24889 (CFLAGS-getnetgrent_r.c): Likewise.
24890 (CFLAGS-tst-checks-posix.c): Likewise.
24891 (CFLAGS-tst-sockaddr.c): Likewise.
24892 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
24893 (CFLAGS-tst-translit.c): Likewise.
24894 (CFLAGS-tst-gettext2.c): Likewise.
24895 (CFLAGS-tst-codeset.c): Likewise.
24896 (CFLAGS-tst-gettext3.c): Likewise.
24897 (CFLAGS-tst-gettext4.c): Likewise.
24898 (CFLAGS-tst-gettext5.c): Likewise.
24899 (CFLAGS-tst-gettext6.c): Likewise.
24900 * io/Makefile (CFLAGS-open.c): Likewise.
24901 (CFLAGS-open64.c): Likewise.
24902 (CFLAGS-creat.c): Likewise.
24903 (CFLAGS-creat64.c): Likewise.
24904 (CFLAGS-fcntl.c): Likewise.
24905 (CFLAGS-poll.c): Likewise.
24906 (CFLAGS-ppoll.c): Likewise.
24907 (CFLAGS-lockf.c): Likewise.
24908 (CFLAGS-statfs.c): Likewise.
24909 (CFLAGS-fstatfs.c): Likewise.
24910 (CFLAGS-statvfs.c): Likewise.
24911 (CFLAGS-fstatvfs.c): Likewise.
24912 (CFLAGS-fts.c): Likewise.
24913 (CFLAGS-fts64.c): Likewise.
24914 (CFLAGS-ftw.c): Likewise.
24915 (CFLAGS-ftw64.c): Likewise.
24916 (CFLAGS-lockf.c): Likewise.
24917 (CFLAGS-posix_fallocate.c): Likewise.
24918 (CFLAGS-posix_fallocate64.c): Likewise.
24919 (CFLAGS-fallocate.c): Likewise.
24920 (CFLAGS-fallocate64.c): Likewise.
24921 (CFLAGS-read.c): Likewise.
24922 (CFLAGS-write.c): Likewise.
24923 (CFLAGS-test-stat.c): Likewise.
24924 (CFLAGS-test-lfs.c): Likewise.
24925 * libio/Makefile (CFLAGS-fileops.c): Likewise.
24926 (CFLAGS-fputc.c): Likewise.
24927 (CFLAGS-fputwc.c): Likewise.
24928 (CFLAGS-freopen64.c): Likewise.
24929 (CFLAGS-freopen.c): Likewise.
24930 (CFLAGS-fseek.c): Likewise.
24931 (CFLAGS-fseeko64.c): Likewise.
24932 (CFLAGS-fseeko.c): Likewise.
24933 (CFLAGS-ftello64.c): Likewise.
24934 (CFLAGS-ftello.c): Likewise.
24935 (CFLAGS-fwide.c): Likewise.
24936 (CFLAGS-genops.c): Likewise.
24937 (CFLAGS-getc.c): Likewise.
24938 (CFLAGS-getchar.c): Likewise.
24939 (CFLAGS-getwc.c): Likewise.
24940 (CFLAGS-getwchar.c): Likewise.
24941 (CFLAGS-iofclose.c): Likewise.
24942 (CFLAGS-iofflush.c): Likewise.
24943 (CFLAGS-iofgetpos64.c): Likewise.
24944 (CFLAGS-iofgetpos.c): Likewise.
24945 (CFLAGS-iofgets.c): Likewise.
24946 (CFLAGS-iofgetws.c): Likewise.
24947 (CFLAGS-iofputs.c): Likewise.
24948 (CFLAGS-iofputws.c): Likewise.
24949 (CFLAGS-iofread.c): Likewise.
24950 (CFLAGS-iofsetpos64.c): Likewise.
24951 (CFLAGS-iofsetpos.c): Likewise.
24952 (CFLAGS-ioftell.c): Likewise.
24953 (CFLAGS-iofwrite.c): Likewise.
24954 (CFLAGS-iogetdelim.c): Likewise.
24955 (CFLAGS-iogetline.c): Likewise.
24956 (CFLAGS-iogets.c): Likewise.
24957 (CFLAGS-iogetwline.c): Likewise.
24958 (CFLAGS-ioputs.c): Likewise.
24959 (CFLAGS-ioseekoff.c): Likewise.
24960 (CFLAGS-ioseekpos.c): Likewise.
24961 (CFLAGS-iosetbuffer.c): Likewise.
24962 (CFLAGS-iosetvbuf.c): Likewise.
24963 (CFLAGS-ioungetc.c): Likewise.
24964 (CFLAGS-ioungetwc.c): Likewise.
24965 (CFLAGS-oldfileops.c): Likewise.
24966 (CFLAGS-oldiofclose.c): Likewise.
24967 (CFLAGS-oldiofgetpos64.c): Likewise.
24968 (CFLAGS-oldiofgetpos.c): Likewise.
24969 (CFLAGS-oldiofsetpos64.c): Likewise.
24970 (CFLAGS-oldiofsetpos.c): Likewise.
24971 (CFLAGS-peekc.c): Likewise.
24972 (CFLAGS-putc.c): Likewise.
24973 (CFLAGS-putchar.c): Likewise.
24974 (CFLAGS-putwc.c): Likewise.
24975 (CFLAGS-putwchar.c): Likewise.
24976 (CFLAGS-rewind.c): Likewise.
24977 (CFLAGS-wfileops.c): Likewise.
24978 (CFLAGS-wgenops.c): Likewise.
24979 (CFLAGS-oldiofopen.c): Likewise.
24980 (CFLAGS-iofopen.c): Likewise.
24981 (CFLAGS-iofopen64.c): Likewise.
24982 (CFLAGS-oldtmpfile.c): Likewise.
24983 (CFLAGS-tst_putwc.c): Likewise.
24984 * locale/Makefile (CFLAGS-md5.c): Likewise.
24985 (CFLAGS-charmap.c): Likewise.
24986 (CFLAGS-locfile.c): Likewise.
24987 (CFLAGS-charmap-dir.c): Likewise.
24988 * login/Makefile (CFLAGS-grantpt.c): Likewise.
24989 (CFLAGS-getpt.c): Likewise.
24990 (CFLAGS-pt_chown.c): Likewise.
24991 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
24992 (CFLAGS-obstack.c): Likewise.
24993 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
24994 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
24995 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
24996 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
24997 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
24998 (CFLAGS-test-tgmath.c): Likewise.
24999 (CFLAGS-test-tgmath2.c): Likewise.
25000 (CFLAGS-test-tgmath-ret.c): Likewise.
25001 (CFLAGS-test-powl.c): Likewise.
25002 (CFLAGS-test-snan.c): Likewise.
25003 (CFLAGS-test-signgam-finite.c): Likewise.
25004 (CFLAGS-test-signgam-finite-c99.c): Likewise.
25005 (CFLAGS-test-signgam-finite-c11.c): Likewise.
25006 (CFLAGS-test-signgam-uchar.c): Likewise.
25007 (CFLAGS-test-signgam-uchar-init.c): Likewise.
25008 (CFLAGS-test-signgam-uchar-static.c): Likewise.
25009 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
25010 (CFLAGS-test-signgam-uint.c): Likewise.
25011 (CFLAGS-test-signgam-uint-init.c): Likewise.
25012 (CFLAGS-test-signgam-uint-static.c): Likewise.
25013 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
25014 (CFLAGS-test-signgam-ullong.c): Likewise.
25015 (CFLAGS-test-signgam-ullong-init.c): Likewise.
25016 (CFLAGS-test-signgam-ullong-static.c): Likewise.
25017 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
25018 (CFLAGS-test-math-cxx11.cc): Likewise.
25019 (CFLAGS-test-math-isinff.cc): Likewise.
25020 (CFLAGS-test-math-iszero.cc): Likewise.
25021 (CFLAGS-test-math-issignaling.cc): Likewise.
25022 (CFLAGS-test-math-iscanonical.cc): Likewise.
25023 (CFLAGS-test-iszero-excess-precision.c): Likewise.
25024 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
25025 (CFLAGS-test-flt-eval-method.c): Likewise.
25026 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
25027 (CFLAGS-test-finite-macros.c): Likewise.
25028 * misc/Makefile (CFLAGS-select.c): Likewise.
25029 (CFLAGS-tsearch.c): Likewise.
25030 (CFLAGS-lsearch.c): Likewise.
25031 (CFLAGS-pselect.c): Likewise.
25032 (CFLAGS-readv.c): Likewise.
25033 (CFLAGS-writev.c): Likewise.
25034 (CFLAGS-preadv.c): Likewise.
25035 (CFLAGS-preadv64.c): Likewise.
25036 (CFLAGS-pwritev.c): Likewise.
25037 (CFLAGS-pwritev64.c): Likewise.
25038 (CFLAGS-preadv2.c): Likewise.
25039 (CFLAGS-preadv64v2.c): Likewise.
25040 (CFLAGS-pwritev2.c): Likewise.
25041 (CFLAGS-pwritev64v2.c): Likewise.
25042 (CFLAGS-usleep.c): Likewise.
25043 (CFLAGS-syslog.c): Likewise.
25044 (CFLAGS-error.c): Likewise.
25045 (CFLAGS-getpass.c): Likewise.
25046 (CFLAGS-mkstemp.c): Likewise.
25047 (CFLAGS-mkstemp64.c): Likewise.
25048 (CFLAGS-getsysstats.c): Likewise.
25049 (CFLAGS-getusershell.c): Likewise.
25050 (CFLAGS-err.c): Likewise.
25051 (CFLAGS-tst-tsearch.c): Likewise.
25052 (CFLAGS-msync.c): Likewise.
25053 (CFLAGS-fdatasync.c): Likewise.
25054 (CFLAGS-fsync.c): Likewise.
25055 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
25056 (CFLAGS-unwind.c): Likewise.
25057 (CFLAGS-unwind-forcedunwind.c): Likewise.
25058 (CFLAGS-pthread_cancel.c): Likewise.
25059 (CFLAGS-pthread_setcancelstate.c): Likewise.
25060 (CFLAGS-pthread_setcanceltype.c): Likewise.
25061 (CFLAGS-cancellation.c): Likewise.
25062 (CFLAGS-libc-cancellation.c): Likewise.
25063 (CFLAGS-pthread_exit.c): Likewise.
25064 (CFLAGS-forward.c): Likewise.
25065 (CFLAGS-pthread_testcancel.c): Likewise.
25066 (CFLAGS-pthread_join.c): Likewise.
25067 (CFLAGS-pthread_timedjoin.c): Likewise.
25068 (CFLAGS-pthread_once.c): Likewise.
25069 (CFLAGS-pthread_cond_wait.c): Likewise.
25070 (CFLAGS-sem_wait.c): Likewise.
25071 (CFLAGS-sem_timedwait.c): Likewise.
25072 (CFLAGS-fcntl.c): Likewise.
25073 (CFLAGS-lockf.c): Likewise.
25074 (CFLAGS-pread.c): Likewise.
25075 (CFLAGS-pread64.c): Likewise.
25076 (CFLAGS-pwrite.c): Likewise.
25077 (CFLAGS-pwrite64.c): Likewise.
25078 (CFLAGS-wait.c): Likewise.
25079 (CFLAGS-waitpid.c): Likewise.
25080 (CFLAGS-sigwait.c): Likewise.
25081 (CFLAGS-msgrcv.c): Likewise.
25082 (CFLAGS-msgsnd.c): Likewise.
25083 (CFLAGS-tcdrain.c): Likewise.
25084 (CFLAGS-open.c): Likewise.
25085 (CFLAGS-open64.c): Likewise.
25086 (CFLAGS-pause.c): Likewise.
25087 (CFLAGS-recv.c): Likewise.
25088 (CFLAGS-send.c): Likewise.
25089 (CFLAGS-accept.c): Likewise.
25090 (CFLAGS-sendto.c): Likewise.
25091 (CFLAGS-connect.c): Likewise.
25092 (CFLAGS-recvfrom.c): Likewise.
25093 (CFLAGS-recvmsg.c): Likewise.
25094 (CFLAGS-sendmsg.c): Likewise.
25095 (CFLAGS-close.c): Likewise.
25096 (CFLAGS-read.c): Likewise.
25097 (CFLAGS-write.c): Likewise.
25098 (CFLAGS-nanosleep.c): Likewise.
25099 (CFLAGS-sigsuspend.c): Likewise.
25100 (CFLAGS-msync.c): Likewise.
25101 (CFLAGS-fdatasync.c): Likewise.
25102 (CFLAGS-fsync.c): Likewise.
25103 (CFLAGS-pt-system.c): Likewise.
25104 (CFLAGS-tst-cleanup2.c): Likewise.
25105 (CFLAGS-tst-cleanupx2.c): Likewise.
25106 (CFLAGS-flockfile.c): Likewise.
25107 (CFLAGS-ftrylockfile.c): Likewise.
25108 (CFLAGS-funlockfile.c): Likewise.
25109 (CFLAGS-tst-initializers1.c): Likewise.
25110 (CFLAGS-tst-initializers1-c89.c): Likewise.
25111 (CFLAGS-tst-initializers1-c99.c): Likewise.
25112 (CFLAGS-tst-initializers1-c11.c): Likewise.
25113 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
25114 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
25115 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
25116 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
25117 (CFLAGS-nscd_getgr_r.c): Likewise.
25118 (CFLAGS-nscd_gethst_r.c): Likewise.
25119 (CFLAGS-nscd_getai.c): Likewise.
25120 (CFLAGS-nscd_initgroups.c): Likewise.
25121 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
25122 (CFLAGS-pause.c): Likewise.
25123 (CFLAGS-pread.c): Likewise.
25124 (CFLAGS-pread64.c): Likewise.
25125 (CFLAGS-pwrite.c): Likewise.
25126 (CFLAGS-pwrite64.c): Likewise.
25127 (CFLAGS-sleep.c): Likewise.
25128 (CFLAGS-wait.c): Likewise.
25129 (CFLAGS-waitid.c): Likewise.
25130 (CFLAGS-waitpid.c): Likewise.
25131 (CFLAGS-getopt.c): Likewise.
25132 (CFLAGS-wordexp.c): Likewise.
25133 (CFLAGS-sysconf.c): Likewise.
25134 (CFLAGS-pathconf.c): Likewise.
25135 (CFLAGS-fpathconf.c): Likewise.
25136 (CFLAGS-spawn.c): Likewise.
25137 (CFLAGS-spawnp.c): Likewise.
25138 (CFLAGS-spawni.c): Likewise.
25139 (CFLAGS-glob.c): Likewise.
25140 (CFLAGS-glob64.c): Likewise.
25141 (CFLAGS-getconf.c): Likewise.
25142 (CFLAGS-nanosleep.c): Likewise.
25143 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
25144 (CFLAGS-getpwent.c): Likewise.
25145 (CFLAGS-getpw.c): Likewise.
25146 (CFLAGS-fgetpwent_r.c): Likewise.
25147 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
25148 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
25149 (CFLAGS-mq_timedreceive.c): Likewise.
25150 (CFLAGS-mq_timedsend.c): Likewise.
25151 (CFLAGS-clock_nanosleep.c): Likewise.
25152 (CFLAGS-librt-cancellation.c): Likewise.
25153 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
25154 (CFLAGS-getspent.c): Likewise.
25155 (CFLAGS-fgetspent.c): Likewise.
25156 (CFLAGS-fgetspent_r.c): Likewise.
25157 (CFLAGS-putspent.c): Likewise.
25158 (CFLAGS-getspnam.c): Likewise.
25159 (CFLAGS-getspnam_r.c): Likewise.
25160 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
25161 (CFLAGS-sigsuspend.c): Likewise.
25162 (CFLAGS-sigtimedwait.c): Likewise.
25163 (CFLAGS-sigwait.c): Likewise.
25164 (CFLAGS-sigwaitinfo.c): Likewise.
25165 (CFLAGS-sigreturn.c): Likewise.
25166 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
25167 (CFLAGS-vfwprintf.c): Likewise.
25168 (CFLAGS-tmpfile.c): Likewise.
25169 (CFLAGS-tmpfile64.c): Likewise.
25170 (CFLAGS-tempname.c): Likewise.
25171 (CFLAGS-psignal.c): Likewise.
25172 (CFLAGS-vprintf.c): Likewise.
25173 (CFLAGS-cuserid.c): Likewise.
25174 (CFLAGS-errlist.c): Likewise.
25175 (CFLAGS-siglist.c): Likewise.
25176 (CFLAGS-scanf15.c): Likewise.
25177 (CFLAGS-scanf17.c): Likewise.
25178 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
25179 (CFLAGS-msort.c): Likewise.
25180 (CFLAGS-qsort.c): Likewise.
25181 (CFLAGS-system.c): Likewise.
25182 (CFLAGS-fmtmsg.c): Likewise.
25183 (CFLAGS-strfmon.c): Likewise.
25184 (CFLAGS-strfmon_l.c): Likewise.
25185 (CFLAGS-strfromd.c): Likewise.
25186 (CFLAGS-strfromf.c): Likewise.
25187 (CFLAGS-strfroml.c): Likewise.
25188 (CFLAGS-tst-bsearch.c): Likewise.
25189 (CFLAGS-tst-qsort.c): Likewise.
25190 (CFLAGS-tst-makecontext2.c): Likewise.
25191 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
25192 (CFLAGS-xnlm_prot.c): Likewise.
25193 (CFLAGS-xrstat.c): Likewise.
25194 (CFLAGS-xyppasswd.c): Likewise.
25195 (CFLAGS-xklm_prot.c): Likewise.
25196 (CFLAGS-xrex.c): Likewise.
25197 (CFLAGS-xsm_inter.c): Likewise.
25198 (CFLAGS-xmount.c): Likewise.
25199 (CFLAGS-xrusers.c): Likewise.
25200 (CFLAGS-xspray.c): Likewise.
25201 (CFLAGS-xnfs_prot.c): Likewise.
25202 (CFLAGS-xrquota.c): Likewise.
25203 (CFLAGS-xkey_prot.c): Likewise.
25204 (CFLAGS-auth_unix.c): Likewise.
25205 (CFLAGS-key_call.c): Likewise.
25206 (CFLAGS-pmap_rmt.c): Likewise.
25207 (CFLAGS-clnt_perr.c): Likewise.
25208 (CFLAGS-openchild.c): Likewise.
25209 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
25210 (CFLAGS-msgsnd.c): Likewise.
25211 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
25212 * time/Makefile (CFLAGS-tzfile.c): Likewise.
25213 (CFLAGS-tzset.c): Likewise.
25214 (CFLAGS-getdate.c): Likewise.
25215 (CFLAGS-test_time.c): Likewise.
25216 (CPPFLAGS-tst-tzname.c): Likewise.
25217 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
25218 (CFLAGS-zic.c): Likewise.
25219 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
25220 (CFLAGS-wcswidth.c): Likewise.
25221 (CFLAGS-wcstol.c): Likewise.
25222 (CFLAGS-wcstoul.c): Likewise.
25223 (CFLAGS-wcstoll.c): Likewise.
25224 (CFLAGS-wcstoull.c): Likewise.
25225 (CFLAGS-wcstod.c): Likewise.
25226 (CFLAGS-wcstold.c): Likewise.
25227 (CFLAGS-wcstof128.c): Likewise.
25228 (CFLAGS-wcstof.c): Likewise.
25229 (CFLAGS-wcstol_l.c): Likewise.
25230 (CFLAGS-wcstoul_l.c): Likewise.
25231 (CFLAGS-wcstoll_l.c): Likewise.
25232 (CFLAGS-wcstoull_l.c): Likewise.
25233 (CFLAGS-wcstod_l.c): Likewise.
25234 (CFLAGS-wcstold_l.c): Likewise.
25235 (CFLAGS-wcstof128_l.c): Likewise.
25236 (CFLAGS-wcstof_l.c): Likewise.
25237 (CPPFLAGS-tst-wchar-h.c): Likewise.
25238 (CPPFLAGS-wcstold_l.c): Likewise.
583dd860 25239
f4b2aea6
PC
252402017-12-11 Paul A. Clarke <pc@us.ibm.com>
25241
25242 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
25243
c9cd7b0c
AZ
252442017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
25245 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
25246
25247 * manual/tunables.texi (Hardware Capability Tunables): Document
25248 glibc.tune.cached_memopt.
25249 * sysdeps/powerpc/cpu-features.c: New file.
25250 * sysdeps/powerpc/cpu-features.h: New file.
25251 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
25252 _dl_powerpc_cpu_features.
25253 * sysdeps/powerpc/dl-tunables.list: New file.
25254 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
25255 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
25256 (INIT_ARCH): Initialize use_aligned_memopt.
25257 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
25258 IS_IN(rtld))]: Restrict dl_platform_init availability and
25259 initialize CPU features used by tunables.
25260 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
25261 Add memcpy-power8-cached.
25262 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
25263 __memcpy_power8_cached.
25264 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
25265 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
25266 New file.
25267
e70c6fee
L
252682017-12-11 H.J. Lu <hongjiu.lu@intel.com>
25269
25270 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
25271 (CFLAGS-noinl-tester.c): Likewise.
25272 (CFLAGS-tst-strlen.c): Likewise.
25273 (CFLAGS-stratcliff.c): Likewise.
25274 (CFLAGS-test-ffs.c): Likewise.
25275 (CFLAGS-tst-inlcall.c): Likewise.
25276 (CFLAGS-tst-xbzero-opt.c): Likewise.
25277 (CFLAGS-memcpy.c): Likewise.
25278 (CFLAGS-wordcopy.c): Likewise.
25279
dee94366
SL
252802017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
25281
25282 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
25283 Store r15 on stack and add cfi rule.
25284 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
25285 Likewise.
25286
363e4519 252872017-12-10 Aurelien Jarno <aurelien@aurel32.net>
f648728c
AJ
25288
25289 [BZ #22577]
25290 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
25291 call.
25292
9d0ffa60
L
252932017-12-07 H.J. Lu <hongjiu.lu@intel.com>
25294
25295 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
25296 Add s_sinf-sse2 and s_sinf-fma.
25297 (CFLAGS-s_sinf-fma.c): New.
25298 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
25299 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
25300 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
25301
9574c7b6
L
253022017-12-07 H.J. Lu <hongjiu.lu@intel.com>
25303
25304 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
25305
d15e83c5
JM
253062017-12-07 Joseph Myers <joseph@codesourcery.com>
25307
25308 [BZ #22568]
25309 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
25310 part of result to imaginary part of argument if it is zero and the
25311 real part of the argument is not finite.
25312 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
25313 of result to real part of argument if it is zero and the imaginary
25314 part of the argument is not finite.
25315
d89756eb
MF
253162017-12-07 Mike FABIAN <mfabian@redhat.com>
25317
25318 [BZ #22524]
25319 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
25320 and to the list of locales to be built for testing.
25321 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
25322 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
25323 and build the collation rules upon that.
25324
1f9055ce
JM
253252017-12-07 Joseph Myers <joseph@codesourcery.com>
25326
25327 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
25328 * manual/math.texi (Mathematics): Document support for _Float32.
25329 * math/Makefile (test-types): Add float32.
25330 * math/Versions (GLIBC_2.27): Add _Float32 functions.
25331 * stdlib/Versions (GLIBC_2.27): Likewise.
25332 * wcsmbs/Versions (GLIBC_2.27): Likewise.
25333 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
25334 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
25335 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
25336 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
25337 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
25338 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
25339 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
25340 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
25341 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
25342 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
25343 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
25344 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
25345 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
25346 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
25347 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
25348 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
25349 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
25350 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
25351 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
25352 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
25353 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
25354 Likewise.
25355 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
25356 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
25357 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
25358 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
25359 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
25360 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
25361 Likewise.
25362 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
25363 Likewise.
25364 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
25365 Likewise.
25366 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
25367 Likewise.
25368
25369 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
25370 Likewise.
25371 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
25372 Likewise.
25373 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
25374 Likewise.
25375 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
25376 Likewise.
25377 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
25378 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
25379 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
25380 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
25381 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
25382 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
25383 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
25384 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
25385 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
25386 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
25387 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
25388 Likewise.
25389 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
25390 Likewise.
25391 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
25392 Likewise.
25393 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
25394 Likewise.
25395 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
25396 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
25397 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
25398 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
25399 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
25400 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
25401 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
25402 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
25403
5244527d
JM
254042017-12-06 Joseph Myers <joseph@codesourcery.com>
25405
fb1ca2aa
JM
25406 * stdlib/strtof.c: Include <bits/floatn.h>
25407 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
25408 and later undefine as macro. Define as weak alias if
25409 [!USE_WIDE_CHAR].
25410 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
25411 and later undefine as macro. Define as weak alias if
25412 [USE_WIDE_CHAR].
25413 * stdlib/strtof_l.c: Include <bits/floatn.h>
25414 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
25415 and later undefine as macro. Define as weak alias if
25416 [!USE_WIDE_CHAR].
25417 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
25418 and later undefine as macro. Define as weak alias if
25419 [USE_WIDE_CHAR].
25420
fc10cc3f
JM
25421 * stdlib/strfromf.c: Include <bits/floatn.h>.
25422 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
25423 and later undefine as macro and define as weak alias.
25424
e420d228
JM
25425 * math/test-float32.h: New file.
25426
26007a2f
JM
25427 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
25428 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
25429 (libm_alias_float_other_r): Create f32 alias.
25430 (libm_alias_float_r): Use semicolon before call to
25431 libm_alias_float_other_r.
25432
c191f64c
JM
25433 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
25434 second argument to libm_alias_float_other.
25435 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
25436 second argument to libm_alias_float_other.
25437 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
25438 argument to libm_alias_float_other.
25439
5244527d
JM
25440 [BZ #22561]
25441 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
25442 real part of result for argument 0 + i * NaN.
25443 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
25444 results for tests of 0 + i * NaN.
25445
d73fac82
AZ
254462017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25447
25448 * sysdeps/alpha/fpu/libm-test-ulps: Update.
25449
7ec094e8
DM
254502017-12-06 David S. Miller <davem@davemloft.net>
25451
25452 * sysdeps/sparc/fpu/libm-test-ulps: Update
25453 exp_{downward,towardzero,upward} ulps.
25454
53994f12
JM
254552017-12-06 Joseph Myers <joseph@codesourcery.com>
25456
1dbe6f64
JM
25457 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
25458 variables static.
25459
53994f12
JM
25460 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
25461 (Y0_2D): Likewise.
25462 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
25463 (Y0_2D): Likewise.
25464 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
25465 (Y0_2D): Likewise.
25466 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
25467 (Y0_2D): Likewise.
25468
62ea2193
MF
254692017-12-06 Mike FABIAN <mfabian@redhat.com>
25470
25471 [BZ #22515]
25472 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
25473 and to the list of locales to be built for testing.
25474 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
25475 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
25476 and build the collation rules upon that.
25477
87235d70
RS
254782017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25479
25480 * NEWS: Add sinf to list of optimized functions.
25481
0d93b7fd
JM
254822017-12-06 Joseph Myers <joseph@codesourcery.com>
25483
25484 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
25485 (__HAVE_FLOAT32X): Likewise.
25486 * manual/math.texi (Mathematics): Document support for _Float64
25487 and _Float32x.
25488 * math/Makefile (test-types): Add float64 and float32x.
25489 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
25490 functions.
25491 * stdlib/Versions (GLIBC_2.27): Likewise.
25492 * wcsmbs/Versions (GLIBC_2.27): Likewise.
25493 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
25494 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
25495 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
25496 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
25497 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
25498 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
25499 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
25500 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
25501 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
25502 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
25503 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
25504 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
25505 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
25506 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
25507 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
25508 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
25509 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
25510 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
25511 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
25512 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
25513 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
25514 Likewise.
25515 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
25516 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
25517 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
25518 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
25519 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
25520 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
25521 Likewise.
25522 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
25523 Likewise.
25524 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
25525 Likewise.
25526 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
25527 Likewise.
25528 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
25529 Likewise.
25530 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
25531 Likewise.
25532 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
25533 Likewise.
25534 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
25535 Likewise.
25536 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
25537 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
25538 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
25539 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
25540 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
25541 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
25542 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
25543 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
25544 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
25545 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
25546 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
25547 Likewise.
25548 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
25549 Likewise.
25550 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
25551 Likewise.
25552 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
25553 Likewise.
25554 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
25555 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
25556 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
25557 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
25558 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
25559 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
25560 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
25561 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
25562
f7787234
JM
255632017-12-05 Joseph Myers <joseph@codesourcery.com>
25564
25565 * bits/floatn-common.h: Include <bits/long-double.h>.
25566 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
25567 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
25568 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
25569 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
25570 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
25571 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
25572 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
25573 (__builtin_huge_valf64): Use __builtin_huge_vall.
25574 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
25575 (__builtin_inff64): Use __builtin_infl.
25576 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
25577 (__builtin_nanf64): Use __builtin_nanl.
25578 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
25579 (__builtin_nansf64): Use __builtin_nansl.
25580
363e4519
DL
255812017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
25582 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
e6855a3b 25583 Carlos O'Donell <carlos@redhat.com>
07ed18d2
RA
25584
25585 * elf/dl-tunables.list: Add elision parameters.
25586 * manual/tunables.texi: Add entries about elision tunable.
25587 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
25588 Add callback functions to dynamically enable/disable elision.
25589 Add multiple callbacks functions to set elision parameters.
25590 Deleted __libc_enable_secure check.
25591 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
25592 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
25593 * configure: Regenerated.
25594 * configure.ac: Option enable_lock_elision was deleted.
25595 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
25596 * config.make.in: Remove references to enable_lock_elision.
25597 * manual/install.texi: Elision configure option was removed.
25598 * INSTALL: Regenerated to remove enable_lock_elision.
25599 * nptl/Makefile:
25600 Disable elision so it can verify error case for destroying a mutex.
25601 * sysdeps/powerpc/nptl/elide.h:
25602 Cleanup ENABLE_LOCK_ELISION check.
25603 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
25604 * sysdeps/s390/configure: Regenerated.
25605 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
25606 * nptl/tst-mutex8.c:
25607 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
25608 * sysdeps/powerpc/powerpc32/sysdep.h:
25609 Deleted all ENABLE_LOCK_ELISION checks.
25610 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
25611 * sysdeps/powerpc/sysdep.h: Likewise.
25612 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
25613 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
25614 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
25615 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
25616 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
25617 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
25618 enable-lock-elision.
25619
a5a2a76b
JM
256202017-12-05 Joseph Myers <joseph@codesourcery.com>
25621
25622 * stdlib/strtod.c: Include <bits/floatn.h>.
25623 (BUILD_DOUBLE): New macro.
25624 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
25625 (strtof64): Define and later undefine as macro. Define as weak
25626 alias if [!USE_WIDE_CHAR].
25627 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
25628 (wcstof64): Define and later undefine as macro. Define as weak
25629 alias if [USE_WIDE_CHAR].
25630 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
25631 (strtof32x): Define and later undefine as macro. Define as weak
25632 alias if [!USE_WIDE_CHAR].
25633 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
25634 (wcstof32x): Define and later undefine as macro. Define as weak
25635 alias if [USE_WIDE_CHAR].
25636 * stdlib/strtod_l.c: Include <bits/floatn.h>.
25637 (BUILD_DOUBLE): New macro.
25638 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
25639 (strtof64_l): Define and later undefine as macro. Define as weak
25640 alias if [!USE_WIDE_CHAR].
25641 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
25642 (wcstof64_l): Define and later undefine as macro. Define as weak
25643 alias if [USE_WIDE_CHAR].
25644 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
25645 (strtof32x_l): Define and later undefine as macro. Define as weak
25646 alias if [!USE_WIDE_CHAR].
25647 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
25648 (wcstof32x_l): Define and later undefine as macro. Define as weak
25649 alias if [USE_WIDE_CHAR].
25650
94d80dfc
AZ
256512017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25652
25653 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
25654 (reduced): Use ones as double instead of integer.
25655
00d54af7
SN
256562017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
25657
25658 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
25659
f2d64d62
JM
256602017-12-05 Joseph Myers <joseph@codesourcery.com>
25661
1f70eae4
JM
25662 * stdlib/strfromd.c: Include <bits/floatn.h>.
25663 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
25664 and later undefine as macro and define as weak alias.
25665 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
25666 Likewise.
25667
e2c4dce5
JM
25668 * math/test-float32x.h: New file.
25669 * math/test-float64.h: Likewise.
25670
f2d64d62
JM
25671 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
25672 (libm_alias_double_other_r_f64): New macro.
25673 (libm_alias_double_other_r_f32x): Likewise.
25674 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
25675 libm_alias_double_other_r_f32x.
25676 (libm_alias_double_r): Use semicolon before call to
25677 libm_alias_double_other_r.
25678 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
25679 <bits/floatn.h>.
25680 (libm_alias_double_other_r_f64): New macro.
25681 (libm_alias_double_other_r_f32x): Likewise.
25682 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
25683 libm_alias_double_other_r_f32x.
25684
91c318e7
L
256852017-12-05 H.J. Lu <hongjiu.lu@intel.com>
25686
25687 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
25688 int.
25689 (SINF_FUNC): Likewise. Replace floor with simple casts.
25690
de9661d6
MF
256912017-12-05 Mike FABIAN <mfabian@redhat.com>
25692
25693 [BZ #22517]
25694 * localedata/Makefile: Add et_EE.UTF-8 to test-input
25695 and to the list of locales to be built for testing.
25696 * localedata/et_EE.UTF-8.in: New file for testing the collation.
25697 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
25698 and build the collation rules upon that.
25699
f18b8dc7
CM
257002017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
25701
25702 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
25703 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
25704 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
25705 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
25706 instead of __insn__xxx.
25707 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
25708 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
25709 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
25710 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
25711 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
25712 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
25713
446d22e9
FW
257142017-12-05 Florian Weimer <fweimer@redhat.com>
25715
25716 Linux: Implement interfaces for memory protection keys
25717 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
25718 xsignal, xsysconf.
25719 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
25720 * support/xunistd.h (xsysconf): Declare.
25721 * support/xraise.c: New file.
25722 * support/xsigaction.c: Likewise.
25723 * support/xsignal.c: Likewise.
25724 * support/xsysconf.c: Likewise.
25725 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
25726 pkey_set, pkey_get, pkey_mprotect.
25727 [misc] (tests): Add tst-pkey.
25728 (tst-pkey): Link with -lpthread.
25729 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
25730 pkey_free, pkey_set, pkey_get, pkey_mprotect.
25731 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
25732 (PKEY_DISABLE_WRITE): Define.
25733 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
25734 Declare.
25735 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
25736 (SEGV_PKUERR): Add.
25737 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
25738 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
25739 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
25740 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
25741 Add.
25742 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
25743 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
25744 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
25745 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
25746 * sysdeps/unix/sysv/linux/**.abilist: Update.
25747
da616c14
FW
257482017-12-05 Florian Weimer <fweimer@redhat.com>
25749
25750 * support/tst-test_compare.c (subprocess): Use long long instead
25751 of long argument for consistent type width across 32-bit and
25752 64-bit architectures.
25753 (do_test): Adjust expected output.
25754
216933b2
JM
257552017-12-05 Joseph Myers <joseph@codesourcery.com>
25756
25757 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
25758 (cosf): Define using libm_alias_float.
25759 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
25760 (fabsf): Define using libm_alias_float.
25761 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
25762 (fmaf): Define using libm_alias_float.
25763 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
25764 (rintf): Define using libm_alias_float.
25765 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
25766 (sinf): Define using libm_alias_float.
25767 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
25768 <libm-alias-float.h>.
25769 (modff): Define using libm_alias_float.
25770 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
25771 <libm-alias-float.h>.
25772 (logbf): Define using libm_alias_float.
25773 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
25774 <libm-alias-float.h>.
25775 (ceilf): Define using libm_alias_float.
25776 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
25777 <libm-alias-float.h>.
25778 (copysignf): Define using libm_alias_float.
25779 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
25780 <libm-alias-float.h>.
25781 (floorf): Define using libm_alias_float.
25782 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
25783 <libm-alias-float.h>.
25784 (llrintf): Define using libm_alias_float.
25785 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
25786 <libm-alias-float.h>.
25787 (llroundf): Define using libm_alias_float.
25788 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
25789 <libm-alias-float.h>.
25790 (lrintf): Define using libm_alias_float.
25791 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
25792 <libm-alias-float.h>.
25793 (lroundf): Define using libm_alias_float.
25794 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
25795 <libm-alias-float.h>.
25796 (nearbyintf): Define using libm_alias_float.
25797 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
25798 <libm-alias-float.h>.
25799 (rintf): Define using libm_alias_float.
25800 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
25801 <libm-alias-float.h>.
25802 (roundf): Define using libm_alias_float.
25803 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
25804 <libm-alias-float.h>.
25805 (truncf): Define using libm_alias_float.
25806 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
25807 Include <libm-alias-float.h>.
25808 (ceilf): Define using libm_alias_float.
25809 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
25810 Include <libm-alias-float.h>.
25811 (copysignf): Define using libm_alias_float.
25812 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
25813 Include <libm-alias-float.h>.
25814 (floorf): Define using libm_alias_float.
25815 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
25816 Include <libm-alias-float.h>.
25817 (llrintf): Define using libm_alias_float.
25818 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
25819 Include <libm-alias-float.h>.
25820 (llroundf): Define using libm_alias_float.
25821 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
25822 Include <libm-alias-float.h>.
25823 (logbf): Define using libm_alias_float.
25824 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
25825 Include <libm-alias-float.h>.
25826 (lrintf): Define using libm_alias_float.
25827 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
25828 Include <libm-alias-float.h>.
25829 (lroundf): Define using libm_alias_float.
25830 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
25831 Include <libm-alias-float.h>.
25832 (modff): Define using libm_alias_float.
25833 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
25834 Include <libm-alias-float.h>.
25835 (roundf): Define using libm_alias_float.
25836 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
25837 Include <libm-alias-float.h>.
25838 (truncf): Define using libm_alias_float.
25839 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
25840 <libm-alias-float.h>.
25841 (llrintf): Define using libm_alias_float.
25842 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
25843 <libm-alias-float.h>.
25844 (llroundf): Define using libm_alias_float.
25845 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
25846 <libm-alias-float.h>.
25847 (ceilf): Define using libm_alias_float.
25848 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
25849 <libm-alias-float.h>.
25850 (floorf): Define using libm_alias_float.
25851 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
25852 <libm-alias-float.h>.
25853 (llroundf): Define using libm_alias_float.
25854 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
25855 <libm-alias-float.h>.
25856 (lroundf): Define using libm_alias_float.
25857 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
25858 <libm-alias-float.h>.
25859 (roundf): Define using libm_alias_float.
25860 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
25861 <libm-alias-float.h>.
25862 (truncf): Define using libm_alias_float.
25863 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
25864 <libm-alias-float.h>.
25865 (copysignf): Define using libm_alias_float.
25866 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
25867 <libm-alias-float.h>.
25868 (llrintf): Define using libm_alias_float.
25869 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
25870 <libm-alias-float.h>.
25871 (llroundf): Define using libm_alias_float.
25872 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
25873 <libm-alias-float.h>.
25874 (lrintf): Define using libm_alias_float.
25875 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
25876 <libm-alias-float.h>.
25877 (lroundf): Define using libm_alias_float.
25878 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
25879 <libm-alias-float.h>.
25880 (ceilf): Define using libm_alias_float.
25881 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
25882 <libm-alias-float.h>.
25883 (copysignf): Define using libm_alias_float.
25884 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
25885 <libm-alias-float.h>.
25886 (cosf): Define using libm_alias_float.
25887 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
25888 <libm-alias-float.h>.
25889 (floorf): Define using libm_alias_float.
25890 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
25891 <libm-alias-float.h>.
25892 (llrintf): Define using libm_alias_float.
25893 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
25894 <libm-alias-float.h>.
25895 (llroundf): Define using libm_alias_float.
25896 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
25897 <libm-alias-float.h>.
25898 (logbf): Define using libm_alias_float.
25899 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
25900 <libm-alias-float.h>.
25901 (modff): Define using libm_alias_float.
25902 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
25903 <libm-alias-float.h>.
25904 (roundf): Define using libm_alias_float.
25905 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
25906 <libm-alias-float.h>.
25907 (sinf): Define using libm_alias_float.
25908 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
25909 <libm-alias-float.h>.
25910 (truncf): Define using libm_alias_float.
25911 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
25912 <libm-alias-float.h>.
25913 (ceilf): Define using libm_alias_float.
25914 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
25915 <libm-alias-float.h>.
25916 (copysignf): Define using libm_alias_float.
25917 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
25918 <libm-alias-float.h>.
25919 (floorf): Define using libm_alias_float.
25920 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
25921 <libm-alias-float.h>.
25922 (llrintf): Define using libm_alias_float.
25923 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
25924 <libm-alias-float.h>.
25925 (llroundf): Define using libm_alias_float.
25926 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
25927 <libm-alias-float.h>.
25928 (nearbyintf): Define using libm_alias_float.
25929 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
25930 <libm-alias-float.h>.
25931 (rintf): Define using libm_alias_float.
25932 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
25933 <libm-alias-float.h>.
25934 (roundf): Define using libm_alias_float.
25935 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
25936 <libm-alias-float.h>.
25937 (truncf): Define using libm_alias_float.
25938 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
25939 <libm-alias-float.h>.
25940 (ceilf): Define using libm_alias_float.
25941 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
25942 <libm-alias-float.h>.
25943 (floorf): Define using libm_alias_float.
25944 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
25945 <libm-alias-float.h>.
25946 (llroundf): Define using libm_alias_float.
25947 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
25948 <libm-alias-float.h>.
25949 (roundf): Define using libm_alias_float.
25950 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
25951 <libm-alias-float.h>.
25952 (truncf): Define using libm_alias_float.
25953 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
25954 <libm-alias-float.h>.
25955 (copysignf): Define using libm_alias_float.
25956 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
25957 <libm-alias-float.h>.
25958 (llrintf): Define using libm_alias_float.
25959 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
25960 <libm-alias-float.h>.
25961 (llroundf): Define using libm_alias_float.
25962 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
25963 <libm-alias-float.h>.
25964 (cosf): Define using libm_alias_float.
25965 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
25966 <libm-alias-float.h>.
25967 (llrintf): Define using libm_alias_float.
25968 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
25969 <libm-alias-float.h>.
25970 (llroundf): Define using libm_alias_float.
25971 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
25972 <libm-alias-float.h>.
25973 (sinf): Define using libm_alias_float.
25974
93485524
FW
259752017-12-04 Florian Weimer <fweimer@redhat.com>
25976
25977 * support/check.h (TEST_COMPARE): Define.
25978 (support_test_compare_failure): Declare.
25979 * support/Makefile (libsupport-routines): Add
25980 support_test_compare_failure.
25981 (tests): Add tst-test_compare.
25982 * support /support_test_compare_failure.c: New file.
25983 * support/tst-test_compare.c: Likewise.
25984
96b06a19
MF
259852017-12-04 Mike FABIAN <mfabian@redhat.com>
25986
25987 [BZ #22527]
25988 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
25989 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
25990 available, this rewrite of the collation rules does reproduce
25991 the test file in the same order.
25992
1f6d91f3
MF
259932017-12-04 Mike FABIAN <mfabian@redhat.com>
25994
25995 [BZ #10580]
25996 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
25997 digraphs in the month and day names. Using single code points for
25998 digraphs is deprecated. While there are dedicated Unicode
25999 codepoints, for the digraphs, these are included for backwards
26000 compatibility and modern texts use a sequence of Basic Latin
26001 characters. See: https://www.unicode.org/faq/ligature_digraph.html
26002 This makes the month and day names agree exactly with CLDR now,
26003 CLDR does not use the single code points for the digraphs either.
26004
2e49fed8
CM
260052017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
26006
26007 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
26008
73895b49
JM
260092017-12-04 Joseph Myers <joseph@codesourcery.com>
26010
26011 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
26012 of floor.
26013
4c1d801a
SP
260142017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
26015
26016 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
26017 Define only for libc.so.
26018
478593e6
SL
260192017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
26020
26021 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
26022 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
6b5c8607 26023 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
478593e6
SL
26024 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
26025 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
26026
7863a711
RS
260272017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
26028
26029 [BZ #5997]
26030 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
26031
800a496a
JDA
260322017-12-02 John David Anglin <danglin@gcc.gnu.org>
26033
b3f7fb12
JDA
26034 [BZ libc/19170]
26035 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
26036 PREINIT_FUNCTION_WEAK is nonzero.
26037 (gmon_initializer): New function. Put procedure label for it in
26038 .init_array section.
26039 (_init): Don't call PREINIT_FUNCTION.
26040 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
26041 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
26042 value when map argument is null.
26043
800a496a
JDA
26044 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
26045 depi instruction from PIC pc-relative sequence.
26046 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
26047 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
26048 (elf_machine_load_address): Likewise.
26049 (elf_machine_runtime_setup): Likewise.
26050
d17542d2
JM
260512017-12-02 Joseph Myers <joseph@codesourcery.com>
26052
26053 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
26054 <libm-alias-double.h>.
26055 (logb): Define using libm_alias_double.
26056 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
26057 <libm-alias-double.h>.
26058 (copysign): Define using libm_alias_double.
26059 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
26060 <libm-alias-double.h>.
26061 (llrint): Define using libm_alias_double.
26062 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
26063 <libm-alias-double.h>.
26064 (llround): Define using libm_alias_double.
26065 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
26066 <libm-alias-double.h>.
26067 (lrint): Define using libm_alias_double.
26068 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
26069 <libm-alias-double.h>.
26070 (lround): Define using libm_alias_double.
26071 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
26072 Include <libm-alias-double.h>.
26073 (copysign): Define using libm_alias_double.
26074 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
26075 Include <libm-alias-double.h>.
26076 (llrint): Define using libm_alias_double.
26077 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
26078 Include <libm-alias-double.h>.
26079 (llround): Define using libm_alias_double.
26080 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
26081 <libm-alias-double.h>.
26082 (logb): Define using libm_alias_double.
26083 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
26084 Include <libm-alias-double.h>.
26085 (lrint): Define using libm_alias_double.
26086 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
26087 Include <libm-alias-double.h>.
26088 (lround): Define using libm_alias_double.
26089 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
26090 <libm-alias-double.h>.
26091 (llrint): Define using libm_alias_double.
26092 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
26093 <libm-alias-double.h>.
26094 (llround): Define using libm_alias_double.
26095 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
26096 <libm-alias-double.h>.
26097 (llround): Define using libm_alias_double.
26098 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
26099 <libm-alias-double.h>.
26100 (lround): Define using libm_alias_double.
26101 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
26102 <libm-alias-double.h>.
26103 (copysign): Define using libm_alias_double.
26104 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
26105 <libm-alias-double.h>.
26106 (llrint): Define using libm_alias_double.
26107 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
26108 <libm-alias-double.h>.
26109 (llround): Define using libm_alias_double.
26110 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
26111 <libm-alias-double.h>.
26112 (lrint): Define using libm_alias_double.
26113 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
26114 <libm-alias-double.h>.
26115 (lround): Define using libm_alias_double.
26116 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
26117 <libm-alias-double.h>.
26118 (copysign): Define using libm_alias_double.
26119 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
26120 <libm-alias-double.h>.
26121 (llrint): Define using libm_alias_double.
26122 (lrint): Likewise.
26123 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
26124 <libm-alias-double.h>.
26125 (llround): Define using libm_alias_double.
26126 (lround): Likewise.
26127 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
26128 <libm-alias-double.h>.
26129 (logb): Define using libm_alias_double.
26130 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
26131 <libm-alias-double.h>.
26132 (copysign): Define using libm_alias_double.
26133 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
26134 <libm-alias-double.h>.
26135 (llrint): Define using libm_alias_double.
26136 (lrint): Likewise.
26137 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
26138 <libm-alias-double.h>.
26139 (llround): Define using libm_alias_double.
26140 (lround): Likewise.
26141 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
26142 <libm-alias-double.h>.
26143 (llround): Define using libm_alias_double.
26144 (lround): Likewise.
26145 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
26146 <libm-alias-double.h>.
26147 (copysign): Define using libm_alias_double.
26148 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
26149 <libm-alias-double.h>.
26150 (llrint): Define using libm_alias_double.
26151 (lrint): Likewise.
26152 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
26153 <libm-alias-double.h>.
26154 (llround): Define using libm_alias_double.
26155 (lround): Likewise.
26156 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
26157 <libm-alias-double.h>.
26158 (llrint): Define using libm_alias_double.
26159 (lrint): Likewise.
26160 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
26161 <libm-alias-double.h>.
26162 (llround): Define using libm_alias_double.
26163 (lround): Likewise.
26164
ec2cf3f4
JM
261652017-12-01 Joseph Myers <joseph@codesourcery.com>
26166
0ddde474
JM
26167 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
26168 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
26169 compat symbol based on llround.
26170
0d5ba561
JM
26171 * sysdeps/powerpc/power7/fpu/s_logb.c
26172 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
26173 symbol based on __logb, not on logb.
26174 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
26175 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
26176 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
26177 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
26178
51ea3b20
JM
26179 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
26180 (rint): Define using libm_alias_double.
26181 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
26182 <libm-alias-double.h>.
26183 (modf): Define using libm_alias_double.
26184 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
26185 <libm-alias-double.h>.
26186 (ceil): Define using libm_alias_double.
26187 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
26188 <libm-alias-double.h>.
26189 (floor): Define using libm_alias_double.
26190 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
26191 <libm-alias-double.h>.
26192 (nearbyint): Define using libm_alias_double.
26193 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
26194 <libm-alias-double.h>.
26195 (rint): Define using libm_alias_double.
26196 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
26197 <libm-alias-double.h>.
26198 (round): Define using libm_alias_double.
26199 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
26200 <libm-alias-double.h>.
26201 (trunc): Define using libm_alias_double.
26202 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
26203 <libm-alias-double.h>.
26204 (ceil): Define using libm_alias_double.
26205 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
26206 Include <libm-alias-double.h>.
26207 (floor): Define using libm_alias_double.
26208 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
26209 <libm-alias-double.h>.
26210 (modf): Define using libm_alias_double.
26211 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
26212 Include <libm-alias-double.h>.
26213 (round): Define using libm_alias_double.
26214 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
26215 Include <libm-alias-double.h>.
26216 (trunc): Define using libm_alias_double.
26217 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
26218 <libm-alias-double.h>.
26219 (ceil): Define using libm_alias_double.
26220 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
26221 <libm-alias-double.h>.
26222 (floor): Define using libm_alias_double.
26223 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
26224 <libm-alias-double.h>.
26225 (round): Define using libm_alias_double.
26226 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
26227 <libm-alias-double.h>.
26228 (trunc): Define using libm_alias_double.
26229 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
26230 <libm-alias-double.h>.
26231 (ceil): Define using libm_alias_double.
26232 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
26233 <libm-alias-double.h>.
26234 (floor): Define using libm_alias_double.
26235 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
26236 <libm-alias-double.h>.
26237 (modf): Define using libm_alias_double.
26238 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
26239 <libm-alias-double.h>.
26240 (round): Define using libm_alias_double.
26241 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
26242 <libm-alias-double.h>.
26243 (trunc): Define using libm_alias_double.
26244 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
26245 <libm-alias-double.h>.
26246 (ceil): Define using libm_alias_double.
26247 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
26248 <libm-alias-double.h>.
26249 (floor): Define using libm_alias_double.
26250 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
26251 <libm-alias-double.h>.
26252 (nearbyint): Define using libm_alias_double.
26253 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
26254 <libm-alias-double.h>.
26255 (rint): Define using libm_alias_double.
26256 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
26257 <libm-alias-double.h>.
26258 (round): Define using libm_alias_double.
26259 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
26260 <libm-alias-double.h>.
26261 (trunc): Define using libm_alias_double.
26262 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
26263 <libm-alias-double.h>.
26264 (ceil): Define using libm_alias_double.
26265 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
26266 <libm-alias-double.h>.
26267 (floor): Define using libm_alias_double.
26268 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
26269 <libm-alias-double.h>.
26270 (round): Define using libm_alias_double.
26271 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
26272 <libm-alias-double.h>.
26273 (trunc): Define using libm_alias_double.
26274
ec2cf3f4
JM
26275 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
26276 (fabs): Define using libm_alias_double.
26277 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
26278 (fma): Define using libm_alias_double.
26279 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
26280 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
26281 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
26282 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
26283
5b7bd975
AZ
262842017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26285
0594b13f
AZ
26286 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
26287
dbdfcf3b
AZ
26288 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
26289 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
26290 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
26291
5b7bd975
AZ
26292 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
26293 due redirect macro.
26294
ef9ecfa6
AS
262952017-12-01 Andreas Schwab <schwab@linux-m68k.org>
26296
26297 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
26298
5b4e5e78
AZ
262992017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26300
2a14526b
AZ
26301 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
26302 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
26303 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
26304 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
26305
dbeb74ef 26306 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
1c051a9b
AZ
26307 (libm-sysdep_routines): Add s_nearbyintf-generic and
26308 s_nearbyint-generic.
26309 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
26310 New file.
26311 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
26312 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
26313 Likewise.
26314 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
26315 Likewise.
26316 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
26317 file.
26318 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
26319 Likewise.
26320
26321 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
dbeb74ef
AZ
26322 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
26323 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
26324 file.
26325 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
26326 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
26327 Likewise.
26328 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
26329 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
26330 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
26331
fa7ded96
AZ
26332 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
26333 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
26334 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
26335 file.
26336 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
26337 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
26338 Likewise.
26339 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
26340 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
26341 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
26342
e240cf0e
AZ
26343 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
26344 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
26345 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
26346 file.
26347 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
26348 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
26349 Likewise.
26350 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
26351 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
26352 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
26353
5b4e5e78
AZ
26354 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
26355 (sysdep_calls): New rule.
26356 (sysdep_routines): Use sysdep_calls as base.
26357 (libm-sysdep_routines): Add generic rule for symbols shared with
26358 libc. Add s_copysign-generic and s_copysign-generic objects.
26359 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
26360 New file.
26361 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
26362 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
26363 Likewise.
26364 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
26365 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
26366 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
26367
d985adae
MF
263682017-12-01 Mike FABIAN <mfabian@redhat.com>
26369
26370 [BZ #22519]
26371 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
26372 the list of locales to be built for testing.
26373 * localedata/is_IS.UTF-8.in: New file.
26374 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
26375 on iso14651_t1.
26376
ff84a0e0
JM
263772017-12-01 Joseph Myers <joseph@codesourcery.com>
26378
26379 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
26380 <libm-alias-float.h>.
26381 (fabsf): Define using libm_alias_float.
26382
ef5d8b43
L
263832017-11-30 H.J. Lu <hongjiu.lu@intel.com>
26384
26385 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
26386
c0535adf
JM
263872017-11-30 Joseph Myers <joseph@codesourcery.com>
26388
f938b397
JM
26389 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
26390 <libm-alias-float.h>.
26391 (fabsf): Define using libm_alias_float.
26392 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
26393 <libm-alias-float.h>.
26394 (lrintf): Define using libm_alias_float.
26395 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
26396 <libm-alias-float.h>.
26397 (rintf): Define using libm_alias_float.
26398
2251fad0
JM
26399 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
26400 <libm-alias-double.h>.
26401 (fabs): Define using libm_alias_double.
26402 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
26403 <libm-alias-double.h>.
26404 (lrint): Define using libm_alias_double.
26405 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
26406 <libm-alias-double.h>.
26407 (rint): Define using libm_alias_double.
26408
e53df1de
JM
26409 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
26410 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
26411 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
26412 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
26413 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
26414 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
26415 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
26416 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
26417 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
26418 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
26419 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
26420 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
26421 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
26422 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
26423 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
26424 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
26425 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
26426 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
26427 s_atan_template.c.
26428 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
26429 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
26430 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
26431 s_ceil_template.c.
26432 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
26433 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
26434 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
26435 s_cos_template.c.
26436 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
26437 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
26438 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
26439 s_expm1_template.c.
26440 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
26441 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
26442 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
26443 s_fabs_template.c.
26444 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
26445 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
26446 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
26447 s_floor_template.c.
26448 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
26449 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
26450 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
26451 s_frexp_template.c.
26452 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
26453 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
26454 s_lrint_template.c.
26455 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
26456 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
26457 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
26458 s_modf_template.c.
26459 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
26460 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
26461 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
26462 s_nearbyint_template.c.
26463 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
26464 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
26465 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
26466 s_remquo_template.c.
26467 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
26468 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
26469 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
26470 s_rint_template.c.
26471 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
26472 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
26473 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
26474 s_sin_template.c.
26475 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
26476 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
26477 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
26478 s_sincos_template.c.
26479 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
26480 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
26481 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
26482 s_tan_template.c.
26483 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
26484 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
26485 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
26486 s_tanh_template.c.
26487 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
26488 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
26489 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
26490 s_trunc_template.c.
26491 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
26492 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
26493 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
26494 s_atan.c instead of including s_atan.c.
26495 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
26496 s_atanf.c instead of including s_atanf.c.
26497 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
26498 s_atanl.c instead of including s_atanl.c.
26499 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
26500 instead of s_atan.c.
26501 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
26502 instead of s_atanf.c.
26503 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
26504 instead of s_atanl.c.
26505
c0535adf
JM
26506 * scripts/update-copyrights: Do not handle intl/plural.c
26507 specially.
26508
1faaf703
JB
265092017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
26510
26511 [BZ #22432]
26512 * configure.ac (BISON): Require to be present.
26513 * configure: Regenerated.
26514 * intl/Makefile (generated): Add plural.c.
26515 [$(BISON) != no]: Make code unconditional.
26516 (plural.c): Change rule to $(objpfx)plural.c.
26517 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
26518 * intl/plural.c: Remove.
26519 * manual/install.texi (Tools for Compilation): Document bison as
26520 required.
26521 * INSTALL: Regenerated.
26522
faec6323
JM
265232017-11-30 Joseph Myers <joseph@codesourcery.com>
26524
bd6ea9ed
JM
26525 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
26526 <libm-alias-double.h>.
26527 (llrint): Define using libm_alias_double.
26528 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
26529 <libm-alias-float.h>.
26530 (llrintf): Define using libm_alias_float.
26531 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
26532 <libm-alias-ldouble.h>.
26533 (llrintl): Define using libm_alias_ldouble.
26534
faec6323
JM
26535 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
26536 declare_mgen_alias instead of weak_alias.
26537 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
26538 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
26539 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
26540
023cade3
AZ
265412017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26542
9e2279a0
AZ
26543 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
26544 Add add_n-generic.
26545 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
26546 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
26547 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
26548
75f37c71
AZ
26549 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
26550 Add submul_1-generic.
26551 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
26552 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
26553 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
26554
b70cbbfc 26555 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
dda1d2e8
AZ
26556 Add addmul_1-generic.
26557 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
26558 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
26559 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
26560
26561 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
b70cbbfc
AZ
26562 Add sub_n-generic.
26563 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
26564 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
26565 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
26566
023cade3
AZ
26567 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
26568 Add mul_1-generic.
26569 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
26570 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
26571 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
26572
fbb5fd03
MF
265732017-11-30 Mike FABIAN <mfabian@redhat.com>
26574
26575 According to CLDR, collation rules for Serbian and Bosnian
26576 should be the same as for Croatian.
26577
26578 [BZ #22534]
26579 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
26580 and to the list of locales to be built for testing.
26581 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
26582 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
26583 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
26584 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
26585
5e56e937
MF
265862017-11-30 Mike FABIAN <mfabian@redhat.com>
26587
26588 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
26589 to make test case pass.
26590 * localedata/hr_HR.UTF-8.in: Add more test strings.
26591
cf4341ca
MF
265922017-11-30 Mike FABIAN <mfabian@redhat.com>
26593
26594 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
26595
363e4519 265962017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
9ca6b343
DSN
26597
26598 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
26599 the list of locales to built for testing.
26600 * localedata/hr_HR.UTF-8.in: New file.
26601
363e4519 266022017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
37075ae1
DSN
26603
26604 [BZ #10580]
26605 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
26606 iso14651_t1.
26607 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
26608 CLDR (except use ligatures for the digraphs, CLDR does not use
26609 the ligatures), add first_workday, some fixes in the date and time
26610 formats.
26611 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
26612 for Đ and đ.
26613 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
26614 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
26615 Add int_p_cs_precedes and int_n_cs_precedes.
26616 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
26617 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
26618 LC_MONETARY now).
26619 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
26620 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
26621 name_miss.
26622 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
26623 and lang_lib. Change postal_fmt.
26624
f33632cc
L
266252017-11-30 H.J. Lu <hongjiu.lu@intel.com>
26626
26627 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
26628 <setjmp.h>.
26629 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
26630 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
26631 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
26632 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
26633 * sysdeps/generic/setjmpP.h: New file.
26634 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
26635 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
26636 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
26637 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
26638 Add jmp_buf-ssp.sym.
26639 (tests): Add tst-saved_mask-1.
26640
34697694
AS
266412017-11-30 Arjun Shankar <arjun@redhat.com>
26642
26643 [BZ #22375]
37ac8e63 26644 CVE-2017-17426
34697694
AS
26645 * malloc/malloc.c (__libc_malloc): Use checked_request2size
26646 instead of request2size.
26647
3e5efdbd
JM
266482017-11-30 Joseph Myers <joseph@codesourcery.com>
26649
18305fba
JM
26650 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
26651 (__lllrint): Remove alias.
26652 (lllrint): Likewise.
26653 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
26654 (__lllrintf): Likewise.
26655 (lllrintf): Likewise.
26656
3e5efdbd
JM
26657 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
26658 <libm-alias-float.h>.
26659 (copysignf): Define using libm_alias_float.
26660 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
26661 <libm-alias-float.h>.
26662 (fabsf): Define using libm_alias_float.
26663 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
26664 Include <libm-alias-float.h>.
26665 (copysignf): Define using libm_alias_float.
26666 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
26667 <libm-alias-float.h>.
26668 (fabsf): Define using libm_alias_float.
26669 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
26670 <libm-alias-float.h>.
26671 (fdimf): Define using libm_alias_float.
26672 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
26673 <libm-alias-float.h>.
26674 (fmaf): Define using libm_alias_float.
26675 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
26676 <libm-alias-float.h>.
26677 (llrintf): Define using libm_alias_float.
26678 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
26679 Include <libm-alias-float.h>.
26680 (nearbyintf): Define using libm_alias_float.
26681 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
26682 <libm-alias-float.h>.
26683 (rintf): Define using libm_alias_float.
26684 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
26685 <libm-alias-float.h>.
26686 (llrintf): Define using libm_alias_float.
26687 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
26688 <libm-alias-float.h>.
26689 (lrintf): Define using libm_alias_float.
26690 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
26691 <libm-alias-float.h>.
26692 (nearbyintf): Define using libm_alias_float.
26693 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
26694 <libm-alias-float.h>.
26695 (rintf): Define using libm_alias_float.
26696 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
26697 <libm-alias-float.h>.
26698 (ceilf): Define using libm_alias_float.
26699 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
26700 <libm-alias-float.h>.
26701 (floorf): Define using libm_alias_float.
26702 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
26703 <libm-alias-float.h>.
26704 (fmaf): Define using libm_alias_float.
26705 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
26706 <libm-alias-float.h>.
26707 (lrintf): Define using libm_alias_float.
26708 (llrintf): Likewise.
26709 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
26710 <libm-alias-float.h>.
26711 (nearbyintf): Define using libm_alias_float.
26712 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
26713 <libm-alias-float.h>.
26714 (rintf): Define using libm_alias_float.
26715 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
26716 <libm-alias-float.h>.
26717 (truncf): Define using libm_alias_float.
26718 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
26719 <libm-alias-float.h>.
26720 (copysignf): Define using libm_alias_float.
26721 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
26722 <libm-alias-float.h>.
26723 (fabsf): Define using libm_alias_float.
26724 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
26725 <libm-alias-float.h>.
26726 (lrintf): Define using libm_alias_float.
26727 (llrintf): Likewise.
26728 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
26729 <libm-alias-float.h>.
26730 (nearbyintf): Define using libm_alias_float.
26731 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
26732 <libm-alias-float.h>.
26733 (rintf): Define using libm_alias_float.
26734
011fba7e
JM
267352017-11-29 Joseph Myers <joseph@codesourcery.com>
26736
875cd548
JM
26737 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
26738 <libm-alias-double.h>.
26739 (copysign): Define using libm_alias_double.
26740 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
26741 <libm-alias-double.h>.
26742 (fabs): Define using libm_alias_double.
26743 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
26744 Include <libm-alias-double.h>.
26745 (copysign): Define using libm_alias_double.
26746 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
26747 <libm-alias-double.h>.
26748 (fabs): Define using libm_alias_double.
26749 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
26750 <libm-alias-double.h>.
26751 (fdim): Define using libm_alias_double.
26752 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
26753 <libm-alias-double.h>.
26754 (fma): Define using libm_alias_double.
26755 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
26756 <libm-alias-double.h>.
26757 (llrint): Define using libm_alias_double.
26758 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
26759 Include <libm-alias-double.h>.
26760 (nearbyint): Define using libm_alias_double.
26761 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
26762 <libm-alias-double.h>.
26763 (rint): Define using libm_alias_double.
26764 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
26765 <libm-alias-double.h>.
26766 (fabs): Define using libm_alias_double.
26767 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
26768 <libm-alias-double.h>.
26769 (llrint): Define using libm_alias_double.
26770 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
26771 <libm-alias-double.h>.
26772 (nearbyint): Define using libm_alias_double.
26773 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
26774 <libm-alias-double.h>.
26775 (rint): Define using libm_alias_double.
26776 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
26777 <libm-alias-double.h>.
26778 (ceil): Define using libm_alias_double.
26779 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
26780 <libm-alias-double.h>.
26781 (floor): Define using libm_alias_double.
26782 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
26783 <libm-alias-double.h>.
26784 (fma): Define using libm_alias_double.
26785 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
26786 <libm-alias-double.h>.
26787 (lrint): Define using libm_alias_double.
26788 (llrint): Likewise.
26789 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
26790 <libm-alias-double.h>.
26791 (nearbyint): Define using libm_alias_double.
26792 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
26793 <libm-alias-double.h>.
26794 (rint): Define using libm_alias_double.
26795 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
26796 <libm-alias-double.h>.
26797 (trunc): Define using libm_alias_double.
26798 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
26799 <libm-alias-double.h>.
26800 (copysign): Define using libm_alias_double.
26801 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
26802 <libm-alias-double.h>.
26803 (fabs): Define using libm_alias_double.
26804 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
26805 <libm-alias-double.h>.
26806 (lrint): Define using libm_alias_double.
26807 (llrint): Likewise.
26808 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
26809 <libm-alias-double.h>.
26810 (nearbyint): Define using libm_alias_double.
26811 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
26812 <libm-alias-double.h>.
26813 (rint): Define using libm_alias_double.
26814
cf4ebc27
JM
26815 [BZ #22229]
26816 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
26817 <math_ldbl_opt.h>.
26818 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
26819
0c097378
JM
26820 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
26821 SPARC --disable-multi-arch glibc variants.
26822
34bb10aa
JM
26823 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
26824 <libm-alias-float.h>.
26825 (exp2f): Define using libm_alias_float, or libm_alias_float_other
26826 if [SHARED].
26827 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
26828 <libm-alias-float.h>.
26829 (exp2f): Define using libm_alias_float, or libm_alias_float_other
26830 if [SHARED].
26831 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
26832 <libm-alias-float.h>.
26833 (exp2f): Define using libm_alias_float, or libm_alias_float_other
26834 if [SHARED].
26835 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
26836 <libm-alias-float.h>.
26837 (exp2f): Define using libm_alias_float, or libm_alias_float_other
26838 if [SHARED].
26839 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
26840 <libm-alias-float.h>.
26841 (exp2f): Define using libm_alias_float, or libm_alias_float_other
26842 if [SHARED].
26843 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
26844 <libm-alias-float.h>.
26845 (ceilf): Define using libm_alias_float.
26846 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
26847 <libm-alias-float.h>.
26848 (floorf): Define using libm_alias_float.
26849 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
26850 <libm-alias-float.h>.
26851 (fmaf): Define using libm_alias_float.
26852 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
26853 <libm-alias-float.h>.
26854 (nearbyintf): Define using libm_alias_float.
26855 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
26856 <libm-alias-float.h>.
26857 (rintf): Define using libm_alias_float.
26858 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
26859 <libm-alias-float.h>.
26860 (truncf): Define using libm_alias_float.
26861 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
26862 (copysignf): Define using libm_alias_float.
26863 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
26864 (cosf): Define using libm_alias_float.
26865 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
26866 (fabsf): Define using libm_alias_float.
26867 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
26868 (fmaxf): Define using libm_alias_float.
26869 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
26870 (fminf): Define using libm_alias_float.
26871 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
26872 (llrintf): Define using libm_alias_float.
26873 [!__ILP32__] (lrintf): Likewise.
26874 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
26875 (sincosf): Define using libm_alias_float.
26876 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
26877 (sinf): Define using libm_alias_float.
26878 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
26879 (lrintf): Define using libm_alias_float.
26880
011fba7e
JM
26881 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
26882 <libm-alias-double.h>.
26883 (atan): Define using libm_alias_double.
26884 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
26885 <libm-alias-double.h>.
26886 (ceil): Define using libm_alias_double.
26887 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
26888 <libm-alias-double.h>.
26889 (floor): Define using libm_alias_double.
26890 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
26891 <libm-alias-double.h>.
26892 (fma): Define using libm_alias_double.
26893 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
26894 <libm-alias-double.h>.
26895 (nearbyint): Define using libm_alias_double.
26896 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
26897 <libm-alias-double.h>.
26898 (rint): Define using libm_alias_double.
26899 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
26900 <libm-alias-double.h>.
26901 (sin): Define using libm_alias_double.
26902 (cos): Likewise.
26903 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
26904 <libm-alias-double.h>.
26905 (tan): Define using libm_alias_double.
26906 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
26907 <libm-alias-double.h>.
26908 (trunc): Define using libm_alias_double.
26909 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
26910 (copysign): Define using libm_alias_double.
26911 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
26912 (fabs): Define using libm_alias_double.
26913 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
26914 (fmax): Define using libm_alias_double.
26915 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
26916 (fmin): Define using libm_alias_double.
26917 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
26918 (llrint): Define using libm_alias_double.
26919 [!__ILP32__] (lrint): Likewise.
26920 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
26921 (lrint): Define using libm_alias_double.
26922
1cbd7bfe
AZ
269232017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26924
21bfcc3d
AZ
26925 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
26926 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
26927 objects.
26928 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
26929 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
26930 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
26931 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
26932 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
26933 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
26934
522228dd
AZ
26935 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
26936 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
26937 objects.
26938 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
26939 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
26940 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
26941 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
26942 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
26943 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
26944
2a6f4fab
AZ
26945 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
26946 (libm-sysdep_routines): Add s_nearbyint-generic and
26947 s_nearbyintf-generic objects.
26948 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
26949 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
26950 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
26951 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
26952 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
26953 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
26954
712b5b83
AZ
26955 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
26956 Add s_finitef-generic and s_finite-generic objects.
26957 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
26958 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
26959 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
26960 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
26961 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
26962 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
26963
c96d3335
AZ
26964 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
26965 Add s_isinff-generic and s_isinf-generic objects.
26966 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
26967 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
26968 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
26969 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
26970 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
26971 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
26972
c6862a23
AZ
26973 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
26974 Add s_isnanf-generic and s_isnan-generic objects.
26975 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
26976 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
26977 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
26978 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
26979 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
26980 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
26981
1cbd7bfe
AZ
26982 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
26983 macro.
26984 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
26985 rule.
26986 (sysdep_routines): Use sysdep_calls as base.
26987 (libm-sysdep_routines): Add generic rule for symbols shared with
26988 libc. Add s_signbit-generic and s_signbitf-generic objects.
26989 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
26990 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
26991 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
26992 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
26993 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
26994 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
26995
aa1142c5
JM
269962017-11-29 Joseph Myers <joseph@codesourcery.com>
26997
26998 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
26999 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
27000 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
27001 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
27002 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
27003 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
27004 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
27005 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
27006 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
27007 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
27008 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
27009 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
27010 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
27011 libm_alias_float_r.
27012 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
27013 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
27014 (logf): Likewise.
27015 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
27016 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
27017 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
27018 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
27019 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
27020 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
27021 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
27022 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
27023 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
27024 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
27025 libm_alias_float.
27026 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
27027 (cosf): Likewise.
27028 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
27029 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
27030 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
27031 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
27032 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
27033 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
27034 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
27035 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
27036 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
27037 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
27038 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
27039 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
27040 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
27041 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
27042 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
27043 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
27044 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
27045 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
27046 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
27047 libm_alias_float.
27048 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
27049 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
27050 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
27051 * sysdeps/ia64/fpu/w_lgammaf_main.c
27052 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
27053 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
27054
363e4519
DL
270552017-11-28 Mike FABIAN <mfabian@redhat.com>
27056 Alexandre Oliva <aoliva@redhat.com>
8da25eec
AO
27057
27058 [BZ #17750]
27059 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
27060 * localedata/fr_CA.UTF-8.in: New file with test data for backward
27061 accents sorting.
27062 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
27063 sorting.
27064 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
27065 * localedata/locales/de_DE (LC_COLLATE): Likewise.
27066 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
27067 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
27068 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
27069 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
27070 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
27071 instead of “ifdef DIACRIT_BACKWARD”.
27072
a55430cb
AZ
270732017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27074
27075 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
27076 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
27077 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
27078 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
27079 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
27080 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
27081 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
27082 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
27083 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
27084 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
27085 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
27086 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
27087 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
27088 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
27089 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
27090 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
27091 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
27092 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
27093 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
27094 ($(have-as-vis3) == yes): Remove conditional.
27095 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
27096 Likewise.
27097 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
27098 file.
27099 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
27100 file.
27101 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
27102 file.
27103 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
27104 file.
27105 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
27106 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
27107 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
27108 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
27109 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
27110 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
27111 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
27112 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
27113
0609ec0a
JM
271142017-11-29 Joseph Myers <joseph@codesourcery.com>
27115
27116 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
27117 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
27118 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
27119 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
27120 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
27121 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
27122 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
27123 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
27124 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
27125 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
27126 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
27127 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
27128 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
27129 libm_alias_double_r.
27130 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
27131 (log): Likewise.
27132 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
27133 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
27134 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
27135 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
27136 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
27137 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
27138 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
27139 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
27140 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
27141 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
27142 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
27143 libm_alias_double.
27144 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
27145 (cos): Likewise.
27146 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
27147 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
27148 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
27149 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
27150 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
27151 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
27152 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
27153 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
27154 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
27155 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
27156 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
27157 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
27158 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
27159 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
27160 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
27161 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
27162 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
27163 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
27164 libm_alias_double.
27165 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
27166 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
27167 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
27168 * sysdeps/ia64/fpu/w_lgamma_main.c
27169 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
27170 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
27171
d5bfa34a
JDA
271722017-11-28 John David Anglin <danglin@gcc.gnu.org>
27173
27174 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
27175 address of $global$ into %dp register earlier. Use pc-relative
27176 instruction sequence for PIC case.
27177
bc4e8f9b
JM
271782017-11-28 Joseph Myers <joseph@codesourcery.com>
27179
e4602cba
JM
27180 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
27181 (asinhf): Define using libm_alias_float.
27182 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
27183 (atanf): Define using libm_alias_float.
27184 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
27185 (cbrtf): Define using libm_alias_float.
27186 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
27187 (ceilf): Define using libm_alias_float.
27188 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
27189 (copysignf): Define using libm_alias_float.
27190 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
27191 (expm1f): Define using libm_alias_float.
27192 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
27193 (fabsf): Define using libm_alias_float.
27194 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
27195 (floorf): Define using libm_alias_float.
27196 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
27197 (fmaxf): Define using libm_alias_float.
27198 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
27199 (fminf): Define using libm_alias_float.
27200 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
27201 (frexpf): Define using libm_alias_float.
27202 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
27203 (llrintf): Define using libm_alias_float.
27204 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
27205 (logbf): Define using libm_alias_float.
27206 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
27207 (lrintf): Define using libm_alias_float.
27208 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
27209 (nearbyintf): Define using libm_alias_float.
27210 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
27211 (remquof): Define using libm_alias_float.
27212 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
27213 (rintf): Define using libm_alias_float.
27214 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
27215 (truncf): Define using libm_alias_float.
27216 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
27217 <libm-alias-float.h>.
27218 (exp2f): Define using libm_alias_float, or libm_alias_float_other
27219 if [SHARED].
27220 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
27221 <libm-alias-float.h>.
27222 (expf): Define using libm_alias_float, or libm_alias_float_other
27223 if [SHARED].
27224 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
27225 <libm-alias-float.h>.
27226 (log2f): Define using libm_alias_float, or libm_alias_float_other
27227 if [SHARED].
27228 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
27229 <libm-alias-float.h>.
27230 (logf): Define using libm_alias_float, or libm_alias_float_other
27231 if [SHARED].
27232 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
27233 <libm-alias-float.h>.
27234 (powf): Define using libm_alias_float, or libm_alias_float_other
27235 if [SHARED].
27236 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
27237 <libm-alias-float.h>.
27238 (cosf): Define using libm_alias_float.
27239 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
27240 <libm-alias-float.h>.
27241 (sincosf): Define using libm_alias_float.
27242 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
27243 <libm-alias-float.h>.
27244 (sinf): Define using libm_alias_float.
27245 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
27246 (fmaxf): Define using libm_alias_float.
27247 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
27248 (fminf): Define using libm_alias_float.
27249 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
27250 <libm-alias-float.h>.
27251 (fmaf): Define using libm_alias_float.
27252
bc4e8f9b
JM
27253 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
27254 (asinh): Define using libm_alias_double.
27255 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
27256 (atan): Define using libm_alias_double.
27257 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
27258 (cbrt): Define using libm_alias_double.
27259 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
27260 (ceil): Define using libm_alias_double.
27261 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
27262 (copysign): Define using libm_alias_double.
27263 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
27264 (expm1): Define using libm_alias_double.
27265 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
27266 (fabs): Define using libm_alias_double.
27267 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
27268 (fdim): Define using libm_alias_double.
27269 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
27270 (floor): Define using libm_alias_double.
27271 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
27272 (fmax): Define using libm_alias_double.
27273 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
27274 (fmin): Define using libm_alias_double.
27275 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
27276 (frexp): Define using libm_alias_double.
27277 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
27278 (llrint): Define using libm_alias_double.
27279 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
27280 (logb): Define using libm_alias_double.
27281 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
27282 (lrint): Define using libm_alias_double.
27283 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
27284 (nearbyint): Define using libm_alias_double.
27285 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
27286 (remquo): Define using libm_alias_double.
27287 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
27288 (rint): Define using libm_alias_double.
27289 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
27290 (trunc): Define using libm_alias_double.
27291 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
27292 (fmax): Define using libm_alias_double.
27293 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
27294 (fmin): Define using libm_alias_double.
27295 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
27296 (fma): Define using libm_alias_double.
27297
8d81ce0c
L
272982017-11-28 H.J. Lu <hongjiu.lu@intel.com>
27299
27300 [BZ #22370]
27301 * elf/dl-hwcaps.c (ROUND): Removed.
27302 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
27303 and ELF_NOTE_NEXT_OFFSET.
27304 * elf/dl-load.c (ROUND): Removed.
27305 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
27306 * elf/readelflib.c (ROUND): Removed.
27307 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
27308 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
27309 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
27310 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
27311
6940bd96
JM
273122017-11-28 Joseph Myers <joseph@codesourcery.com>
27313
313ba463
JM
27314 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
27315 [!__fmaf] (fmaf): Define using libm_alias_float.
27316
6940bd96
JM
27317 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
27318 [!__fma] (fma): Define using libm_alias_double.
27319 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
27320
22c69b6a
MF
273212017-11-28 Mike FABIAN <mfabian@redhat.com>
27322
27323 [BZ #22336]
27324 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
27325 and implement the collation rules for cs from CLDR on top of that.
27326 * Makefile: Add cs_CZ.UTF-8 to test-input.
27327 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
27328
8d7d3ba8
SP
273292017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
27330
27331 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
27332
0422ed1e
VR
273332017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
27334 Icarus Sparry <icarus.w.sparry@intel.com>
27335
27336 * benchtests/Makefile:Add BENCHSET to allow subsets of
27337 benchmarks to be run.
27338 * benchtests/README: Add documentation for: Running subsets of
27339 benchmarks.
27340
0595e360
VR
273412017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
27342
d5090db3
VR
27343 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
27344 range of tests names.
27345
0595e360
VR
27346 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
27347 result from property and remove "max", min" and "mean" from
27348 required properties based on benchtests/bench-skeleton.c.
27349
b4c645c2
FW
273502017-11-28 Florian Weimer <fweimer@redhat.com>
27351
27352 [BZ #20826]
27353 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
27354 due to Internet requirement.
27355 * posix/Makefile (tests): Remove tst-getaddrinfo4,
27356 tst-getaddrinfo5.
27357 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
27358
88684de7
AZ
273592017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27360
69056564
AZ
27361 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
27362 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
27363 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
27364 (sysdep_routines): Add memset-ultra1.
27365 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
27366 file.
27367 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
27368 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
27369 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
27370 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
27371 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
27372 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
27373 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
27374 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
27375
88684de7
AZ
27376 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
27377 file.
27378 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
27379 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
27380 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
27381 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
27382 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
27383 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
27384 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
27385 macro.
27386 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
27387 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
27388 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
27389 (sysdep_routines): Add memcpy-ultra1.
27390 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
27391 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
27392
d8124864
JM
273932017-11-28 Joseph Myers <joseph@codesourcery.com>
27394
f433d0b3
JM
27395 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
27396 (cfloat_versions): Take function argument without trailing 'f'.
27397 Call libm_alias_float_other.
27398 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
27399 * sysdeps/alpha/fpu/cargf.c: Likewise.
27400 * sysdeps/alpha/fpu/cimagf.c: Likewise.
27401 * sysdeps/alpha/fpu/conjf.c: Likewise.
27402 * sysdeps/alpha/fpu/crealf.c: Likewise.
27403 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
27404 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
27405 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
27406 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
27407 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
27408 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
27409 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
27410 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
27411 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
27412 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
27413 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
27414 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
27415 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
27416 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
27417 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
27418 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
27419 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
27420 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
27421 (clog10f): Use libm_alias_float_other.
27422 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
27423 (ceilf): Define using libm_alias_float.
27424 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
27425 (copysignf): Define using libm_alias_float.
27426 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
27427 (fabsf): Define using libm_alias_float.
27428 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
27429 (floorf): Define using libm_alias_float.
27430 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
27431 (fmaxf): Define using libm_alias_float.
27432 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
27433 (fminf): Define using libm_alias_float.
27434 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
27435 (lrintf): Define using libm_alias_float.
27436 (llrintf): Likewise.
27437 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
27438 (lroundf): Define using libm_alias_float.
27439 (llroundf): Likewise.
27440 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
27441 (rintf): Define using libm_alias_float.
27442 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
27443 (truncf): Define using libm_alias_float.
27444
15ff4900
JM
27445 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
27446 (ceilf): Define using libm_alias_float.
27447 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
27448 (floorf): Define using libm_alias_float.
27449 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
27450 (fmaf): Define using libm_alias_float.
27451 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
27452 (fmaxf): Define using libm_alias_float.
27453 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
27454 (fminf): Define using libm_alias_float.
27455 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
27456 (llrintf): Define using libm_alias_float.
27457 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
27458 (llroundf): Define using libm_alias_float.
27459 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
27460 (lrintf): Define using libm_alias_float.
27461 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
27462 (lroundf): Define using libm_alias_float.
27463 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
27464 <libm-alias-float.h>.
27465 (nearbyintf): Define using libm_alias_float.
27466 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
27467 (rintf): Define using libm_alias_float.
27468 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
27469 (roundf): Define using libm_alias_float.
27470 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
27471 (truncf): Define using libm_alias_float.
27472
5de60638
JM
27473 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
27474 (ceil): Define using libm_alias_double.
27475 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
27476 (copysign): Define using libm_alias_double.
27477 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
27478 (fabs): Define using libm_alias_double.
27479 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
27480 (floor): Define using libm_alias_double.
27481 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
27482 (fmax): Define using libm_alias_double.
27483 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
27484 (fmin): Define using libm_alias_double.
27485 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
27486 (lrint): Define using libm_alias_double.
27487 (llrint): Likewise.
27488 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
27489 (lround): Define using libm_alias_double.
27490 (llround): Likewise.
27491 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
27492 (rint): Define using libm_alias_double.
27493 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
27494 (trunc): Define using libm_alias_double.
27495
d8124864
JM
27496 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
27497 (libm_alias_double_r): Add semicolon after weak_alias call.
27498
f07d2ec8
JM
274992017-11-27 Joseph Myers <joseph@codesourcery.com>
27500
27501 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
27502 (ceil): Define using libm_alias_double.
27503 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
27504 (floor): Define using libm_alias_double.
27505 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
27506 (fma): Define using libm_alias_double.
27507 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
27508 (fmax): Define using libm_alias_double.
27509 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
27510 (fmin): Define using libm_alias_double.
27511 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
27512 (llrint): Define using libm_alias_double.
27513 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
27514 (llround): Define using libm_alias_double.
27515 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
27516 (lrint): Define using libm_alias_double.
27517 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
27518 (lround): Define using libm_alias_double.
27519 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
27520 (nearbyint): Define using libm_alias_double.
27521 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
27522 (rint): Define using libm_alias_double.
27523 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
27524 (round): Define using libm_alias_double.
27525 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
27526 (trunc): Define using libm_alias_double.
27527
4bab0224
FW
275282017-11-27 Florian Weimer <fweimer@redhat.com>
27529
27530 * sysdeps/unix/sysv/linux/mlock2.c: New file.
27531 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
27532 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
27533 (tests): Add tst-mlock2.
27534 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
27535 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
27536 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
27537 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
27538 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
27539 for mlock. Document mlock2.
27540
a23aa5b7
JM
275412017-11-27 Joseph Myers <joseph@codesourcery.com>
27542
27543 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
27544 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
27545 Likewise.
27546 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
27547 Likewise.
27548 * sysdeps/x86/Makeconfig: New file.
27549 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
27550 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27551 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
27552 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27553 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
27554 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27555 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
27556 Likewise.
27557 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27558 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
27559 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27560 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
27561 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27562 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
27563 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
27564 * manual/math.texi (Mathematics): Document support for _Float64x.
27565 * math/Versions (GLIBC_2.27): Add _Float64x functions.
27566 * stdlib/Versions (GLIBC_2.27): Likewise.
27567 * wcsmbs/Versions (GLIBC_2.27): Likewise.
27568 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
27569 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
27570 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
27571 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
27572 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
27573 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
27574 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
27575 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
27576 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
27577 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
27578 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
27579 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
27580 Likewise.
27581 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
27582 Likewise.
27583 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
27584 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
27585 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
27586 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
27587 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
27588 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
27589 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
27590 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
27591 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
27592 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
27593 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
27594 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
27595 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
27596 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
27597
c2c299fd
AS
275982017-11-27 Andreas Schwab <schwab@suse.de>
27599
27600 * elf/Makefile (dl-routines): Add dl-sort-maps.
27601 * elf/dl-sort-maps.c: New file.
27602 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
27603 (_dl_sort_maps): Declare.
27604 * elf/dl-fini.c (_dl_sort_fini): Remove.
27605 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
27606 * elf/dl-close.c (_dl_close_worker): Likewise.
27607 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
27608 open-coding it.
27609 * elf/dl-open.c (dl_open_worker): Likewise.
27610
9d4b0117
JM
276112017-11-24 Joseph Myers <joseph@codesourcery.com>
27612
de61465c
JM
27613 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
27614 using libm_alias_float128.
27615 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
27616 Likewise.
27617 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
27618 Likewise.
27619 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
27620 (setpayloadsigf128): Likewise.
27621 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
27622 Likewise.
27623 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
27624 Likewise.
27625
9ae6d171
JM
27626 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
27627 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
27628 -mfloat128 to CFLAGS.
27629 ($(foreach
27630 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
27631 Likewise.
27632 (CFLAGS-libm-test-support-float64x.c): New variable.
27633 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
27634 $(f128-loader-link) to gnulib-tests.
27635
6e70d156
JM
27636 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
27637 (libm_alias_float128_other_r): If
27638 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
27639 alias.
27640 (libm_alias_float128_r): Add semicolon after weak_alias call.
27641 * sysdeps/generic/libm-alias-ldouble.h
27642 (libm_alias_ldouble_other_r_f128): New macro.
27643 (libm_alias_ldouble_other_r_f64x): Likewise.
27644 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
27645 and libm_alias_ldouble_other_r_f64x.
27646 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
27647 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
27648 (libm_alias_ldouble_other_r_f128): New macro.
27649 (libm_alias_ldouble_other_r_f64x): Likewise.
27650 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
27651 and libm_alias_ldouble_other_r_f64x.
27652
df2806cd
JM
27653 * stdlib/strfroml.c: Always include <stdlib.h>.
27654 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
27655 undefine as macro and define as weak alias.
27656 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
27657 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
27658 <stdlib.h>.
27659 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
27660 Define and later undefine as macro and define as weak alias.
27661
0df4fe35
JM
27662 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
27663 Define and later undefine as macro. Define as weak alias if
27664 [!USE_WIDE_CHAR].
27665 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
27666 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
27667 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
27668 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
27669 Define and later undefine as macro. Define as weak alias if
27670 [!USE_WIDE_CHAR].
27671 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
27672 Define and later undefine as macro. Define as weak alias if
27673 [USE_WIDE_CHAR].
27674 * sysdeps/ieee754/float128/strtof128_l.c
27675 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
27676 Define and later undefine as macro. Define as weak alias if
27677 [!USE_WIDE_CHAR].
27678 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
27679 Define and later undefine as macro. Define as weak alias if
27680 [USE_WIDE_CHAR].
27681 * sysdeps/ieee754/ldbl-128/strtold_l.c
27682 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
27683 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
27684 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
27685 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
27686 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
27687 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
27688 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
27689 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
27690 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
27691 * sysdeps/ieee754/ldbl-96/strtold_l.c
27692 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
27693 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
27694 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
27695 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
27696
ae7207d0
JM
27697 * math/test-float64x.h: New file.
27698 * math/Makefile (type-float64x-yes): New variable.
27699 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
27700
9596fc69
JM
27701 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
27702 function-like macro.
27703 (min_of_type_): Likewise.
27704 (min_of_type_l): Likewise.
27705 (min_of_type_f128): Likewise.
27706 (min_of_type): Pass () as last argument of __MATH_TG.
27707
46453c3c
JM
27708 * stdlib/tst-strtod-round-skeleton.c
27709 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
27710 headers.
27711
01e659e7
JM
27712 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
27713 for combinations of long double with _Float64 and _Float64x.
27714
5c60afdd
JM
27715 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
27716 (__DECL_SIMD_cosf32): Likewise.
27717 (__DECL_SIMD_cosf64): Likewise.
27718 (__DECL_SIMD_cosf32x): Likewise.
27719 (__DECL_SIMD_cosf64x): Likewise.
27720 (__DECL_SIMD_cosf128x): Likewise.
27721 (__DECL_SIMD_sinf16): Likewise.
27722 (__DECL_SIMD_sinf32): Likewise.
27723 (__DECL_SIMD_sinf64): Likewise.
27724 (__DECL_SIMD_sinf32x): Likewise.
27725 (__DECL_SIMD_sinf64x): Likewise.
27726 (__DECL_SIMD_sinf128x): Likewise.
27727 (__DECL_SIMD_sincosf16): Likewise.
27728 (__DECL_SIMD_sincosf32): Likewise.
27729 (__DECL_SIMD_sincosf64): Likewise.
27730 (__DECL_SIMD_sincosf32x): Likewise.
27731 (__DECL_SIMD_sincosf64x): Likewise.
27732 (__DECL_SIMD_sincosf128x): Likewise.
27733 (__DECL_SIMD_logf16): Likewise.
27734 (__DECL_SIMD_logf32): Likewise.
27735 (__DECL_SIMD_logf64): Likewise.
27736 (__DECL_SIMD_logf32x): Likewise.
27737 (__DECL_SIMD_logf64x): Likewise.
27738 (__DECL_SIMD_logf128x): Likewise.
27739 (__DECL_SIMD_expf16): Likewise.
27740 (__DECL_SIMD_expf32): Likewise.
27741 (__DECL_SIMD_expf64): Likewise.
27742 (__DECL_SIMD_expf32x): Likewise.
27743 (__DECL_SIMD_expf64x): Likewise.
27744 (__DECL_SIMD_expf128x): Likewise.
27745 (__DECL_SIMD_powf16): Likewise.
27746 (__DECL_SIMD_powf32): Likewise.
27747 (__DECL_SIMD_powf64): Likewise.
27748 (__DECL_SIMD_powf32x): Likewise.
27749 (__DECL_SIMD_powf64x): Likewise.
27750 (__DECL_SIMD_powf128x): Likewise.
27751
9d4b0117
JM
27752 * stdlib/Versions (libc): Move entries for wcstof128 and
27753 wcstof128_l to ....
27754 * wcsmbs/Versions (libc): ... here.
27755 Include <float128-abi.h>.
27756
7911dd47
FW
277572017-11-24 Florian Weimer <fweimer@redhat.com>
27758
27759 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
27760 bits/mman-shared.h.
27761 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
27762 <bits/mman-shared.h>.
27763 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
27764 to ...
27765 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
27766 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
27767 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
27768 <bits/mman-shared.h>.
27769
c45d78aa
AZ
277702017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27771
27772 [BZ #22457]
27773 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
27774 posix_memalign/free.
27775 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
27776
3ffc4cc1
MF
277772017-11-22 Mike FABIAN <mfabian@redhat.com>
27778
27779 [BZ #22469]
27780 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
27781 and implement the collation rules for pl from CLDR on top of that.
27782 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
27783 of locales to be built for testing.
27784 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
27785
3a327316
JM
277862017-11-23 Joseph Myers <joseph@codesourcery.com>
27787
27788 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
27789 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
27790 libm_alias_ldouble_other.
27791 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
27792 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
27793 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
27794 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
27795 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
27796 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
27797 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
27798 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
27799 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
27800 libm_alias_ldouble_r.
27801 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
27802 libm_alias_ldouble_other.
27803 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
27804 (log10l): Likewise.
27805 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
27806 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
27807 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
27808 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
27809 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
27810 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
27811 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
27812 (atan2l): Likewise.
27813 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
27814 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
27815 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
27816 libm_alias_ldouble.
27817 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
27818 (cosl): Likewise.
27819 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
27820 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
27821 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
27822 (expl): Likewise.
27823 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
27824 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
27825 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
27826 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
27827 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
27828 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
27829 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
27830 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
27831 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
27832 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
27833 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
27834 libm_alias_ldouble.
27835 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
27836 libm_alias_ldouble_other.
27837 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
27838 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
27839 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
27840 libm_alias_ldouble.
27841 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
27842 libm_alias_ldouble_other.
27843 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
27844 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
27845 * sysdeps/ia64/fpu/w_lgammal_main.c
27846 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
27847 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
27848
0a947e06
FW
278492017-11-23 Florian Weimer <fweimer@redhat.com>
27850
27851 * malloc/malloc.c (tcache_thread_shutdown): Rename from
27852 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
27853 alike. Remove freeres marker.
27854 * malloc/arena.c (arena_thread_freeres): Call
27855 tcache_thread_shutdown.
27856
67f36c79
FW
278572017-11-23 Florian Weimer <fweimer@redhat.com>
27858
27859 [BZ #22459]
27860 Export nscd hash function as __nss_hash.
27861 * include/nss.h (__nss_hash): Declare.
27862 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
27863 symbol.
27864 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
27865 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
27866 of __nscd_hash.
27867 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
27868 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
27869 * nss/Makefiles (routines): Add nss_hash.
27870 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
27871 * nss/nss_hash.c: Rename from nis/nis_hash.c.
27872 (__nss_hash): Rename from __nis_hash. Define hidden alias.
27873 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
27874
cccb6d4e
FW
278752017-11-23 Florian Weimer <fweimer@redhat.com>
27876
27877 [BZ #22478]
27878 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
27879 Return error code, not -1.
27880 * signal/tst-sigwait-eintr.c: New file.
27881 * signal/Makefile (tests): Add tst-sigwait-eintr.
27882
59d2cbb1
FW
278832017-11-23 Florian Weimer <fweimer@redhat.com>
27884
27885 Linux: Add memfd_create system call wrapper
27886 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
27887 tst-memfd_create.
27888 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
27889 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
27890 [__USE_GNU] (memfd_create): Declare.
27891 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
27892 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
27893 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
27894 * sysdeps/unix/sysv/linux/**.abilist: Update.
27895 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
27896
a90d1ac2
JM
278972017-11-22 Joseph Myers <joseph@codesourcery.com>
27898
0a9d1d62
JM
27899 * localedata/gen-locale.sh: Fix typo in variable name.
27900
754034c4
JM
27901 * resolv/res_debug.c (p_secstodate): Condition definition on
27902 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
27903 directly as __p_secstodate, and as a compat symbol. Do not use
27904 libresolv_hidden_def.
27905 * resolv/resolv.h (p_secstodate): Remove macro and function
27906 declaration.
27907 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
27908 using p_secstodate.
27909 * include/resolv.h (__p_secstodate): Do not use
27910 libresolv_hidden_proto.
27911 * resolv/Makefile (tests): Move tst-p_secstodate to ....
27912 (tests-internal): ... here.
27913 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
27914 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
27915 and declare and use __p_secstodate and use compat_symbol_reference
27916 in that case.
27917 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
27918 implementation returning 77.
27919
f120cda6
JM
27920 [BZ #22463]
27921 * resolv/res_debug.c: Include <libc-diag.h>.
27922 (p_secstodate): Assert time_t at least as wide as u_long. On
27923 overflow, use integer seconds since the epoch as output, or use
27924 "<overflow>" as output and set errno to EOVERFLOW if integer
27925 seconds since the epoch would be 14 or more characters.
27926 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
27927 for sprintf call.
27928 * resolv/tst-p_secstodate.c: New file.
27929 * resolv/Makefile (tests): Add tst-p_secstodate.
27930 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
27931
a90d1ac2
JM
27932 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
27933 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
27934 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
27935
0285e6bd
PE
279362017-11-22 Paul Eggert <eggert@cs.ucla.edu>
27937
27938 * posix/regcomp.c (init_word_char): Add comments.
27939
4bae6150
JM
279402017-11-22 Joseph Myers <joseph@codesourcery.com>
27941
27942 [BZ #22447]
27943 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
27944 strlen to compute length of ut_user and set trailing NUL byte of
27945 result explicitly.
27946
4b7af5fc
MF
279472017-11-21 Mike FABIAN <mfabian@redhat.com>
27948
27949 [BZ #15537]
27950 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
27951 using “copy "iso14651_t1"” and then implementing the
27952 collation rules for lv from CLDR on top of that.
27953 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
27954 of locales to be built for testing.
27955 * lv_LV.UTF-8.in: New file with test data to test the Latvian
27956 sorting.
27957
922bb78c
JM
279582017-11-21 Joseph Myers <joseph@codesourcery.com>
27959
27960 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
27961 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
27962 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
27963 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
27964 [__USE_MISC] (MADV_HWPOISON): New macro.
27965 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
27966
a3aaa598
AZ
279672017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27968
27969 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
27970 -Wmissing-braces on GCC 4.9.
27971
8beba15d
SL
279722017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
27973
27974 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
27975 * sysdeps/s390/s390-32/start.S (_start): Likewise
27976 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
27977 (thread_start): Likewise.
27978 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
27979 (thread_start): Likewise.
27980 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
27981 (__makecontext_ret): Likewise.
27982 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
27983 (__makecontext_ret): Likewise.
27984
80eb52e3
SL
279852017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
27986
27987 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
27988 __wcschrnul): Remove attribute_hidden.
27989
567d8c1f
PE
279902017-11-20 Paul Eggert <eggert@cs.ucla.edu>
27991
27992 regex: don't assume uint64_t or uint32_t
27993 This avoids -Werror=overflow errors for 32-bit systems in
27994 the 64-bit case. Problem reported by Joseph Myers in:
27995 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
27996 Also, when this code is used in Gnulib it ports to platforms
27997 that lack uint64_t and uint32_t. The C standard doesn't guarantee
27998 them, and on some 32-bit compilers there is no uint64_t.
27999 Problem reported by Gianluigi Tiesi in:
28000 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
28001 * posix/regcomp.c (init_word_char): Don't assume that the types
28002 uint64_t and uint32_t exist. Adapted from Gnulib patch
28003 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
28004 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
28005
4d7632ff
SP
280062017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
28007
5a67c4fa
SP
28008 * sysdeps/aarch64/memset-reg.h: New file.
28009 * sysdeps/aarch64/memset.S: Use it.
28010 (__memset): Rename to MEMSET macro.
28011 [ZVA_MACRO]: Use zva_macro.
28012 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
28013 Add memset_generic and memset_falkor.
28014 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
28015 (__libc_ifunc_impl_list): Add memset ifuncs.
28016 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
28017 local variable zva_size.
28018 * sysdeps/aarch64/multiarch/memset.c: New file.
28019 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
28020 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
28021 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
28022 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
28023 (DCZID_DZP_MASK): New macro.
28024 (DCZID_BS_MASK): Likewise.
28025 (init_cpu_features): Read and set zva_size.
28026 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
28027 (struct cpu_features): New member zva_size.
28028
eb332f9f
SP
28029 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
28030 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
28031 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
28032
4d7632ff
SP
28033 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
28034 backwards. Fix timing computation.
28035 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
28036 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
28037 on memset by N at a time. Fix timing computation.
28038
a465b89e
FW
280392017-11-20 Florian Weimer <fweimer@redhat.com>
28040
28041 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
28042 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
28043
0f74bbf5
FW
280442017-11-19 Florian Weimer <fweimer@redhat.com>
28045
28046 manual: Document mprotect
28047 * manual/memory.texi (Memory Protection): New section.
28048 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
28049 documentation of PROT_* flags and reference the Memory Protection
28050 section instead.
28051
f6e965ee
FW
280522017-11-19 Florian Weimer <fweimer@redhat.com>
28053
28054 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
28055 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
28056 (Scatter-Gather): ... to here. Remove misleading comment.
28057
363e4519 280582017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
ea69a5c8 28059
5f9d1949
CB
28060 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
28061 style.
28062
ea69a5c8
CB
28063 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
28064 when /proc/<pid>/setgroups does not exist.
28065
8db7f48c
FW
280662017-11-18 Florian Weimer <fweimer@redhat.com>
28067
28068 * sysdeps/unix/sysv/linux/tst-ttyname.c
28069 (become_root_in_mount_ns): Remove.
28070 (do_in_chroot_1): Call support_enter_mount_namespace.
28071 (do_in_chroot_2): Likewise.
28072 (do_test): Call support_become_root early.
28073
273a0c49
FW
280742017-11-18 Florian Weimer <fweimer@redhat.com>
28075
28076 * support/namespace.h (support_enter_mount_namespace): Declare.
28077 * support/support_enter_mount_namespace.c: New file.
28078 * support/Makefile (libsupport-routines): Add
28079 support_enter_mount_namespace.
28080
8adfb0ee
FW
280812017-11-18 Florian Weimer <fweimer@redhat.com>
28082
28083 * support/temp_file.c (support_create_temp_directory): Use
28084 test_dir and do not rely on the presence of the XXXXXX suffix.
28085 * support/temp_file.h (support_create_temp_directory): Update
28086 comment.
28087 * support/tst-xreadlink.c (do_test): Adjust.
28088 * support/support_chroot.c (support_chroot_create): Likewise.
28089
df0c40ee
TMQMF
280902017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
28091
28092 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
28093 macro.
28094 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
28095 htm-no-suspend.
28096
015c6dc2
JM
280972017-11-17 Joseph Myers <joseph@codesourcery.com>
28098
f58e5f48
JM
28099 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
28100 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
28101 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
28102 (ceill): Define using libm_alias_ldouble.
28103 * sysdeps/x86_64/fpu/s_copysignl.S: Include
28104 <libm-alias-ldouble.h>.
28105 (copysignl): Define using libm_alias_ldouble.
28106 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
28107 (fabsl): Define using libm_alias_ldouble.
28108 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
28109 (floorl): Define using libm_alias_ldouble.
28110 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
28111 (fmaxl): Define using libm_alias_ldouble.
28112 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
28113 (fminl): Define using libm_alias_ldouble.
28114 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
28115 (llrintl): Define using libm_alias_ldouble.
28116 (lrintl): Likewise.
28117 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
28118 <libm-alias-ldouble.h>.
28119 (nearbyintl): Define using libm_alias_ldouble.
28120 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
28121 (truncl): Define using libm_alias_ldouble.
28122 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
28123 <libm-alias-ldouble.h>.
28124 (lrintl): Define using libm_alias_ldouble.
28125
2ce30701
JM
28126 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
28127 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
28128 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
28129 (asinhl): Define using libm_alias_ldouble.
28130 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
28131 (atanl): Define using libm_alias_ldouble.
28132 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
28133 (cbrtl): Define using libm_alias_ldouble.
28134 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
28135 (ceill): Define using libm_alias_ldouble.
28136 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
28137 (copysignl): Define using libm_alias_ldouble.
28138 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
28139 (fabsl): Define using libm_alias_ldouble.
28140 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
28141 (floorl): Define using libm_alias_ldouble.
28142 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
28143 (fmaxl): Define using libm_alias_ldouble.
28144 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
28145 (fminl): Define using libm_alias_ldouble.
28146 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
28147 (frexpl): Define using libm_alias_ldouble.
28148 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
28149 (llrintl): Define using libm_alias_ldouble.
28150 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
28151 (logbl): Define using libm_alias_ldouble.
28152 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
28153 (lrintl): Define using libm_alias_ldouble.
28154 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
28155 (nearbyintl): Define using libm_alias_ldouble.
28156 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
28157 (nextafterl): Define using libm_alias_ldouble.
28158 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
28159 (remquol): Define using libm_alias_ldouble.
28160 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
28161 (rintl): Define using libm_alias_ldouble.
28162 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
28163 (truncl): Define using libm_alias_ldouble.
28164 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
28165 (fmaxl): Define using libm_alias_ldouble.
28166 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
28167 (fminl): Define using libm_alias_ldouble.
28168
015c6dc2
JM
28169 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
28170 to C syntax instead of availability and properties of types.
28171 * bits/floatn.h [!__ASSEMBLER]: Likewise.
28172 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
28173 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
28174 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
28175 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
28176 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
28177
ce003e5d
FW
281782017-11-17 Florian Weimer <fweimer@redhat.com>
28179
28180 support_become_root: Enable file creation in namespaces.
28181 * support/support_become_root.c (setup_mapping): New function.
28182 (support_become_root): Call it.
28183
e7df6c5c
JM
281842017-11-17 Joseph Myers <joseph@codesourcery.com>
28185
28186 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
28187 macro.
28188
58a813bf
AZ
281892017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28190
28191 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
28192 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
28193
f97773d1
JM
281942017-11-16 Joseph Myers <joseph@codesourcery.com>
28195
6a6aa1f3
JM
28196 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
28197
f97773d1
JM
28198 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
28199 version to 4.14.
28200
a306c790
SP
282012017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
28202
7b0fb870
SP
28203 * INSTALL: Fix botched up regeneration.
28204
28205 * NEWS: Update sourceare link to https.
a306c790
SP
28206 * configure.ac: Likewise.
28207 * crypt/md5test-giant.c: Likewise.
28208 * dlfcn/bug-atexit1.c: Likewise.
28209 * dlfcn/bug-atexit2.c: Likewise.
28210 * localedata/README: Likewise.
28211 * malloc/tst-mallocfork.c: Likewise.
28212 * manual/install.texi: Likewise.
28213 * nptl/tst-pthread-getattr.c: Likewise.
28214 * stdio-common/tst-fgets.c: Likewise.
28215 * stdio-common/tst-fwrite.c: Likewise.
28216 * sunrpc/Makefile: Likewise.
28217 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
28218 * wcsmbs/tst-mbrtowc2.c: Likewise.
7b0fb870
SP
28219 * configure: Regenerate.
28220 * INSTALL: Regenerate.
a306c790 28221
7532837d
MS
282222017-11-15 Martin Sebor <msebor@redhat.com>
28223
28224 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
28225 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
28226 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
28227
495a56fd
LS
282282017-11-15 Luke Shumaker <lukeshu@parabola.nu>
28229
d9611e30
LS
28230 [BZ #22145]
28231 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
28232 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
28233
a09dfc19
LS
28234 [BZ #22145]
28235 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
28236 Defer is_pty check until end of the function.
28237 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
28238
2fbce9c2
LS
28239 [BZ #22145]
28240 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
28241 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
28242 (ttyname): Likewise.
28243 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
28244 (__ttyname_r): Likewise.
28245
d10d6cab
LS
28246 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
28247 int to bool.
28248
9b5a8750
LS
28249 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
28250
495a56fd
LS
28251 * manual/terminal.texi (Is It a Terminal):
28252 Mention ENODEV for ttyname and ttyname_r.
28253
fa680dc6
JM
282542017-11-15 Joseph Myers <joseph@codesourcery.com>
28255
78cde19f
JM
28256 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
28257 constant and macro.
28258
fa680dc6
JM
28259 * sysdeps/unix/sysv/linux/bits/mman-linux.h
28260 [__USE_MISC] (MADV_WIPEONFORK): New macro.
28261 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
28262 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
28263 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
28264 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
28265
ad4f43a2
AZ
282662017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28267
1ba1d8a4
AZ
28268 * signal/sigrelse.c (sigrelse): Optimize implementation.
28269
ad4f43a2
AZ
28270 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
28271 (__sigpause): Rely on __sigsuspend to implement single thread
28272 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
28273
d0212d42
JM
282742017-11-15 Joseph Myers <joseph@codesourcery.com>
28275
28276 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
28277 kernel version to 4.14.
28278
2180fee1
SE
282792017-11-15 Steve Ellcey <sellcey@cavium.com>
28280
28281 [BZ #22442]
28282 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
28283 Check if ifname is too long.
28284
cad7ca39
LS
282852017-11-15 Luke Shumaker <lukeshu@parabola.nu>
28286
28287 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
28288
58c9f659
MF
282892017-11-15 Mike FABIAN <mfabian@redhat.com>
28290
28291 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
28292 was accidentally lost.
28293
0fa87c01
MF
282942017-11-15 Mike FABIAN <mfabian@redhat.com>
28295
28296 * localedata/locales/az_IR: Add standard copyright header.
28297
34eb4157
FW
282982017-11-15 Florian Weimer <fweimer@redhat.com>
28299
28300 [BZ #22439]
28301 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
28302 not just the top one. Output a new "subheaps" statistic.
28303
7a9368a1
FW
283042017-11-15 Florian Weimer <fweimer@redhat.com>
28305
28306 [BZ #22408]
28307 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
28308 under the per-arena lock.
28309 * malloc/Makefile (tests): Add tst-malloc_info.
28310 (tst-malloc_info): Link with libpthread.
28311 * malloc/tst-malloc_info.c: New file.
28312
be3a79a3
JM
283132017-11-15 Joseph Myers <joseph@codesourcery.com>
28314
28315 [BZ #21660]
28316 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
28317 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
28318 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
28319 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
28320 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
28321 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
28322 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
28323 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
28324 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
28325 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
28326 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
28327 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
28328 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
28329 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
28330 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
28331 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
28332 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
28333 (__floating_type): Likewise.
28334 (__real_integer_type): Likewise.
28335 (__complex_integer_type): Likewise.
28336 (__expr_is_real): Likewise.
28337 (__tgmath_real_type_sub): Likewise.
28338 (__tgmath_real_type): Likewise.
28339 (__tgmath_complex_type_sub): Likewise.
28340 (__tgmath_complex_type): Likewise.
28341 (__TGMATH_F128): Likewise.
28342 (__TGMATH_CF128): Likewise.
28343 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
28344 new macros.
28345 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
28346 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
28347 Likewise.
28348 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
28349 Likewise.
28350 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
28351 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
28352 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
28353 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
28354 Likewise.
28355 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
28356 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
28357 Likewise.
28358 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
28359 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
28360 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
28361 Likewise.
28362 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
28363 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
28364 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
28365 (cimag): Likewise.
28366 (creal): Likewise.
28367
ec72135e
JM
283682017-11-14 Joseph Myers <joseph@codesourcery.com>
28369
2e64ec9c
JM
28370 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
28371 for stpncpy calls for GCC 8.
28372 (test_strncat): Disable -Wstringop-truncation warning for strncat
28373 calls for GCC 8. Disable -Wstringop-overflow= warning for one
28374 strncat call for GCC 7.
28375 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
28376 calls for GCC 8.
28377 (test_memcmp): Use memcpy instead of strncpy for calls not copying
28378 trailing NUL.
28379
ec72135e
JM
28380 * string/bug-strncat1.c: Include <libc-diag.h>.
28381 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
28382
363e4519 283832017-11-13 Claude Paroz <claude@2xlibre.net>
a259f5d3
CP
28384
28385 [BZ #22387]
28386 * localedata/locales/aa_DJ: Improved readibility by replacing
28387 <Uxxxx> sequences in the ASCII printable range by their ASCII
28388 character equivalents.
28389 * localedata/locales/aa_ER: Likewise.
28390 * localedata/locales/aa_ER@saaho: Likewise.
28391 * localedata/locales/aa_ET: Likewise.
28392 * localedata/locales/af_ZA: Likewise.
28393 * localedata/locales/agr_PE: Likewise.
28394 * localedata/locales/ak_GH: Likewise.
28395 * localedata/locales/am_ET: Likewise.
28396 * localedata/locales/anp_IN: Likewise.
28397 * localedata/locales/ar_AE: Likewise.
28398 * localedata/locales/ar_BH: Likewise.
28399 * localedata/locales/ar_DZ: Likewise.
28400 * localedata/locales/ar_EG: Likewise.
28401 * localedata/locales/ar_IN: Likewise.
28402 * localedata/locales/ar_IQ: Likewise.
28403 * localedata/locales/ar_JO: Likewise.
28404 * localedata/locales/ar_KW: Likewise.
28405 * localedata/locales/ar_LB: Likewise.
28406 * localedata/locales/ar_LY: Likewise.
28407 * localedata/locales/ar_MA: Likewise.
28408 * localedata/locales/ar_OM: Likewise.
28409 * localedata/locales/ar_QA: Likewise.
28410 * localedata/locales/ar_SA: Likewise.
28411 * localedata/locales/ar_SD: Likewise.
28412 * localedata/locales/ar_SS: Likewise.
28413 * localedata/locales/ar_SY: Likewise.
28414 * localedata/locales/ar_TN: Likewise.
28415 * localedata/locales/ar_YE: Likewise.
28416 * localedata/locales/as_IN: Likewise.
28417 * localedata/locales/ast_ES: Likewise.
28418 * localedata/locales/ayc_PE: Likewise.
28419 * localedata/locales/az_AZ: Likewise.
28420 * localedata/locales/az_IR: Likewise.
28421 * localedata/locales/be_BY: Likewise.
28422 * localedata/locales/be_BY@latin: Likewise.
28423 * localedata/locales/bem_ZM: Likewise.
28424 * localedata/locales/ber_DZ: Likewise.
28425 * localedata/locales/ber_MA: Likewise.
28426 * localedata/locales/bg_BG: Likewise.
28427 * localedata/locales/bhb_IN: Likewise.
28428 * localedata/locales/bho_IN: Likewise.
28429 * localedata/locales/bi_VU: Likewise.
28430 * localedata/locales/bn_BD: Likewise.
28431 * localedata/locales/bn_IN: Likewise.
28432 * localedata/locales/bo_CN: Likewise.
28433 * localedata/locales/bo_IN: Likewise.
28434 * localedata/locales/br_FR: Likewise.
28435 * localedata/locales/brx_IN: Likewise.
28436 * localedata/locales/bs_BA: Likewise.
28437 * localedata/locales/byn_ER: Likewise.
28438 * localedata/locales/ca_AD: Likewise.
28439 * localedata/locales/ca_ES: Likewise.
28440 * localedata/locales/ca_FR: Likewise.
28441 * localedata/locales/ca_IT: Likewise.
28442 * localedata/locales/ce_RU: Likewise.
28443 * localedata/locales/chr_US: Likewise.
28444 * localedata/locales/cmn_TW: Likewise.
28445 * localedata/locales/crh_UA: Likewise.
28446 * localedata/locales/cs_CZ: Likewise.
28447 * localedata/locales/csb_PL: Likewise.
28448 * localedata/locales/cv_RU: Likewise.
28449 * localedata/locales/cy_GB: Likewise.
28450 * localedata/locales/da_DK: Likewise.
28451 * localedata/locales/de_AT: Likewise.
28452 * localedata/locales/de_BE: Likewise.
28453 * localedata/locales/de_CH: Likewise.
28454 * localedata/locales/de_DE: Likewise.
28455 * localedata/locales/de_IT: Likewise.
28456 * localedata/locales/de_LI: Likewise.
28457 * localedata/locales/de_LU: Likewise.
28458 * localedata/locales/doi_IN: Likewise.
28459 * localedata/locales/dv_MV: Likewise.
28460 * localedata/locales/dz_BT: Likewise.
28461 * localedata/locales/el_CY: Likewise.
28462 * localedata/locales/el_GR: Likewise.
28463 * localedata/locales/en_AG: Likewise.
28464 * localedata/locales/en_AU: Likewise.
28465 * localedata/locales/en_BW: Likewise.
28466 * localedata/locales/en_CA: Likewise.
28467 * localedata/locales/en_DK: Likewise.
28468 * localedata/locales/en_GB: Likewise.
28469 * localedata/locales/en_HK: Likewise.
28470 * localedata/locales/en_IE: Likewise.
28471 * localedata/locales/en_IL: Likewise.
28472 * localedata/locales/en_IN: Likewise.
28473 * localedata/locales/en_NG: Likewise.
28474 * localedata/locales/en_NZ: Likewise.
28475 * localedata/locales/en_PH: Likewise.
28476 * localedata/locales/en_SG: Likewise.
28477 * localedata/locales/en_US: Likewise.
28478 * localedata/locales/en_ZA: Likewise.
28479 * localedata/locales/en_ZM: Likewise.
28480 * localedata/locales/en_ZW: Likewise.
28481 * localedata/locales/eo: Likewise.
28482 * localedata/locales/es_AR: Likewise.
28483 * localedata/locales/es_BO: Likewise.
28484 * localedata/locales/es_CL: Likewise.
28485 * localedata/locales/es_CO: Likewise.
28486 * localedata/locales/es_CR: Likewise.
28487 * localedata/locales/es_CU: Likewise.
28488 * localedata/locales/es_DO: Likewise.
28489 * localedata/locales/es_EC: Likewise.
28490 * localedata/locales/es_ES: Likewise.
28491 * localedata/locales/es_GT: Likewise.
28492 * localedata/locales/es_HN: Likewise.
28493 * localedata/locales/es_MX: Likewise.
28494 * localedata/locales/es_NI: Likewise.
28495 * localedata/locales/es_PA: Likewise.
28496 * localedata/locales/es_PE: Likewise.
28497 * localedata/locales/es_PR: Likewise.
28498 * localedata/locales/es_PY: Likewise.
28499 * localedata/locales/es_SV: Likewise.
28500 * localedata/locales/es_US: Likewise.
28501 * localedata/locales/es_UY: Likewise.
28502 * localedata/locales/es_VE: Likewise.
28503 * localedata/locales/et_EE: Likewise.
28504 * localedata/locales/eu_ES: Likewise.
28505 * localedata/locales/eu_ES@euro: Likewise.
28506 * localedata/locales/fa_IR: Likewise.
28507 * localedata/locales/ff_SN: Likewise.
28508 * localedata/locales/fi_FI: Likewise.
28509 * localedata/locales/fil_PH: Likewise.
28510 * localedata/locales/fo_FO: Likewise.
28511 * localedata/locales/fr_BE: Likewise.
28512 * localedata/locales/fr_CA: Likewise.
28513 * localedata/locales/fr_CH: Likewise.
28514 * localedata/locales/fr_FR: Likewise.
28515 * localedata/locales/fr_LU: Likewise.
28516 * localedata/locales/fur_IT: Likewise.
28517 * localedata/locales/fy_DE: Likewise.
28518 * localedata/locales/fy_NL: Likewise.
28519 * localedata/locales/ga_IE: Likewise.
28520 * localedata/locales/gd_GB: Likewise.
28521 * localedata/locales/gez_ER: Likewise.
28522 * localedata/locales/gez_ET: Likewise.
28523 * localedata/locales/gl_ES: Likewise.
28524 * localedata/locales/gu_IN: Likewise.
28525 * localedata/locales/gv_GB: Likewise.
28526 * localedata/locales/ha_NG: Likewise.
28527 * localedata/locales/hak_TW: Likewise.
28528 * localedata/locales/he_IL: Likewise.
28529 * localedata/locales/hi_IN: Likewise.
28530 * localedata/locales/hif_FJ: Likewise.
28531 * localedata/locales/hne_IN: Likewise.
28532 * localedata/locales/hr_HR: Likewise.
28533 * localedata/locales/hsb_DE: Likewise.
28534 * localedata/locales/ht_HT: Likewise.
28535 * localedata/locales/hu_HU: Likewise.
28536 * localedata/locales/hy_AM: Likewise.
28537 * localedata/locales/i18n: Likewise.
28538 * localedata/locales/ia_FR: Likewise.
28539 * localedata/locales/id_ID: Likewise.
28540 * localedata/locales/ig_NG: Likewise.
28541 * localedata/locales/ik_CA: Likewise.
28542 * localedata/locales/is_IS: Likewise.
28543 * localedata/locales/it_CH: Likewise.
28544 * localedata/locales/it_IT: Likewise.
28545 * localedata/locales/iu_CA: Likewise.
28546 * localedata/locales/ja_JP: Likewise.
28547 * localedata/locales/ka_GE: Likewise.
28548 * localedata/locales/kk_KZ: Likewise.
28549 * localedata/locales/kl_GL: Likewise.
28550 * localedata/locales/kn_IN: Likewise.
28551 * localedata/locales/ko_KR: Likewise.
28552 * localedata/locales/kok_IN: Likewise.
28553 * localedata/locales/ks_IN: Likewise.
28554 * localedata/locales/ks_IN@devanagari: Likewise.
28555 * localedata/locales/ku_TR: Likewise.
28556 * localedata/locales/kw_GB: Likewise.
28557 * localedata/locales/ky_KG: Likewise.
28558 * localedata/locales/lb_LU: Likewise.
28559 * localedata/locales/lg_UG: Likewise.
28560 * localedata/locales/li_BE: Likewise.
28561 * localedata/locales/li_NL: Likewise.
28562 * localedata/locales/lij_IT: Likewise.
28563 * localedata/locales/ln_CD: Likewise.
28564 * localedata/locales/lo_LA: Likewise.
28565 * localedata/locales/lt_LT: Likewise.
28566 * localedata/locales/lv_LV: Likewise.
28567 * localedata/locales/lzh_TW: Likewise.
28568 * localedata/locales/mag_IN: Likewise.
28569 * localedata/locales/mai_IN: Likewise.
28570 * localedata/locales/mg_MG: Likewise.
28571 * localedata/locales/mhr_RU: Likewise.
28572 * localedata/locales/mi_NZ: Likewise.
28573 * localedata/locales/mk_MK: Likewise.
28574 * localedata/locales/ml_IN: Likewise.
28575 * localedata/locales/mn_MN: Likewise.
28576 * localedata/locales/mni_IN: Likewise.
28577 * localedata/locales/mr_IN: Likewise.
28578 * localedata/locales/ms_MY: Likewise.
28579 * localedata/locales/mt_MT: Likewise.
28580 * localedata/locales/my_MM: Likewise.
28581 * localedata/locales/nan_TW: Likewise.
28582 * localedata/locales/nan_TW@latin: Likewise.
28583 * localedata/locales/nb_NO: Likewise.
28584 * localedata/locales/nds_DE: Likewise.
28585 * localedata/locales/nds_NL: Likewise.
28586 * localedata/locales/ne_NP: Likewise.
28587 * localedata/locales/nhn_MX: Likewise.
28588 * localedata/locales/niu_NU: Likewise.
28589 * localedata/locales/niu_NZ: Likewise.
28590 * localedata/locales/nl_AW: Likewise.
28591 * localedata/locales/nl_BE: Likewise.
28592 * localedata/locales/nl_NL: Likewise.
28593 * localedata/locales/nn_NO: Likewise.
28594 * localedata/locales/nr_ZA: Likewise.
28595 * localedata/locales/nso_ZA: Likewise.
28596 * localedata/locales/oc_FR: Likewise.
28597 * localedata/locales/om_ET: Likewise.
28598 * localedata/locales/om_KE: Likewise.
28599 * localedata/locales/or_IN: Likewise.
28600 * localedata/locales/os_RU: Likewise.
28601 * localedata/locales/pa_IN: Likewise.
28602 * localedata/locales/pa_PK: Likewise.
28603 * localedata/locales/pap_AW: Likewise.
28604 * localedata/locales/pap_CW: Likewise.
28605 * localedata/locales/pl_PL: Likewise.
28606 * localedata/locales/ps_AF: Likewise.
28607 * localedata/locales/pt_BR: Likewise.
28608 * localedata/locales/pt_PT: Likewise.
28609 * localedata/locales/quz_PE: Likewise.
28610 * localedata/locales/raj_IN: Likewise.
28611 * localedata/locales/ro_RO: Likewise.
28612 * localedata/locales/ru_RU: Likewise.
28613 * localedata/locales/ru_UA: Likewise.
28614 * localedata/locales/rw_RW: Likewise.
28615 * localedata/locales/sa_IN: Likewise.
28616 * localedata/locales/sat_IN: Likewise.
28617 * localedata/locales/sc_IT: Likewise.
28618 * localedata/locales/sd_IN: Likewise.
28619 * localedata/locales/sd_IN@devanagari: Likewise.
28620 * localedata/locales/se_NO: Likewise.
28621 * localedata/locales/sgs_LT: Likewise.
28622 * localedata/locales/shs_CA: Likewise.
28623 * localedata/locales/si_LK: Likewise.
28624 * localedata/locales/sid_ET: Likewise.
28625 * localedata/locales/sk_SK: Likewise.
28626 * localedata/locales/sl_SI: Likewise.
28627 * localedata/locales/sm_WS: Likewise.
28628 * localedata/locales/so_DJ: Likewise.
28629 * localedata/locales/so_ET: Likewise.
28630 * localedata/locales/so_KE: Likewise.
28631 * localedata/locales/so_SO: Likewise.
28632 * localedata/locales/sq_AL: Likewise.
28633 * localedata/locales/sq_MK: Likewise.
28634 * localedata/locales/sr_ME: Likewise.
28635 * localedata/locales/sr_RS: Likewise.
28636 * localedata/locales/sr_RS@latin: Likewise.
28637 * localedata/locales/ss_ZA: Likewise.
28638 * localedata/locales/st_ZA: Likewise.
28639 * localedata/locales/sv_FI: Likewise.
28640 * localedata/locales/sv_SE: Likewise.
28641 * localedata/locales/sw_KE: Likewise.
28642 * localedata/locales/sw_TZ: Likewise.
28643 * localedata/locales/szl_PL: Likewise.
28644 * localedata/locales/ta_IN: Likewise.
28645 * localedata/locales/ta_LK: Likewise.
28646 * localedata/locales/tcy_IN: Likewise.
28647 * localedata/locales/te_IN: Likewise.
28648 * localedata/locales/tg_TJ: Likewise.
28649 * localedata/locales/th_TH: Likewise.
28650 * localedata/locales/the_NP: Likewise.
28651 * localedata/locales/ti_ER: Likewise.
28652 * localedata/locales/ti_ET: Likewise.
28653 * localedata/locales/tig_ER: Likewise.
28654 * localedata/locales/tk_TM: Likewise.
28655 * localedata/locales/tl_PH: Likewise.
28656 * localedata/locales/tn_ZA: Likewise.
28657 * localedata/locales/to_TO: Likewise.
28658 * localedata/locales/tpi_PG: Likewise.
28659 * localedata/locales/tr_CY: Likewise.
28660 * localedata/locales/tr_TR: Likewise.
28661 * localedata/locales/ts_ZA: Likewise.
28662 * localedata/locales/tt_RU: Likewise.
28663 * localedata/locales/tt_RU@iqtelif: Likewise.
28664 * localedata/locales/ug_CN: Likewise.
28665 * localedata/locales/uk_UA: Likewise.
28666 * localedata/locales/unm_US: Likewise.
28667 * localedata/locales/ur_IN: Likewise.
28668 * localedata/locales/ur_PK: Likewise.
28669 * localedata/locales/uz_UZ: Likewise.
28670 * localedata/locales/uz_UZ@cyrillic: Likewise.
28671 * localedata/locales/ve_ZA: Likewise.
28672 * localedata/locales/vi_VN: Likewise.
28673 * localedata/locales/wa_BE: Likewise.
28674 * localedata/locales/wae_CH: Likewise.
28675 * localedata/locales/wal_ET: Likewise.
28676 * localedata/locales/wo_SN: Likewise.
28677 * localedata/locales/xh_ZA: Likewise.
28678 * localedata/locales/yi_US: Likewise.
28679 * localedata/locales/yo_NG: Likewise.
28680 * localedata/locales/yue_HK: Likewise.
28681 * localedata/locales/yuw_PG: Likewise.
28682 * localedata/locales/zh_CN: Likewise.
28683 * localedata/locales/zh_HK: Likewise.
28684 * localedata/locales/zh_SG: Likewise.
28685 * localedata/locales/zh_TW: Likewise.
28686 * localedata/locales/zu_ZA: Likewise.
28687
cae87e64
FW
286882017-11-13 Florian Weimer <fweimer@redhat.com>
28689
28690 * support/next_to_fault.h, support/next_to_fault.c: New files.
28691 * support/Makefile (libsupport-routines): Add next_to_fault.
28692 * resolv/tst-inet_pton.c (struct next_to_fault)
28693 (next_to_fault_allocate, next_to_fault_free): Remove.
28694 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
28695
4a306ef1
L
286962017-11-13 H.J. Lu <hongjiu.lu@intel.com>
28697
28698 * elf/dl-support.c: Include <dl-procruntime.c>.
28699 * include/link.h: Include <link_map.h>.
28700 * sysdeps/generic/dl-procruntime.c: New file.
28701 * sysdeps/generic/link_map.h: Likewise.
28702 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
28703 the writable ld.so namespace.
28704
e69897bf
PE
287052017-11-12 Paul Eggert <eggert@cs.ucla.edu>
28706
28707 timezone: pacify GCC -Wstringop-truncation
28708 Problem reported by Martin Sebor in:
28709 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
28710 * timezone/zic.c (writezone): Use memcpy, not strncpy.
28711
1ffe1ccb
FW
287122017-11-12 Florian Weimer <fweimer@redhat.com>
28713
eceed671
FW
28714 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
28715 tst-xreadlink.
28716 (tests): Add tst-xreadlink.
1ffe1ccb
FW
28717 * support/support.h (xstrndup): Declare.
28718 * support/xunistd.h (xunlink, xreadlink): Declare.
28719 * support/temp_file.h (support_create_temp_directory): Declare.
28720 * support/temp_file.c (support_create_temp_directory): New function.
28721 * support/support_chroot.c (support_chroot_create): Use it.
28722 * support/xreadlink.c: New file.
28723 * support/xstrndup.c: Likewise.
28724 * support/xunlink.c: Likewise.
28725 * support/tst-xreadlink.c: Likewise.
28726
456b40a9
JDA
287272017-11-11 John David Anglin <danglin@gcc.gnu.org>
28728
28729 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
28730
c0a25aa9
FW
287312017-11-11 Florian Weimer <fweimer@redhat.com>
28732
28733 [BZ #22409]
28734 [BZ #22412]
28735 * resolv/res_comp.c (printable_string, binary_hnok)
28736 (binary_leading_dash): New functions.
28737 (res_hnok): Reimplement using these functions and ns_name_pton.
28738 (res_ownok): Likewise.
28739 (res_mailok): Reimplement using printable_string, ns_name_pton and
28740 binary_hnok.
28741 (res_dnok): Reimplement using printable_string and ns_name_pton.
28742 * resolv/tst-res_hnok.c (tests): Add additional tests.
28743 (LETTERDIGITS, PRINTABLE): Define.
28744 (do_test): Adjust one_char results.
28745
9e0ad304
FW
287462017-11-11 Florian Weimer <fweimer@redhat.com>
28747
28748 [BZ #22413]
28749 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
28750 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
28751
e2a9fca8
FW
287522017-11-11 Florian Weimer <fweimer@redhat.com>
28753
28754 * resolv/tst-ns_name_pton.c: New file.
28755 * resolv/Makefile (tests): Add tst-ns_name_pton.
28756 (tst-ns_name_pton): Link against libresolv.
28757
5c1a6923
FW
287582017-11-11 Florian Weimer <fweimer@redhat.com>
28759
28760 * resolv/tst-res_hnok.c: New file.
28761 * resolv/Makefile (tests): Add tst-res_hnok.
28762 (tst-res_hnok): Link against libresolv.
28763
a19c0a1d
FW
287642017-11-11 Florian Weimer <fweimer@redhat.com>
28765
28766 * resolv/tst-resolv-network.c: Use test framework instead explicit
28767 main function.
28768
8cb5295d
L
287692017-11-09 H.J. Lu <hongjiu.lu@intel.com>
28770
28771 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
28772 <jmp_buf-macros.h>.
28773 [!_ISOMAC] (STR_HELPER): New.
28774 [!_ISOMAC] (STR): Likewise.
28775 [!_ISOMAC] (TEST_SIZE): Likewise.
28776 [!_ISOMAC] (TEST_ALIGN): Likewise.
28777 [!_ISOMAC] (TEST_OFFSET): Likewise.
28778 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
28779 field offsets of jmp_buf as well as sigjmp_buf.
28780 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
28781 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
28782 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
28783 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
28784 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
28785 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
28786 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
28787 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
28788 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
28789 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
28790 Likewise.
28791 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
28792 Likewise.
28793 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
28794 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
28795 Likewise.
28796 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
28797 Likewise.
28798 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
28799 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
28800 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
28801 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
28802 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
28803 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
28804 Likewise.
28805 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
28806 Likewise.
28807 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
28808 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
28809 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
28810
58c4a161
JM
288112017-11-07 Joseph Myers <joseph@codesourcery.com>
28812
3683b423
JM
28813 * include/float.h
28814 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28815 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
28816 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28817 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
28818 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28819 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
28820 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28821 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
28822 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28823 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
28824 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28825 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
28826 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28827 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
28828 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28829 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
28830 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28831 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
28832 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28833 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
28834 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28835 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
28836 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28837 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
28838 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28839 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
28840 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28841 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
28842 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28843 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
28844 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28845 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
28846 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28847 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
28848 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28849 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
28850 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28851 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
28852 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28853 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
28854 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28855 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
28856 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28857 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
28858 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28859 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
28860 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28861 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
28862 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28863 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
28864 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28865 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
28866 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28867 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
28868 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28869 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
28870 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28871 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
28872 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28873 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
28874 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28875 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
28876 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28877 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
28878 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28879 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
28880 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28881 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
28882 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28883 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
28884 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28885 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
28886 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28887 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
28888 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28889 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
28890 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28891 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
28892 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28893 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
28894 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28895 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
28896 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28897 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
28898 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28899 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
28900 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
28901 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
28902
58c4a161
JM
28903 * stdlib/tst-strtod.h (F16): New macro.
28904 (F32): Likewise.
28905 (F64): Likewise.
28906 (F32X): Likewise.
28907 (F64X): Likewise.
28908 (F128X): Likewise.
28909 (IF_FLOAT16): Likewise.
28910 (IF_FLOAT32): Likewise.
28911 (IF_FLOAT64): Likewise.
28912 (IF_FLOAT32X): Likewise.
28913 (IF_FLOAT64X): Likewise.
28914 (IF_FLOAT128X): Likewise.
28915 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
28916 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
28917 (STRTOD_TEST_FOREACH): Likewise.
28918 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
28919 (CHOOSE_f64): Likewise.
28920 (CHOOSE_f32x): Likewise.
28921 (CHOOSE_f64x): Likewise.
28922
feda96a1
AS
289232017-11-07 Andreas Schwab <schwab@suse.de>
28924
28925 * nptl/Makefile (tests-internal): Remove tst-typesizes.
28926
1bd0cbb8
MF
289272017-11-07 Mike FABIAN <mfabian@redhat.com>
28928
28929 [BZ #22403]
28930 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
28931 to be escaped.
28932 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
28933 to be escaped.
28934
363e4519 289352017-11-07 Claude Paroz <claude@2xlibre.net>
d8301314
CP
28936
28937 [BZ #22403]
28938 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
28939 to be escaped.
28940 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
28941 to be escaped.
28942 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
28943 to be escaped.
28944
dff91cd4
AZ
289452017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28946
06be6368
AZ
28947 [BZ #22298]
28948 * nptl/allocatestack.c (allocate_stack): Check if
28949 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
28950 __PTHREAD_MUTEX_HAVE_PREV is defined.
28951 * nptl/descr.h (pthread): Likewise.
28952 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
28953 Likewise.
28954 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
28955 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
28956 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
28957 * sysdeps/nptl/bits/thread-shared-types.h
28958 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
28959 defines.
28960 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
28961 of __WORDSIZE for internal layout.
28962 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
28963 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
28964 instead of __WORDSIZE whether to use an union for __spins and __list
28965 fields.
28966 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
28967 case.
28968 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
28969 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
28970 defines.
28971 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
28972 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28973 Likewise.
28974 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
28975 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28976 Likewise.
28977 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
28978 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28979 Likewise.
28980 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
28981 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28982 Likewise.
28983 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
28984 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28985 Likewise.
28986 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
28987 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28988 Likewise.
28989 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
28990 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28991 Likewise.
28992 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
28993 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28994 Likewise.
28995 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
28996 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
28997 Likewise.
28998 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
28999 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
29000 Likewise.
29001 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
29002 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
29003 Likewise.
29004 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
29005 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
29006 Likewise.
29007 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
29008 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
29009 Likewise.
29010 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
29011 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
29012 Likewise.
29013
72b3c6ee
AZ
29014 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
29015 New macros.
29016 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
29017 checks for expected input type size.
29018 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
29019 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
29020 Likewise.
29021 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
29022 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
29023 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
29024 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
29025 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
29026 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
29027 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
29028 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
29029 superflous runtime assert check.
29030 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
29031 Likewise.
29032 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
29033 Likewise.
29034 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
29035 Likewise.
29036 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
29037 Likewise.
29038 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
29039 Likewise.
29040 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
29041 Likewise.
29042 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
29043 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
29044 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
29045 Likewise.
29046 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
29047 Likewise.
29048 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
29049 Likewise.
29050 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
29051 Likewise.
29052 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
29053 Likewise.
29054 * nptl/pthread_attr_setinheritsched.c
29055 (__pthread_attr_setinheritsched): Likewise.
29056 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
29057 Likewise.
29058 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
29059 Likewise.
29060 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
29061 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
29062 __old_pthread_attr_setstack): Likewise.
29063 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
29064 Likewise.
29065 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
29066 Likewise.
29067 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
29068 Likewise.
29069 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
29070 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
29071 Likewise.
29072 * nptl/tst-typesizes.c: Remove file.
29073
dff91cd4
AZ
29074 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
29075 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
29076 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
29077 checks for internal pthread_mutex_t offsets.
29078 * sysdeps/aarch64/nptl/pthread-offsets.h
29079 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
29080 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
29081 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
29082 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
29083 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
29084 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
29085 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
29086 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
29087 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
29088 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
29089 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
29090 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
29091 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
29092 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
29093 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
29094 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
29095 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
29096 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
29097
b7fc95f8
FW
290982017-11-07 Florian Weimer <fweimer@redhat.com>
29099
29100 * bits/mman-linux.h: Move ...
29101 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
29102 comment.
29103 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
29104 outdated comment.
29105
6b860364
RS
291062017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
29107
29108 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
29109 Redefine STRNLEN as __strnlen_power8.
29110
802c1f16
AZ
291112017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29112
d83da3a4
AZ
29113 * signal/sighold.c (sighold): Optimize implementation.
29114
6a4235f1
AZ
29115 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
29116 __NR_rt_sigqueueinfo.
29117
8b0e795a
AZ
29118 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
29119 __sigtimedwait.
29120 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
29121 assume __NR_rt_sigtimedwait.
29122 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
29123 and add LIBC_CANCEL_HANDLED for cancellation marking.
29124 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
29125
a1a638dd
AZ
29126 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
29127 (sysdeps_routines): Add memchr_noneon.
29128 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
29129 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
29130 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
29131 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
29132 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
29133 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
29134 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
29135
802c1f16
AZ
29136 * sysdeps/arm/arm-ifunc.h: New file.
29137 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
29138 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
29139 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
29140 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
29141 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
29142 (__memcpy_neon): Avoid create hidden alias.
29143 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
29144 (__memcpy_vfp): Likewise.
29145 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
29146 (sysdep_routines): Add memcpy_arm.
29147 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
29148
abcb584d
L
291492017-11-06 H.J. Lu <hongjiu.lu@intel.com>
29150
29151 [BZ #22362]
29152 * Makerules (make-link-multidir): New.
29153 * config.make.in (multidir): New.
29154 * configure.ac (libc_cv_multidir): New. AC_SUBST.
29155 * configure: Regenerated.
29156 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
29157 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
29158 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
29159 New target.
29160
4e2dff67
JM
291612017-11-06 Joseph Myers <joseph@codesourcery.com>
29162
29163 [BZ #22402]
29164 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
29165 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
29166
a1c7cd3c
MF
291672017-11-04 Mike FABIAN <mfabian@redhat.com>
29168
29169 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
29170 to be escaped.
29171
b9af29c0
FW
291722017-11-04 Florian Weimer <fweimer@redhat.com>
29173
29174 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
29175
4ca70e1a
JM
291762017-11-03 Joseph Myers <joseph@codesourcery.com>
29177
29178 * math/math.h [__HAVE_DISTINCT_FLOAT16
29179 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
29180 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
29181 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
29182 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
29183 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
29184 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
29185 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
29186 (__MATH_TG_F32): New macro.
29187 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
29188 (__MATH_TG_F64X): Likewise.
29189 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
29190 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
29191
ba0e6668
DL
291922017-11-03 Dmitry V. Levin <ldv@altlinux.org>
29193
29194 * po/de.po: Update translations.
29195 * po/ru.po: Likewise.
29196
bc18a6d3
FW
291972017-11-03 Florian Weimer <fweimer@redhat.com>
29198
29199 * manual/filesys.texi (Hard Links): Document linkat.
29200
97255170
JM
292012017-11-03 Joseph Myers <joseph@codesourcery.com>
29202
86ec4865
JM
29203 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
29204 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
29205 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
29206 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
29207 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
29208 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
29209 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
29210 the same as _Float128.
29211 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
29212 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
29213 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
29214
97255170
JM
29215 * stdlib/stdlib.h
29216 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
29217 Declare.
29218 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
29219 Likewise.
29220 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
29221 Likewise.
29222 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29223 (strtof32x): Likewise.
29224 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29225 (strtof64x): Likewise.
29226 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29227 (strtof128x): Likewise.
29228 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29229 (strfromf16): Likewise.
29230 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29231 (strfromf32): Likewise.
29232 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29233 (strfromf64): Likewise.
29234 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29235 (strfromf32x): Likewise.
29236 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29237 (strfromf64x): Likewise.
29238 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29239 (strfromf128x): Likewise.
29240 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
29241 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
29242 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
29243 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
29244 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
29245 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
29246
6d58ce5e
RH
292472017-11-03 Richard Henderson <rth@twiddle.net>
29248
29249 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
29250
659ca267
SN
292512017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
29252
29253 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
29254
94d2f0af
SN
292552017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
29256
29257 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
29258 DT_TLSDESC_GOT initialization.
29259 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
29260 (_dl_tlsdesc_resolve_hold): Likewise.
29261 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
29262 (_dl_tlsdesc_resolve_hold): Likewise.
29263 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
29264 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
29265
28e1ddf3
SN
292662017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
29267
29268 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
29269
0ca3d1d6
SN
292702017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
29271
29272 [BZ #18572]
29273 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
29274 non-lazily for R_ARM_TLS_DESC.
29275
2c1d4e5f
SN
292762017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
29277
29278 [BZ #17078]
29279 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
29280 R_ARM_TLS_DESC case.
29281 (elf_machine_lazy_rel): Remove the prelink check.
29282
91c5a366
SN
292832017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
29284
29285 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
29286 DT_TLSDESC_GOT initialization.
29287 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
29288 (_dl_tlsdesc_resolve_rela): Likewise.
29289 (_dl_tlsdesc_resolve_hold): Likewise.
29290 (_dl_tlsdesc_undefweak): Remove ldar.
29291 (_dl_tlsdesc_dynamic): Likewise.
29292 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
29293 (_dl_tlsdesc_resolve_rela): Likewise.
29294 (_dl_tlsdesc_resolve_hold): Likewise.
29295 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
29296 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
29297 (_dl_tlsdesc_resolve_rela): Likewise.
29298 (_dl_tlsdesc_resolve_hold): Likewise.
29299
b7cf203b
SN
293002017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
29301
29302 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
29303 binding and initialization non-lazily for R_AARCH64_TLSDESC.
29304
0cc5b022
SN
293052017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
29306
29307 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
29308 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
29309
43ddff2e
JM
293102017-11-02 Joseph Myers <joseph@codesourcery.com>
29311
29312 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
29313 Declare.
29314 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
29315 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
29316 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
29317 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
29318 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
29319 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
29320 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
29321 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
29322 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
29323 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
29324 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
29325
5baac970
MF
293262017-11-02 Mike FABIAN <mfabian@redhat.com>
29327
29328 [BZ #22382]
29329 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
29330 * localedata/locales/tpi_PG: Add standard header.
29331
ef11081f
FW
293322017-11-02 Florian Weimer <fweimer@redhat.com>
29333
29334 test-errno-linux: quotactl can fail with EPERM in containers.
29335 * sysdeps/unix/sysv/linux/test-errno-linux.c
29336 (LIST, LIST_FORWARD): New macros.
29337 (check_error_in_list): New function.
29338 (test_wrp_rv): Accept list of permitted error codes.
29339 (test_wrp_rv2): Remove.
29340 (test_wrp): Call test_wrp_rv with list of error codes.
29341 (test_wrp2): Accept list of error codes.
29342 (do_test): Adjust. Allow EPERM for quotactl.
29343
d10b132b
FW
293442017-11-02 Florian Weimer <fweimer@redhat.com>
29345
29346 * stdio-common/bug16.c (do_test): Use array_length.
29347 * stdio-common/errlist.c (_sys_nerr): Likewise.
29348 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
29349 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
29350 * stdio-common/psiginfo.c (psiginfo): Use array_length.
29351 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
29352 (do_test): Use array_length.
29353 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
29354 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
29355 * stdio-common/tst-printf-round.c (do_test): Likewise.
29356 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
29357 (CHECK): Use array_length.
29358 * stdio-common/tstdiomisc.c (t3, F): Likewise.
29359 * stdio-common/tstscanf.c (main): Likewise.
29360 * stdio-common/vfprintf.c (process_string_arg): Likewise.
29361
c94a5688
FW
293622017-11-02 Florian Weimer <fweimer@redhat.com>
29363
29364 Add array_length and array_end macros.
29365 * include/array_length.h: New file.
29366
2fac6a6c
FW
293672017-11-02 Florian Weimer <fweimer@redhat.com>
29368
29369 [BZ #22332]
29370 * posix/tst-glob-tilde.c (do_noescape): New variable.
29371 (one_test): Process it.
29372 (do_test): Set do_noescape. Add unescaping test case.
29373
2f1b212e
JM
293742017-11-01 Joseph Myers <joseph@codesourcery.com>
29375
260fbd0a
JM
29376 * math/complex.h
29377 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
29378 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
29379 with appropriate macros defined and undefined.
29380 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
29381 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
29382 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
29383 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
29384 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
29385 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
29386 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
29387 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
29388 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
29389 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
29390
2f1b212e
JM
29391 * math/complex.h
29392 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
29393 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
29394 that for long double. Do not condition define and undefine of
29395 _Mdouble_complex_ on [__CFLOAT128].
29396
95b93c6e
L
293972017-11-01 H.J. Lu <hongjiu.lu@intel.com>
29398
29399 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
29400 of <sysdeps/generic/sysdep.h>.
29401 (ALIGNARG): Removed.
29402 (ASM_SIZE_DIRECTIVE): Likewise.
29403 (ENTRY): Likewise.
29404 (END): Likewise.
29405 (ENTRY_CHK): Likewise.
29406 (END_CHK): Likewise.
29407 (syscall_error): Likewise.
29408 (mcount): Likewise.
29409 (PSEUDO_END): Likewise.
29410 (L): Likewise.
29411 (atom_text_section): Likewise.
29412 * sysdeps/x86/sysdep.h: New file.
29413 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
29414 of <sysdeps/generic/sysdep.h>.
29415 (ALIGNARG): Removed.
29416 (ASM_SIZE_DIRECTIVE): Likewise.
29417 (ENTRY): Likewise.
29418 (END): Likewise.
29419 (ENTRY_CHK): Likewise.
29420 (END_CHK): Likewise.
29421 (syscall_error): Likewise.
29422 (mcount): Likewise.
29423 (PSEUDO_END): Likewise.
29424 (L): Likewise.
29425 (atom_text_section): Likewise.
29426
ab74d59f 294272017-10-31 Rafał Lużyński <digitalfreak@lingonborough.com>
1bb36539
RL
29428
29429 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
29430 category of LC_CTYPE set to "i18n:2012".
29431 * localedata/locales/i18n_ctype: Regenerate.
29432
067f5d97 294332017-10-31 Yury Norov <ynorov@caviumnetworks.com>
e8681faa 29434
87bbc4cf
YN
29435 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
29436 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
29437 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
29438 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
29439
e8681faa
YN
29440 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
29441 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
29442 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
29443 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
29444
540af6e2
JM
294452017-10-31 Joseph Myers <joseph@codesourcery.com>
29446
43e66283
JM
29447 * math/complex.h
29448 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
29449 New macro.
29450 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
29451 Likewise.
29452 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
29453 Likewise.
29454 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29455 (CMPLXF32X): Likewise.
29456 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29457 (CMPLXF64X): Likewise.
29458 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29459 (CMPLXF128X): Likewise.
29460
540af6e2
JM
29461 * math/math.h
29462 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
29463 (__MATH_EVAL_FMT2): Define to add 0.0f.
29464
58af72b4
AM
294652017-10-31 Alan Modra <amodra@gmail.com>
29466
29467 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
29468 include sysdep.h.
29469 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
29470 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
29471 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
29472 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
29473 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
29474 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
29475 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
29476 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
29477 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
29478 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
29479 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
29480 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
29481 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
29482 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
29483 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
29484 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
29485 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
29486 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
29487 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
29488 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
29489 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
29490 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
29491 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
29492 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
29493 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
29494 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
29495 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
29496 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
29497 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
29498 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
29499 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
29500 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
29501 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
29502 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
29503 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
29504 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
29505 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
29506 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
29507 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
29508 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
29509 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
29510 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
29511 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
29512 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
29513 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
29514 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
29515 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
29516 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
29517 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
29518 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
29519 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
29520 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
29521 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
29522 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
29523 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
29524 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
29525 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
29526 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
29527 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
29528 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
29529 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
29530 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
29531 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
29532 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
29533 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
29534 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
29535 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
29536 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
29537 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
29538
29539 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
29540 include sysdep.h and math_ldbl_opt.h.
29541
29542 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
29543 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
29544 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
29545 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
29546 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
29547 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
29548 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
29549 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
29550 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
29551 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
29552 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
29553 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
29554 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
29555 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
29556 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
29557 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
29558 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
29559 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
29560 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
29561 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
29562 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
29563 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
29564 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
29565 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
29566 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
29567 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
29568
112f30b3
AM
295692017-10-31 Alan Modra <amodra@gmail.com>
29570
29571 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
29572 string/strncase_l.c, not string/strncase.c.
29573 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
29574 (libc_hidden_def): Redefine.
29575
e9e7eced
AM
295762017-10-31 Alan Modra <amodra@gmail.com>
29577
29578 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
29579 (__STRCMP, STRCMP, __strcasecmp_l): Define.
29580 (__strcasecmp): Don't define.
29581
f7b465cf
AM
295822017-10-31 Alan Modra <amodra@gmail.com>
29583
29584 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
29585 IS_IN (libc).
29586 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
29587 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
29588 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
29589
d46b09f9
AM
295902017-10-31 Alan Modra <amodra@gmail.com>
29591
29592 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
29593 USE_AS_STPNCPY.
29594
e9b8e194
AM
295952017-10-31 Alan Modra <amodra@gmail.com>
29596
29597 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
29598 Redefine only when SHARED.
29599
eda162dd
JM
296002017-10-30 Joseph Myers <joseph@codesourcery.com>
29601
b61afe8c
JM
29602 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
29603 Include <bits/math-finite.h> with appropriate macros defined and
29604 undefined.
29605 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
29606 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
29607 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
29608 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
29609 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
29610
eda162dd
JM
29611 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
29612 [!_Mlong_double_] (_Mlong_double_): Likewise.
29613 [!_Mfloat16_] (_Mfloat16_): Likewise.
29614 [!_Mfloat32_] (_Mfloat32_): Likewise.
29615 [!_Mfloat64_] (_Mfloat64_): Likewise.
29616 [!_Mfloat128_] (_Mfloat128_): Likewise.
29617 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
29618 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
29619 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
29620 (_Mdouble_): Define without indirection through those macros.
29621 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
29622 [!_Mfloat128_] (_Mfloat128_): Likewise.
29623 [_Mlong_double_] (_Mlong_double_): Likewise.
29624 (_Mdouble_): Define without indirection through those macros.
29625 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
29626 not add -D_Mlong_double_=double.
29627 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
29628 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
29629
4ad5106e
L
296302017-10-30 H.J. Lu <hongjiu.lu@intel.com>
29631
29632 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
29633
fe326df7
L
296342017-10-30 H.J. Lu <hongjiu.lu@intel.com>
29635
29636 * sysdeps/x86/libc-start.c: Reformat.
29637
c5cc4514
L
296382017-10-30 H.J. Lu <hongjiu.lu@intel.com>
29639
29640 [BZ #22353]
29641 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
29642 (1): Renamed to ...
29643 (L(Src0)): This.
29644 (L(Src1)): New.
29645 (L(Src2)): Likewise.
29646 (L(1)): Renamed to ...
29647 (L(Src3)): This.
29648
ce12269f
JM
296492017-10-30 Joseph Myers <joseph@codesourcery.com>
29650
29651 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
29652 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
29653 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
29654 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
29655 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
29656 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
29657 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
29658 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
29659 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
29660 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
29661 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
29662 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
29663 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
29664 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
29665 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
29666 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
29667 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
29668 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
29669 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
29670 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
29671 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
29672 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
29673 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
29674 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
29675 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
29676 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
29677 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
29678 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
29679 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
29680 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
29681 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
29682 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
29683 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
29684 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
29685 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
29686 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
29687 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
29688 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
29689 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
29690 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
29691 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
29692 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
29693 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
29694 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
29695 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
29696 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
29697 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
29698 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
29699 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
29700 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
29701 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
29702 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
29703 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
29704 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
29705 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
29706 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
29707 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
29708 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
29709 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
29710 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
29711 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
29712 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
29713 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
29714 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
29715 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
29716 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
29717
4484b9e2
FW
297182017-10-30 Florian Weimer <fweimer@redhat.com>
29719
29720 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
29721 always defined.
29722 * io/tst-mkdirat.c (do_test): Likewise.
29723 * io/tst-mkfifoat.c (do_test): Likewise.
29724 * io/tst-mknodat.c (do_test): Likewise.
29725 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
29726 * locale/programs/locale.c (select_dirs): Likewise.
29727 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
29728 * posix/bug-glob2.c (my_readdir): Likewise.
29729 * posix/tst-dir.c (main): Likewise.
29730 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
29731 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
29732
68fe16dd
FW
297332017-10-30 Florian Weimer <fweimer@redhat.com>
29734
29735 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
29736 just __USE_GNU.
29737
dadf23f0
FW
297382017-10-30 Florian Weimer <fweimer@redhat.com>
29739
29740 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
29741 Convert to support/test-driver.c.
29742 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
29743 New macro parameters.
29744 (PRINTF): Remove macro. Use test_verbose conditionals instead.
29745 * posix/tst-gnuglob.c: New file.
29746 * posix/tst-gnuglob64.c: Likewise.
29747 * posix/Makefile (tests): Add tst-gnuglob64.
29748
363e4519 297492017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
fbcecc08
MF
29750
29751 [BZ #19485]
29752 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
29753 and use a better translation for March in “mon”.
29754 * localedata/locales/csb_PL: Use more ASCII to improve the
29755 readability of the source.
29756
b110af82
MF
297572017-10-30 Mike FABIAN <mfabian@redhat.com>
29758
29759 [BZ #13953]
29760 * localedata/locales/km_KH: Use ASCII as much
29761 as possible for better readability of the source and
29762 remove useless comments.
29763 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
29764 was commented out and apparently wrong anyway because it was
29765 using Lao characters. If Buddhist era should be used
29766 for km_KH, a native speaker should write the correct formaat
29767 for Khmer.
29768 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
29769 (According to CLDR, the first weekday for Cambodia is Sunday).
29770 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
29771 (These were using Lao characters which must be wrong. If we get
29772 the correct data from a native speaker, we could add it back, until
29773 then it is better not to have name_mr and name_mrs at all than
29774 having it wrong).
29775
ab74d59f 297762017-10-27 Rafał Lużyński <digitalfreak@lingonborough.com>
f301e533
RL
29777
29778 * locale/loadlocale.c: Correct size of
29779 _nl_value_type_LC_<category> arrays.
29780
7e9d7073
JM
297812017-10-27 Joseph Myers <joseph@codesourcery.com>
29782
29783 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
29784 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
29785 with appropriate macros defined and undefined.
29786 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
29787 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
29788 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
29789 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
29790 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
29791
63d3b468
L
297922017-10-27 H.J. Lu <hongjiu.lu@intel.com>
29793
29794 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
29795 "-O2 -march=i586".
29796
a4cc02c7
MF
297972017-10-27 Mike FABIAN <mfabian@redhat.com>
29798
29799 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
29800 with lowercase letters to make it agree with CLDR.
29801
1e5971ec
MF
298022017-10-27 Mike FABIAN <mfabian@redhat.com>
29803
29804 [BZ #15260]
29805 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
29806 first letters of yesstr and nostr in yesexpr and noexpr,
29807 not for the full words.
29808 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
29809 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
29810 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
29811 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
29812 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
29813 first letters of yesstr and nostr in yesexpr and noexpr,
29814 until now only English was matched in yesexpr and noexpr.
29815 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
29816 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
29817 fil but not for tl. As tl and fil are very similar, using fil
29818 is probably better than using English.
29819
363e4519 298202017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
bc5fc7de
MF
29821
29822 [BZ #21706]
29823 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
29824 in yesstr and nostr.
29825
5d220788
JM
298262017-10-26 Joseph Myers <joseph@codesourcery.com>
29827
ecc7da5b
JM
29828 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
29829 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
29830 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
29831 Likewise.
29832 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
29833 Likewise.
29834 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
29835 Likewise.
29836 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
29837 Likewise.
29838 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29839 (SNANF128X): Likewise.
29840
5d220788
JM
29841 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
29842 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
29843 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29844 (HUGE_VAL_F32): Likewise.
29845 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29846 (HUGE_VAL_F64): Likewise.
29847 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29848 (HUGE_VAL_F32X): Likewise.
29849 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29850 (HUGE_VAL_F64X): Likewise.
29851 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29852 (HUGE_VAL_F128X): Likewise.
29853
363e4519 298542017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
67ad7163
TV
29855
29856 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
29857 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
29858 for the br_FR locale.
29859
363e4519 298602017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
408dff7e
TV
29861
29862 [BZ #21706]
29863 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
29864
337ff3c5
CD
298652017-10-25 Carlos O'Donell <carlos@redhat.com>
29866
02eec681
CD
29867 * locale/programs/record-status.h: Define globals, and function
29868 prototypes. Move function bodies...
29869 * locale/programs/record-status.c: ... to here. New file.
29870 * iconv/Makefile (iconv_prog-modules): Add record-status.
29871 * locale/Makefile (lib-modules): Likewise.
29872 * iconv/iconv_prog.c: Remove verbose.
29873 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
29874 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
29875 record a warning about ASCII compatibility.
29876 * locale/programs/ld-monetary.c (monetary_finish): If
29877 warn_int_curr_symbol is true then record a warning about the symbol
29878 not being in our ISO 4217 list.
29879 * locale/programs/locale.c: Include record-status.h. Remove verbose.
29880 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
29881 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
29882 (OPT_NO_WARN): Define.
29883 (OPT_WARN): Define.
29884 (options): Add entry for --no-warnings, and --warnings.
29885 (set_warnings): New function to enable/disable warnings.
29886 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
29887 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
29888 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
29889 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
29890 Pass flags to generate_locale.
29891 (generate_locale): Accept new flag argument and pass it to localedef
29892 invocation.
29893 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
29894 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
29895
56fa555a
CD
29896 * localedata/Makefile (test-input-data): Use full file name.
29897 * localedata/da_DK.in: Rename to...
29898 * localedata/da_DK.ISO-8859-1.in: ...this.
29899 * localedata/de_DE.in: Rename to...
29900 * localedata/de_DE.ISO-8859-1.in: ...this.
29901 * localedata/en_US.in: Rename to...
29902 * localedata/en_US.ISO-8859-1.in: ...this.
29903 * localedata/fr_FR.in: Rename to...
29904 * localedata/fr_FR.UTF-8.in: ... this.
29905 * localedata/hr_HR.in: Rename to...
29906 * localedata/hr_HR.ISO-8859-2.in: ...this.
29907 * localedata/hu_HU.in: Rename to...
29908 * localedata/hu_HU.UTF-8.in: ...this.
29909 * localedata/si_LK.in: Rename to...
29910 * localedata/si_LK.UTF-8.in: ...this.
29911 * localedata/sv_SE.in: Rename to...
29912 * localedata/sv_SE.ISO-8859-1.in: ...this.
29913 * localedata/tr_TR.in: Rename to...
29914 * localedata/tr_TR.UTF-8.in: ...this.
29915 * localedata/uk_UA.in: Rename to...
29916 * localedata/uk_UA.UTF-8.in: ...this.
29917 * localedata/sort-test.sh: Test file is locale name with the
29918 suffix.
29919
337ff3c5
CD
29920 * localedata/unicode-gen/Makefile (check_i18n): Rename to
29921 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
29922 file.
29923 * localedata/locales/i18n_ctype: Regenerate.
29924 * localedata/locales/tr_TR: Likewise.
29925 * localedata/locales/translit_circle: Likewise.
29926 * localedata/locales/translit_cjk_compat: Likewise.
29927 * localedata/locales/translit_combining: Likewise.
29928 * localedata/locales/translit_compat: Likewise.
29929 * localedata/locales/translit_font: Likewise.
29930 * localedata/locales/translit_fraction: Likewise.
29931
63da5cd4
RS
299322017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
29933
29934 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
29935 lxvd2x/stxvd2x with lvx/stvx.
29936 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
29937
a122dbfb
L
299382017-10-25 H.J. Lu <hongjiu.lu@intel.com>
29939
29940 * include/alloc_buffer.h: Replace "if if " with "if " in
29941 comments.
29942 * sysdeps/mips/memcpy.S: Likkewise.
29943 * sysdeps/mips/memset.S: Likewise.
29944 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
29945 Likewise.
29946 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
29947 Likewise.
29948 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
29949 Likewise.
29950
9be7530c
MF
299512017-10-25 Mike FABIAN <mfabian@redhat.com>
29952
29953 [BZ #15261]
29954 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
29955 yesexpr and noexpr.
29956 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
29957 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
29958 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
29959 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
29960 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
29961 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
29962 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
29963
6ccbf6ff
MF
299642017-10-25 Mike FABIAN <mfabian@redhat.com>
29965
29966 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
29967 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
29968 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
29969 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
29970 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
29971 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
29972 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
29973 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
29974 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
29975 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
29976 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
29977 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
29978
58b1a7ea
MF
299792017-10-25 Mike FABIAN <mfabian@redhat.com>
29980
29981 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
29982 as possible for better readability of the source.
29983 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
29984 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
29985 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
29986 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
29987 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
29988 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
29989 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
29990 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
29991 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
29992 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
29993 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
29994 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
29995 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
29996 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
29997 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
29998 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
29999 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
30000 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
30001 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
30002 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
30003 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
30004 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
30005 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
30006 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
30007 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
30008 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
30009 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
30010 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
30011 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
30012 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
30013 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
30014 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
30015 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
30016 * localedata/locales/en_US (LC_MESSAGES): Likewise.
30017 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
30018 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
30019 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
30020 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
30021 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
30022 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
30023 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
30024 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
30025 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
30026 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
30027 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
30028 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
30029 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
30030 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
30031 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
30032 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
30033 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
30034 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
30035 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
30036 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
30037 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
30038 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
30039 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
30040 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
30041 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
30042 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
30043 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
30044 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
30045 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
30046 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
30047 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
30048 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
30049 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
30050 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
30051 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
30052 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
30053 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
30054 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
30055 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
30056 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
30057 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
30058 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
30059 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
30060 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
30061 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
30062 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
30063 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
30064 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
30065 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
30066 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
30067 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
30068 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
30069 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
30070 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
30071 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
30072 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
30073 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
30074 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
30075 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
30076 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
30077 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
30078 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
30079 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
30080 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
30081 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
30082 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
30083 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
30084 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
30085 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
30086 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
30087 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
30088 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
30089 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
30090 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
30091 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
30092 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
30093 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
30094 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
30095 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
30096 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
30097 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
30098 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
30099 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
30100 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
30101 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
30102 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
30103 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
30104 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
30105 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
30106 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
30107 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
30108 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
30109 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
30110 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
30111 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
30112 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
30113 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
30114 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
30115 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
30116 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
30117 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
30118 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
30119 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
30120 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
30121 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
30122 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
30123 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
30124 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
30125 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
30126 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
30127 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
30128 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
30129 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
30130 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
30131 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
30132 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
30133 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
30134 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
30135 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
30136 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
30137 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
30138 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
30139 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
30140 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
30141 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
30142 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
30143 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
30144 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
30145 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
30146 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
30147 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
30148 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
30149 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
30150 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
30151 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
30152 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
30153 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
30154 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
30155 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
30156 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
30157
17e78edb
MF
301582017-10-25 Mike FABIAN <mfabian@redhat.com>
30159
30160 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
30161 (Use first letters of yesstr and nostr correctly instead of using
30162 full words).
30163
74e7284f
MF
301642017-10-25 Mike FABIAN <mfabian@redhat.com>
30165
30166 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
30167 (Use first letters of yesstr and nostr correctly).
30168
b41a0ff1
MF
301692017-10-25 Mike FABIAN <mfabian@redhat.com>
30170
30171 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
30172 also check for the first characters of yesstr and nostr.
30173 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
30174 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
30175
d971f380
MF
301762017-10-25 Mike FABIAN <mfabian@redhat.com>
30177
30178 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
30179 also check for Chinese characters.
30180
effc9e1d
MF
301812017-10-25 Mike FABIAN <mfabian@redhat.com>
30182
30183 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
30184 match also for the contents of yesstr and nostr. As the first letter
30185 of yesstr and nostr is equal, checking only for the first letter
30186 is not enough.
30187
10320881
MF
301882017-10-25 Mike FABIAN <mfabian@redhat.com>
30189
30190 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
30191 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
30192
d8682a15
MF
301932017-10-25 Mike FABIAN <mfabian@redhat.com>
30194
30195 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
30196 of main contributor.
30197
1bfb86ae
MF
301982017-10-25 Mike FABIAN <mfabian@redhat.com>
30199
30200 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
30201 instead of using English.
30202
da33d60b
MF
302032017-10-25 Mike FABIAN <mfabian@redhat.com>
30204
30205 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
30206 by including the first letters of nostr and yesexpr in the regexp.
30207 Also make it more readable by using ASCII where possible.
30208
725bbb3e
MF
302092017-10-25 Mike FABIAN <mfabian@redhat.com>
30210
30211 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
30212 the first letter of nostr in the regexp. It agrees with CLDR now.
30213 Also make it more readable by using ASCII where possible.
30214
fe043d8a
MF
302152017-10-24 Mike FABIAN <mfabian@redhat.com>
30216
30217 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
30218 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
30219 these strings contain a U+17D6 (which somewhat looks like a colon)
30220 instead of a real colon to separate the full words for “yes”
30221 and “no” from the single letter responses.
30222
360a8df3
MF
302232017-10-24 Mike FABIAN <mfabian@redhat.com>
30224
30225 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
30226 it agree with CLDR (include the first letter of yesstr).
30227 Also make it more readable by using ASCII where possible.
30228
bab7b6b0
MF
302292017-10-24 Mike FABIAN <mfabian@redhat.com>
30230
30231 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
30232 and improve yesexpr and noexpr. The yesstr and nostr apparently
30233 came from CLDR. And CLDR has a bug there: these strings contain
30234 a U+0903 (which looks like a colon) instead of a real colon
30235 to separate the full words for “yes” and “no” from the single
30236 letter responses.
30237
3e79f758
MF
302382017-10-24 Mike FABIAN <mfabian@redhat.com>
30239
30240 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
30241 letters of the full yesstr and nostr in yesexpr and noexpr.
30242
4960c879
MF
302432017-10-24 Mike FABIAN <mfabian@redhat.com>
30244
30245 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
30246 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
30247 * localedata/locales/an_ES: Make source more readable by using ASCII
30248 where possible.
30249
b06a054f
MF
302502017-10-24 Mike FABIAN <mfabian@redhat.com>
30251
30252 [BZ #20952]
30253 * localedata/locales/yuw_PG: New file.
30254 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
30255 * locale/iso-639.def: Add Yau (Uruwa).
30256
905a7725
WD
302572017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
30258
30259 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
30260
3f6bb8a3
WD
302612017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
30262
30263 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
30264 (__libc_realloc): Likewise.
30265 (_mid_memalign): Likewise.
30266 (__libc_calloc): Likewise.
30267
1d479c8c
MF
302682017-10-23 Mike FABIAN <mfabian@redhat.com>
30269
30270 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
30271 by adding the generic +1 and -0 as in all other locales.
30272 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
30273 day names and make it more readable by using ASCII where possible.
30274
91c3985c
JM
302752017-10-24 Joseph Myers <joseph@codesourcery.com>
30276
30277 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
30278 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
30279
aa95a241
AZ
302802017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30281
30282 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
30283 WNOHANG in waitpid call.
30284
db9bab09
SP
302852017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
30286
a2e0a7f1
SP
30287 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
30288 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
30289
db9bab09
SP
30290 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
30291 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
30292 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
30293 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
30294 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
30295 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
30296 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
30297 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
30298 variables.
30299
5062680c
MC
303002017-10-23 Michael Collison <michael.collison@arm.com>
30301
30302 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
30303 with __builtin_sqrt.
30304 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
30305 with __builtin_sqrtf.
30306 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
30307 with __builtin_ceil.
30308 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
30309 with __builtin_ceilf.
30310 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
30311 with __builtin_floor.
30312 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
30313 with __builtin_floorf.
30314 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
30315 with __builtin_fma.
30316 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
30317 with __builtin_fmaf.
30318 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
30319 with __builtin_fmax.
30320 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
30321 with __builtin_fmaxf.
30322 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
30323 with __builtin_fmin.
30324 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
30325 with __builtin_fminf.
30326 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
30327 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
30328 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
30329 with builtin_rint and conversion to int.
30330 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
30331 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
30332 with builtin_llround.
30333 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
30334 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
30335 with builtin_rint and conversion to long int.
30336 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
30337 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
30338 with builtin_lround.
30339 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
30340 with builtin_lroundf.
30341 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
30342 statements with __builtin_nearbyint.
30343 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
30344 statements with __builtin_nearbyintf.
30345 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
30346 with __builtin_rint.
30347 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
30348 with __builtin_rintf.
30349 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
30350 with __builtin_round.
30351 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
30352 with __builtin_roundf.
30353 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
30354 with __builtin_trunc.
30355 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
30356 with __builtin_truncf.
be080b6c
SN
30357 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
30358 and s_l[l]round[f].c too.
5062680c 30359
174935af
AM
303602017-10-23 Alan Modra <amodra@gmail.com>
30361
30362 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
30363 Adjust stack after restoring regs. Add missing LR cfi_restore.
30364
750a0e49
AM
303652017-10-23 Alan Modra <amodra@gmail.com>
30366
30367 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
30368 Move LR save and frame setup/teardown and LR restore to
30369 immediately around memset call. Provide cfi.
30370
5313581c
L
303712017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30372
30373 * sysdeps/i386/fpu/e_powf.S: Removed.
30374 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
30375 * sysdeps/i386/fpu/w_powf.c: Likewise.
30376 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
30377 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
30378 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
30379 Add e_powf-sse2.
30380 (CFLAGS-e_powf-sse2.c): New.
30381 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
30382 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
30383
6089a3ee
L
303842017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30385
30386 * sysdeps/i386/fpu/e_log2f.S: Removed.
30387 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
30388 * sysdeps/i386/fpu/w_log2f.c: Likewise.
30389 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
30390 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
30391 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
30392 Add e_log2f-sse2.
30393 (CFLAGS-e_log2f-sse2.c): New.
30394 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
30395 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
30396
80bb5935
L
303972017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30398
30399 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
30400 Add e_powf-fma.
30401 (CFLAGS-e_powf-fma.c): New.
30402 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
30403 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
30404
5c7adbd8
L
304052017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30406
30407 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
30408 Add e_log2f-fma.
30409 (CFLAGS-e_log2f-fma.c): New.
30410 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
30411 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
30412
0ccc7153
L
304132017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30414
30415 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
30416 Add e_logf-fma.
30417 (CFLAGS-e_logf-fma.c): New.
30418 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
30419 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
30420
fe596486
L
304212017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30422
30423 * sysdeps/i386/fpu/e_logf.S: Removed.
30424 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
30425 * sysdeps/i386/fpu/w_logf.c: Likewise.
30426 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
30427 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
30428 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
30429 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
30430 Add e_logf-sse2.
30431 (CFLAGS-e_logf-sse2.c): New.
30432 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
30433 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
30434
7eda65f6
L
304352017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30436
30437 * sysdeps/i386/fpu/e_exp2f.S: Removed.
30438 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
30439 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
30440 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
30441 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
30442 Add e_exp2f-sse2.
30443 (CFLAGS-e_exp2f-sse2.c): New.
30444 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
30445 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
30446
5d15c969
L
304472017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30448
30449 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
30450 Add e_exp2f-fma.
30451 (CFLAGS-e_exp2f-fma.c): New.
30452 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
30453 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
30454
b2f6137e
L
304552017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30456
30457 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
30458 * sysdeps/i386/fpu/e_expf.S: Likewise.
30459 * sysdeps/i386/fpu/math_errf.c: Likewise.
30460 * sysdeps/i386/fpu/w_expf.c: Likewise.
30461 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
30462 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
30463 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
30464 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
30465 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
30466 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
30467 Remove e_expf-ia32.
30468 (CFLAGS-e_expf-sse2.c): New.
30469 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
30470 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
30471
e1f59beb
L
304722017-10-22 H.J. Lu <hongjiu.lu@intel.com>
30473
30474 * sysdeps/x86_64/fpu/e_expf.S: Removed.
30475 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
30476 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
30477 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
30478 e_expf.c.
30479 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
30480 New.
30481 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
30482 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
30483 Renamed to ...
30484 (__redirect_expf): This.
30485 (SYMBOL_NAME): Changed to expf.
30486 (__ieee754_expf): Renamed to ...
30487 (__expf): This.
30488 (__GI___expf): This.
30489 (__ieee754_expf): Add strong_alias.
30490 (__expf_finite): Likewise.
30491 (__expf): New.
30492 Include <sysdeps/ieee754/flt-32/e_expf.c>.
30493
363e4519 304942017-10-22 Paul Eggert <eggert@cs.ucla.edu>
a159b53f
PE
30495
30496 [BZ #22332]
30497 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
30498 unescaping.
30499
e80fc1fc
FW
305002017-10-21 Florian Weimer <fweimer@redhat.com>
30501
30502 * posix/Makefile (tests): Add tst-glob-tilde.
30503 (tests-special): Add tst-glob-tilde-mem.out
30504 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
30505 (tst-glob-tilde-mem.out): Add mtrace check.
30506 * posix/tst-glob-tilde.c: New file.
30507
797ba44b
JM
305082017-10-20 Joseph Myers <joseph@codesourcery.com>
30509
30510 * bits/floatn-common.h: New file.
30511 * math/Makefile (headers): Add bits/floatn-common.h.
30512 * bits/floatn.h: Include <bits/floatn-common.h>.
30513 * sysdeps/ia64/bits/floatn.h: Likewise.
30514 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
30515 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
30516 * sysdeps/powerpc/bits/floatn.h: Likewise.
30517 * sysdeps/x86/bits/floatn.h: Likewise.
30518
fe05e1cb
AZ
305192017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30520
8f6f5362
AZ
30521 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
30522 indicates whether compiler emits an warning for alias for
30523 functions with incompatible types.
30524
fe05e1cb
AZ
30525 [BZ #22273]
30526 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
30527 the auxiliary process is terminated by a signal before calling _exit
30528 or execve.
30529
b52b0d79
L
305302017-10-20 H.J. Lu <hongjiu.lu@intel.com>
30531
30532 [BZ #21265]
30533 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
30534 New.
30535 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
30536 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
30537 and bit_arch_XSAVEC_Usable if needed.
30538 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
30539 and bit_arch_Use_dl_runtime_resolve_opt.
30540 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
30541 Removed.
30542 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
30543 (bit_arch_Prefer_No_AVX512): Updated.
30544 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
30545 (bit_arch_XSAVEC_Usable): New.
30546 (STATE_SAVE_OFFSET): Likewise.
30547 (STATE_SAVE_MASK): Likewise.
30548 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
30549 (cpu_features): Add xsave_state_size and xsave_state_full_size.
30550 (index_arch_Use_dl_runtime_resolve_opt): Removed.
30551 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
30552 (index_arch_XSAVEC_Usable): New.
30553 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
30554 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
30555 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
30556 is enabled.
30557 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
30558 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
30559 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
30560 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
30561 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
30562 _dl_runtime_resolve_xsavec.
30563 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
30564 Removed.
30565 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
30566 instead of VEC_SIZE.
30567 (REGISTER_SAVE_BND0): Removed.
30568 (REGISTER_SAVE_BND1): Likewise.
30569 (REGISTER_SAVE_BND3): Likewise.
30570 (REGISTER_SAVE_RAX): Always defined to 0.
30571 (VMOV): Removed.
30572 (_dl_runtime_resolve_avx): Likewise.
30573 (_dl_runtime_resolve_avx_slow): Likewise.
30574 (_dl_runtime_resolve_avx_opt): Likewise.
30575 (_dl_runtime_resolve_avx512): Likewise.
30576 (_dl_runtime_resolve_avx512_opt): Likewise.
30577 (_dl_runtime_resolve_sse): Likewise.
30578 (_dl_runtime_resolve_sse_vex): Likewise.
30579 (USE_FXSAVE): New.
30580 (_dl_runtime_resolve_fxsave): Likewise.
30581 (USE_XSAVE): Likewise.
30582 (_dl_runtime_resolve_xsave): Likewise.
30583 (USE_XSAVEC): Likewise.
30584 (_dl_runtime_resolve_xsavec): Likewise.
30585 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
30586 Removed.
30587 (_dl_runtime_resolve_avx512_opt): Likewise.
30588 (_dl_runtime_resolve_avx): Likewise.
30589 (_dl_runtime_resolve_avx_opt): Likewise.
30590 (_dl_runtime_resolve_sse): Likewise.
30591 (_dl_runtime_resolve_sse_vex): Likewise.
30592 (_dl_runtime_resolve_fxsave): New.
30593 (_dl_runtime_resolve_xsave): Likewise.
30594 (_dl_runtime_resolve_xsavec): Likewise.
30595
363e4519 305962017-10-20 Paul Eggert <eggert@cs.ucla.edu>
c369d66e
PE
30597
30598 [BZ #22320]
30599 CVE-2017-15670
30600 * posix/glob.c (__glob): Fix one-byte overflow.
30601
6d43de4b
WD
306022017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
30603
30604 * malloc/malloc.c (sysdep-cancel.h): Add include.
30605
a15d53e2
WD
306062017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
30607
30608 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
30609
b9a558e7
WH
306102017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
30611
30612 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
30613 (tests): Remove $(objpfx)ga_test depdendency.
30614 * resolv/ga_test.c: Remove file.
30615
b6b08b8e
MF
306162017-10-20 Mike FABIAN <mfabian@redhat.com>
30617
30618 [BZ #18812]
30619 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
30620 * localedata/locales/kab_DZ: New file.
30621
9ba7e810
L
306222017-10-20 H.J. Lu <hongjiu.lu@intel.com>
30623
30624 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
30625 _dl_relocate_static_pie instead of _dl_start to compute load
30626 address in static PIE.
30627
4027a4fd
L
306282017-10-20 H.J. Lu <hongjiu.lu@intel.com>
30629
30630 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
30631
2f9314b4
MF
306322017-10-20 Mike FABIAN <mfabian@redhat.com>
30633
30634 [BZ #13605]
30635 * localedata/SUPPORTED: Add shn_MM/UTF-8.
30636 * localedata/locales/shn_MM: New file.
30637
63b4baa4
FW
306382017-10-20 Florian Weimer <fweimer@redhat.com>
30639
30640 [BZ #22321]
30641 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
30642 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
30643 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
30644 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
30645 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
30646 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
30647
95ccb619
L
306482017-10-19 H.J. Lu <hongjiu.lu@intel.com>
30649
30650 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
30651
37bb78cb
JM
306522017-10-19 Joseph Myers <joseph@codesourcery.com>
30653
76f2ed92
JM
30654 * sysdeps/mips/ieee754/bits/floatn.h: New file.
30655
37bb78cb
JM
30656 [BZ #22322]
30657 * sysdeps/mips/bits/long-double.h: Move to ....
30658 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
30659
d74e6f6c
WD
306602017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
30661
30662 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
30663
363e4519 306642017-10-19 Valery Reznic <valery_reznic@yahoo.com>
4d916f0f
L
30665 H.J. Lu <hongjiu.lu@intel.com>
30666
30667 [BZ #22299]
30668 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
30669 GLRO(dl_platform) to NULL.
30670 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
30671 (modules-names): Add tst-platformmod-1 and
30672 x86_64/tst-platformmod-2.
30673 (CFLAGS-tst-platform-1.c): New.
30674 (CFLAGS-tst-platformmod-1.c): Likewise.
30675 (CFLAGS-tst-platformmod-2.c): Likewise.
30676 (LDFLAGS-tst-platformmod-2.so): Likewise.
30677 ($(objpfx)tst-platform-1): Likewise.
30678 ($(objpfx)tst-platform-1.out): Likewise.
30679 (tst-platform-1-ENV): Likewise.
30680 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
30681 * sysdeps/x86_64/tst-platform-1.c: New file.
30682 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
30683 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
30684
4b0fa403
MF
306852017-10-19 Mike FABIAN <mfabian@redhat.com>
30686
30687 [BZ #13994]
30688 * locale/iso-639.def: Add Karbi.
30689 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
30690 * localedata/locales/mjw_IN: New file.
30691
81325b12
JM
306922017-10-18 Joseph Myers <joseph@codesourcery.com>
30693
30694 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
30695 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
30696 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
30697 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
30698 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
30699 (libm_alias_ldouble_other_r): Also create _Float128 alias.
30700 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
30701 <bits/floatn.h>.
30702 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
30703 (libm_alias_ldouble_other_r): Also create _Float128 alias.
30704 * manual/math.texi (Mathematics): Document additional architecture
30705 support for _Float128.
30706 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
30707 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
30708 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
30709 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
30710 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
30711 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
30712 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
30713 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
30714 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
30715 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
30716 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
30717 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
30718 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
30719 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
30720 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
30721
a68ba2f3
SN
307222017-10-18 Renlin Li <renlin.li@arm.com>
30723
30724 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
30725 _DYNAMIC symbol to calculate load address.
30726
346729f6
PC
307272017-10-18 Paul A. Clarke <pc@us.ibm.com>
30728
30729 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
30730 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
30731 summary bits.
30732 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
30733 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
30734
508b1e71
MF
307352017-10-18 Mike FABIAN <mfabian@redhat.com>
30736
30737 [BZ #16777]
30738 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
30739 and improve readability by using more ASCII.
30740 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
30741 and improve readability by using more ASCII.
30742
2c2245b9
WD
307432017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
30744
30745 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
30746 not all targets support atomics on bool.
30747
13c92696
JM
307482017-10-17 Joseph Myers <joseph@codesourcery.com>
30749
30750 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
30751 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
30752 __f128.
30753 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
30754 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
30755 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
30756 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
30757 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
30758 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
30759
71d85045
AZ
307602017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30761
30762 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
30763 defines.
30764
3381be5c
WD
307652017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
30766
30767 [BZ #22159]
30768 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
30769 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
30770 (do_check_remalloced_chunk): Fix build bug.
30771 (do_check_malloc_state): Add assert that checks arena->top.
30772 (malloc_consolidate): Remove initialization.
30773 (int_mallinfo): Remove call to malloc_consolidate.
6b5c8607 30774 (__libc_mallopt): Clarify why malloc_consolidate is needed.
3381be5c 30775
e956075a
WD
307762017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
30777
30778 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
30779 (have_fastchunks): Remove.
30780 (clear_fastchunks): Remove.
30781 (set_fastchunks): Remove.
30782 (malloc_state): Add have_fastchunks.
30783 (malloc_init_state): Use have_fastchunks.
30784 (do_check_malloc_state): Remove incorrect invariant checks.
30785 (_int_malloc): Use have_fastchunks.
30786 (_int_free): Likewise.
30787 (malloc_consolidate): Likewise.
30788
e4dd4ace
WD
307892017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
30790
30791 * malloc/malloc.c (tcache_put): Inline.
30792 (tcache_get): Inline.
30793
5bf58bc7
AJ
307942017-10-17 Jordi Mallach <jordi@gnu.org>
30795
30796 Aurelien Jarno <aurelien@aurel32.net>
30797 [BZ #2522]
30798 * localedata/locales/ca_ES@valencia: New file.
30799 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
30800
386e1c26
RN
308012017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
30802
30803 [BZ #22296]
30804 * math/math.h: Let signbit use the builtin in C++ mode with gcc
30805 < 6.x
30806
4e17c78e
AZ
308072017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30808
3d265601
AZ
30809 * scripts/build-many-glibcs.py (Context.add_all_configs):
30810 Add arm-linux-gnueabihf multiarch extra_glibcs.
30811
4e17c78e
AZ
30812 * sysdeps/generic/ifunc-init.h: New file.
30813 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
30814
56a752ab
MF
308152017-10-17 Mike FABIAN <mfabian@redhat.com>
30816
30817 [BZ #22019]
30818 * localedata/locales/el_GR: Set n_cs_precedes to 0.
30819 * localedata/locales/el_CY: copy "el_GR" because it is identical.
30820 * stdlib/tst-strfmon_l.c: adapt test case.
30821
c38a4bfd
JM
308222017-10-16 Joseph Myers <joseph@codesourcery.com>
30823
30824 * sysdeps/generic/float128-abi.h: New file.
30825 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
30826 non-__prefixed symbols to ....
30827 * math/Versions: ... here. Include <float128-abi.h>.
30828 * stdlib/Versions ... and here. Include <float128-abi.h>
30829
76009b26
FW
308302017-10-16 Florian Weimer <fweimer@redhat.com>
30831
30832 * version.h (VERSION): Switch to ".9000" as the development
30833 version suffix.
30834
7ece6cd5
FW
308352017-10-16 Florian Weimer <fweimer@redhat.com>
30836
30837 [BZ #22050]
30838 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
30839 compat_symbol_reference to access non-default version.
30840
d8287b36
FW
308412017-10-16 Florian Weimer <fweimer@redhat.com>
30842
30843 * malloc/Makefile (others-extras): Set to mcheck-init.o.
30844
3480ddc4
CD
308452017-10-16 Carlos O'Donell <carlos@redhat.com>
30846
30847 * include/shlib-compat.h (compat_symbol_reference): Update
30848 comment.
30849
02010e79
JM
308502017-10-16 Joseph Myers <joseph@codesourcery.com>
30851
596f7013
JM
30852 * math/Makefile (test-types): Add
30853 $(type-float128-$(float128-alias-fcts)).
30854 * math/test-float128.h (TYPE_STR): Define conditional on
30855 [FLT128_MANT_DIG == LDBL_MANT_DIG].
30856 (ULP_IDX): Likewise.
30857 (ULP_I_IDX): Likewise.
30858
02010e79
JM
30859 * stdlib/strtold.c: Include <bits/floatn.h>
30860 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
30861 and later undefine as macro. Define as weak alias if
30862 [!USE_WIDE_CHAR].
30863 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
30864 and later undefine as macro. Define as weak alias if
30865 [USE_WIDE_CHAR].
30866 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
30867 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
30868 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
30869 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
30870 Define and later undefine as macro. Define as weak alias if
30871 [USE_WIDE_CHAR].
30872 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
30873 <bits/floatn.h>.
30874 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
30875 Define and later undefine as macro. Define as weak alias if
30876 [!USE_WIDE_CHAR].
30877 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
30878 Define and later undefine as macro. Define as weak alias if
30879 [USE_WIDE_CHAR].
30880
ea91c315
CD
308812017-10-15 Carlos O'Donell <carlos@redhat.com>
30882
30883 * localedata/collate-test.c (allocate_arrays): Don't use \n in
30884 record_verbose messages.
30885
8e57c943
L
308862017-10-15 H.J. Lu <hongjiu.lu@intel.com>
30887
30888 [BZ #22052]
30889 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
30890 to silence -O3 -Wall warning with GCC 7.
30891
a4777c46
L
308922017-10-14 H.J. Lu <hongjiu.lu@intel.com>
30893
30894 * Makeconfig (+link-static-before-libc): Use the first of
30895 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
30896 * gmon/Makefile (tests): Add tst-gmon-static.
30897 (tests-static): Likewise.
30898 (CFLAGS-tst-gmon-static.c): New.
30899 (CRT-tst-gmon-static): Likewise.
30900 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
30901 (tst-gmon-static-ENV): Likewise.
30902 (tests-special): Likewise.
30903 ($(objpfx)tst-gmon-static.out): Likewise.
30904 (clean-tst-gmon-static-data): Likewise.
30905 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
30906 * gmon/tst-gmon-static-gprof.sh: New file.
30907 * gmon/tst-gmon-static.c: Likewise.
30908
bc3821bb
CD
309092017-10-13 Carlos O'Donell <carlos@redhat.com>
30910
30911 [BZ #22295]
30912 * locale/programs/linereader.c (get_string): Don't warn on
30913 non-symbolic character.
30914
a3e23a2c
CD
30915 [BZ #22294]
30916 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
30917 int_curr_symbol.
30918
f16491eb
CD
30919 [BZ #22292]
30920 * locale/programs/record-status.h: New file
30921 * locale/programs/locale.c: Add comment.
30922 * locale/programs/charmap-dir.c: Don't include error.h.
30923 (charmap_opendir): Use record_error.
30924 * locale/programs/charmap.c: Don't include error.h.
30925 (charmap_read): Use record_error, and record_warning.
30926 (parse_charmap): Likewise.
30927 * locale/programs/ld-address.c: Don't include error.h.
30928 (address_finish): Use record_error, and record_warning.
30929 * locale/programs/ld-collate.c: Don't include error.h.
30930 (collate_finish): Use record_error, and record_error_at_line.
30931 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
30932 (ctype_class_new): Likewise.
30933 (ctype_map_new): Likewise.
30934 (set_one_default): Likewise.
30935 (set_class_defaults): Likewise.
30936 (translit_flatten): Likewise.
30937 (allocate_arrays): Use record_error, and record_verbose.
30938 * locale/programs/ld-identification.c: Don't include error.h.
30939 (indentation_finish): Use record_error and record_warning.
30940 * locale/programs/ld-measurement.c: Don't include error.h.
30941 (measurement_finish): Use record_error.
30942 * locale/programs/ld-messages.c
30943 (message_finish): Likewise.
30944 * locale/programs/ld-monetary.c
30945 (monetary_finish): Likewise.
30946 * locale/programs/ld-name.c (name_finish): Use record_error
30947 and record_warning.
30948 * locale/programs/ld-numeric.c
30949 (numeric_finish): Use record_error.
30950 * locale/programs/ld-paper.c: Don't include error.h.
30951 (paper_finish): Use record_error.
30952 * locale/programs/ld-telephone.c: Don't include error.h.
30953 (telephone_finish): Use record_error.
30954 * locale/programs/ld-time.c (time_finish): Likewise.
30955 * locale/programs/linereader.h (lr_error): Make inline func.
30956 * locale/programs/localedef.c: Define recorded_warning_count,
30957 and recorded_error_count.
30958 (main): Use record_error. Use recorded_error_count and
30959 recorded_warning_count to issue correct error returns.
30960 (add_to_readlist): Use record_error.
30961 (find_locale): Likewise.
30962 (load_locale): Likewise.
30963 * locale/programs/localedef.h: Remove be_quiet
30964 and WITH_CUR_LOCALE.
30965 * locale/programs/locarchive.c (compare_from_file): Use
30966 record_error.
30967 * locale/programs/locfile.c (write_locale_data): Use
30968 record_error.
30969 * locale/programs/repertoire.c: Dont include error.h.
30970 (repertoire_complain): Use record_error.
30971 * localedata/tst-fmon.sh: Expect failures from localedef.
30972 * localedata/tst-locale.sh: Likewise.
30973 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
30974
8dc8be75
CD
30975 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
30976 (REPORTS): Likewise.
30977 (check): Likewise.
30978 (i18n): Rename to...
30979 (i18n_ctype): ...this.
30980 (i18n-report): Rename to...
30981 (i18n_ctype-report): ...this.
30982 * localedata/locales/i18n_ctype: Regenerate.
30983 * localedata/locales/i18n: copy i18n_ctype.
30984
f8718a9e
JM
309852017-10-13 Joseph Myers <joseph@codesourcery.com>
30986
18c08b96
JM
30987 * stdlib/strfroml.c: Include <bits/floatn.h>.
30988 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
30989 Define before include of <stdlib.h> and undefine afterwards, then
30990 define as weak alias.
30991
f8718a9e
JM
30992 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
30993 Undefine and restore default definition. Use
30994 libm_alias_ldouble_other.
30995
e4f530da
PZ
309962017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
30997
30998 [BZ #22153]
30999 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
31000 in coredumps.
31001
86445888
JC
310022017-10-13 James Clarke <jrtc27@jrtc27.com>
31003
31004 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
31005 Assign sym_map to be map for local symbols, as TLS relocations
31006 use sym_map to determine whether the symbol is defined and to
31007 extract the TLS information.
31008 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
31009 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
31010
179dcdb7
TMQMF
310112017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
31012
e8dbd6a3
TMQMF
31013 [BZ #22189]
31014 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
31015 (math_force_eval): Add powerpc version.
31016
179dcdb7
TMQMF
31017 [BZ #22142]
31018 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
31019 -DBL_MAX.
31020 (do_test): Likewise.
31021 * stdio-common/tst-printf.sh: Likewise.
31022 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
31023 ifdef clause in order to set the carry bit right. Replace r0 by
31024 0 without changing the behavior.
31025
7d25d410
JM
310262017-10-13 Joseph Myers <joseph@codesourcery.com>
31027
006e7664
JM
31028 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
31029 <libm-alias-ldouble.h>.
31030 (fabsl): Define using libm_alias_ldouble.
31031 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
31032 <libm-alias-ldouble.h>.
31033 (fabsl): Define using libm_alias_ldouble.
31034
1def91b3
JM
31035 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
31036 Remove conditional code.
31037
7d25d410
JM
31038 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
31039 Rename to __clog10_internal_l.
31040 (__clog10_internal_l): Define aliases using
31041 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
31042 with __clog10.
31043
077ee129
RS
310442017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
31045
31046 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
31047 * benchtests/sincosf-inputs: New file.
31048 * benchtests/cosf-inputs: New file.
31049 * benchtests/sinf-inputs: New file.
31050
5ba41de9
SN
310512017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
31052
31053 * posix/tst-spawn.c (do_test): Wait for both children.
31054
d165ca64
L
310552017-10-12 H.J. Lu <hongjiu.lu@intel.com>
31056
31057 [BZ #22284]
31058 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
31059 tests-pie): Add tst-gmon-pie.
31060 (CFLAGS-tst-gmon-pie.c): New.
31061 (CRT-tst-gmon-pie): Likewise.
31062 (tst-gmon-pie-ENV): Likewise.
31063 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
31064 ($(objpfx)tst-gmon-pie.out): Likewise.
31065 (clean-tst-gmon-pie-data): Likewise.
31066 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
31067 * gmon/gmon.c [PIC]: Include <link.h>.
31068 [PIC] (callback): New function.
31069 (write_hist): Add an argument for load address. Subtract load
31070 address from PCs.
31071 (write_call_graph): Likewise.
31072 (write_gmon): Call __dl_iterate_phdr to get load address, pass
31073 it to write_hist and write_call_graph.
7bacdcfc 31074 * gmon/tst-gmon-pie.c: New file.
d165ca64 31075
bc9620d0
JM
310762017-10-11 Joseph Myers <joseph@codesourcery.com>
31077
31078 * math/Makefile (test-types-basic): New variable.
31079 (test-types): Likewise.
31080 (libm-test-support): Use $(test-types) instead of $(types).
31081 (libm-tests-base-normal): Likewise.
31082 (libm-tests-base-finite): Likewise.
31083 (libm-tests-base-inline): Likewise.
31084 (generated): Likewise.
31085 ($(objpfx)libm-test-support-$(t).c): Likewise.
31086 (libm-tests-for-type iterator): Likewise.
31087 (libm-test-support iterator): Likewise.
31088 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
31089 (ulp_idx): Use ULP_IDX.
31090 * math/test-ldouble.h: Include <float.h>.
31091 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
31092 (ULP_IDX): New macro.
31093 (ULP_I_IDX): Likewise.
31094 * math/test-double.h (ULP_IDX): Likewise.
31095 (ULP_I_IDX): Likewise.
31096 * math/test-float.h (ULP_IDX): Likewise.
31097 (ULP_I_IDX): Likewise.
31098 * math/test-float128.h (ULP_IDX): Likewise.
31099 (ULP_I_IDX): Likewise.
31100
09c76a74
AZ
311012017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31102
31103 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
31104 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
31105 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
31106 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
31107 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
31108 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
31109 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
31110 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
31111 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
31112 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
31113 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
31114 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
31115 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
31116 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
31117 (SINGLE_THREAD_BY_GLOBAL): Define.
31118 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
31119 Likewise.
31120 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
31121 Likewise.
31122 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
31123 Likewise.
31124 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
31125 Likewise.
31126 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
31127 (SINGLE_THREAD_BY_GLOBAL): Likewise.
31128 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
31129 Likewise.
31130
2faa42da
AS
311312017-10-11 Andreas Schwab <schwab@suse.de>
31132
31133 * nis/Makefile (aux): Remove.
31134 * nscd/Makefile (aux): Add nscd_hash.
31135 (nscd-modules): Likewise.
31136 ($(objpfx)nscd): Don't depend on libnsl.
31137 * nscd/nscd_hash.c: New file.
31138 * nscd/nscd_hash.h: Likewise.
31139 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
31140 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
31141 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
31142 instead of <nis/rpcsvc/nis.h>.
31143 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
31144
d8425e11
FW
311452017-10-11 Florian Weimer <fweimer@redhat.com>
31146
31147 [BZ #22078]
31148 Avoid large NSS buffers with many addresses, aliases.
31149 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
31150 using dynarrays and struct alloc_buffer.
31151 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
31152 (tst-nss-files-hosts-multi): Link with -ldl.
31153 * nss/tst-nss-files-hosts-multi.c: New file.
31154
78e806fd
FW
311552017-10-11 Florian Weimer <fweimer@redhat.com>
31156
31157 [BZ #18023]
31158 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
31159 scratch_buffer. Eliminate gotos.
31160
541f19ba
JM
311612017-10-11 Joseph Myers <joseph@codesourcery.com>
31162
0ff64d3a
JM
31163 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
31164 libm_alias_ldouble_other.
31165 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
31166 undefine and redefine.
31167 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
31168 (exp10l): Do not define here.
31169 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
31170 (weak_alias): Undefine and redefine.
31171 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
31172 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
31173 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
31174 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
31175
541f19ba
JM
31176 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
31177 [!__fma] (fma): Define using libm_alias_double.
31178 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
31179 [!__fmaf] (fmaf): Define using libm_alias_float.
31180 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
31181 (fmal): Define using libm_alias_ldouble.
31182
24b6515d
JM
311832017-10-10 Joseph Myers <joseph@codesourcery.com>
31184
31185 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
31186 New macro.
31187 (libm_alias_double_other): Likewise.
31188 (libm_alias_double_r): Use libm_alias_double_other_r.
31189 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
31190 New macro.
31191 (libm_alias_float_other): Likewise.
31192 (libm_alias_float_r): Use libm_alias_float_other_r.
31193 * sysdeps/generic/libm-alias-float128.h
31194 (libm_alias_float128_other_r): New macro.
31195 (libm_alias_float128_other): Likewise.
31196 (libm_alias_float128_r): Use libm_alias_float128_other_r.
31197 * sysdeps/generic/libm-alias-ldouble.h
31198 (libm_alias_ldouble_other_r): New macro.
31199 (libm_alias_ldouble_other): Likewise.
31200 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
31201 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
31202 (libm_alias_double_other_r): New macro.
31203 (libm_alias_double_other): Likewise.
31204 (libm_alias_double_r): Use libm_alias_double_other_r.
31205 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
31206 (libm_alias_ldouble_other_r): New macro.
31207 (libm_alias_ldouble_other): Likewise.
31208 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
31209 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
31210 [!USE_AS_COMPAT]: Use libm_alias_double_other.
31211 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
31212 [!USE_AS_COMPAT]: Use libm_alias_float_other.
31213 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
31214 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
31215 * math/w_exp2f.c: Use libm_alias_float_other.
31216 * math/w_expf.c: Likewise.
31217 * math/w_log2f.c: Likewise.
31218 * math/w_logf.c: Likewise.
31219 * math/w_powf.c: Likewise.
31220 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
31221 [!__exp2f]: Use libm_alias_float_other.
31222 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
31223 [!__expf]: Use libm_alias_float_other.
31224 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
31225 [!__log2f]: Use libm_alias_float_other.
31226 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
31227 [!__logf]: Use libm_alias_float_other.
31228 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
31229 [!__powf]: Use libm_alias_float_other.
31230
8ed70de2
FW
312312017-10-10 Florian Weimer <fweimer@redhat.com>
31232
31233 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
31234 function.
31235 (_nss_files_gethostbyname3_r): Call it.
31236
a8dce619
JM
312372017-10-09 Joseph Myers <joseph@codesourcery.com>
31238
31239 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
31240 error. Remove default definition of declare_mgen_alias.
31241 [!declare_mgen_alias_r]: Likewise.
31242 * sysdeps/generic/math-type-macros-double.h
31243 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
31244 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
31245 (declare_mgen_alias_r): Likewise.
31246 * sysdeps/generic/math-type-macros-float128.h
31247 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
31248 * sysdeps/generic/math-type-macros-ldouble.h
31249 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
31250 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
31251 macro.
31252 (declare_mgen_alias_r_s): Likewise.
31253 (declare_mgen_alias_r): Likewise.
31254 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
31255 (lgamma_r): Define using libm_alias_double_r.
31256 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
31257 (lgammaf_r): Define using libm_alias_float_r.
31258 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
31259 (lgammal_r): Define using libm_alias_ldouble_r.
31260 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
31261 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
31262
bedac136
AZ
312632017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31264
31265 * lib/glob.c (__glob_pattern_type): Remove now-spurious
31266 extern declaration.
31267
c7509db2
JM
312682017-10-09 Joseph Myers <joseph@codesourcery.com>
31269
31270 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
31271
d6c064e9
JW
312722017-10-09 Jonathan Wakely <jwakely@redhat.com>
31273
31274 [BZ #21326]
31275 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
31276 [__cplusplus >= 201103] (__USE_ISOC99): Define.
31277 * math/Makefile (test-math-cxx11): New test.
31278 * math/test-math-cxx11.cc: New file.
31279
98e07420
CB
312802017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
31281
31282 * login/openpty.c (openpty): Close slave pty file descriptor on error.
31283
645ac9aa
CB
31284 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
31285 call to allocate the slave pty file descriptor.
31286
fd3b4e7c
JM
312872017-10-06 Joseph Myers <joseph@codesourcery.com>
31288
f85a176f
JM
31289 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
31290 [!__fma] (fma): Define using libm_alias_double.
31291 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
31292 [!__fma] (fma): Define using libm_alias_double.
31293
fd3b4e7c
JM
31294 * sysdeps/ieee754/float128/float128_private.h: Include
31295 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
31296 (libm_alias_ldouble_r): Undefine and redefine.
31297 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
31298 <libm-alias-ldouble.h>.
31299 (asinhl): Define using libm_alias_ldouble.
31300 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
31301 <libm-alias-ldouble.h>.
31302 (atanl): Define using libm_alias_ldouble.
31303 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
31304 <libm-alias-ldouble.h>.
31305 (cbrtl): Define using libm_alias_ldouble.
31306 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
31307 <libm-alias-ldouble.h>.
31308 (ceill): Define using libm_alias_ldouble.
31309 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
31310 <libm-alias-ldouble.h>.
31311 (copysignl): Define using libm_alias_ldouble.
31312 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
31313 <libm-alias-ldouble.h>.
31314 (cosl): Define using libm_alias_ldouble.
31315 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
31316 <libm-alias-ldouble.h>.
31317 (erfl): Define using libm_alias_ldouble.
31318 (erfcl): Likewise.
31319 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
31320 <libm-alias-ldouble.h>.
31321 (expm1l): Define using libm_alias_ldouble.
31322 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
31323 <libm-alias-ldouble.h>.
31324 (fabsl): Define using libm_alias_ldouble.
31325 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
31326 <libm-alias-ldouble.h>.
31327 (floorl): Define using libm_alias_ldouble.
31328 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
31329 <libm-alias-ldouble.h>.
31330 (fmal): Define using libm_alias_ldouble.
31331 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
31332 <libm-alias-ldouble.h>.
31333 (frexpl): Define using libm_alias_ldouble.
31334 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
31335 libm_alias_ldouble.
31336 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
31337 <libm-alias-ldouble.h>.
31338 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
31339 libm_alias_ldouble.
31340 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
31341 <libm-alias-ldouble.h>.
31342 (getpayloadl): Define using libm_alias_ldouble.
31343 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
31344 <libm-alias-ldouble.h>.
31345 (llrintl): Define using libm_alias_ldouble.
31346 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
31347 <libm-alias-ldouble.h>.
31348 (llroundl): Define using libm_alias_ldouble.
31349 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
31350 <libm-alias-ldouble.h>.
31351 (logbl): Define using libm_alias_ldouble.
31352 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
31353 <libm-alias-ldouble.h>.
31354 (lrintl): Define using libm_alias_ldouble.
31355 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
31356 <libm-alias-ldouble.h>.
31357 (lroundl): Define using libm_alias_ldouble.
31358 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
31359 <libm-alias-ldouble.h>.
31360 (modfl): Define using libm_alias_ldouble.
31361 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
31362 <libm-alias-ldouble.h>.
31363 (nearbyintl): Define using libm_alias_ldouble.
31364 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
31365 <libm-alias-ldouble.h>.
31366 (nextafterl): Define using libm_alias_ldouble.
31367 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
31368 <libm-alias-ldouble.h>.
31369 (nextupl): Define using libm_alias_ldouble.
31370 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
31371 <libm-alias-ldouble.h>.
31372 (remquol): Define using libm_alias_ldouble.
31373 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
31374 <libm-alias-ldouble.h>.
31375 (rintl): Define using libm_alias_ldouble.
31376 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
31377 <libm-alias-ldouble.h>.
31378 (roundevenl): Define using libm_alias_ldouble.
31379 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
31380 <libm-alias-ldouble.h>.
31381 (roundl): Define using libm_alias_ldouble.
31382 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
31383 using libm_alias_ldouble.
31384 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
31385 <libm-alias-ldouble.h>.
31386 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
31387 Define using libm_alias_ldouble.
31388 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
31389 <libm-alias-ldouble.h>.
31390 (sincosl): Define using libm_alias_ldouble.
31391 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
31392 <libm-alias-ldouble.h>.
31393 (sinl): Define using libm_alias_ldouble.
31394 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
31395 <libm-alias-ldouble.h>.
31396 (tanhl): Define using libm_alias_ldouble.
31397 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
31398 <libm-alias-ldouble.h>.
31399 (tanl): Define using libm_alias_ldouble.
31400 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
31401 <libm-alias-ldouble.h>.
31402 (totalorderl): Define using libm_alias_ldouble.
31403 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
31404 <libm-alias-ldouble.h>.
31405 (totalordermagl): Define using libm_alias_ldouble.
31406 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
31407 <libm-alias-ldouble.h>.
31408 (truncl): Define using libm_alias_ldouble.
31409 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
31410 libm_alias_ldouble.
31411 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
31412 libm_alias_ldouble.
31413 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
31414 <libm-alias-ldouble.h>.
31415 (weak_alias): Do not undefine and redefine.
31416 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
31417 (copysignl): Define with long_double_symbol only if [IS_IN
31418 (libc)].
31419 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
31420 <libm-alias-ldouble.h>.
31421 (weak_alias): Do not undefine and redefine.
31422 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
31423 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
31424 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
31425 <libm-alias-ldouble.h>.
31426 (weak_alias): Do not undefine and redefine.
31427 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
31428 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
31429 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
31430 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
31431 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
31432 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
31433 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
31434 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
31435 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
31436 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
31437 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
31438 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
31439 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
31440 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
31441 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
31442 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
31443 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
31444 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
31445 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
31446 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
31447 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
31448 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
31449 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
31450 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
31451 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
31452 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
31453
1e26d351
CD
314542017-10-06 Carlos O'Donell <carlos@redhat.com>
31455
31456 [BZ #22111]
31457 * malloc/malloc.c (tcache_shutting_down): Use bool type.
31458 (tcache_thread_freeres): Set tcache_shutting_down before
31459 freeing the tcache.
31460 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
31461 * malloc/tst-malloc-tcache-leak.c: New file.
31462
d1386762
RS
314632017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
31464
31465 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
31466 back to powerpc32 file.
31467 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
31468 (memrchr): Add __memrchr_power8 to ifunc list.
31469 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
31470 extra bytes for unaligned inputs.
31471
6dff1983
JM
314722017-10-06 Joseph Myers <joseph@codesourcery.com>
31473
31474 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
31475 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
31476 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
31477 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
31478 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
31479
86f9568a
JM
314802017-10-05 Joseph Myers <joseph@codesourcery.com>
31481
0db0b931
JM
31482 * sysdeps/arm/libm-test-ulps: Update.
31483
86f9568a
JM
31484 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
31485 <libm-alias-ldouble.h>.
31486 (asinhl): Define using libm_alias_ldouble.
31487 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
31488 <libm-alias-ldouble.h>.
31489 (cbrtl): Define using libm_alias_ldouble.
31490 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
31491 <libm-alias-ldouble.h>.
31492 (copysignl): Define using libm_alias_ldouble.
31493 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
31494 <libm-alias-ldouble.h>.
31495 (cosl): Define using libm_alias_ldouble.
31496 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
31497 <libm-alias-ldouble.h>.
31498 (erfl): Define using libm_alias_ldouble.
31499 (erfcl): Likewise.
31500 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
31501 <libm-alias-ldouble.h>.
31502 (fmal): Define using libm_alias_ldouble.
31503 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
31504 <libm-alias-ldouble.h>.
31505 (frexpl): Define using libm_alias_ldouble.
31506 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
31507 libm_alias_ldouble.
31508 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
31509 <libm-alias-ldouble.h>.
31510 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
31511 libm_alias_ldouble.
31512 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
31513 <libm-alias-ldouble.h>.
31514 (getpayloadl): Define using libm_alias_ldouble.
31515 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
31516 <libm-alias-ldouble.h>.
31517 (llrintl): Define using libm_alias_ldouble.
31518 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
31519 <libm-alias-ldouble.h>.
31520 (llroundl): Define using libm_alias_ldouble.
31521 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
31522 <libm-alias-ldouble.h>.
31523 (lrintl): Define using libm_alias_ldouble.
31524 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
31525 <libm-alias-ldouble.h>.
31526 (lroundl): Define using libm_alias_ldouble.
31527 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
31528 <libm-alias-ldouble.h>.
31529 (modfl): Define using libm_alias_ldouble.
31530 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
31531 <libm-alias-ldouble.h>.
31532 (nextupl): Define using libm_alias_ldouble.
31533 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
31534 <libm-alias-ldouble.h>.
31535 (remquol): Define using libm_alias_ldouble.
31536 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
31537 <libm-alias-ldouble.h>.
31538 (roundevenl): Define using libm_alias_ldouble.
31539 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
31540 <libm-alias-ldouble.h>.
31541 (roundl): Define using libm_alias_ldouble.
31542 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
31543 using libm_alias_ldouble.
31544 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
31545 <libm-alias-ldouble.h>.
31546 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
31547 <libm-alias-ldouble.h>.
31548 (setpayloadsigl): Define using libm_alias_ldouble.
31549 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
31550 <libm-alias-ldouble.h>.
31551 (sincosl): Define using libm_alias_ldouble.
31552 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
31553 <libm-alias-ldouble.h>.
31554 (sinl): Define using libm_alias_ldouble.
31555 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
31556 <libm-alias-ldouble.h>.
31557 (tanhl): Define using libm_alias_ldouble.
31558 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
31559 <libm-alias-ldouble.h>.
31560 (tanl): Define using libm_alias_ldouble.
31561 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
31562 <libm-alias-ldouble.h>.
31563 (totalorderl): Define using libm_alias_ldouble.
31564 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
31565 <libm-alias-ldouble.h>.
31566 (totalordermagl): Define using libm_alias_ldouble.
31567 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
31568 libm_alias_ldouble.
31569 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
31570 libm_alias_ldouble.
31571
9ec87fd2
SP
315722017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
31573
dd5bc7f1
SP
31574 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
31575 memmove_falkor.
31576 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
31577 (__libc_ifunc_impl_list): Likewise.
31578 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
31579 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
31580
5bfb0404
SP
31581 * benchtests/bench-memmove-walk.c: New file.
31582 * benchtests/Makefile (string-benchset): Add it.
31583
36bb8edf
SP
31584 * benchtests/bench-memset-walk.c: New file.
31585 * benchtests/Makefile (string-benchset): Add it.
31586
9ec87fd2
SP
31587 * benchtests/bench-memcpy-walk.c: New file.
31588 * benchtests/Makefile (string-benchset): Add it.
31589
1e9522c6
FW
315902017-10-05 Florian Weimer <fweimer@redhat.com>
31591
31592 nscd: Eliminate compilation time dependency in the build output.
31593 * nscd/nscd_stat.c (STATDATA_VERSION)
31594 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
31595 (STATDATA_VERSION_FULL): New macro definitions.
31596 (compilation): Remove.
31597 (struct statdata): Adjust version member.
31598 (send_stats): Set version from STATDATA_VERSION_FULL.
31599 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
31600
644d3857
JM
316012017-10-05 Joseph Myers <joseph@codesourcery.com>
31602
31603 * configure.ac (--enable-add-ons): Remove option.
31604 (machine): Do not mention add-ons in comment.
31605 (LIBC_PRECONFIGURE): Likewise.
31606 (add_ons): Remove variable and sanity checks and logic to locate
31607 add-ons.
31608 (add_ons_automatic): Remove variable.
31609 (configured_add_ons): Likewise.
31610 (add_ons_sfx): Likewise.
31611 (add_ons_pfx): Likewise.
31612 (add_on_subdirs): Likewise.
31613 (sysnames_add_ons): Likewise. Remove loop over add-ons and
31614 consideration of add-ons in Implies handling.
31615 (sysdeps_add_ons): Likewise.
31616 * configure: Regenerated.
31617 * libidn/configure.ac: Remove.
31618 * libidn/configure: Likewise.
31619 * sysdeps/unix/inet/configure.ac: New file.
31620 * sysdeps/unix/inet/configure: New generated file.
31621 * sysdeps/unix/inet/Subdirs: Add libidn.
31622 * Makeconfig (sysdeps-srcdirs): Remove variable.
31623 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
31624 ($(common-objpfx)config.status): Do not depend on add-on files.
31625 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
31626 comment.
31627 (all-subdirs): Do not include $(add-on-subdirs).
31628 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
31629 * config.make.in (add-ons): Remove variable.
31630 (add-on-subdirs): Likewise.
31631 (sysdeps-add-ons): Likewise.
31632 * manual/Makefile (add-chapters): Remove.
31633 ($(objpfx)texis): Do not depend on $(add-chapters).
31634 (nonexamples): Do not handle $(add-chapters).
31635 (examples): Do not handle $(add-ons).
31636 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
31637 libc-texinfo.sh.
31638 * manual/install.texi (Installation): Do not mention add-ons.
31639 (--enable-add-ons): Do not document configure option.
31640 * INSTALL: Regenerated.
31641 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
31642 * manual/maint.texi (Hierarchy Conventions): Do not mention
31643 add-ons.
31644 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
31645 --enable-add-ons.
31646 * scripts/gen-sorted.awk: Do not handle Subdirs files from
31647 add-ons.
31648 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
31649 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
31650
19f82f35
AS
316512017-10-05 Andreas Schwab <schwab@suse.de>
31652
31653 [BZ #15142]
31654 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
31655 (_IO_flush_all_lockp): Always lock list_all_lock.
31656 (_IO_flush_all_linebuffered): Likewise.
31657 (_IO_unbuffer_all): Likewise.
31658
91e7cf98
FW
316592017-10-05 Florian Weimer <fweimer@redhat.com>
31660
31661 [BZ #15436]
31662 Do not flush stdio streams on abort.
31663 * stdlib/abort.c (fflush): Remove macro definition.
31664 (abort): Remove stages related to stdio flushing.
31665
0c251257
FW
316662017-10-05 Florian Weimer <fweimer@redhat.com>
31667
31668 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
31669
7ea59e3e
SL
316702017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
31671
31672 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
31673
84d0e6f0
FW
316742017-10-05 Florian Weimer <fweimer@redhat.com>
31675
31676 * support/support_format_hostent.c (support_format_hostent): Add
31677 more error information for NETDB_INTERNAL.
31678
ee417882
L
316792017-10-04 H.J. Lu <hongjiu.lu@intel.com>
31680
31681 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
31682 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
31683 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
31684 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
31685 AC_DEFINE if multi-arch is enabled.
31686 * sysdeps/i386/configure: Regenerated.
31687
a67029ff
L
316882017-10-04 H.J. Lu <hongjiu.lu@intel.com>
31689
31690 * Makeconfig (+link-static-before-libc): Use
31691 $(DEFAULT-LDFLAGS-$(@F)).
31692 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
31693 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
31694 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
31695
5dba84b3
L
316962017-10-04 H.J. Lu <hongjiu.lu@intel.com>
31697
31698 * elf/Makefile (tests): Add tst-main1.
31699 (modules-names): Add tst-main1mod.
31700 ($(objpfx)tst-main1): New.
31701 (CRT-tst-main1): Likewise.
31702 (LDFLAGS-tst-main1): Likewise.
31703 (LDLIBS-tst-main1): Likewise.
31704 (tst-main1mod.so-no-z-defs): Likewise.
31705 * elf/tst-main1.c: New file.
31706 * elf/tst-main1mod.c: Likewise.
31707
758f1bfa
L
317082017-10-04 H.J. Lu <hongjiu.lu@intel.com>
31709
31710 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
31711
7e16a5d1
JM
317122017-10-04 Joseph Myers <joseph@codesourcery.com>
31713
31714 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
31715 (fma): Define using libm_alias_double.
31716 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
31717 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
31718 <math_ldbl_opt.h>.
31719 (fmal): Do not define as compat symbol here.
31720 * sysdeps/alpha/fpu/s_fma.c: New file.
31721
db4f87ba
SN
317222017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
31723
31724 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
31725
72d13ed1
JM
317262017-10-04 Joseph Myers <joseph@codesourcery.com>
31727
32d372d5
JM
31728 [BZ #22229]
31729 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
31730 <math_ldbl_opt.h>
31731 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
31732 and libc.
31733 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
31734 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
31735 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
31736 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
31737 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
31738 Include <math_ldbl_opt.h>
31739 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
31740 and libc.
31741 (compat_symbol): Undefine and redefine.
31742 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
31743 <math_ldbl_opt.h>
31744 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
31745 (compat_symbol): Undefine and redefine.
31746 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
31747 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
31748 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
31749 GLIBC_2_1 for libm.
31750 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
31751 GLIBC_2.0 copysignl symbol.
31752 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
31753 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
31754
72d13ed1
JM
31755 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
31756
11c4f501
FW
317572017-10-04 Florian Weimer <fweimer@redhat.com>
31758
31759 * scripts/check-local-headers.sh: Ignore nspr4 header file
31760 directory in addition to nspr.
31761
57b4af19
GT
317622017-10-04 Guido Trentalancia <guido@trentalancia.net>
31763
31764 [BZ #17956]
31765 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
31766 * configure: Regenerate.
31767 * crypt/Makefile (nss-cpp-flags): New variable.
31768 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
31769 (CPPFLAGS-md5-crypt.c): Use it.
31770 * scripts/check-local-headers.sh: Ignore nspr header file
31771 directory.
31772
64d1e08e
AS
317732017-10-04 Andreas Schwab <schwab@suse.de>
31774
31775 * nis/Makefile (services): Remove compat.
31776 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
31777 ($(objpfx)libnss_compat.so): Remove rule.
31778 * nis/Versions (libnss_compat): Remove.
31779 * nss/Makefile (services): Add compat.
31780 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
31781 * nss/Versions (libnss_compat): Define.
31782 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
31783 Don't include <rpc/types.h>. Replace bool_t by bool.
31784 * nss/nss_compat/compat-initgroups.c: Likewise.
31785 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
31786 instead of <rpcsrv/ypclnt.h>.
31787 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
31788 yp_get_default_domain.
31789 * nss/nss_compat/compat-pwd.c: Likewise.
31790 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
31791 yp_get_default_domain.
31792 * nss/nss_compat/nisdomain.c: New file.
31793 * nss/nss_compat/nisdomain.h: Likewise.
31794
86c27ade
SN
317952017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
31796
31797 [BZ #22244]
31798 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
31799 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
31800
8f8f8ef7
SN
318012017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
31802
31803 [BZ #22243]
31804 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
31805 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
31806
95577475
L
318072017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31808
31809 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
31810 "movl main@GOTOFF(%ebx), %eax".
31811
02d2d892
L
318122017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31813
31814 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
31815 allow undefined _DYNAMIC in PIE libc.a.
31816 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
31817 Likewse.
31818
0c609d19
L
318192017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31820
31821 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
31822 check _DYNAMIC.
31823
c34a19ed
L
318242017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31825
31826 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
31827 check _DYNAMIC.
31828
cdd4155d
L
318292017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31830
31831 * math/test-math-iscanonical.cc (error): Replace bool with int.
31832
4699cb8b
JM
318332017-10-03 Joseph Myers <joseph@codesourcery.com>
31834
d8f619b3
JM
31835 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
31836 (modf): Define using libm_alias_double, only if [!__modf].
31837 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
31838 <libm-alias-double.h>.
31839 (modf): Define using libm_alias_double, only if [!__modf].
31840 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
31841 compat symbol here.
31842 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
31843 (weak_alias): Do not undefine and redefine.
31844 (strong_alias): Likewise.
31845 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
31846 (weak_alias): Likewise.
31847 (strong_alias): Likewise.
31848
4699cb8b
JM
31849 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
31850 (logb): Define using libm_alias_double, only if [!__logb].
31851 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
31852 <libm-alias-double.h>.
31853 (logb): Define using libm_alias_double, only if [!__logb].
31854 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
31855 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
31856 (weak_alias): Do not undefine and redefine.
31857 (strong_alias): Likewise.
31858 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
31859 (weak_alias): Likewise.
31860 (strong_alias): Likewise.
31861
bcc4e4bb
L
318622017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31863
31864 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
31865 Check SHARED instead PIC.
31866
39793865
JM
318672017-10-03 Joseph Myers <joseph@codesourcery.com>
31868
7f1cbdf8
JM
31869 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
31870 [!__fmaf] (fmaf): Define using libm_alias_float.
31871
39793865
JM
31872 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
31873 (frexp): Define using libm_alias_double.
31874 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
31875 <libm-alias-double.h>.
31876 (frexp): Define using libm_alias_double.
31877 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
31878 compat symbol here.
31879
aa0235df
GG
318802017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
31881
31882 [BZ #22235]
31883 * math/math.h: Trivial fix for unbalanced parentheses in comment.
31884 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
31885 (CFLAGS-test-math-iscanonical.cc): New variable.
31886 * math/test-math-iscanonical.cc: New file.
31887 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
31888 Provide a C++ implementation based on function overloading,
31889 rather than using __MATH_TG, which uses C-only builtins.
31890 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
31891 Likewise.
31892 * sysdeps/powerpc/powerpc64le/Makefile
31893 (CFLAGS-test-math-iscanonical.cc): New variable.
31894
a1132b5e
JM
318952017-10-03 Joseph Myers <joseph@codesourcery.com>
31896
31897 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
31898 (ceil): Define using libm_alias_double.
31899 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
31900 (floor): Define using libm_alias_double.
31901 * sysdeps/ieee754/dbl-64/s_llround.c: Include
31902 <libm-alias-double.h>.
31903 (llround): Define using libm_alias_double.
31904 * sysdeps/ieee754/dbl-64/s_lround.c: Include
31905 <libm-alias-double.h>.
31906 (lround): Define using libm_alias_double.
31907 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
31908 <libm-alias-double.h>.
31909 (nearbyint): Define using libm_alias_double.
31910 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
31911 <libm-alias-double.h>.
31912 (remquo): Define using libm_alias_double.
31913 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
31914 (rint): Define using libm_alias_double.
31915 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
31916 (round): Define using libm_alias_double.
31917 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
31918 (trunc): Define using libm_alias_double.
31919 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
31920 <libm-alias-double.h>.
31921 (ceil): Define using libm_alias_double.
31922 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
31923 <libm-alias-double.h>.
31924 (floor): Define using libm_alias_double.
31925 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
31926 <libm-alias-double.h>.
31927 (llround): Define using libm_alias_double.
31928 [_LP64] (lround): Likewise.
31929 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
31930 <libm-alias-double.h>.
31931 [!_LP64] (lround): Define using libm_alias_double.
31932 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
31933 <libm-alias-double.h>.
31934 (nearbyint): Define using libm_alias_double.
31935 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
31936 <libm-alias-double.h>.
31937 (remquo): Define using libm_alias_double.
31938 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
31939 <libm-alias-double.h>.
31940 (rint): Define using libm_alias_double.
31941 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
31942 <libm-alias-double.h>.
31943 (round): Define using libm_alias_double.
31944 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
31945 <libm-alias-double.h>.
31946 (trunc): Define using libm_alias_double.
31947 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
31948 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
31949 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
31950 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
31951 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
31952 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
31953 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
31954 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
31955 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
31956
f275f64e
SN
319572017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
31958
31959 * math/w_remainder.c: New file.
31960 * math/w_remainderf.c: New file.
31961 * math/w_remainderl.c: New file.
31962
b8818ab5
L
319632017-10-03 H.J. Lu <hongjiu.lu@intel.com>
31964
31965 * elf/rtld.c (BOOTSTRAP_MAP): New.
31966 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
31967 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
31968 Likewise.
31969 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
31970 Likewise.
31971 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
31972 Likewise.
31973
3d1870fa
ST
319742017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
31975
31976 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
31977 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
31978 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
31979 rtld_hidden_data_ver): Define to empty.
31980 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
31981 __assert_perror_fail): Likewise.
31982 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
31983 (__rewinddir): Likewise.
31984 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
31985 (__profile_frequency): Likewise.
31986 * include/setjmp.h (__sigsetjmp): Likewise.
31987 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
31988 __libc_sigaction): Likewise.
31989 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
31990 not set hidden attribute.
31991 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
31992 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
31993 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
31994 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
31995 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
31996 __fxstatat64): Likewise.
31997 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
31998 (__uname): Likewise.
31999 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
32000 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
32001 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
32002 (NO_RTLD_HIDDEN): Set.
32003 * sysdeps/mach/hurd/configure: Refresh.
32004 * config.h.in: Refresh.
32005
527cd19c
JM
320062017-10-02 Joseph Myers <joseph@codesourcery.com>
32007
38722448
JM
32008 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
32009 (atan): Define using libm_alias_double.
32010 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
32011 (tan): Define using libm_alias_double.
32012 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
32013 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
32014
527cd19c
JM
32015 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
32016 define as weak alias of __atan. Do not define any aliases if
32017 [__atan].
32018 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
32019 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
32020 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
32021 as weak alias of __tan. Do not define any aliases if [__tan].
32022 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
32023 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
32024 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
32025 __atan.
32026 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
32027 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
32028 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
32029 and define as weak alias of __atan.
32030 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
32031 __atan.
32032 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
32033 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
32034 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
32035 define as weak alias of __tan.
32036
bdc5c592
SN
320372017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
32038
32039 * math/w_lgamma.c: New file.
32040 * math/w_lgammaf.c: New file.
32041 * math/w_lgammal.c: New file.
32042
bd4430c2
SN
320432017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
32044
32045 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
32046 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
32047 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
32048 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
32049 * sysdeps/ieee754/flt-32/w_logf.c: New file.
32050 * sysdeps/ieee754/flt-32/w_powf.c: New file.
32051 * sysdeps/i386/fpu/w_log2f.c: New file.
32052 * sysdeps/i386/fpu/w_logf.c: New file.
32053 * sysdeps/i386/fpu/w_powf.c: New file.
32054 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
32055 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
32056 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
32057
f7a0b063
SN
320582017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
32059 H.J. Lu <hongjiu.lu@intel.com>
32060
32061 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
32062 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
32063 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
32064 * sysdeps/ieee754/flt-32/w_expf.c: New file.
32065 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
32066 the new expf code.
32067 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
32068 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
32069 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
32070 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
32071 * sysdeps/i386/fpu/w_exp2f.c: New file.
32072 * sysdeps/i386/fpu/w_expf.c: New file.
32073 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
32074 * sysdeps/x86_64/fpu/w_expf.c: New file.
32075
72d3d281
SN
320762017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
32077
32078 * math/Versions (logf): New libm symbol at GLIBC_2.27.
32079 (log2f): Likewise.
32080 (powf): Likewise.
32081 * math/w_log2f.c: New file.
32082 * math/w_logf.c: New file.
32083 * math/w_powf.c: New file.
32084 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
32085 * math/w_logf_compat.c (__logf_compat): Likewise.
32086 * math/w_powf_compat.c (__powf_compat): Likewise.
32087 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
32088 * sysdeps/ia64/fpu/e_logf.S: Likewise.
32089 * sysdeps/ia64/fpu/e_powf.S: Likewise.
32090 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
32091 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
32092 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
32093 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
32094 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
32095 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
32096 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
32097 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
32098 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
32099 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
32100 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
32101 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
32102 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
32103 Likewise.
32104 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
32105 Likewise.
32106 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
32107 Likewise.
32108 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
32109 Likewise.
32110 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
32111 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
32112 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
32113 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
32114 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
32115 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
32116 Likewise.
32117 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
32118 Likewise.
32119 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
32120 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
32121 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
32122
59ba2d2b
RS
321232017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
32124
32125 * sysdeps/powerpc/powerpc64/multiarch/Makefile
32126 (sysdep_routines): Add memrchr_power8.
32127 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
32128 (memrchr): Add __memrchr_power8 to list of memrchr functions.
32129 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
32130 New file.
32131 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
32132 (memrchr): Add __memrchr_power8 to ifunc list.
32133 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
32134
397286ea
L
321352017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32136
32137 [BZ #18822]
32138 * sysdeps/unix/sysv/linux/posix_fadvise64.c
32139 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
32140 libc_hidden_def.
32141 * sysdeps/unix/sysv/linux/posix_fallocate64.c
32142 (__posix_fallocate64_l64): Likewise.
32143
d0a4512b
L
321442017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32145
32146 [BZ #18822]
32147 * sysdeps/unix/sysv/linux/sched_setaffinity.c
32148 (__sched_setaffinity_new): Add libc_hidden_proto and
32149 libc_hidden_def.
32150
c0769f70
L
321512017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32152
32153 [BZ #18822]
32154 * include/glob.h (__glob64): Add libc_hidden_proto.
32155 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
32156 libc_hidden_def.
32157
0e7d5b6e
L
321582017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32159
32160 [BZ #18822]
32161 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
32162 attribute_hidden.
32163
bde06c87
L
321642017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32165
32166 [BZ #18822]
32167 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
32168
fa426590
L
321692017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32170
32171 [BZ #18822]
32172 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
32173 libc_hidden_def.
32174
2f8a05d8
L
321752017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32176
32177 [BZ #18822]
32178 * csu/version.c (__libc_print_version): Add attribute_hidden.
32179
7bfd08ac
L
321802017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32181
32182 [BZ #18822]
32183 * include/libc-internal.h (__init_misc): Add attribute_hidden.
32184
0e1fd06c
L
321852017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32186
32187 [BZ #18822]
32188 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
32189
36e7ae1e
L
321902017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32191
32192 [BZ #18822]
32193 * nscd/nscd_helper.c (__nis_hash): New prototype.
32194
87078544
L
321952017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32196
32197 [BZ #18822]
32198 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
32199 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
32200 libc_hidden_def.
32201 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
32202 * termios/tcgetattr.c (__tcgetattr): Likewise.
32203
dd3121df
L
322042017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32205
32206 [BZ #18822]
32207 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
32208 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
32209 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
32210 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
32211 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
32212
047d1a81
L
322132017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32214
32215 [BZ #18822]
32216 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
32217
fd331b11
L
322182017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32219
32220 [BZ #18822]
32221 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
32222 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
32223
57f859bd
L
322242017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32225
32226 [BZ #18822]
32227 * intl/hash-string.h (__hash_string): Add attribute_hidden.
32228
d1903329
L
322292017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32230
32231 [BZ #18822]
32232 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
32233 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
32234
b4744101
L
322352017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32236
32237 [BZ #18822]
32238 * include/ifreq.h: New file.
32239 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
32240 (__ifreq): Likewise.
32241 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
32242 (__ifreq): Likewise.
32243
43b7dfd1
L
322442017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32245
32246 [BZ #18822]
32247 * include/idna.h: New file.
32248 * inet/getnameinfo.c: Include <idna.h> instead of
32249 <libidn/idna.h>.
32250 (__idna_to_unicode_lzlz): Removed.
32251 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
32252 <libidn/idna.h>.
32253 (__idna_to_ascii_lz): Removed.
32254 (__idna_to_unicode_lzlz): Likewise.
32255
2c0cd8f8
L
322562017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32257
32258 [BZ #18822]
32259 * include/plural-exp.h: New file.
32260 * intl/plural-exp.c: Include <plural-exp.h> instead of
32261 "plural-exp.h".
32262
8369d216
L
322632017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32264
32265 [BZ #18822]
32266 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
32267 "getsourcefilter.h".
32268 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
32269 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
32270 "getsourcefilter.h".
32271 (__get_sol): Removed.
32272
a0aef783
L
322732017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32274
32275 [BZ #18822]
32276 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
32277 to ...
32278 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
32279
3ee8209b
L
322802017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32281
32282 [BZ #18822]
32283 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
32284 attribute_hidden.
32285
6036fc38
L
322862017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32287
32288 [BZ #18822]
32289 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
32290
fe84fed0
L
322912017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32292
32293 [BZ #18822]
32294 * include/search.h (__tdestroy): Add libc_hidden_proto.
32295 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
32296
048dd681
L
322972017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32298
32299 [BZ #18822]
32300 * include/assert.h (__assert_fail_base): Add attribute_hidden.
32301
6e342af6
L
323022017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32303
32304 [BZ #18822]
32305 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
32306 attribute_hidden.
32307
6a088436
L
323082017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32309
32310 [BZ #18822]
32311 * include/signal.h (__kill): Add libc_hidden_proto.
32312 (__sigblock): Likewise.
32313 (__sigprocmask): Likewise.
32314 (__sigaltstack): Likewise.
32315 * signal/kill.c (__kill): Add libc_hidden_def.
32316 * signal/sigblock.c (__sigblock): Likewise.
32317 * signal/sigprocmask.c (__sigprocmask): Likewise.
32318 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
32319 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
32320 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
32321 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
32322 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
32323 Likewise.
32324 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
32325 Likewise.
32326 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
32327 (__sigprocmask): Likewise.
32328 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
32329 Likewise.
32330 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
32331 (__sigprocmask): Likewise.
32332 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
32333 Likewise.
32334
78cf1d74
L
323352017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32336
32337 [BZ #18822]
32338 * include/string.h (__strsep): Add libc_hidden_proto.
32339 * string/strsep.c (__strsep): Add libc_hidden_def.
32340
85b35894
L
323412017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32342
32343 [BZ #18822]
32344 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
32345 attribute_hidden.
32346 (__spawni): Likewise.
32347
225f7eec
L
323482017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32349
32350 [BZ #18822]
32351 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
32352 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
32353 libc_hidden_def.
32354
372fe247
L
323552017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32356
32357 [BZ #18822]
32358 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
32359
9e5ee8b8
L
323602017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32361
32362 [BZ #18822]
32363 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
32364 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
32365 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
32366 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
32367 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
32368 Likewise.
32369 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
32370 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
32371
2ff16592
L
323722017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32373
32374 [BZ #18822]
32375 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
32376 (__dcigettext): Likewise.
32377
b5648377
L
323782017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32379
32380 [BZ #18822]
32381 * include/sys/sysinfo.h (__get_nprocs_conf): Add
32382 libc_hidden_proto.
32383 (__get_nprocs): Likewise.
32384 (__get_phys_pages): Likewise.
32385 (__get_avphys_pages): Likewise.
32386 (__get_child_max): Add attribute_hidden.
32387 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
32388 (__get_nprocs): Likewise.
32389 (__get_phys_pages): Likewise.
32390 (__get_avphys_pages): Likewise.
32391 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
32392 libc_hidden_def.
32393 (__get_nprocs): Likewise.
32394 (__get_phys_pages): Likewise.
32395 (__get_avphys_pages): Likewise.
32396 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
32397 libc_hidden_def.
32398 (__get_nprocs_conf): Likewise.
32399 (__get_phys_pages): Likewise.
32400 (__get_avphys_pages): Likewise.
32401
0389a6aa
L
324022017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32403
32404 [BZ #18822]
32405 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
32406 attribute_hidden.
32407 (__netlink_close): Likewise.
32408 (__netlink_free_handle): Likewise.
32409 (__netlink_request): Likewise.
32410
d48354d8
L
324112017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32412
32413 [BZ #18822]
32414 * include/rpc/rpc.h (__rpc_thread_variables): Add
32415 attribute_hidden.
32416 (__rpc_thread_svc_cleanup): Likewise.
32417 (__rpc_thread_clnt_cleanup): Likewise.
32418 (__rpc_thread_key_cleanup): Likewise.
32419
d6daff12
L
324202017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32421
32422 [BZ #18822]
32423 * include/sys/uio.h (__readv): Add libc_hidden_proto.
32424 (__writev): Likewise.
32425 * misc/readv.c (__readv): Add libc_hidden_def.
32426 * misc/writev.c (__writev): Likewise.
32427 * sysdeps/posix/readv.c (__readv): Likewise.
32428 * sysdeps/posix/writev.c (__writev): Likewise.
32429 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
32430 (__readv): Likewise.
32431 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
32432 (__writev): Likewise.
32433
b68f8620
L
324342017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32435
32436 [BZ #18822]
32437 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
32438 (__regcomp): Add libc_hidden_proto.
32439 (__regexec): Likewise.
32440 (__regfree): Likewise.
32441 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
32442 (__regfree): Likewise.
32443 * posix/regexec.c (__regexec): Likewise.
32444
59c04e67
L
324452017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32446
32447 [BZ #18822]
32448 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
32449 (__getutent): Likewise.
32450 (__getutid): Likewise.
32451 (__getutline): Likewise.
32452 (__pututline): Likewise.
32453 (__getutent_r): Likewise.
32454 (__getutid_r): Likewise.
32455 (__getutline_r): Likewise.
32456 (__utmpname): Add attribute_hidden.
32457 (__setutent): Likewise.
32458 (__endutent): Likewise.
32459 * login/getutent.c (__getutent): Add libc_hidden_def.
32460 * login/getutent_r.c (__getutent_r): Likewise.
32461 (__pututline): Likewise.
32462 * login/getutid.c (__getutid): Likewise.
32463 * login/getutid_r.c (__getutid_r): Likewise.
32464 * login/getutline.c (__getutline): Likewise.
32465 * login/getutline_r.c (__getutline_r): Likewise.
32466 * login/updwtmp.c (__updwtmp): Likewise.
32467
4587a421
L
324682017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32469
32470 [BZ #18822]
32471 * include/dirent.h (__opendir): Always add attribute_hidden.
32472 (__fdopendir): Likewise.
32473 (__closedir): Likewise.
32474 (__readdir): Likewise.
32475 (__readdir64): Add libc_hidden_proto.
32476 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
32477 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
32478 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
32479 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
32480 New alias.
32481
9635ce69
L
324822017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32483
32484 [BZ #18822]
32485 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
32486 * include/netdb.h (__gethostbyaddr_r): Likewise.
32487 (__gethostbyname_r): Likewise.
32488 (__gethostbyname2_r): Likewise.
32489 (__getnetbyaddr_r): Likewise.
32490 (__getnetbyname_r): Likewise.
32491 (__getservbyname_r): Likewise.
32492 (__getservbyport_r): Likewise.
32493 (__getprotobyname_r): Likewise.
32494 (__getprotobynumber_r): Likewise.
32495 (__getnetgrent_r): Likewise.
32496 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
32497 (__getrpcbynumber_r): Likewise.
32498 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
32499
2e0a6909
L
325002017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32501
32502 [BZ #18822]
32503 * include/stdio.h (__fcloseall): Add attribute_hidden.
32504 (__getline): Likewise.
32505 (__path_search): Likewise.
32506 (__gen_tempname): Likewise.
32507 (__libc_message): Likewise.
32508 (__flockfile): Likewise.
32509 (__funlockfile): Likewise.
32510 (__fxprintf): Likewise.
32511 (__fxprintf_nocancel): Likewise.
32512
94fd682c
L
325132017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32514
32515 [BZ #18822]
32516 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
32517 (__sgetsgent_r): Likewise.
32518
e1b33bba
L
325192017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32520
32521 [BZ #18822]
32522 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
32523 (__statfs64): Likewise.
32524 (__fstatfs64): Likewise.
32525 * include/sys/statvfs.h (__statvfs64): Likewise.
32526 (__fstatvfs64): Likewise.
32527 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
32528 (__statfs_filesize_max): Likewise.
32529 (__statfs_symlinks): Likewise.
32530 (__statfs_chown_restricted): Likewise.
32531
b0f56784
L
325322017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32533
32534 [BZ #18822]
32535 * include/time.h (__tzstring): Add attribute_hidden.
32536 (__tzfile_read): Likewise.
32537 (__tzfile_compute): Likewise.
32538 (__tzfile_default): Likewise.
32539 (__tzset_parse_tz): Likewise.
32540 (__offtime): Likewise.
32541 (__asctime_r): Likewise.
32542 (__tzset): Likewise.
32543 (__tz_convert): Likewise.
32544 (__getdate_r): Likewise.
32545 (__getclktck): Likewise.
32546
a4338d99
L
325472017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32548
32549 [BZ #18822]
32550 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
32551 (__nscd_unmap): Likewise.
32552 (__nscd_cache_search): Likewise.
32553 (__nscd_get_nl_timestamp): Likewise.
32554 (__nscd_getpwnam_r): Likewise.
32555 (__nscd_getpwuid_r): Likewise.
32556 (__nscd_getgrnam_r): Likewise.
32557 (__nscd_getgrgid_r): Likewise.
32558 (__nscd_gethostbyname_r): Likewise.
32559 (__nscd_gethostbyname2_r): Likewise.
32560 (__nscd_gethostbyaddr_r): Likewise.
32561 (__nscd_getai): Likewise.
32562 (__nscd_getgrouplist): Likewise.
32563 (__nscd_getservbyname_r): Likewise.
32564 (__nscd_getservbyport_r): Likewise.
32565 (__nscd_innetgr): Likewise.
32566 (__nscd_setnetgrent): Likewise.
32567
a2ca1652
L
325682017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32569
32570 [BZ #18822]
32571 * include/gmp.h: Declare internal functions only if _ISOMAC is
32572 undefined.
32573 (__mpn_extract_double): Add attribute_hidden.
32574 (__mpn_extract_long_double): Likewise.
32575 (__mpn_extract_float128): Likewise.
32576 (__mpn_construct_float): Likewise.
32577 (__mpn_construct_double): Likewise.
32578 (__mpn_construct_long_double): Likewise.
32579 (__mpn_construct_float128): Likewise.
32580 (mpn_add_1): Likewise.
32581 (mpn_addmul_1): Likewise.
32582 (mpn_add_n): Likewise.
32583 (mpn_cmp): Likewise.
32584 (mpn_divrem): Likewise.
32585 (mpn_lshift): Likewise.
32586 (mpn_mul): Likewise.
32587 (mpn_mul_1): Likewise.
32588 (mpn_rshift): Likewise.
32589 (mpn_sub_1): Likewise.
32590 (mpn_submul_1): Likewise.
32591 (mpn_sub_n): Likewise.
32592
44af8a32
L
325932017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32594
32595 [BZ #18822]
32596 * include/wchar.h (__wcsnlen): Add attribute_hidden.
32597 (__wcscat): Likewise.
32598 (__btowc): Likewise.
32599 (__wcrtomb): Likewise.
32600 (__mbsrtowcs): Likewise.
32601 (__wcsrtombs): Likewise.
32602 (__mbsnrtowcs): Likewise.
32603 (__wcsnrtombs): Likewise.
32604 (__wcsncpy): Likewise.
32605 (__wcpncpy): Likewise.
32606 (__wmemcpy): Likewise.
32607 (__wmempcpy): Likewise.
32608 (__wmemmove): Likewise.
32609 (__wcschrnul): Likewise.
32610 (__vfwscanf): Likewise.
32611 (__vswprintf): Likewise.
32612 (__fwprintf): Likewise.
32613 (__vfwprintf): Likewise.
32614
783cd767
L
326152017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32616
32617 [BZ #18822]
32618 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
32619 (__getgrgid_r): Likewise.
32620 (__getgrnam_r): Likewise.
32621 * include/pwd.h (__getpwuid_r): Likewise.
32622 (__getpwnam_r): Likewise.
32623 (__fgetpwent_r): Likewise.
32624 * include/shadow.h (__getspnam_r): Likewise.
32625 (__sgetspent_r): Likewise.
32626 (__fgetspent_r): Likewise.
32627
7ec4b39a
L
326282017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32629
32630 [BZ #18822]
32631 * include/unistd.h (__access): Add attribute_hidden.
32632 (__lseek64): Likewise.
32633 (__libc_pread64): Likewise.
32634 (__pipe2): Likewise.
32635 (__sleep): Likewise.
32636 (__chdir): Likewise.
32637 (__fchdir): Likewise.
32638 (__getcwd): Likewise.
32639 (__rmdir): Likewise.
32640 (__execvpe): Likewise.
32641 (__execve): Likewise.
32642 (__setsid): Likewise.
32643 (__getuid): Likewise.
32644 (__geteuid): Likewise.
32645 (__getgid): Likewise.
32646 (__getegid): Likewise.
32647 (__getgroups): Likewise.
32648 (__group_member): Likewise.
32649 (__ttyname_r): Likewise.
32650 (__isatty): Likewise.
32651 (__readlink): Likewise.
32652 (__unlink): Likewise.
32653 (__gethostname): Likewise.
32654 (__profil): Likewise.
32655 (__getdtablesize): Likewise.
32656 (__brk): Likewise.
32657 (__ftruncate): Likewise.
32658 (__ftruncate64): Likewise.
32659
8345a760
L
326602017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32661
32662 [BZ #18822]
32663 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
32664 * argp/argp-fs-xinl.c: Likewise.
32665 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
32666 * argp/argp-parse.c: Include <argp.h>.
32667 * argp/argp-xinl.c: Likewise.
32668 * include/argp-fmtstream.h: New file.
32669 * include/argp.h (__argp_error): Add attribute_hidden.
32670 (__argp_failure): Likewise.
32671 (__argp_input): Likewise.
32672 (__argp_state_help): Likewise.
32673
c26dd7c6
L
326742017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32675
32676 [BZ #18822]
32677 * include/wchar.h (____wcstof_l_internal): New prototype.
32678 (____wcstod_l_internal): Likewise.
32679 (____wcstold_l_internal): Likewise.
32680 (____wcstol_l_internal): Likewise.
32681 (____wcstoul_l_internal): Likewise.
32682 (____wcstoll_l_internal): Likewise.
32683 (____wcstoull_l_internal): Likewise.
32684 (____wcstof128_l_internal): Likewise.
32685 * sysdeps/ieee754/float128/wcstof128.c
32686 (____wcstof128_l_internal): Removed.
32687 * sysdeps/ieee754/float128/wcstof128_l.c
32688 (____wcstof128_l_internal): Likewise.
32689 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
32690 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
32691 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
32692 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
32693 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
32694 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
32695 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
32696 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
32697 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
32698 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
32699
3aff5644
L
327002017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32701
32702 [BZ #18822]
32703 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
32704 instead of <sys/statvfs.h>.
32705 (__internal_statvfs): Removed.
32706 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
32707 instead of <sys/statvfs.h>.
32708 (__internal_statvfs64): Removed.
32709 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
32710 "internal_statvfs.h" instead of <sys/statvfs.h>.
32711 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
32712 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
32713 instead of <sys/statvfs.h>.
32714 (__internal_statvfs): Removed.
32715 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
32716 instead of <sys/statvfs.h>.
32717 (__internal_statvfs64): Removed.
32718
8bcdb7e0
L
327192017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32720
32721 [BZ #18822]
32722 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
32723 (__gconv_close): Likewise.
32724 (__gconv): Likewise.
32725 (__gconv_find_transform): Likewise.
32726 (__gconv_lookup_cache): Likewise.
32727 (__gconv_compare_alias_cache): Likewise.
32728 (__gconv_load_cache): Likewise.
32729 (__gconv_get_path): Likewise.
32730 (__gconv_close_transform): Likewise.
32731 (__gconv_release_cache): Likewise.
32732 (__gconv_find_shlib): Likewise.
32733 (__gconv_release_shlib): Likewise.
32734 (__gconv_get_builtin_trans): Likewise.
32735 (__gconv_compare_alias): Likewise.
32736 * include/dlfcn.h (_dlerror_run): Likewise.
32737 * include/stdio.h (__fortify_fail_abort): Likewise.
32738 * include/time.h (__tz_compute): Likewise.
32739 (__strptime_internal): Likewise.
32740 * intl/gettextP.h (_nl_find_domain): Likewise.
32741 (_nl_load_domain): Likewise.
32742 (_nl_find_msg): Likewise.
32743 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
32744 (EXTRACT_PLURAL_EXPRESSION): Likewise.
32745 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
32746 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
32747 (__gai_find_request): Likewise.
32748 (__gai_remove_request): Likewise.
32749 (__gai_notify): Likewise.
32750 (__gai_notify_only): Likewise.
32751 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
32752 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
32753 (_dl_non_dynamic_init): Likewise.
32754 (_dl_aux_init): Likewise.
32755 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
32756 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
32757 Likewise.
32758 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
32759 (__wcsmbs_clone_conv): Likewise.
32760 (__wcsmbs_named_conv): Likewise.
32761
8ed3b643
L
327622017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32763
32764 [BZ #18822]
32765 * include/stdlib.h (__random): Add attribute_hidden.
32766 (__random_r): Likewise.
32767 (__srandom_r): Likewise.
32768 (__initstate_r): Likewise.
32769 (__setstate_r): Likewise.
32770 (__erand48_r): Likewise.
32771 (__nrand48_r): Likewise.
32772 (__jrand48_r): Likewise.
32773 (__srand48_r): Likewise.
32774 (__seed48_r): Likewise.
32775 (__lcong48_r): Likewise.
32776 (__drand48_iterate): Likewise.
32777 (__setenv): Likewise.
32778 (__unsetenv): Likewise.
32779 (__clearenv): Likewise.
32780 (__ptsname_r): Likewise.
32781 (__posix_openpt): Likewise.
32782 (__add_to_environ): Likewise.
32783 (__realpath): Add libc_hidden_proto.
32784 (__ecvt_r): Likewise.
32785 (__fcvt_r): Likewise.
32786 (__qecvt_r): Likewise.
32787 (__qfcvt_r): Likewise.
32788 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
32789 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
32790
ef9b6f73
L
327912017-10-01 H.J. Lu <hongjiu.lu@intel.com>
32792
32793 [BZ #18822]
32794 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
32795 * include/time.h (__mktime_internal): Likewise.
32796 * libio/iolibio.h (__fopen_internal): Likewise.
32797
8da92e72
JDA
327982017-10-01 John David Anglin <danglin@gcc.gnu.org>
32799
32800 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
32801 pointer in frame.
32802 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
32803 Correct offset used to restore PIC register.
32804
388784cf
JDA
328052017-09-30 John David Anglin <danglin@gcc.gnu.org>
32806
32807 [BZ libc/22165]
32808 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
32809 code to load address of __getcontext_ret when generating PIC code.
32810
2000067a
L
328112017-09-30 H.J. Lu <hongjiu.lu@intel.com>
32812
32813 * elf/Makefile (tests-static-internal): Add
32814 tst-tls1-static-non-pie.
32815 (LDFLAGS-tst-tls1-static-non-pie): New.
32816 * elf/tst-tls1-static-non-pie.c: New file.
32817
1e2bffd0
JM
328182017-09-29 Joseph Myers <joseph@codesourcery.com>
32819
32820 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
32821 (asinh): Define using libm_alias_double.
32822 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
32823 (cbrt): Define using libm_alias_double.
32824 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
32825 <libm-alias-double.h>.
32826 (copysign): Define using libm_alias_double.
32827 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
32828 (erf): Define using libm_alias_double.
32829 (erfc): Likewise.
32830 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
32831 (expm1): Define using libm_alias_double.
32832 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
32833 (fabs): Define using libm_alias_double.
32834 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
32835 libm_alias_double.
32836 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
32837 <libm-alias-double.h>.
32838 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
32839 libm_alias_double.
32840 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
32841 <libm-alias-double.h>.
32842 (getpayload): Define using libm_alias_double.
32843 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
32844 <libm-alias-double.h>.
32845 (llrint): Define using libm_alias_double.
32846 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
32847 (lrint): Define using libm_alias_double.
32848 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
32849 <libm-alias-double.h>.
32850 (nextup): Define using libm_alias_double.
32851 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
32852 <libm-alias-double.h>.
32853 (roundeven): Define using libm_alias_double.
32854 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
32855 libm_alias_double.
32856 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
32857 <libm-alias-double.h>.
32858 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
32859 using libm_alias_double.
32860 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
32861 (cos): Define using libm_alias_double.
32862 (sin): Likewise.
32863 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
32864 <libm-alias-double.h>.
32865 (sincos): Define using libm_alias_double.
32866 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
32867 (tanh): Define using libm_alias_double.
32868 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
32869 <libm-alias-double.h>.
32870 (totalorder): Define using libm_alias_double.
32871 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
32872 <libm-alias-double.h>.
32873 (totalordermag): Define using libm_alias_double.
32874 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
32875 libm_alias_double.
32876 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
32877 libm_alias_double.
32878 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
32879 <libm-alias-double.h>.
32880 (getpayload): Define using libm_alias_double.
32881 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
32882 <libm-alias-double.h>.
32883 (roundeven): Define using libm_alias_double.
32884 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
32885 <libm-alias-double.h>.
32886 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
32887 <libm-alias-double.h>.
32888 (totalorder): Define using libm_alias_double.
32889 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
32890 <libm-alias-double.h>.
32891 (totalordermag): Define using libm_alias_double.
32892 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
32893 libc compat symbol here.
32894 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
32895 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
32896 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
32897 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
32898 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
32899 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
32900 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
32901 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
32902 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
32903 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
32904
8172aad9
L
329052017-09-29 H.J. Lu <hongjiu.lu@intel.com>
32906
32907 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
32908 _dl_relocate_static_pie instead of _dl_start to compute load
32909 address in static PIE. Return 0 if _DYNAMIC is undefined for
32910 static executable.
32911
54464e74
L
329122017-09-29 H.J. Lu <hongjiu.lu@intel.com>
32913
32914 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
32915 _DYNAMIC is undefined for static executable.
32916
f6c5e5bc
L
329172017-09-29 H.J. Lu <hongjiu.lu@intel.com>
32918
32919 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
32920
2f92505d
JM
329212017-09-29 Joseph Myers <joseph@codesourcery.com>
32922
32923 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
32924
bd8d53bb
WD
329252017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
32926
32927 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
32928 (__ieee754_lgamma_r): Use fabs rather than __fabs.
32929 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
32930 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
32931 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
32932 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
32933 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
32934 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
32935 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
32936 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
32937 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
32938 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
32939 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
32940 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
32941 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
32942 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
32943 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
32944
fffb1507
WD
329452017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
32946
32947 * math/bits/cmathcalls.h (cimag): Remove inline.
32948 (creal): Remove inline.
32949 (conj): Remove inline.
32950
4ea49f4c
SN
329512017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
32952
32953 * math/Makefile (type-float-routines): Add e_powf_log2_data.
32954 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
32955 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
32956 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
32957 (issignalingf_inline): Likewise.
32958 (POWF_LOG2_TABLE_BITS): Likewise.
32959 (POWF_LOG2_POLY_ORDER): Likewise.
32960 (POWF_SCALE_BITS): Likewise.
32961 (POWF_SCALE): Likewise.
32962 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
32963 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
32964 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
32965
875c76c7
SN
329662017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
32967
32968 * math/Makefile (type-float-routines): Add e_log2f_data.
32969 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
32970 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
32971 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
32972 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
32973 * sysdeps/i386/fpu/e_log2f_data.c: New file.
32974 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
32975 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
32976
90c42e40
SN
329772017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
32978
32979 * math/Makefile (type-float-routines): Add e_logf_data.
32980 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
32981 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
32982 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
32983 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
32984 * sysdeps/i386/fpu/e_logf_data.c: New file.
32985 * sysdeps/ia64/fpu/e_logf_data.c: New file.
32986 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
32987
4088d8dd
L
329882017-09-28 H.J. Lu <hongjiu.lu@intel.com>
32989
32990 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
32991 undefined _DYNAMIC in PIE libc.a.
32992 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
32993 Likewse.
32994
4d3693ec
WD
329952017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
32996
32997 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
32998 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
32999 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
33000 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
33001 (__signbit): Remove.
33002 (__signbitl): Remove.
33003 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
33004 (__signbit): Remove.
33005 (__signbitl): Remove.
33006 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
33007 (__signbit): Remove.
33008 (__signbitl): Remove.
33009 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
33010 (__signbit): Remove.
33011 (__signbitl): Remove.
33012 * sysdeps/tile/bits/mathinline.h: Delete file.
33013 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
33014 (__signbit): Remove.
33015 (__signbitl): Remove.
33016
1e6d0723
WD
330172017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
33018
33019 * math/math.h: Improve handling of C99 isgreater macros.
33020 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
33021 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
33022 * sysdeps/powerpc/bits/mathinline.h: Likewise.
33023 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
33024 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
33025
b2f03cf3
SN
330262017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
33027
33028 * sysdeps/aarch64/libm-test-ulps: Update.
33029
f124cb38
JM
330302017-09-28 Joseph Myers <joseph@codesourcery.com>
33031
33032 [BZ #22225]
33033 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
33034 math_opt_barrier on argument when doing arithmetic on it.
33035 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
33036 Likewise. Use math_force_eval not math_opt_barrier after
33037 arithmetic.
33038 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
33039 math_opt_barrier on argument when doing arithmetic on it.
33040 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
33041 Likewise.
33042
7edd0691
L
330432017-09-27 H.J. Lu <hongjiu.lu@intel.com>
33044
33045 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
33046 libc_hidden_def.
33047 (__freeifaddrs): Likewise.
33048
2c7bbfaf
ST
330492017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
33050
33051 * include/dirent.h (__dirfd): New declaration.
33052 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
33053 alias.
33054 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
33055 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
33056 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
52a1f181
ST
33057 * include/unistd.h (__revoke): New declaration.
33058 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
33059 alias.
33060 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
33061 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
33062 revoke.
64a4af28
ST
33063 * include/dirent.h (__seekdir): New declaration.
33064 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
33065 redefine as weak alias.
33066 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
33067 of seekdir.
4009ddc6
ST
33068 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
33069 and use libc_hidden_def on them.
33070 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
33071 them.
33072 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
33073 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
33074 instead of getifaddrs and freeifaddrs.
2c7bbfaf 33075
825adeee
L
330762017-09-26 H.J. Lu <hongjiu.lu@intel.com>
33077
33078 [BZ #18822]
33079 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
33080 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
33081 (__dso_handle): Remove declaration.
33082 * dlfcn/tstatexit.c (__dso_handle): Removed.
33083 (main): Don't check __dso_handle.
33084 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
33085 (main): Don't check __dso_handle.
33086 * include/dso_handle.h: New file.
33087 * malloc/mtrace.c: Include <dso_handle.h>.
33088 (mtrace): Pass __dso_handle directly.
33089 * nptl/pthread_atfork.c: Include <dso_handle.h>.
33090 (__dso_handle): Remove declaration.
33091 (__pthread_atfork): Pass __dso_handle directly.
33092 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
33093 (__dso_handle): Removed.
33094 * posix/wordexp-test.c: Include <dso_handle.h>.
33095 (__dso_handle): Remove declaration.
33096 (__app_register_atfork): Pass __dso_handle directly.
33097 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
33098 (__dso_handle): Remove declaration.
33099 (at_quick_exit): Pass __dso_handle directly.
33100 * stdlib/atexit.c: Include <dso_handle.h>.
33101 (__dso_handle): Remove declaration.
33102 (atexit): Pass __dso_handle directly.
33103 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
33104 (__dso_handle): Removed.
33105
bfb0deb3
JM
331062017-09-26 Joseph Myers <joseph@codesourcery.com>
33107
33108 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
33109 using VDSO.
33110
cebcb9f8
AM
331112017-09-26 Alexey Makhalov <amakhalov@vmware.com>
33112
33113 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
33114 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
33115 values to correct default value for given type.
33116
592d5c75
L
331172017-09-26 H.J. Lu <hongjiu.lu@intel.com>
33118
33119 [BZ #22101]
33120 * elf/Makefile (tests): Add tst-debug1.
33121 ($(objpfx)tst-debug1): New.
33122 ($(objpfx)tst-debug1.out): Likewise.
33123 ($(objpfx)tst-debug1mod1.so): Likewise.
33124 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
33125 with p_filesz == 0.
33126 * elf/tst-debug1.c: New file.
33127
2d9193f2
JM
331282017-09-26 Joseph Myers <joseph@codesourcery.com>
33129
33130 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
33131 Define using __ifunc.
33132
4c5a7a02
TMQMF
331332017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
33134
33135 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
33136 exp2f() values.
33137
12ef66c4
JM
331382017-09-26 Joseph Myers <joseph@codesourcery.com>
33139
33140 [BZ #22156]
33141 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
33142
44dade71
FW
331432017-09-26 Florian Weimer <fweimer@redhat.com>
33144
33145 * resolv/Makefile (tests-internal): Fix typo in comment.
33146
eaca16f1
FW
331472017-09-26 Florian Weimer <fweimer@redhat.com>
33148
33149 * resolv/nss_dns/dns-host.c: Fix typo in comment.
33150
ccf970c7
AZ
331512017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33152
5f9f31ad
AZ
33153 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
33154 Use an union instead of a max_align_t array for __space,
33155 so that __space is the same size on all platforms.
33156 * malloc/scratch_buffer_grow_preserve.c
33157 (__libc_scratch_buffer_grow_preserve): Likewise.
33158
ccf970c7
AZ
33159 [BZ #22183]
33160 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
33161 version to 2.
33162 * posix/Makefile (routines): Add glob-lstat-compat and
33163 glob64-lstat-compat.
33164 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
33165 * posix/glob-lstat-compat.c: New file.
33166 * posix/glob64-lstat-compat.c: Likewise.
33167 * posix/tst-glob_lstat_compat.c: Likewise.
33168 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
33169 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
33170 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
33171 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
33172 Likewise.
33173 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
33174 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
33175 * posix/glob.c (glob_lstat): New function.
33176 (glob): Rename to __glob and add versioned symbol to 2.27.
33177 (glob_in_dir): Use glob_lstat.
33178 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
33179 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
33180 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
33181 2.27.
33182 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
33183 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
33184 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
33185 gl_lstat on glob call.
33186 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
33187 and glob64 symbols.
33188 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
33189 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
33190 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
33191 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
33192 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
33193 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
33194 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
33195 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
33196 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
33197 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
33198 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
33199 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
33200 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
33201 Likewise.
33202 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
33203 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
33204 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
33205 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
33206 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
33207 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
33208 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
33209 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
33210 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
33211 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
33212 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
33213 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
33214
b4396163
L
332152017-09-25 H.J. Lu <hongjiu.lu@intel.com>
33216
33217 * configure.ac (AS): Require binutils 2.25 or later.
33218 * configure: Regenerated.
33219
8f834987
PP
332202017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
33221
33222 [BZ #22207]
33223 * stdlib/test-atexit-race-common.c (do_test): Minimize required
33224 VM size.
33225
3de93d19
DD
332262017-09-25 DJ Delorie <dj@redhat.com>
33227
33228 [BZ #22161]
33229 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
33230 resetting timeout.
33231
9947638d
SL
332322017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
33233
33234 * sysdeps/ieee754/dbl-64/sincos32.h
33235 [SINCCOS32_H]: Remove define.
33236 [SINCOS32_H]: Define.
33237
f5f0f526
SN
332382017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
33239
33240 * math/Versions (expf): New libm symbol at GLIBC_2.27.
33241 (exp2f): Likewise.
33242 * math/w_exp2f.c: New file.
33243 * math/w_expf.c: New file.
33244 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
33245 * math/w_expf_compat.c (__expf_compat): Likewise.
33246 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
33247 * sysdeps/ia64/fpu/e_expf.S: Likewise.
33248 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
33249 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
33250 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
33251 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
33252 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
33253 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
33254 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
33255 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
33256 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
33257 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
33258 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
33259 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
33260 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
33261 Likewise.
33262 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
33263 Likewise.
33264 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
33265 Likewise.
33266 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
33267 Likewise.
33268 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
33269 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
33270 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
33271 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
33272 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
33273 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
33274 Likewise.
33275 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
33276 Likewise.
33277 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
33278 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
33279 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
33280
72aa6233
SN
332812017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
33282
33283 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
33284 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
33285 (roundtoint, converttoint): Likewise.
33286 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
33287 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
33288 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
33289 * sysdeps/ieee754/flt-32/math_config.h: New file.
33290 * sysdeps/ieee754/flt-32/math_errf.c: New file.
33291 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
33292 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
33293 * sysdeps/i386/fpu/math_errf.c: New file.
33294 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
33295 * sysdeps/ia64/fpu/math_errf.c: New file.
33296 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
33297 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
33298
5e6f3253
ST
332992017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
33300
33301 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
33302 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
33303 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
33304 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
33305 to make sure that these symbols are defined.
b38a42a0
ST
33306 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
33307 of <limits.h>
33308 (__need_NULL): Do not define.
33309 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
33310 alignment.
33311 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
33312 CMGROUP_MAX, cmsgcred): Do not define.
33313 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
33314 NULL.
33315 * bits/socket.h: Likewise.
fcafcd16
ST
33316 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
33317 __gettimeofday instead of gettimeofday.
33318 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
33319 instead of settimeofday.
5e6f3253 33320
2f49ce7d
JM
333212017-09-22 Joseph Myers <joseph@codesourcery.com>
33322
33323 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
33324 (asinhf): Define using libm_alias_float.
33325 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
33326 (atanf): Define using libm_alias_float.
33327 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
33328 (cbrtf): Define using libm_alias_float.
33329 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
33330 (ceilf): Define using libm_alias_float.
33331 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
33332 <libm-alias-float.h>.
33333 (copysignf): Define using libm_alias_float.
33334 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
33335 (cosf): Define using libm_alias_float.
33336 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
33337 (erff): Define using libm_alias_float.
33338 (erfcf): Likewise.
33339 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
33340 (expm1f): Define using libm_alias_float.
33341 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
33342 (fabsf): Define using libm_alias_float.
33343 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
33344 (floorf): Define using libm_alias_float.
33345 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
33346 (frexpf): Define using libm_alias_float.
33347 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
33348 libm_alias_float.
33349 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
33350 <libm-alias-float.h>.
33351 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
33352 libm_alias_float.
33353 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
33354 <libm-alias-float.h>.
33355 (getpayloadf): Define using libm_alias_float.
33356 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
33357 <libm-alias-float.h>.
33358 (llrintf): Define using libm_alias_float.
33359 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
33360 <libm-alias-float.h>.
33361 (llroundf): Define using libm_alias_float.
33362 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
33363 (logbf): Define using libm_alias_float.
33364 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
33365 (lrintf): Define using libm_alias_float.
33366 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
33367 (lroundf): Define using libm_alias_float.
33368 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
33369 (modff): Define using libm_alias_float.
33370 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
33371 <libm-alias-float.h>.
33372 (nearbyintf): Define using libm_alias_float.
33373 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
33374 <libm-alias-float.h>.
33375 (nextafterf): Define using libm_alias_float.
33376 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
33377 <libm-alias-float.h>.
33378 (nextupf): Define using libm_alias_float.
33379 * sysdeps/ieee754/flt-32/s_remquof.c: Include
33380 <libm-alias-float.h>.
33381 (remquof): Define using libm_alias_float.
33382 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
33383 (rintf): Define using libm_alias_float.
33384 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
33385 <libm-alias-float.h>.
33386 (roundevenf): Define using libm_alias_float.
33387 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
33388 (roundf): Define using libm_alias_float.
33389 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
33390 using libm_alias_float.
33391 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
33392 <libm-alias-float.h>.
33393 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
33394 Define using libm_alias_float.
33395 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
33396 <libm-alias-float.h>.
33397 (sincosf): Define using libm_alias_float.
33398 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
33399 (sinf): Define using libm_alias_float.
33400 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
33401 (tanf): Define using libm_alias_float.
33402 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
33403 (tanhf): Define using libm_alias_float.
33404 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
33405 <libm-alias-float.h>.
33406 (totalorderf): Define using libm_alias_float.
33407 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
33408 <libm-alias-float.h>.
33409 (totalordermagf): Define using libm_alias_float.
33410 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
33411 (truncf): Define using libm_alias_float.
33412 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
33413 libm_alias_float.
33414 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
33415 libm_alias_float.
33416
c5c4a626
GG
334172017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
33418
33419 [BZ #22146]
33420 math/math.h: Let fpclassify use the builtin in C++ mode, even
33421 when optimazing for size.
33422
23947846
JM
334232017-09-22 Joseph Myers <joseph@codesourcery.com>
33424
33425 * csu/Makefile (generated): Do not add version-info.h.
33426 (before-compile): Likewise.
33427 (all-Banner-files): Remove variable.
33428 ($(objpfx)version-info.h): Remove rule.
33429 * csu/version.c (banner): Do not include "version-info.h".
33430 * libidn/Banner: Remove.
33431 * manual/contrib.texi (Simon Josefsson): New entry.
33432
9ac3c682
GG
334332017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
33434
33435 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
33436 Remove conditionals on LDBL_MANT_DIG.
33437 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
33438 (__ieee754_lgammal_r): Likewise.
33439
d2f0ed09
GG
334402017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
33441
33442 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
33443 _Float128 and L().
33444 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
33445 _Float128 and L(). Replace _Float128 with long double and L(x)
33446 with xL, throughout the file.
33447 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
33448 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
33449 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
33450 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
33451
c5c2e667
GG
334522017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
33453
33454 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
33455 sysdeps/ieee754/ldbl-128ibm.
33456 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
33457 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
33458 of including it. Keep _Float128 and L() intact. These will be
33459 reviewed by a separate patch.
33460 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
33461 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
33462 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
33463 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
33464
e010deb2
GG
334652017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
33466
33467 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
33468 (__finitef128): Define to __redirect___finitef128.
33469 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
33470 (__isinff128): Define to __redirect___isinff128.
33471 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
33472 (__isnanf128): Define to __redirect___isnanf128.
33473
ffa44804
GG
334742017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
33475
33476 * sysdeps/powerpc/powerpc64le/Makefile
33477 (CFLAGS-tst-strtod-nan-locale.c): New variable.
33478 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
33479
e5e4d7cc
PP
334802017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
33481 Carlos O'Donell <carlos@redhat.com>
33482
33483 [BZ #22180]
33484 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
33485 * stdlib/test-dlclose-exit-race.c: New file.
33486 * stdlib/test-dlclose-exit-race-helper.c: New file.
33487 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
33488
c10c5267
JM
334892017-09-21 Joseph Myers <joseph@codesourcery.com>
33490
33491 * crypt/Banner: Remove file.
33492 * nptl/Banner: Likewise.
33493 * resolv/Banner: Likewise.
33494 * soft-fp/Banner: Likewise.
33495 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
33496 ($(objpfx)version.d): Remove dependency on banner.h.
33497 ($(objpfx)version.os): Likewise.
33498 * nptl/version.c (banner): Do not include banner.h.
33499 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
33500 Jelinek and BIND code.
33501
1cc9e59a
PP
335022017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
33503 Carlos O'Donell <carlos@redhat.com>
33504
33505 * support/xdlfcn.h: New file.
33506 * support/xdlfcn.c: New file.
33507 * support/Makefile (libsupport-routines): Add xdlfcn.
33508 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
33509
ae8372d7
JM
335102017-09-20 Joseph Myers <joseph@codesourcery.com>
33511
33512 [BZ #20142]
33513 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
33514 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
33515 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
33516 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
33517 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
33518 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
33519 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
33520 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
33521
26e70aec 335222017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
b39d961c
TS
33523 Ricky Zhou <rickyz@google.com>
33524 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
26e70aec
PP
33525
33526 [BZ #14333]
33527 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
33528 Remove atomics.
33529 (__new_exitfn): Fail registration when we finished at_exit processing.
33530 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
33531 * stdlib/on_exit.c (__on_exit): Likewise.
33532 * stdlib/exit.c (__exit_funcs_done): New variable.
33533 (__run_exit_handlers): Use __exit_funcs_lock.
33534 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
33535 declarations.
33536 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
33537 (test-cxa_atexit-race, test-on_exit-race): New tests.
33538 * stdlib/test-atexit-race-common.c: New file.
33539 * stdlib/test-atexit-race.c: New file.
33540 * stdlib/test-at_quick_exit-race.c: New file.
33541 * stdlib/test-cxa_atexit-race.c: New file.
33542 * stdlib/test-on_exit-race.c: New file.
33543
0525ce48
SN
335442017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
33545
33546 * benchtests/Makefile: Add exp2f and log2f benchmarks.
33547 * benchtests/exp2f-inputs: Copy of expf-inputs.
33548 * benchtests/log2f-inputs: Copy of logf-inputs.
33549
d82468d1
JM
335502017-09-19 Joseph Myers <joseph@codesourcery.com>
33551
33552 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
33553 Explicitly take address of first element of array arguments in
33554 call to INLINE_SYSCALL.
33555
43ffc53a
AS
335562017-09-19 Andreas Schwab <schwab@suse.de>
33557
33558 [BZ #22134]
33559 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
33560 execveat first.
33561 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
33562 unimplemented.
33563 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
33564 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
33565 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
33566 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
33567 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
33568 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
33569 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
33570 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
33571 * posix/Makefile (tests): Add tst-fexecve.
33572 * posix/tst-fexecve.c: New file.
33573
a5dcc87e
WD
335742017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
33575
33576 * benchtests/Makefile: Add logf benchmark.
33577 * benchtests/logf-inputs: Add reduced trace from wrf_r.
33578
7024d544
WD
335792017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
33580
33581 * benchtests/Makefile: Add expf benchmark.
33582 * benchtests/expf-inputs: Add reduced trace from wrf_r.
33583
ca3a382e
WD
335842017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
33585
33586 * csu/Makefile: Add -funwind-tables to libc-start.c.
33587 * debug/Makefile: Add -funwind-tables to backtrace.c.
33588 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
33589 * sysdeps/arm/Makefile: Likewise.
33590 * sysdeps/i386/Makefile: Likewise.
33591 * sysdeps/m68k/Makefile: Likewise.
33592 * sysdeps/mips/Makefile: Likewise.
33593 * sysdeps/nios2/Makefile: Likewise.
33594 * sysdeps/sh/Makefile: Likewise.
33595 * sysdeps/sparc/Makefile: Likewise.
33596
eb375def
JM
335972017-09-19 Joseph Myers <joseph@codesourcery.com>
33598
33599 * benchtests/Makefile (bench-math): Add trunc and truncf.
33600 (CFLAGS-bench-trunc.c): New variable.
33601 (CFLAGS-bench-truncf.c): Likewise.
33602 * benchtests/trunc-inputs: New file.
33603 * benchtests/truncf-inputs: Likewise.
33604
bd17ba29
RS
336052017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
33606
33607 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
33608
92892fdb
JM
336092017-09-18 Joseph Myers <joseph@codesourcery.com>
33610
6d9b0b5a
JM
33611 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
33612 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
33613 redefine.
33614 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
33615 (exp10l): Define as weak alias.
33616 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
33617 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
33618 and redefine.
33619 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
33620 (remainderl): Define as weak alias.
33621
92892fdb
JM
33622 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
33623 (fmal): Define using libm_alias_ldouble.
33624 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
33625 (acoshl): Define using libm_alias_ldouble.
33626 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
33627 (acosl): Define using libm_alias_ldouble.
33628 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
33629 (asinl): Define using libm_alias_ldouble.
33630 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
33631 (atan2l): Define using libm_alias_ldouble.
33632 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
33633 (atanhl): Define using libm_alias_ldouble.
33634 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
33635 (coshl): Define using libm_alias_ldouble.
33636 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
33637 (exp10l): Define using libm_alias_ldouble.
33638 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
33639 (exp2l): Define using libm_alias_ldouble.
33640 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
33641 (expl): Define using libm_alias_ldouble.
33642 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
33643 (fmodl): Define using libm_alias_ldouble.
33644 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
33645 (hypotl): Define using libm_alias_ldouble.
33646 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
33647 (j0l): Define using libm_alias_ldouble.
33648 (y0l): Likewise.
33649 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
33650 (j1l): Define using libm_alias_ldouble.
33651 (y1l): Likewise.
33652 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
33653 (jnl): Define using libm_alias_ldouble.
33654 (ynl): Likewise.
33655 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
33656 (log10l): Define using libm_alias_ldouble.
33657 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
33658 (log2l): Define using libm_alias_ldouble.
33659 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
33660 (logl): Define using libm_alias_ldouble.
33661 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
33662 (powl): Define using libm_alias_ldouble.
33663 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
33664 (remainderl): Define using libm_alias_ldouble.
33665 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
33666 (sinhl): Define using libm_alias_ldouble.
33667 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
33668 (sqrtl): Define using libm_alias_ldouble.
33669 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
33670 (tgammal): Define using libm_alias_ldouble.
33671 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
33672 (exp10l): Do not use long_double_symbol here.
33673 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
33674 [LIBM_SVID_COMPAT] (remainderl): Likewise.
33675 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
33676 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
33677 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
33678 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
33679 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
33680 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
33681 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
33682 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
33683 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
33684 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
33685 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
33686 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
33687 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
33688 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
33689 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
33690 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
33691 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
33692 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
33693 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
33694 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
33695
6cd380dd
WB
336962017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
33697
33698 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
33699 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
33700
1c6d89e9
ST
337012017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
33702
33703 * io/read.c (read): Add libc_hidden_weak.
33704 * sysdeps/mach/hurd/read.c (read): Likewise.
33705 * io/write.c (write): Likewise.
33706 * sysdeps/mach/hurd/write.c (write): Likewise.
33707 * io/pread64.c (__pread64): Likewise.
33708 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
33709 * posix/pread64.c (__pread64): Add libc_hidden_def.
33710
06b1de23
SP
337112017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
33712
140647ea
SP
33713 * benchtests/scripts/compare_strings.py: New option -g.
33714 (draw_graph): Print a message that a graph is being generated.
33715 (process_results): Generate graph only if -g is passed.
33716 (main): Process option -g.
33717
5a6547b7
SP
33718 * benchtests/scripts/compare_strings.py (process_results):
33719 Better spacing for output.
33720
06b1de23
SP
33721 * benchtests/scripts/compare_strings.py: Use argparse.
33722 * benchtests/README: Document existence of compare_strings.py.
33723
c67a2328
JM
337242017-09-15 Joseph Myers <joseph@codesourcery.com>
33725
9ac44708
JM
33726 * math/s_fma.c: Include <libm-alias-double.h>.
33727 (fma): Define using libm_alias_double.
33728 * math/s_nextafter.c: Include <libm-alias-double.h>.
33729 (nextafter): Define using libm_alias_double.
33730 * math/w_acos_compat.c: Include <libm-alias-double.h>.
33731 (acos): Define using libm_alias_double.
33732 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
33733 (aocsh): Define using libm_alias_double.
33734 * math/w_asin_compat.c: Include <libm-alias-double.h>.
33735 (asin): Define using libm_alias_double.
33736 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
33737 (atan2): Define using libm_alias_double.
33738 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
33739 (atanh): Define using libm_alias_double.
33740 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
33741 (cosh): Define using libm_alias_double.
33742 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
33743 (exp10): Define using libm_alias_double.
33744 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
33745 (exp2): Define using libm_alias_double.
33746 * math/w_exp_compat.c: Include <libm-alias-double.h>.
33747 (exp): Define using libm_alias_double.
33748 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
33749 (fmod): Define using libm_alias_double.
33750 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
33751 (hypot): Define using libm_alias_double.
33752 * math/w_j0_compat.c: Include <libm-alias-double.h>.
33753 (j0): Define using libm_alias_double.
33754 (y0): Likewise.
33755 * math/w_j1_compat.c: Include <libm-alias-double.h>.
33756 (j1): Define using libm_alias_double.
33757 (y1): Likewise.
33758 * math/w_jn_compat.c: Include <libm-alias-double.h>.
33759 (jn): Define using libm_alias_double.
33760 (yn): Likewise.
33761 * math/w_log10_compat.c: Include <libm-alias-double.h>.
33762 (log10): Define using libm_alias_double.
33763 * math/w_log2_compat.c: Include <libm-alias-double.h>.
33764 (log2): Define using libm_alias_double.
33765 * math/w_log_compat.c: Include <libm-alias-double.h>.
33766 (log): Define using libm_alias_double.
33767 * math/w_pow_compat.c: Include <libm-alias-double.h>.
33768 (pow): Define using libm_alias_double.
33769 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
33770 (remainder): Define using libm_alias_double.
33771 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
33772 (sinh): Define using libm_alias_double.
33773 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
33774 (sqrt): Define using libm_alias_double.
33775 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
33776 (tgamma): Define using libm_alias_double.
33777 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
33778 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
33779 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
33780 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
33781 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
33782 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
33783 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
33784 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
33785 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
33786 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
33787 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
33788 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
33789 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
33790 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
33791 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
33792 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
33793 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
33794 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
33795 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
33796 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
33797 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
33798 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
33799 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
33800 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
33801 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
33802
c67a2328
JM
33803 * math/e_acoshl.c: Remove.
33804 * math/e_acosl.c: Likewise.
33805 * math/e_asinl.c: Likewise.
33806 * math/e_atan2l.c: Likewise.
33807 * math/e_atanhl.c: Likewise.
33808 * math/e_coshl.c: Likewise.
33809 * math/e_expl.c: Likewise.
33810 * math/e_fmodl.c: Likewise.
33811 * math/e_gammal_r.c: Likewise.
33812 * math/e_hypotl.c: Likewise.
33813 * math/e_j0l.c: Likewise.
33814 * math/e_j1l.c: Likewise.
33815 * math/e_jnl.c: Likewise.
33816 * math/e_lgammal_r.c: Likewise.
33817 * math/e_log10l.c: Likewise.
33818 * math/e_log2l.c: Likewise.
33819 * math/e_logl.c: Likewise.
33820 * math/e_powl.c: Likewise.
33821 * math/e_rem_pio2l.c: Likewise.
33822 * math/e_sinhl.c: Likewise.
33823 * math/e_sqrtf128.c: Likewise.
33824 * math/e_sqrtl.c: Likewise.
33825 * math/k_cosl.c: Likewise.
33826 * math/k_sinl.c: Likewise.
33827 * math/k_tanl.c: Likewise.
33828 * math/s_asinhl.c: Likewise.
33829 * math/s_atanl.c: Likewise.
33830 * math/s_cbrtl.c: Likewise.
33831 * math/s_erfl.c: Likewise.
33832 * math/s_expm1l.c: Likewise.
33833 * math/s_log1pl.c: Likewise.
33834 * math/s_tanhl.c: Likewise.
33835
61c45f25
TMQMF
338362017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
33837
33838 [BZ #21745]
33839 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
33840 [$(subdir) = math] (sysdep_calls): New variable. Has the
33841 previous contents of sysdep_routines, but re-sorted..
33842 [$(subdir) = math] (sysdep_routines): Re-use the contents from
33843 sysdep_calls.
33844 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
33845 defined in sysdep_calls and replace by the respective m_* names.
33846 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
33847 (compat_symbol): Undefine to avoid duplicated compat symbols in
33848 libc.
33849
5bcdb315
JM
338502017-09-15 Joseph Myers <joseph@codesourcery.com>
33851
33852 * math/s_fmaf.c: Include <libm-alias-float.h>.
33853 (fmaf): Define using libm_alias_float.
33854 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
33855 (acosf): Define using libm_alias_float.
33856 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
33857 (acoshf): Define using libm_alias_float.
33858 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
33859 (asinf): Define using libm_alias_float.
33860 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
33861 (atan2f): Define using libm_alias_float.
33862 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
33863 (atanhf): Define using libm_alias_float.
33864 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
33865 (coshf): Define using libm_alias_float.
33866 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
33867 (exp10f): Define using libm_alias_float.
33868 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
33869 (fmodf): Define using libm_alias_float.
33870 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
33871 (hypotf): Define using libm_alias_float.
33872 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
33873 (j0f): Define using libm_alias_float.
33874 (y0f): Likewise.
33875 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
33876 (j1f): Define using libm_alias_float.
33877 (y1f): Likewise.
33878 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
33879 (jnf): Define using libm_alias_float.
33880 (ynf): Likewise.
33881 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
33882 (log10f): Define using libm_alias_float.
33883 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
33884 (log2f): Define using libm_alias_float.
33885 * math/w_logf_compat.c: Include <libm-alias-float.h>.
33886 (logf): Define using libm_alias_float.
33887 * math/w_powf_compat.c: Include <libm-alias-float.h>.
33888 (powf): Define using libm_alias_float.
33889 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
33890 (remainderf): Define using libm_alias_float.
33891 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
33892 (sinhf): Define using libm_alias_float.
33893 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
33894 (sqrtf): Define using libm_alias_float.
33895 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
33896 (tgammaf): Define using libm_alias_float.
33897
01f28812
JM
338982017-09-14 Joseph Myers <joseph@codesourcery.com>
33899
33900 * include/math.h (roundeven): Change hidden_proto call to
33901 __roundeven.
33902 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
33903 alias.
33904 [NO_LONG_DOUBLE] (__j0l): New strong alias.
33905 (y0): Rename to __y0 and define as weak alias.
33906 [NO_LONG_DOUBLE] (__y0l): New strong alias.
33907 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
33908 alias.
33909 (y0f): Rename to __y0f and define as weak alias.
33910 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
33911 alias.
33912 [NO_LONG_DOUBLE] (__j1l): New strong alias.
33913 (y1): Rename to __y1 and define as weak alias.
33914 [NO_LONG_DOUBLE] (__y1l): New strong alias.
33915 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
33916 alias.
33917 (y1f): Rename to __y1f and define as weak alias.
33918 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
33919 alias.
33920 [NO_LONG_DOUBLE] (__jnl): New strong alias.
33921 (yn): Rename to __yn and define as weak alias.
33922 [NO_LONG_DOUBLE] (__ynl): New strong alias.
33923 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
33924 alias.
33925 (ynf): Rename to __ynf and define as weak alias.
33926 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
33927 (fromfp): Define as weak alias.
33928 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
33929 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
33930 (fromfpx): Define as weak alias.
33931 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
33932 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
33933 __getpayload and define as weak alias.
33934 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
33935 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
33936 __roundeven and define as weak alias.
33937 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
33938 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
33939 __setpayload.
33940 (setpayload): Define as weak alias.
33941 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
33942 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
33943 __setpayloadsig.
33944 (setpayloadsig): Define as weak alias.
33945 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
33946 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
33947 __totalorder and define as weak alias.
33948 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
33949 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
33950 to __totalordermag and define as weak alias.
33951 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
33952 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
33953 (ufromfp): Define as weak alias.
33954 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
33955 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
33956 __ufromfpx.
33957 (ufromfpx): Define as weak alias.
33958 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
33959 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
33960 Rename to __getpayload and define as weak alias.
33961 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
33962 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
33963 Rename to __roundeven and define as weak alias.
33964 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
33965 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
33966 Rename to __totalorder and define as weak alias.
33967 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
33968 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
33969 (totalordermag): Rename to __totalordermag and define as weak
33970 alias.
33971 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
33972 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
33973 macro.
33974 (__roundevenl): Likewise.
33975 (__totalorderl): Likewise.
33976 (__totalordermagl): Likewise
33977 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
33978 __fromfpf128.
33979 (fromfpf128): Define as weak alias.
33980 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
33981 __fromfpxf128.
33982 (fromfpxf128): Define as weak alias.
33983 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
33984 __setpayloadf128.
33985 (setpayloadf128): Define as weak alias.
33986 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
33987 __setpayloadsigf128.
33988 (setpayloadsigf128): Define as weak alias.
33989 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
33990 __ufromfpf128.
33991 (ufromfpf128): Define as weak alias.
33992 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
33993 __ufromfpxf128.
33994 (ufromfpxf128): Define as weak alias.
33995 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
33996 (fromfpf): Define as weak alias.
33997 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
33998 __fromfpxf.
33999 (fromfpxf): Define as weak alias.
34000 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
34001 __getpayloadf and define as weak alias.
34002 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
34003 __roundevenf and define as weak alias.
34004 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
34005 __setpayloadf.
34006 (setpayloadf): Define as weak alias.
34007 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
34008 __setpayloadsigf.
34009 (setpayloadsigf): Define as weak alias.
34010 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
34011 __totalorderf and define as weak alias.
34012 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
34013 Rename to __totalordermagf and define as weak alias.
34014 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
34015 __ufromfpf.
34016 (ufromfpf): Define as weak alias.
34017 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
34018 __ufromfpxf.
34019 (ufromfpxf): Define as weak alias.
34020 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
34021 __fromfpl.
34022 (fromfpl): Define as weak alias.
34023 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
34024 __fromfpxl.
34025 (fromfpxl): Define as weak alias.
34026 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
34027 to __getpayloadl and define as weak alias.
34028 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
34029 __roundevenl and define as weak alias.
34030 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
34031 __setpayloadl.
34032 (setpayloadl): Define as weak alias.
34033 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
34034 __setpayloadsigl.
34035 (setpayloadsigl): Define as weak alias.
34036 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
34037 to __totalorderl and define as weak alias.
34038 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
34039 Rename to __totalordermagl and define as weak alias.
34040 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
34041 __ufromfpl.
34042 (ufromfpl): Define as weak alias.
34043 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
34044 __ufromfpxl.
34045 (ufromfpxl): Define as weak alias.
34046 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
34047 __fromfpl.
34048 (fromfpl): Define as weak alias.
34049 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
34050 __fromfpxl.
34051 (fromfpxl): Define as weak alias.
34052 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
34053 Rename to __getpayloadl and define as weak alias.
34054 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
34055 to __roundevenl and define as weak alias. Call __roundeven
34056 instead of roundeven.
34057 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
34058 __setpayloadl.
34059 (setpayloadl): Define as weak alias.
34060 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
34061 __setpayloadsigl.
34062 (setpayloadsigl): Define as weak alias.
34063 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
34064 Rename to __totalorderl and define as weak alias.
34065 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
34066 Rename to __totalordermagl and define as weak alias.
34067 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
34068 __ufromfpl.
34069 (ufromfpl): Define as weak alias.
34070 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
34071 __ufromfpxl.
34072 (ufromfpxl): Define as weak alias.
34073 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
34074 __fromfpl.
34075 (fromfpl): Define as weak alias.
34076 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
34077 __fromfpxl.
34078 (fromfpxl): Define as weak alias.
34079 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
34080 __getpayloadl and define as weak alias.
34081 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
34082 __roundevenl and define as weak alias.
34083 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
34084 __setpayloadl.
34085 (setpayloadl): Define as weak alias.
34086 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
34087 __setpayloadsigl.
34088 (setpayloadsigl): Define as weak alias.
34089 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
34090 __totalorderl and define as weak alias.
34091 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
34092 Rename to __totalordermagl and define as weak alias.
34093 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
34094 __ufromfpl.
34095 (ufromfpl): Define as weak alias.
34096 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
34097 __ufromfpxl.
34098 (ufromfpxl): Define as weak alias.
34099
29c933fb
SP
341002017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
34101
503c92c3
SP
34102 * benchtests/bench-string.h (realloc_bufs): New function.
34103 (test_init): Call it.
34104 * benchtests/bench-memset-large.c (do_test): Likewise.
34105 * benchtests/bench-memset.c (do_test): Likewise.
34106
29c933fb
SP
34107 * benchtests/bench-memset-large.c: Print output in JSON
34108 format.
34109 * benchtests/bench-memset.c: Likewise.
34110
799c8d69
MF
341112017-09-14 Mike FABIAN <mfabian@redhat.com>
34112
34113 [BZ #21084]
34114 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
34115 * iconvdata/Makefile: Add IBM858.
34116 * iconvdata/gconv-modules: Likewise.
34117 * iconvdata/tst-tables.sh: Likewise.
34118 * iconvdata/ibm858.c: New file.
34119 * localedata/charmaps/IBM858: Likewise.
34120
c207f7ce 341212017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
fcc82c06
AK
34122
34123 [BZ #22023]
34124 * locales/niu_NZ (LC_TIME): copy "niu_NU".
34125 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
34126
f28a0926
AK
341272017-09-14 Mike FABIAN <mfabian@redhat.com>
34128
34129 [BZ #22112]
34130 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
34131 and add tel_int_fmt.
34132
02093e62
JM
341332017-09-14 Joseph Myers <joseph@codesourcery.com>
34134
34135 * sysdeps/generic/libm-alias-float128.h: New file.
34136 * sysdeps/generic/math-type-macros-float128.h: Include
34137 <libm-alias-float128.h>.
34138 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
34139
1aae75ef
JM
341402017-09-13 Joseph Myers <joseph@codesourcery.com>
34141
34142 * sysdeps/generic/libm-alias-ldouble.h: New file.
34143 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
34144 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
34145 * sysdeps/generic/math-type-macros-ldouble.h: Include
34146 <libm-alias-ldouble.h>.
34147 [!declare_mgen_alias] (declare_mgen_alias): Define to use
34148 libm_alias_ldouble.
34149
bcea7ad6
SN
341502017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
34151
34152 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
34153 * math/w_exp_compat.c: ... here.
34154 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
34155 * math/w_expf_compat.c: ... here.
34156 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
34157 * math/w_expl_compat.c: ... here.
34158 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
34159 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
34160 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
34161 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
34162
0fc56478
JM
341632017-09-13 Joseph Myers <joseph@codesourcery.com>
34164
34165 * math/w_scalbln_template.c (strong_alias): Do not undefine and
34166 redefine.
34167 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
34168 macro.
34169 (ldexpl): Only define as compat symbol for libc, not libm.
34170 (scalbnl): Define as compat symbol for libc here.
34171 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
34172 define for [IS_IN (libc)].
34173 (__ldexpl_2): Remove alias.
34174 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
34175 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
34176 name in long_double_symbol call.
34177 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
34178 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
34179 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
34180 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
34181 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
34182 Remove macro.
34183 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
34184 Define as compat symbol.
34185
3ca622e4
AZ
341862017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34187
34188 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
34189 * sysdeps/unix/sysv/linux/alpha/Makefile
34190 [$(subdir) = csu] (sysdep_routines): Remove rule.
34191
620ff9ee
JM
341922017-09-13 Joseph Myers <joseph@codesourcery.com>
34193
34194 * sysdeps/generic/libm-alias-double.h: New file.
34195 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
34196 * sysdeps/generic/math-type-macros-double.h: Include
34197 <libm-alias-double.h>.
34198 [declare_mgen_alias] (declare_mgen_alias): Define to use
34199 libm_alias_double.
34200 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
34201 (M_LIBM_NEED_COMPAT): Remove macro.
34202 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
34203 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
34204 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
34205 code.
34206 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34207 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34208 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34209 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34210 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34211 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34212 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34213 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34214 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34215 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34216 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34217 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34218 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34219 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34220 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34221 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34222 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34223 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34224 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34225 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34226 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34227 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34228 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34229 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34230 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34231 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34232 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
34233 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
34234 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
34235 macro.
34236 (declare_mgen_alias): New macro.
34237 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
34238 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
34239 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
34240 (M_LIBM_NEED_COMPAT): Remove macro.
34241 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
34242 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
34243 <first-versions.h>.
34244 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
34245 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
34246
a891caff
JM
342472017-09-12 Joseph Myers <joseph@codesourcery.com>
34248
34249 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
34250 (declare_mgen_alias_2): Remove.
34251 * sysdeps/generic/math-type-macros-double.h
34252 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
34253 Likewise.
34254 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
34255 alias.
34256 (ldexp): Define with declare_mgen_alias.
34257 (scalbn): Likewise.
34258
a1a78204
SE
342592017-09-12 Steve Ellcey <sellcey@cavium.com>
34260
34261 * grp/initgroups.c: Include config.h.
34262 (DEFAULT_CONFIG): New macro.
34263 (internal_getgrouplist): Use DEFAULT_CONFIG.
34264 * nscd/initgrcache.c (addinitgroupsX): Likewise.
34265 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
34266 (DEFAULT_DEFCONFIG): New macro.
34267 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
34268 * nss/grp-lookup.c: Include config.h
34269 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
34270 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
34271 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
34272 * manual/nss.texi: Update default values section.
34273
ef8adeb0
L
342742017-09-12 H.J. Lu <hongjiu.lu@intel.com>
34275
34276 [BZ #21967]
34277 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
34278 New.
34279 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
34280 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
34281 Handle MathVec_Prefer_No_AVX512.
34282 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
34283 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
34284 is set.
34285
a166531f
ST
342862017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
34287
34288 * posix/sched_primax.c (__sched_get_priority_max): Add
34289 libc_hidden_def.
34290 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
34291 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
34292 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
34293 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
34294 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
34295 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
34296 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
34297 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
34298 Add aliases.
34299
4b7d1efb
JM
343002017-09-11 Joseph Myers <joseph@codesourcery.com>
34301
34302 * sysdeps/generic/libm-alias-float.h: New file.
34303 * sysdeps/generic/math-type-macros-float.h: Include
34304 <libm-alias-float.h>.
34305 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
34306
45ff3463
L
343072017-09-11 H.J. Lu <hongjiu.lu@intel.com>
34308
34309 [BZ #22093]
34310 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
34311 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
34312 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
34313 (HWCAP_IMPORTANT): Likewise.
34314 (HWCAP_X86_64): New enum.
34315 (HWCAP_X86_AVX512_1): Updated.
34316 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
34317 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
34318 (modules-names): Add x86_64/tst-x86_64mod-1.
34319 (LDFLAGS-tst-x86_64mod-1.so): New.
34320 ($(objpfx)tst-x86_64-1): Likewise.
34321 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
34322 (tst-x86_64-1-clean): Likewise.
34323 * sysdeps/x86_64/tst-x86_64-1.c: New file.
34324 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
34325
891abfd3
SP
343262017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
34327
34328 * po/sv.po: Update translations.
34329 * po/fr.po: Likewise.
34330
00c3da43
ST
343312017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
34332
34333 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
34334 seconds.
3bdfd9fb
ST
34335 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
34336 seconds.
65b22ebc 34337 * elf/rtld-Rules: Fix $(error) use.
00c3da43 34338
96480903
MF
343392017-09-09 Mike FABIAN <mfabian@redhat.com>
34340
34341 [BZ #14925]
34342 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
34343 * locale/iso-639.def: Change “Bengali” to “Bangla”.
34344 * localedata/locales/bn_BD: “Bengali” was still used in some
34345 comments. Change it to “Bangla”.
34346
4c03a696
MT
343472017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
34348
34349 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
34350
9c9ec581
SE
343512017-09-08 Steve Ellcey <sellcey@cavium.com>
34352
34353 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
34354 thunderx2t99p1 to list of cpu names.
34355 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
34356 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
34357
f00bce74
SE
343582017-09-08 Steve Ellcey <sellcey@cavium.com>
34359
34360 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
34361 Use strcmp instead of tunable_is_name.
34362
27342d17
JM
343632017-09-08 Joseph Myers <joseph@codesourcery.com>
34364
af1b7c8c
JM
34365 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
34366 (F_GET_RW_HINT): New macro.
34367 [__USE_GNU] (F_SET_RW_HINT): Likewise.
34368 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
34369 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
34370 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
34371 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
34372 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
34373 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
34374 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
34375 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
34376
27342d17
JM
34377 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
34378 (F_ADD_SEALS): New macro.
34379 [__USE_GNU] (F_GET_SEALS): Likewise.
34380 [__USE_GNU] (F_SEAL_SEAL): Likewise.
34381 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
34382 [__USE_GNU] (F_SEAL_GROW): Likewise.
34383 [__USE_GNU] (F_SEAL_WRITE): Likewise.
34384
c66c9082
AZ
343852017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34386
07b4f49d
AZ
34387 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
34388 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
34389 * posix/glob_internal.h (__glob_pattern_type):
34390 * posix/glob.c (glob):
34391 * posix/glob_pattern_p.c (__glob_pattern_p):
34392 Use them.
34393
116f1c64
AZ
34394 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
34395 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
34396 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
34397 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
34398 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
34399 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
34400 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
34401 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
34402 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
34403 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
34404 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
34405 * sysdeps/wordsize-64/glob.c: Likewise.
34406 * sysdeps/wordsize-64/glob64.c: Likewise.
34407 * sysdeps/wordsize-64/globfree.c: Likewise.
34408 * sysdeps/wordsize-64/globfree64.c: Likewise.
34409 * sysdeps/unix/sysv/linux/glob.c: New file.
34410 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
34411 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
34412 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
34413 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
34414 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
34415 adds !GLOB_NO_OLD_VERSION as an extra condition.
34416 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
34417 using relative path instead of absolute one.
34418 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
34419 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
34420 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
34421 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
34422 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
34423 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
34424
ffca8901
AZ
34425 [BZ #1062]
34426 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
34427 (glob): Use the same scratch buffer for both getlogin_r and
34428 getpwnam_r. Don’t require preallocation of the login name. This
34429 simplifies storage allocation, and corrects the handling of
34430 long login names.
34431
5a79f975
AZ
34432 [BZ #1062]
34433 * posix/glob.c (glob): Port recent patches to platforms
34434 lacking getpwnam_r.
34435 (glob): Fix longstanding misuse of errno after getpwnam_r, which
34436 returns an error number rather than setting errno.
34437
e00f2425
AZ
34438 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
34439 instead of GCC extension.
34440 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
34441 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
34442 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
34443
5554304f
AZ
34444 [BZ #866]
34445 [BZ #1062]
34446 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
34447 * posix/bug-glob1.c: Remove file.
34448 * posix/tst-glob_symlinks.c: New file.
34449 * posix/glob.c (__lstat64): New macro.
34450 (is_dir): New function.
34451 (glob, glob_in_dir): Match symlinks even if they are dangling.
34452 (link_stat, link_exists_p): Remove. All uses removed.
34453
686f2ea1
AZ
34454 [BZ #1062]
34455 [BZ #19971]
34456 * posix/glob.c (struct readdir_result): Remove skip_entry member.
34457 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
34458 All uses removed.
34459
c66c9082 34460 [BZ #1062]
914c9994 34461 CVE-2017-15671
c66c9082
AZ
34462 * posix/Makefile (routines): Add globfree, globfree64, and
34463 glob_pattern_p.
34464 * posix/flexmember.h: New file.
34465 * posix/glob_internal.h: Likewise.
34466 * posix/glob_pattern_p.c: Likewise.
34467 * posix/globfree.c: Likewise.
34468 * posix/globfree64.c: Likewise.
34469 * sysdeps/gnu/globfree64.c: Likewise.
34470 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
34471 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
34472 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
34473 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
34474 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
34475 * sysdeps/wordsize-64/globfree.c: Likewise.
34476 * sysdeps/wordsize-64/globfree64.c: Likewise.
34477 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
34478 [NDEBUG): Remove comments.
34479 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
34480 (dirent_type): New type. Use uint_fast8_t not
34481 uint8_t, as C99 does not require uint8_t.
34482 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
34483 (struct readdir_result): Use dirent_type. Do not define skip_entry
34484 unless it is needed; this saves a byte on platforms lacking d_ino.
34485 (readdir_result_type, readdir_result_skip_entry):
34486 New functions, replacing ...
34487 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
6b5c8607 34488 these functions, which were removed. This makes the callers
c66c9082
AZ
34489 easier to read. All callers changed.
34490 (D_INO_TO_RESULT): Now empty if there is no d_ino.
34491 (size_add_wrapv, glob_use_alloca): New static functions.
34492 (glob, glob_in_dir): Check for size_t overflow in several places,
34493 and fix some size_t checks that were not quite right.
34494 Remove old code using SHELL since Bash no longer
34495 uses this.
34496 (glob, prefix_array): Separate MS code better.
34497 (glob_in_dir): Remove old Amiga and VMS code.
34498 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
34499 separate files.
34500 (glob_in_dir): Do not rely on undefined behavior in accessing
34501 struct members beyond their bounds. Use a flexible array member
34502 instead
34503 (link_stat): Rename from link_exists2_p and return -1/0 instead of
34504 0/1. Caller changed.
34505 (glob): Fix memory leaks.
34506 * posix/glob64 (globfree64): Move to separate file.
34507 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
34508 (globfree64): Remove hidden alias.
34509 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
34510 oldglob.
34511 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
34512 separate file.
34513 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
34514 define.
34515 Move compat code to separate file.
34516 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
34517 separate file.
34518
78bfa877
L
345192017-09-07 H.J. Lu <hongjiu.lu@intel.com>
34520
34521 * resolv/tst-resolv-qtypes.c (domain): Changed to
34522 "const char domain[] =".
34523
05f0011f
JM
345242017-09-07 Joseph Myers <joseph@codesourcery.com>
34525
85bec0f2
JM
34526 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
34527 version to 3.1.6.
34528
5c23ee6e
JM
34529 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
34530 (TCP_MD5SIG_EXT): Likewise.
34531 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
34532 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
34533 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
34534
05f0011f
JM
34535 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
34536
7c9c5be9
MF
345372017-09-07 Mike FABIAN <mfabian@redhat.com>
34538
34539 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
34540
c207f7ce 345412017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
ae214523
AK
34542
34543 [BZ #22100]
34544 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
34545
507fe027
ST
345462017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
34547
34548 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
34549 before assuming that the file is empty. Avoid testing buffer content
34550 when nread == 0.
34551
65687ac7
AZ
345522017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34553
7bbbb4b9 34554 [BZ #18858]
65687ac7
AZ
34555 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
34556 Remove define.
34557 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
34558 Likewise.
34559 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
34560 Likewise.
34561 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
34562 Likewise.
34563 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
34564 Likewise.
34565 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
34566 Likewise.
34567 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
34568 Likewise.
34569
ab5ac271
FW
345702017-09-06 Florian Weimer <fweimer@redhat.com>
34571
34572 * malloc/dynarray_emplace_enlarge.c
34573 (__libc_dynarray_emplace_enlarge): Add missing else.
34574
a8304730
FW
345752017-09-06 Florian Weimer <fweimer@redhat.com>
34576
34577 [BZ #22096]
34578 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
34579 case of failure to obtain the global conf object.
34580
5670c4ab
FW
345812017-09-06 Florian Weimer <fweimer@redhat.com>
34582
34583 [BZ #22095]
34584 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
34585 dynarray allocation failure.
34586
c77eb969
FW
345872017-09-06 Florian Weimer <fweimer@redhat.com>
34588
34589 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
34590 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
34591 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
34592 New functions.
34593 (response): Call them. Add 'p', '6' flag processing.
34594 (test_reverse): New function.
34595 (test_get2_any): Call it.
34596 (test_no_inet6): Add 'p' test.
34597 (test_inet6): Likewise.
34598
5e9c4d17
FW
345992017-09-06 Florian Weimer <fweimer@redhat.com>
34600
34601 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
34602 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
34603 the QNAME.
34604 (test_gai): Adjust query names. Add additional tests.
34605 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
34606 test_get2. Adjust query names. Add additional tests.
34607 (test_no_inet6): New function, extracted from threadfunc.
34608 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
34609 Add additional tests.
34610
2ae5be04
MF
346112017-09-06 Mike FABIAN <mfabian@redhat.com>
34612
34613 [BZ #22070]
34614 * localedata/unicode-gen/utf8_gen.py: Set the width for
34615 characters with Prepended_Concatenation_Mark property to 1
34616 * localedata/charmaps/UTF-8: Updated using the improved script.
34617
af83ed5c
MF
346182017-09-06 Mike FABIAN <mfabian@redhat.com>
34619
34620 [BZ #21750]
34621 * localedata/unicode-gen/utf8_gen.py: Improve the script to
34622 use the range notation for all ranges of neighbouring characters
34623 with the same width.
34624
4f3647e4
JM
346252017-09-05 Joseph Myers <joseph@codesourcery.com>
34626
34627 * sysdeps/generic/math-type-macros-double.h: Include
34628 <math-svid-compat.h>.
34629 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
34630 * sysdeps/generic/math-type-macros-float.h: Include
34631 <math-svid-compat.h>.
34632 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
34633 * sysdeps/generic/math-type-macros-ldouble.h: Include
34634 <math-svid-compat.h>.
34635 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
34636 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
34637 condition.
34638 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
34639 * math/w_acosf_compat.c: Likewise.
34640 * math/w_acosh_compat.c: Likewise.
34641 * math/w_acoshf_compat.c: Likewise.
34642 * math/w_acoshl_compat.c: Likewise.
34643 * math/w_acosl_compat.c: Likewise.
34644 * math/w_asin_compat.c: Likewise.
34645 * math/w_asinf_compat.c: Likewise.
34646 * math/w_asinl_compat.c: Likewise.
34647 * math/w_atan2_compat.c: Likewise.
34648 * math/w_atan2f_compat.c: Likewise.
34649 * math/w_atan2l_compat.c: Likewise.
34650 * math/w_atanh_compat.c: Likewise.
34651 * math/w_atanhf_compat.c: Likewise.
34652 * math/w_atanhl_compat.c: Likewise.
34653 * math/w_cosh_compat.c: Likewise.
34654 * math/w_coshf_compat.c: Likewise.
34655 * math/w_coshl_compat.c: Likewise.
34656 * math/w_exp10_compat.c: Likewise.
34657 * math/w_exp10f_compat.c: Likewise.
34658 * math/w_exp10l_compat.c: Likewise.
34659 * math/w_exp2_compat.c: Likewise.
34660 * math/w_exp2f_compat.c: Likewise.
34661 * math/w_exp2l_compat.c: Likewise.
34662 * math/w_fmod_compat.c: Likewise.
34663 * math/w_fmodf_compat.c: Likewise.
34664 * math/w_fmodl_compat.c: Likewise.
34665 * math/w_hypot_compat.c: Likewise.
34666 * math/w_hypotf_compat.c: Likewise.
34667 * math/w_hypotl_compat.c: Likewise.
34668 * math/w_j0_compat.c: Likewise.
34669 * math/w_j0f_compat.c: Likewise.
34670 * math/w_j0l_compat.c: Likewise.
34671 * math/w_j1_compat.c: Likewise.
34672 * math/w_j1f_compat.c: Likewise.
34673 * math/w_j1l_compat.c: Likewise.
34674 * math/w_jn_compat.c: Likewise.
34675 * math/w_jnf_compat.c: Likewise.
34676 * math/w_jnl_compat.c: Likewise.
34677 * math/w_lgamma_r_compat.c: Likewise.
34678 * math/w_lgammaf_r_compat.c: Likewise.
34679 * math/w_lgammal_r_compat.c: Likewise.
34680 * math/w_log10_compat.c: Likewise.
34681 * math/w_log10f_compat.c: Likewise.
34682 * math/w_log10l_compat.c: Likewise.
34683 * math/w_log2_compat.c: Likewise.
34684 * math/w_log2f_compat.c: Likewise.
34685 * math/w_log2l_compat.c: Likewise.
34686 * math/w_log_compat.c: Likewise.
34687 * math/w_logf_compat.c: Likewise.
34688 * math/w_logl_compat.c: Likewise.
34689 * math/w_pow_compat.c: Likewise.
34690 * math/w_powf_compat.c: Likewise.
34691 * math/w_powl_compat.c: Likewise.
34692 * math/w_remainder_compat.c: Likewise.
34693 * math/w_remainderf_compat.c: Likewise.
34694 * math/w_remainderl_compat.c: Likewise.
34695 * math/w_sinh_compat.c: Likewise.
34696 * math/w_sinhf_compat.c: Likewise.
34697 * math/w_sinhl_compat.c: Likewise.
34698 * math/w_sqrt_compat.c: Likewise.
34699 * math/w_sqrtf_compat.c: Likewise.
34700 * math/w_sqrtl_compat.c: Likewise.
34701 * math/w_tgamma_compat.c: Likewise.
34702 * math/w_tgammaf_compat.c: Likewise.
34703 * math/w_tgammal_compat.c: Likewise.
34704 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
34705 [LIBM_SVID_COMPAT].
34706 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
34707 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
34708 [LIBM_SVID_COMPAT].
34709 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
34710 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
34711 [LIBM_SVID_COMPAT].
34712 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
34713 * sysdeps/i386/fpu/w_sqrt.c: New file.
34714 * sysdeps/ia64/fpu/w_acos.c: Likewise.
34715 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
34716 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
34717 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
34718 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
34719 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
34720 * sysdeps/ia64/fpu/w_asin.c: Likewise.
34721 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
34722 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
34723 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
34724 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
34725 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
34726 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
34727 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
34728 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
34729 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
34730 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
34731 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
34732 * sysdeps/ia64/fpu/w_exp.c: Likewise.
34733 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
34734 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
34735 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
34736 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
34737 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
34738 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
34739 * sysdeps/ia64/fpu/w_expf.c: Likewise.
34740 * sysdeps/ia64/fpu/w_expl.c: Likewise.
34741 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
34742 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
34743 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
34744 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
34745 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
34746 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
34747 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
34748 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
34749 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
34750 * sysdeps/ia64/fpu/w_log.c: Likewise.
34751 * sysdeps/ia64/fpu/w_log10.c: Likewise.
34752 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
34753 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
34754 * sysdeps/ia64/fpu/w_log2.c: Likewise.
34755 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
34756 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
34757 * sysdeps/ia64/fpu/w_logf.c: Likewise.
34758 * sysdeps/ia64/fpu/w_logl.c: Likewise.
34759 * sysdeps/ia64/fpu/w_pow.c: Likewise.
34760 * sysdeps/ia64/fpu/w_powf.c: Likewise.
34761 * sysdeps/ia64/fpu/w_powl.c: Likewise.
34762 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
34763 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
34764 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
34765 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
34766 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
34767 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
34768 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
34769 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
34770 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
34771 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
34772 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
34773 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
34774 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
34775 [LIBM_SVID_COMPAT].
34776 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
34777 * sysdeps/ieee754/k_standard.c: Likewise.
34778 * sysdeps/ieee754/k_standardf.c: Likewise.
34779 * sysdeps/ieee754/k_standardl.c: Likewise.
34780 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
34781 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
34782 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
34783 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
34784 long_double_symbol call on [LIBM_SVID_COMPAT].
34785 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
34786 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
34787 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
34788 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
34789 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
34790 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
34791 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
34792 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
34793 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
34794 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
34795 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
34796 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
34797 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
34798 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
34799 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
34800 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
34801 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
34802 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
34803 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
34804 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
34805 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
34806 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
34807
05b38d64
SE
348082017-09-05 Steve Ellcey <sellcey@cavium.com>
34809
34810 * include/shlib-compat.h (TEST_COMPAT): New Macro.
34811 * malloc/tst-mallocstate.c: Convert from test-skeleton
34812 to test-driver. Ifdef code using TEST_COMPAT macro.
34813 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
34814 * math/test-matherr.c: Likewise.
34815
99d67918
JM
348162017-09-05 Joseph Myers <joseph@codesourcery.com>
34817
34818 [BZ #22086]
34819 * debug/pcprofiledump.c (main): Use byte-swapped mask when
34820 comparing word with byte-swapped constant.
34821
c207f7ce 348222017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
3f802aeb
MF
34823
34824 [BZ #20498]
34825 * locale/iso-639.def: add Miskito.
34826 * localedata/SUPPORTED: Add miq_NI/UTF-8.
34827 * localedata/locales/miq_NI: New file.
34828
0a587a8a
L
348292017-09-04 H.J. Lu <hongjiu.lu@intel.com>
34830
34831 [BZ #18822]
34832 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
34833 (__mkdir): Likewise.
34834 * io/chmod.c (__chmod): Add libc_hidden_def.
34835 * io/mkdir.c (__mkdir): Likewise.
34836 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
34837 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
34838 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
34839 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
34840
f3a129b8
JM
348412017-09-04 Joseph Myers <joseph@codesourcery.com>
34842
1650e192
JM
34843 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
34844 version to 4.13.
34845
f3a129b8
JM
34846 [BZ #22082]
34847 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
34848 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
34849
b38042f5
FW
348502017-09-04 Florian Weimer <fweimer@redhat.com>
34851
34852 * math/math.h: Issue warning if log is defined.
34853
059b6404
JM
348542017-09-04 Joseph Myers <joseph@codesourcery.com>
34855
34856 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
34857 kernel version to 4.13.
34858
b794e16b
ST
348592017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
34860
34861 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
06cf9d31
ST
34862 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
34863 parameter.
01969395
ST
34864 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
34865 just <bits/types.h>.
dd2b31de 34866 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
ed95bf56 34867 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
dd2b31de 34868 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
ed95bf56 34869 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
2263ca7c
ST
34870 * misc/preadv2.c: Include <errno.h>.
34871 * misc/preadv64v2.c: Include <errno.h>.
34872 * misc/pwritev2.c: Include <errno.h>.
34873 * misc/pwritev64v2.c: Include <errno.h>.
34874 * sysdeps/posix/preadv2.c: Include <errno.h>.
34875 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
34876 Fix <unistd.h> inclusion.
34877 * sysdeps/posix/pwritev2.c: Include <errno.h>.
34878 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
cae3d712
ST
34879 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
34880 __strtoul_internal): New functions.
127e7773
ST
34881 * sysdeps/posix/pause.c: Include <sigsetops.h>.
34882 * sysdeps/posix/system.c: Include <sigsetops.h>.
f85958a7
ST
34883 * sysdeps/mach/hurd/i386/Makefile
34884 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
34885 [$(subdir) = csu] (sysdep-only-routines): Likewise.
34886 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
1946d950
ST
34887 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
34888 __feraiseexcept_renamed to feraiseexcept instead of
34889 __GI_feraiseexcept.
56bf5497 34890 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
2ce1f9ef 34891 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
492cbbed
ST
34892 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
34893 RWF_NOWAIT): Define to 0 if undefined already.
34894 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
34895 boils down to 0.
6547ec0a
ST
34896 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
34897 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
b794e16b 34898
5a80d39d
JM
348992017-09-01 Joseph Myers <joseph@codesourcery.com>
34900
34901 * manual/math.texi (pow10): Do not document.
34902 (pow10f): Likewise.
34903 (pow10l): Likewise.
34904 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
34905 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
34906 * math/libm-test-exp10.inc (pow10_test): Remove.
34907 (do_test): Do not call pow10.
34908 * math/w_exp10_compat.c (pow10): Make into compat symbol.
34909 [NO_LONG_DOUBLE] (pow10l): Likewise.
34910 * math/w_exp10f_compat.c (pow10f): Likewise.
34911 * math/w_exp10l_compat.c (pow10l): Likewise.
34912 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
34913 (pow10): Make into compat symbol.
34914 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
34915 (pow10f): Make into compat symbol.
34916 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
34917 (pow10l): Make into compat symbol.
34918 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
34919 pow10.
34920 (CFLAGS-nldbl-pow10.c): Remove variable..
34921 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
34922 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
34923 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
34924 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
34925 Undefine and redefine.
34926 (pow10l): Make into compat symbol.
34927 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
34928 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
34929 * sysdeps/arm/libm-test-ulps: Likewise.
34930 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
34931 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
34932 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
34933 * sysdeps/microblaze/libm-test-ulps: Likewise.
34934 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
34935 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
34936 * sysdeps/nios2/libm-test-ulps: Likewise.
34937 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
34938 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
34939 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
34940 * sysdeps/sh/libm-test-ulps: Likewise.
34941 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
34942 * sysdeps/tile/libm-test-ulps: Likewise.
34943 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34944
3824fc38
PP
349452017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
34946
34947 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
34948
b3008279
L
349492017-09-01 H.J. Lu <hongjiu.lu@intel.com>
34950
34951 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
34952 "../ChangeLog.old/ChangeLog.8".
34953 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
34954 "../ChangeLog.old/ChangeLog.14".
34955
136fa185
L
349562017-09-01 H.J. Lu <hongjiu.lu@intel.com>
34957
34958 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
34959 Threads Library.
34960
c18d50a2
JM
349612017-09-01 Joseph Myers <joseph@codesourcery.com>
34962
34963 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
34964
bedbd859
L
349652017-09-01 H.J. Lu <hongjiu.lu@intel.com>
34966
34967 * csu/version.c (banner): Remove "by Roland McGrath et al.".
34968 * nptl/Banner: Remove "by Ulrich Drepper et al.".
34969
50c66c7a
PP
349702017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
34971
34972 * stdlib/tst-atexit-common.c (do_test): Test support for at least
34973 32 atexit handlers.
34974
a617bd11
ZW
349752017-09-01 Zack Weinberg <zackw@panix.com>
34976
34977 * math/math.h (HUGE_VAL): Improve commentary.
34978
e0d2eb5a
AZ
349792017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34980 Andreas Schwab <schwab@suse.de>
34981
34982 [BZ #21530]
34983 * include/stdio.h (__gen_tempfd): New function.
34984 * stdio-common/Makefile (routines): Add gentempfd.
34985 * stdio-common/gentempfd.c: New file.
34986 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
34987 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
34988 unnamed file first.
34989
f4a6be25
FW
349902017-09-01 Florian Weimer <fweimer@redhat.com>
34991
34992 [BZ #21915]
34993 [BZ #21922]
34994 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
34995 result to determine success or failure, not the errno value.
34996 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
34997 (tst-nss-files-hosts-erange): Link with -ldl.
34998 * nss/tst-nss-files-hosts-erange.c: New file.
34999 * nss/tst-resolv-basic.c (response): Handle nodata.example.
35000 (do_test): Add NO_DATA tests.
35001 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
35002 (do_test): Call it.
35003
5f8340f5
FW
350042017-09-01 Florian Weimer <fweimer@redhat.com>
35005
35006 [BZ #21922]
35007 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
35008 coming from gethostbyname2_r.
35009
65329bd2
FW
350102017-09-01 Florian Weimer <fweimer@redhat.com>
35011
35012 * support/namespace.h (struct support_chroot_configuration): Add
35013 hosts, host_conf.
35014 (struct support_chroot): Add path_hosts, path_host_conf.
35015 * support/support_chroot.c (write_file): New function.
35016 (support_chroot_create): Call it to process /etc/resolv.conf,
35017 /etc/hosts, /etc/host.conf.
35018 (support_chroot_free): Update.
35019
a2881ef0
FW
350202017-09-01 Florian Weimer <fweimer@redhat.com>
35021
35022 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
35023 status indicates it is set.
35024
ad816a5e
FW
350252017-09-01 Florian Weimer <fweimer@redhat.com>
35026
63b52889 35027 [BZ #20532]
ad816a5e
FW
35028 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
35029 function lookup failures more reliable.
35030
53250a21
FW
350312017-09-01 Florian Weimer <fweimer@redhat.com>
35032
35033 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
35034 (getcanonname): Likewise.
35035 (gaih_inet): Likewise.
35036
924b121c
FW
350372017-09-01 Florian Weimer <fweimer@redhat.com>
35038
35039 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
35040 (getcanonname): Likewise.
35041 (gaih_inet): Likewise.
35042
d9ff799a 350432017-08-31 Steve Ellcey <sellcey@cavium.com>
6b5c8607 35044 Richard Henderson <rth@twiddle.net>
d9ff799a
SE
35045
35046 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
35047 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
35048 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
35049 (IREG_SIZE, OREG_SIZE): New macros.
35050 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
35051 (IREG_SIZE, OREG_SIZE): New macros.
35052 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
35053 (IREG_SIZE): New macro.
35054 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
35055 (IREG_SIZE): New macro.
35056 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
35057 New includes.
35058 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
35059 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
35060 (__CONCATX): Handle exceptions correctly on large values that may
35061 set FE_INVALID.
35062 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
35063 Initialize if not already set.
b39d961c 35064 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
d9ff799a 35065
102dde84
AZ
350662017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35067
35068 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
35069 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
35070 Likewise.
35071 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
35072 Likewise.
35073 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
35074 Likewise.
35075 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
35076 Likewise.
35077 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
35078 Likewise.
35079 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
35080 Likewise.
35081 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
35082 Likewise.
35083 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
35084 (NO_CANCELLATION): Likewise.
35085 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
35086 Likewise.
35087 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
35088 Likewise.
35089 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
35090 Likewise.
35091 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
35092 (NO_CANCELLATION): Likewise.
35093 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
35094 (NO_CANCELLATION): Likewise.
35095 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
35096 Likewise
35097 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
35098 Likewise.
35099 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
35100 Likewise.
35101 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
35102 Likewise.
35103 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
35104 hidden prototype.
35105 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
35106 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
35107
9eee633b
SE
351082017-08-31 Steve Ellcey <sellcey@cavium.com>
35109
35110 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
35111 in resolver call.
35112
65284eb7
FW
351132017-08-31 Florian Weimer <fweimer@redhat.com>
35114
35115 * include/libc-symbols.h (internal_function): Remove.
35116
41ad5ca6
FW
351172017-08-31 Florian Weimer <fweimer@redhat.com>
35118
35119 * stdlib/fmtmsg.c (internal_addseverity): Remove
35120 internal_function.
35121
2fa6d086
FW
351222017-08-31 Florian Weimer <fweimer@redhat.com>
35123
35124 * stdio-common/printf_fp.c (group_number): Remove
35125 internal_function.
35126 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
35127
b41bd5bc
FW
351282017-08-31 Florian Weimer <fweimer@redhat.com>
35129
35130 * posix/fnmatch.c (internal_function): Remove definition.
35131 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
35132 * posix/regcomp.c (peek_token, init_word_char)
35133 (duplicate_node_closure, fetch_token, peek_token)
35134 (peek_token_bracket, build_range_exp, build_collating_symbol):
35135 Likewise.
35136 * posix/regex_internal.c (re_string_construct_common)
35137 (create_ci_newstate, create_cd_newstate, re_string_allocate)
35138 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
35139 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
35140 (re_string_translate_buffer, re_string_reconstruct)
35141 (re_string_peek_byte_case, re_string_fetch_byte_case)
35142 (re_string_destruct, re_string_context_at, re_node_set_alloc)
35143 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
35144 (re_node_set_add_intersect, re_node_set_init_union)
35145 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
35146 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
35147 (re_dfa_add_node, calc_state_hash, re_acquire_state)
35148 (re_acquire_state_context): Likewise.
35149 * posix/regex_internal.h (internal_function): Remove definition.
35150 (re_string_realloc_buffers, build_wcs_buffer)
35151 (build_wcs_upper_buffer, build_upper_buffer)
35152 (re_string_translate_buffer, re_string_context_at)
35153 (re_string_char_size_at, re_string_wchar_at)
35154 (re_string_elem_size_at): Likewise.
35155 * posix/regexec.c (match_ctx_init, match_ctx_clean)
35156 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
35157 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
35158 (re_search_internal, re_search_2_stub, re_search_stub)
35159 (re_copy_regs, prune_impossible_nodes, check_matching)
35160 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
35161 (free_fail_stack_return, sift_states_iter_mb)
35162 (sift_states_backward, build_sifted_states)
35163 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
35164 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
35165 (check_subexp_limits, sift_states_bkref, merge_state_array)
35166 (find_recover_state, transit_state, merge_state_with_log)
35167 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
35168 (transit_state_mb, transit_state_bkref, get_subexp)
35169 (get_subexp_sub, find_subexp_node, check_arrival)
35170 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
35171 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
35172 (check_node_accept_bytes, find_collation_sequence_value)
35173 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
35174 (acquire_init_state_context, check_halt_node_context)
35175 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
35176 (sub_epsilon_src_nodes): Likewise.
35177 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
35178 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
35179 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
35180 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
35181 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
35182 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
35183 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
35184 * sysdeps/posix/ttyname.c (getttyname): Likewise.
35185 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
35186 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
35187 (PREADV): Likewise.
35188 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
35189 (PREADV): Likewise.
35190 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
35191 (PWRITEV): Likewise.
35192 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
35193 (PWRITEV): Likewise.
35194 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
35195 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
35196
83b09837
FW
351972017-08-31 Florian Weimer <fweimer@redhat.com>
35198
35199 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
35200 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
35201 Remove internal_function.
35202 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
35203 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
35204 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
35205 (__deallocate_stack, __libc_pthread_init)
35206 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
35207 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
35208 (__libc_disable_asynccancel, __librt_disable_asynccancel):
35209 Likewise.
35210 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
35211 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
35212 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
35213 Likewise.
35214 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
35215 (__pthread_mutex_unlock_usercnt): Likewise.
35216
116ac301
FW
352172017-08-31 Florian Weimer <fweimer@redhat.com>
35218
35219 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
35220 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
35221 (fts_safe_changedir): Remove internal_function.
35222 * io/ftw.c (internal_function): Remove definition.
35223 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
35224
9da93bd7
FW
352252017-08-31 Florian Weimer <fweimer@redhat.com>
35226
35227 * inet/deadline.c (__deadline_current_time)
35228 (__deadline_from_timeval, __deadline_to_ms): Remove
35229 internal_function.
35230 * inet/getnameinfo.c (nrl_domainname): Likewise.
35231 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
35232 * inet/inet6_option.c (add_pad): Likewise.
35233 * inet/net-internal.h (__deadline_current_time)
35234 (__deadline_from_timeval, __deadline_to_ms): Likewise.
35235 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
35236 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
35237 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
35238
a60eca2e
JM
352392017-08-31 Joseph Myers <joseph@codesourcery.com>
35240
c0c49d60
JM
35241 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
35242 include <bits/nan.h>.
35243 * math/Makefile (headers): Remove bits/nan.h.
35244 * bits/nan.h: Remove.
35245 * sysdeps/ieee754/bits/nan.h: Likewise.
35246 * sysdeps/mips/bits/nan.h: Likewise.
35247
5ef1b213
JM
35248 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
35249 not include <bits/inf.h>.
35250 * math/Makefile (headers): Remove bits/inf.h.
35251 * bits/inf.h: Remove.
35252 * sysdeps/ieee754/bits/inf.h: Likewise.
35253
a60eca2e
JM
35254 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
35255 bits/huge_vall.h or bits/huge_val_flt128.h.
35256 (HUGE_VAL): Define directly here.
35257 [__USE_ISOC99] (HUGE_VALF): Likewise.
35258 [__USE_ISOC99] (HUGE_VALL): Likewise.
35259 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
35260 (HUGE_VAL_F128): Likewise.
35261 * math/Makefile (headers): Remove bits/huge_val.h,
35262 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
35263 * bits/huge_val.h: Remove.
35264 * bits/huge_val_flt128.h: Likewise.
35265 * bits/huge_valf.h: Likewise.
35266 * bits/huge_vall.h: Likewise.
35267 * sysdeps/ia64/bits/huge_vall.h: Likewise.
35268 * sysdeps/ieee754/bits/huge_val.h: Likewise.
35269 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
35270 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
35271 * sysdeps/sh/bits/huge_val.h: Likewise.
35272 * sysdeps/sparc/bits/huge_vall.h: Likewise.
35273 * sysdeps/x86/bits/huge_vall.h: Likewise.
35274
17e00cc6
FW
352752017-08-31 Florian Weimer <fweimer@redhat.com>
35276
35277 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
35278 internal_function.
35279 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
35280 Likewise.
35281 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
35282 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
35283 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
35284 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
35285 * elf/dl-fini.c (_dl_sort_fini): Likewise.
35286 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
35287 * elf/dl-libc.c (dlerror_run): Likewise.
35288 * elf/dl-load.c (add_name_to_object, decompose_rpath)
35289 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
35290 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
35291 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
35292 Likewise.
35293 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
35294 (_dl_higher_prime_number, _dl_strtoul): Likewise.
35295 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
35296 * elf/dl-profile.c (_dl_start_profile): Likewise.
35297 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
35298 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
35299 Likewise.
35300 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
35301 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
35302 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
35303 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
35304 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
35305 (_dl_allocate_tls_storage): Likewise.
35306 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
35307 (_dl_check_all_versions): Likewise.
35308 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
35309 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
35310 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
35311 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
35312 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
35313 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
35314 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
35315 internal_function from __dl_start.
35316 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
35317 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
35318 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
35319 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
35320 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
35321 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
35322 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
35323 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
35324 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
35325 (_dl_next_ld_env_entry, _dl_important_hwcaps)
35326 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
35327 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
35328 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
35329 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
35330 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
35331 Likewise.
35332 (struct rtld_global_ro): Remove internal_function from the
35333 _dl_lookup_symbol_x member.
35334 (_dl_symbol_value): Remove. No longer defined anywhere.
35335 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
35336 internal_function.
35337 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
35338 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
35339 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
35340 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
35341 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
35342 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
35343 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
35344 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
35345 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
35346 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
35347 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
35348 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
35349
8d2f9410
FW
353502017-08-31 Florian Weimer <fweimer@redhat.com>
35351
35352 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
35353 Remove internal_function.
35354 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
35355 Likewise.
35356 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
35357 Likewise.
35358
86e4919f
FW
353592017-08-31 Florian Weimer <fweimer@redhat.com>
35360
35361 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
35362 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
35363 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
35364
59bd52b0
FW
353652017-08-31 Florian Weimer <fweimer@redhat.com>
35366
35367 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
35368 (__gai_enqueue_request): Remove internal_function.
35369 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
35370 (__gai_remove_request, __gai_notify, __gai_notify_only)
35371 (__gai_sigqueue): Likewise.
35372 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
35373 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
35374 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
35375 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
35376 Likewise.
35377
fc3d9497
FW
353782017-08-31 Florian Weimer <fweimer@redhat.com>
35379
35380 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
35381 * include/dirent.h (__opendirat, __getdents, __getdents64)
35382 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
35383 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
35384 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
35385 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
35386 Likewise.
35387 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
35388
18c54fac
FW
353892017-08-31 Florian Weimer <fweimer@redhat.com>
35390
35391 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
35392 internal_function.
35393 (GETCWD_RETURN_TYPE): Likewise.
35394
7e01f080
FW
353952017-08-31 Florian Weimer <fweimer@redhat.com>
35396
35397 * include/time.h (__tz_compute, __strptime_internal): Remove
35398 internal_function.
35399 * time/strptime_l.c (__strptime_internal): Likewise.
35400 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
35401
d7ccc6c9
FW
354022017-08-31 Florian Weimer <fweimer@redhat.com>
35403
35404 * iconv/gconv.c (__gconv): Remove internal_function.
35405 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
35406 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
35407 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
35408 (__gconv_release_cache): Likewise.
35409 * iconv/gconv_close.c (__gconv_close): Likewise.
35410 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
35411 (read_conf_file, __gconv_get_path): Likewise.
35412 * iconv/gconv_db.c (derivation_lookup, add_derivation)
35413 (__gconv_release_step, gen_steps, increment_counter)
35414 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
35415 (__gconv_close_transform, free_modules_db): Likewise.
35416 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
35417 Likewise.
35418 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
35419 (__gconv_find_transform, __gconv_lookup_cache)
35420 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
35421 (__gconv_close_transform, __gconv_release_cache)
35422 (__gconv_loaded_object, __gconv_release_shlib)
35423 (__gconv_compare_alias): Likewise.
35424 * iconv/gconv_open.c (__gconv_open): Likewise.
35425 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
35426 * iconv/iconvconfig.c (add_module): Likewise.
35427 * intl/dcigettext.c (plural_lookup, guess_category_value)
35428 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
35429 * intl/eval-plural.h (plural_eval): Likewise.
35430 * intl/finddomain.c (_nl_find_domain): Likewise.
35431 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
35432 (_nl_load_domain, _nl_find_msg): Likewise.
35433 (internal_function): Remove definition.
35434 * intl/loadinfo.h (internal_function): Likewise.
35435 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
35436 internal_function.
35437 * intl/localealias.c (internal_function): Remove definition.
35438 (read_alias_file): Remove internal_function.
35439 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
35440 * intl/plural-exp.h (internal_function): Remove definition.
35441 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
35442 internal_function.
35443 * intl/plural.c: Regenerate.
35444 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
35445 * locale/coll-lookup.c (__collidx_table_lookup)
35446 (__collseq_table_lookup): Likewise.
35447 * locale/coll-lookup.h (__collidx_table_lookup)
35448 (__collseq_table_lookup): Likewise.
35449 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
35450 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
35451 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
35452 (_nl_unload_locale): Likewise.
35453 * locale/localeinfo.h (struct __locale_data): Remove
35454 internal_function from cleanup member.
35455 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
35456 (_nl_remove_locale, _nl_load_locale_from_archive)
35457 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
35458 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
35459 (_nl_cleanup_time): Remove internal_function.
35460 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
35461 (_nl_parse_alt_digit): Likewise.
35462 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
35463 (_nl_select_era_entry): Likewise.
35464 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
35465 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
35466 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
7e01f080
FW
35467 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
35468 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
d7ccc6c9 35469
dab0eece
FW
354702017-08-31 Florian Weimer <fweimer@redhat.com>
35471
35472 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
35473 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
35474 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
35475 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
35476 Likewise.
35477 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
35478 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
35479 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
35480 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
35481 Likewise.
35482 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
35483
ab5bf7cf
FW
354842017-08-31 Florian Weimer <fweimer@redhat.com>
35485
35486 * misc/getttyent.c (skip, value): Remove internal_function.
35487 * misc/syslog.c (openlog_internal): Likewise.
35488 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
35489
75b3047e
FW
354902017-08-31 Florian Weimer <fweimer@redhat.com>
35491
35492 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
35493 (__nss_rewrite_field): Remove internal_function.
35494 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
35495 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
35496 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
35497 * nss/nsswitch.c (nss_parse_file, nss_getline)
35498 (nss_parse_service_list, nss_new_service): Likewise.
35499 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
35500 * nss/valid_field.c (__nss_valid_field): Likewise.
35501 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
35502
0c71122c
FW
355032017-08-31 Florian Weimer <fweimer@redhat.com>
35504
35505 * malloc/arena.c (__malloc_fork_lock_parent)
35506 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
35507 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
35508 internal_function from defintions.
35509 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
35510 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
35511 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
35512 internal_function from declarations.
35513 * malloc/malloc.c (internal_function): Do not define.
35514 (mem2mem_check): Remove internal_function from declaration.
35515 (munmap_chunk, mremap_chunk): Remove internal_function.
35516 * malloc/mtrace.c (tr_where): Likewise.
35517
ca4ec803
FW
355182017-08-31 Florian Weimer <fweimer@redhat.com>
35519
35520 * include/rpc/pmap_clnt.h (__get_socket): Remove
35521 internal_function.
35522 * sunrpc/auth_des.c (synchronize): Likewise.
35523 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
35524 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
35525 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
35526 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
35527 (key_call): Likewise.
35528 * sunrpc/pm_getport.c (__get_socket): Likewise.
35529 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
35530 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
35531 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
35532 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
35533 (invalidate): Likewise.
35534 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
35535 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
35536 (set_input_fragment, get_input_bytes): Likewise.
35537
24cffce7
FW
355382017-08-31 Florian Weimer <fweimer@redhat.com>
35539
35540 * malloc/malloc.c (_int_free): Remove locked variable and related
35541 asserts.
35542
ecd0747d
L
355432017-08-31 H.J. Lu <hongjiu.lu@intel.com>
35544
35545 [BZ #22051]
35546 * Makerules (build-module-helper-objlist): Filter out
35547 $(elf-objpfx)sofini.os.
35548 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
35549 needed.
35550
5f0704b6
FW
355512017-08-31 Florian Weimer <fweimer@redhat.com>
35552
35553 * libio/fcloseall.c: Assume weak_alias is defined.
35554 * libio/feof.c: Likewise.
35555 * libio/fileno.c: Likewise.
35556 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
35557 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
35558 definitions.
35559 (_IO_file_open): Call __open directly.
35560 (_IO_new_file_sync): Assume ESPIPE is defined.
35561 (_IO_file_seekoff_maybe_mmap): Call __read directly.
35562 (_IO_new_file_write): Call __write directly.
35563 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
35564 * libio/ftello64.c (__ftello64): Assume EIO is defined.
35565 * libio/genops.c: Assume _LIBC is defined.
35566 (save_for_backup): Remove internal_function.
35567 * libio/getc.c: Assume weak_alias is defined.
35568 * libio/getwc.c: Likewise.
35569 * libio/iofclose.c: Assume _LIBC is defined.
35570 * libio/iofdopen.c: Likewise.
35571 (_IO_fcntl): Remove macro definition.
35572 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
35573 Call __fcntl directly.
35574 * libio/iofflush.c: Assume weak_alias is defined.
35575 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
35576 defined.
35577 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
35578 * libio/iofgets.c: Likewise.
35579 * libio/iofopen.c: Assume _LIBC is defined.
35580 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
35581 * libio/iofputs.c: Assume weak_alias is defined.
35582 * libio/iofread.c: Likewise.
35583 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
35584 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
35585 * libio/ioftell.c: Assume weak_alias is defined.
35586 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
35587 * libio/iofwide.c: Assume _LIBC is defined.
35588 (_IO_fwide): Drop SHARED conditional because it is implied by
35589 SHLIB_COMPAT.
35590 * libio/iofwrite.c: Assume weak_alias is defined.
35591 * libio/iogetdelim.c: Likewise.
35592 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
35593 * libio/iogetwline.c (wmemcpy): Remove macro definition.
35594 (_IO_getwline): Call __wmemcpy directly.
35595 * libio/iopopen.c: Assume _LIBC is defined.
35596 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
35597 (_IO_close): Remove macro definitions.
35598 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
35599 _exit directly.
35600 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
35601 directly.
35602 * libio/ioputs.c: Assume weak_alias is defined.
35603 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
35604 * libio/iosetbuffer.c: Assume weak_alias is defined.
35605 * libio/iosetvbuf.c: Likewise.
35606 * libio/ioungetc.c: Likewise.
35607 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
35608 libc_hidden_def, libc_hidden_weak, NULL are defined.
35609 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
35610 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
35611 defined.
35612 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
35613 definitions.
35614 (_IO_old_file_init_internal): Drop SHARED conditional because it
35615 is implied by SHLIB_COMPAT.
35616 (_IO_old_file_fopen): Call __open directly.
35617 (_IO_old_file_sync): Assume ESPIPE is defined.
35618 (_IO_old_file_write): Call __write directly.
35619 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
35620 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
35621 Call __fcntl directly.
35622 * libio/oldiofgetpos.c: Assume weak_alias is defined.
35623 (_IO_old_fgetpos): Assume EIO is defined.
35624 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
35625 (_IO_old_fgetpos64): Assume EIO is defined.
35626 * libio/oldiofsetpos.c: Assume weak_alias is defined.
35627 (_IO_old_fsetpos): Assume EIO is defined.
35628 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
35629 (_IO_old_fsetpos64): Assume EIO is defined.
35630 * libio/oldiopopen.c: Assume _LIBC is defined.
35631 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
35632 (_IO_close): Remove macro definitions.
35633 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
35634 directly.
35635 (_IO_old_proc_close): Call __close, __waitpid directly.
35636 * libio/put.c: Assume weak_alias is defined.
35637 * libio/stdfiles.c: Assume _LIBC is defined.
35638 * libio/stdio.c: Likewise.
35639 * libio/wfileops.c: Likewise.
35640 (_IO_wfile_sync): Assume ESPIPE is defined.
35641 * libio/wgenops.c: Assume _LIBC is defined.
35642 (save_for_wbackup): Remove internal_function.
35643
5129873a
FW
356442017-08-31 Florian Weimer <fweimer@redhat.com>
35645
35646 * malloc/malloc.c (top_check): Change return type to void. Remove
35647 internal_function.
35648 * malloc/hooks.c (top_check): Likewise.
35649 (malloc_check, realloc_check, memalign_check): Adjust.
35650
4fa9b3bf
JM
356512017-08-30 Joseph Myers <joseph@codesourcery.com>
35652
35653 [BZ #21457]
35654 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
35655 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
35656 sigcontext and namespace requirements.
35657 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
35658 * sysdeps/m68k/sys/ucontext.h: Likewise.
35659 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
35660 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
35661 <bits/sigcontext.h>.
35662 (__ctx): Define earlier.
35663 (mcontext_t): Define structure contents rather than using struct
35664 sigcontext.
35665 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
35666 __glibc_reserved1 instead of __reserved.
35667 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
35668 <bits/sigcontext.h>.
35669 (__ctx): Define earlier.
35670 (mcontext_t): Define structure contents rather than using struct
35671 sigcontext.
35672 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
35673 mcontext_t instead of struct sigcontext.
35674 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
35675 <bits/sigcontext.h>.
35676 (__ctx): Define earlier.
35677 (mcontext_t): Define structure contents rather than using struct
35678 sigcontext.
35679 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
35680 <bits/sigcontext.h>.
35681 (__ctx): Define earlier.
35682 (mcontext_t): Define structure contents rather than using struct
35683 sigcontext.
35684 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
35685 mcontext_t instead of struct sigcontext.
35686 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
35687 mcontext_t instead of struct sigcontext.
35688 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
35689 <bits/sigcontext.h>.
35690 (__ctx): New macro.
35691 (struct __ia64_fpreg_mcontext): New type.
35692 (mcontext_t): Define structure contents rather than using struct
35693 sigcontext.
35694 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
35695 (uc_sigmask): Define using __ctx.
35696 (uc_stack): Likewise.
35697 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
35698 <bits/sigcontext.h>.
35699 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
35700 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
35701 <bits/sigcontext.h>.
35702 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
35703 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
35704 <bits/sigcontext.h>.
35705 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
35706 <bits/sigcontext.h>.
35707 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
35708 <bits/sigcontext.h>.
35709 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
35710 <bits/sigcontext.h>.
35711 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
35712 <bits/sigcontext.h>.
35713 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
35714 <bits/sigcontext.h>.
35715 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
35716 <bits/sigcontext.h>.
35717 (__ctx): Define earlier.
35718 (mcontext_t): Define structure contents rather than using struct
35719 sigcontext.
35720 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
35721 <bits/sigcontext.h>. Include <bits/types.h>.
35722 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
35723 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
35724 (test-xfail-XPG42/ucontext.h/conform): Likewise.
35725 (test-xfail-UNIX98/signal.h/conform): Likewise.
35726 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
35727 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
35728 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
35729 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
35730 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
35731 (test-xfail-POSIX2008/signal.h/conform): Likewise.
35732 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
35733 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
35734 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
35735
5898f454
FW
357362017-08-30 Florian Weimer <fweimer@redhat.com>
35737
35738 * malloc/dynarray_emplace_enlarge.c
35739 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
35740 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
35741 * malloc/tst-dynarray.c (test_long_overflow): New function.
35742 (do_test): Call it.
35743
a9da0bb2
FW
357442017-08-30 Florian Weimer <fweimer@redhat.com>
35745
35746 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
35747 (set_arena_corrupt): Remove definitions.
35748 (mtrim): Do not check for corrupt arena.
35749 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
35750 Likewise.
35751
ac3ed168
FW
357522017-08-30 Florian Weimer <fweimer@redhat.com>
35753
35754 [BZ #21754]
35755 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
35756 check_action.
35757 (ptmalloc_init): Do not set or use check_action.
35758 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
35759 call to malloc_printerr. Remove return statement.
35760 (free_check): Likewise. Remove arena unlock.
35761 (top_check): Update comment. Adjust call to malloc_printerr.
35762 Remove heap repair code.
35763 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
35764 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
35765 (sysmalloc): Adjust call to malloc_printerr.
35766 (munmap_chunk, __libc_realloc): Likewise. Remove return
35767 statement.
35768 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
35769 Remove errout label and corresponding gotos.
35770 (_int_free): Likewise. Remove arena unlock.
35771 (do_set_mallopt_check): Do not set check_action.
35772 (malloc_printerr): Adjust parameter list. Do not mark arena as
35773 corrupt.
35774 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
35775 comment.
35776 * manual/probes.texi (Memory Allocation Probes): Remove
35777 memory_mallopt_check_action.
35778
44bcba80
SE
357792017-08-30 Steve Ellcey <sellcey@cavium.com>
35780
35781 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
35782 Use pointer to uint64_t instead of long int for sp.
35783
ec2c1fce
FW
357842017-08-30 Florian Weimer <fweimer@redhat.com>
35785
35786 [BZ #21754]
35787 * malloc/malloc.c (malloc_printerr): Always terminate the process,
35788 without printing a backtrace. Do not leak any information in the
35789 error message.
35790 * manual/memory.texi (Heap Consistency Checking): Update.
35791 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
35792
9ce673b6
FW
357932017-08-30 Florian Weimer <fweimer@redhat.com>
35794
35795 Do not scale NPTL tests with available number of CPUs.
35796 * nptl/tst-cond16.c (count): Set to constant value of 8.
35797 * nptl/tst-cond18.c (count): Likewise.
35798
2f1aef19
JM
357992017-08-29 Joseph Myers <joseph@codesourcery.com>
35800
35801 [BZ #22035]
35802 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
35803 Define to take a second argument that is a macro that
35804 concatentates a suffix, not the suffix itself.
35805 (__CONCAT_d): New macro.
35806 (__CONCAT_f): Likewise.
35807 (__CONCAT_l): Likewise.
35808
8325b477
PP
358092017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
35810
35811 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
35812 by child.
35813
319cbbf6
AZ
358142017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35815 Aurelien Jarno <aurelien@aurel32.net>
35816 Maciej W. Rozycki <macro@imgtec.com>
35817
35818 [BZ #21956]
35819 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
35820 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
35821 `mips16-syscall6' and `mips16-syscall7'.
35822 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
35823 (CFLAGS-mips16-syscall7.c): Remove.
35824 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
35825 Remove `__mips16_syscall5', `__mips16_syscall6' and
35826 `__mips16_syscall7'.
35827 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
35828 (__mips16_syscall0): Rename `__mips16_syscall_return' to
35829 `__mips_syscall_return'.
35830 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
35831 (__mips16_syscall1): Likewise.
35832 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
35833 (__mips16_syscall2): Likewise.
35834 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
35835 (__mips16_syscall3): Likewise.
35836 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
35837 (__mips16_syscall4): Likewise.
35838 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
35839 Remove.
35840 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
35841 Remove.
35842 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
35843 Remove.
35844 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
35845 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
35846 `__mips16_syscall5'. Remove prototype.
35847 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
35848 `__mips16_syscall6'. Remove prototype.
35849 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
35850 `__mips16_syscall7'. Remove prototype.
35851 (__nomips16, __mips16_syscall_return): Move to...
35852 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
35853 (__nomips16, __mips_syscall_return): ... here.
35854 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
35855 `__mips16_syscall_return' to `__mips_syscall_return'.
35856 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
35857 `internal_syscall##nr'.
35858 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
35859 `internal_syscall##nr'.
35860 (FORCE_FRAME_POINTER): Remove.
35861 (__mips_syscall5): New prototype.
35862 (internal_syscall5): Rewrite to call `__mips_syscall5'.
35863 (__mips_syscall6): New prototype.
35864 (internal_syscall6): Rewrite to call `__mips_syscall6'.
35865 (__mips_syscall7): New prototype.
35866 (internal_syscall7): Rewrite to call `__mips_syscall7'.
35867 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
35868 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
35869 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
35870 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
35871 (sysdep_routines): Add libc-do-syscall.
35872 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
35873 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
35874
01b87c65
AZ
358752017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35876
35877 [BZ #21672]
35878 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
35879 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
35880 (advise_stack_range): New function.
35881 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
35882 stack non required to advise_stack_range at allocatestack.c
35883
16f138a4
SN
358842017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
35885
35886 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
35887
251bccfa
FW
358882017-08-29 Florian Weimer <fweimer@redhat.com>
35889
35890 [BZ #22026]
35891 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
35892 __end_fct. Mangle __end_fct after setting it to NULL.
35893 * iconv/Makefile (tests): Add tst-gconv-init-failure.
35894 (modules-names, modules-names-tests): Add
35895 tst-gconv-init-failure-mod.
35896 (gconv-modules): New target.
35897 (tst-gconv-init-failure-mod.so): Link against libsupport.
35898 (tst-gconv-init-failure): Depend on gconv-modules,
35899 tst-gconv-init-failure-mod.so.
35900 * iconv/tst-gconv-init-failure-mod.c: New file.
35901 * iconv/tst-gconv-init-failure.c: Likewise.
35902 * iconv/test-gconv-modules: Likewise.
35903
e7c18b9d
FW
359042017-08-29 Florian Weimer <fweimer@redhat.com>
35905
35906 [BZ #22025]
35907 * iconv/gconv_db.c (free_derivation): Remove redundant
35908 parentheses.
35909 (gen_steps): Unconditionally mangle __btowc_fct after
35910 initialization.
35911 (increment_counter): Likewise. Do not call init_fct for internal
35912 modules.
35913
7daada03
JM
359142017-08-29 Joseph Myers <joseph@codesourcery.com>
35915
35916 [BZ #22028]
35917 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
35918 (_MSUF_): Remove macro.
35919 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
35920 Likewise.
35921 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
35922 (__REDIRFROM_X): New macro.
35923 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
35924 Likewise.
35925 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
35926 (__REDIRTO_X): Likewise.
35927 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
35928 arguments.
35929 (__MATH_REDIRCALL_2): Likewise.
35930 (__MATH_REDIRCALL_INTERNAL): Likewise.
35931 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
35932 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
35933 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
35934 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
35935 * math/test-finite-macros.c: New file.
35936 * math/Makefile (tests): Add test-finite-macros.
35937 (CFLAGS-test-finite-macros.c): New variable.
35938
1cf1232c
PF
359392017-08-29 Patsy Franklin <pfrankli@redhat.com>
35940 Jeff Law <law@redhat.com>
35941
35942 [BZ #22025]
35943 Mangle NULL pointers in iconv/gconv.
35944 * iconv/gconv_cache.c (find_module): Demangle init_fct before
35945 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
35946 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
35947 is non-NULL before demangling the end_fct. Check for NULL
35948 end_fct after demangling.
35949 (__gconv_release_step): Demangle the end_fct before checking
35950 it for NULL. Remove assert on __shlibc_handle != NULL.
35951 (gen_steps): Don't check btowc_fct for NULL before mangling.
35952 Demangle init_fct before checking for NULL.
35953 (increment_counter): Likewise.
35954 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
35955 end_fct for NULL before mangling.
35956 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
35957 for NULL.
35958
c207f7ce 359592017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
f8de9568
AK
35960
35961 [BZ #21971]
35962 * locale/iso-639.def: add Morisyen.
35963
42496114
GG
359642017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
35965
35966 [BZ #21930]
35967 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
35968 (iszero): New C++ implementation that does not use
35969 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
35970 signaling nans are enabled, since __builtin_types_compatible_p
35971 is a C-only feature.
35972 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
35973 defined, include ieee754_float128.h for access to the union and
35974 member ieee854_float128.ieee.
35975 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
35976 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
35977 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
35978 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
35979 options of test-math-zero on powerpc64le.
35980
5e2bc4ff
L
359812017-08-28 H.J. Lu <hongjiu.lu@intel.com>
35982
35983 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
35984 Change double to float.
35985
a48c0fb4
JM
359862017-08-28 Joseph Myers <joseph@codesourcery.com>
35987
35988 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
35989 unconditional.
35990 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
35991 conditional code; define contents only for [LIBM_SVID_COMPAT].
35992
ee17d4e9
FW
359932017-08-28 Florian Weimer <fweimer@redhat.com>
35994
35995 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
35996 (abi-lp64_be-options): Remove.
35997 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
35998 (abi-hard-options): Likewise.
35999 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
36000 (abi-o32_hard-options, abi-o32_soft_2008-options)
36001 (abi-o32_hard_2008-options, abi-n32_soft-options)
36002 (abi-n32_hard-options, abi-n32_soft_2008-options)
36003 (abi-n32_hard_2008-options, abi-n64_soft-options)
36004 (abi-n64_hard-options, abi-n64_soft_2008-options)
36005 (abi-n64_hard_2008-options): Likewise.
36006 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
36007 (abi-64-v1-options, abi-64-v2-options): Likewise.
36008 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
36009 (abi-64-options): Likewise.
36010 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
36011 (abi-64-options): Likewise.
36012 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
36013 (abi-64-options): Likewise.
36014 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
36015 (abi-64-options, abi-x32-options): Likewise.
36016
2dba5ce7
FW
360172017-08-28 Florian Weimer <fweimer@redhat.com>
36018
36019 Store supported list of SYS_* system calls in the source tree.
36020 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
36021 (bits/syscall.h): Generate from list file.
36022 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
36023 [$(subdir) = misc] (tests): Add tst-syscall-list.
36024 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
36025 [$(subdir) = misc] (tst-syscall-list-macros.list)
36026 [$(subdir) = misc] (tst-syscall-list-nr.list)
36027 (tst-syscall-list-sys.list): Helper targets for new
36028 tst-syscall-list test.
36029 [$(subdir) = misc] (tst-syscall-list.out): Run test script
36030 tst-syscall-list.sh.
36031 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
36032 target. Do not include bits/syscall.d.
36033 [$(subdir) = misc] (generated): Do not update.
36034 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
36035 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
36036 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
36037 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
36038
5f3b183d
PP
360392017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
36040
36041 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
36042 (tst-cxa_atexit, tst-on_exit): Likewise.
36043 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
36044 tst-cxa_atexit, and tst-on_exit.
36045 * stdlib/tst-atexit-common.c: New file.
36046 * stdlib/tst-atexit.c: New file.
36047 * stdlib/tst-at_quick_exit.c: New file.
36048 * stdlib/tst-cxa_atexit.c: New file.
36049 * stdlib/tst-on_exit.c: New file.
36050
2ef8d469
ST
360512017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
36052
36053 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
97e02ad2
ST
36054 * mach/stack_chk_fail_local.c: New file.
36055 * hurd/stack_chk_fail_local.c: New file.
36056 * mach/Machrules ($(interface-library)-routines): Add
36057 stack_chk_fail_local.
99ee4d26
ST
36058 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
36059 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
36060 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
36061 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
36062 * hurd/Makefile (CFLAGS-hurdstartup.o,
36063 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
2ef8d469 36064
7ab70c98
L
360652017-08-25 H.J. Lu <hongjiu.lu@intel.com>
36066
36067 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
36068 (index_cpu_*, index_arch_*): Removed.
36069
39e7a5a6
SN
360702017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
36071
36072 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
36073 Use uint64_t instead of unsigned long.
36074
bba5c930
JM
360752017-08-25 Joseph Myers <joseph@codesourcery.com>
36076
a6ccdb08
JM
36077 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
36078 [__HAVE_DISTINCT_FLOAT128].
36079
23761119
JM
36080 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
36081 of <bits/math-finite.h>.
36082 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
36083 inclusion of <bits/math-finite.h>.
36084 * math/bits/math-finite.h (__REDIRTO_X): Do not define
36085 conditionally on [__MATH_DECLARING_LDOUBLE && defined
36086 __NO_LONG_DOUBLE_MATH].
36087 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
36088 (__MATH_REDIRCALL_2): Likewise.
36089 (__MATH_REDIRCALL_INTERNAL): Likewise.
36090 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
36091 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
36092 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
36093
bba5c930
JM
36094 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
36095 Remove file.
36096 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
36097 Likewise.
36098 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
36099 Likewise.
36100 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
36101 Likewise.
36102 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
36103 Likewise.
36104 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
36105 Likewise.
36106 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
36107 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
36108 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
36109 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
36110 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
36111 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
36112 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
36113 w_sqrtf_compat-ppc32.
36114
3d7b66f6
GG
361152017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
36116
36117 * math/math.h [defined __cplusplus] (issignaling): In the long
36118 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
36119 is not defined. Call __issignaling, otherwise.
36120
ebd6f007
AZ
361212017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36122
36123 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
36124 syscall definitions and replace __builtin_expect with __glibc_likely.
36125 * sysdeps/unix/syscall-template.S: Update comment about cancellable
36126 syscall.
6b5c8607 36127 (SYSCALL_CANCELLABLE): Removedefinition
ebd6f007
AZ
36128 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
36129 definition.
36130 (PSEUDO_END): Likewise.
36131 [IS_IN (libpthread)] (CENABLE): Likewise.
36132 [IS_IN (libpthread)] (CDISABLE): Likewise.
36133 [IS_IN (libc)] (CENABLE): Likewise.
36134 [IS_IN (libc)] (CENABLE): Likewise.
36135 [IS_IN (librt)] (CDISABLE): Likewise.
36136 [IS_IN (librt)] (CDISABLE): Likewise.
36137 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
36138 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
36139 definition.
36140 (PSEUDO_END): Likewise.
36141 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
36142 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
36143 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
36144 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
36145 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
36146 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
36147 (CENABLE): Likewise.
36148 (CDISABLE): Likewise.
36149 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
36150 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
36151 defintion.
36152 (PSEUDO_END): Likewise.
36153 [IS_IN (libpthread)] (CENABLE): Likewise.
36154 [IS_IN (libpthread)] (CDISABLE): Likewise.
36155 [IS_IN (libc)] (CENABLE): Likewise.
36156 [IS_IN (libc)] (CENABLE): Likewise.
36157 [IS_IN (librt)] (CDISABLE): Likewise.
36158 [IS_IN (librt)] (CDISABLE): Likewise.
36159 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
36160 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
36161 definition.
36162 (PSEUDO_END): Likewise.
36163 [IS_IN (libpthread)] (CENABLE): Likewise.
36164 [IS_IN (libpthread)] (CDISABLE): Likewise.
36165 [IS_IN (libc)] (CENABLE): Likewise.
36166 [IS_IN (libc)] (CENABLE): Likewise.
36167 [IS_IN (librt)] (CDISABLE): Likewise.
36168 [IS_IN (librt)] (CDISABLE): Likewise.
36169 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
36170 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
36171 definition.
36172 (PSEUDO_END): Likewise.
36173 [IS_IN (libpthread)] (CENABLE): Likewise.
36174 [IS_IN (libpthread)] (CDISABLE): Likewise.
36175 [IS_IN (libc)] (CENABLE): Likewise.
36176 [IS_IN (libc)] (CENABLE): Likewise.
36177 [IS_IN (librt)] (CDISABLE): Likewise.
36178 [IS_IN (librt)] (CDISABLE): Likewise.
36179 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
36180 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
36181 definition.
36182 (PSEUDO_END): Likewise.
36183 [IS_IN (libpthread)] (CENABLE): Likewise.
36184 [IS_IN (libpthread)] (CDISABLE): Likewise.
36185 [IS_IN (libc)] (CENABLE): Likewise.
36186 [IS_IN (libc)] (CENABLE): Likewise.
36187 [IS_IN (librt)] (CDISABLE): Likewise.
36188 [IS_IN (librt)] (CDISABLE): Likewise.
36189 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
36190 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
36191 definition.
36192 (PSEUDO_END): Likewise.
36193 [IS_IN (libpthread)] (CENABLE): Likewise.
36194 [IS_IN (libpthread)] (CDISABLE): Likewise.
36195 [IS_IN (libc)] (CENABLE): Likewise.
36196 [IS_IN (libc)] (CENABLE): Likewise.
36197 [IS_IN (librt)] (CDISABLE): Likewise.
36198 [IS_IN (librt)] (CDISABLE): Likewise.
36199 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
36200 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
36201 definition.
36202 (PSEUDO_END): Likewise.
36203 [IS_IN (libpthread)] (CENABLE): Likewise.
36204 [IS_IN (libpthread)] (CDISABLE): Likewise.
36205 [IS_IN (libc)] (CENABLE): Likewise.
36206 [IS_IN (libc)] (CENABLE): Likewise.
36207 [IS_IN (librt)] (CDISABLE): Likewise.
36208 [IS_IN (librt)] (CDISABLE): Likewise.
36209 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
36210 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
36211 Remove definition.
36212 (PSEUDO_END): Likewise.
36213 [IS_IN (libpthread)] (CENABLE): Likewise.
36214 [IS_IN (libpthread)] (CDISABLE): Likewise.
36215 [IS_IN (libc)] (CENABLE): Likewise.
36216 [IS_IN (libc)] (CENABLE): Likewise.
36217 [IS_IN (librt)] (CDISABLE): Likewise.
36218 [IS_IN (librt)] (CDISABLE): Likewise.
36219 (SINGLE_THREAD_P): Likewise.
36220 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
36221 definition.
36222 (PSEUDO_END): Likewise.
36223 [IS_IN (libpthread)] (CENABLE): Likewise.
36224 [IS_IN (libpthread)] (CDISABLE): Likewise.
36225 [IS_IN (libc)] (CENABLE): Likewise.
36226 [IS_IN (libc)] (CENABLE): Likewise.
36227 [IS_IN (librt)] (CDISABLE): Likewise.
36228 [IS_IN (librt)] (CDISABLE): Likewise.
36229 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
36230 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
36231 definition.
36232 (PSEUDO_END): Likewise.
36233 [IS_IN (libpthread)] (CENABLE): Likewise.
36234 [IS_IN (libpthread)] (CDISABLE): Likewise.
36235 [IS_IN (libc)] (CENABLE): Likewise.
36236 [IS_IN (libc)] (CENABLE): Likewise.
36237 [IS_IN (librt)] (CDISABLE): Likewise.
36238 [IS_IN (librt)] (CDISABLE): Likewise.
36239 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
36240 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
36241 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
36242 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
36243 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
36244 definition.
36245 (PSEUDO_END): Likewise.
36246 [IS_IN (libpthread)] (CENABLE): Likewise.
36247 [IS_IN (libpthread)] (CDISABLE): Likewise.
36248 [IS_IN (libc)] (CENABLE): Likewise.
36249 [IS_IN (libc)] (CENABLE): Likewise.
36250 [IS_IN (librt)] (CDISABLE): Likewise.
36251 [IS_IN (librt)] (CDISABLE): Likewise.
36252 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
36253 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
36254 definition.
36255 (PSEUDO_END): Likewise.
36256 [IS_IN (libpthread)] (CENABLE): Likewise.
36257 [IS_IN (libpthread)] (CDISABLE): Likewise.
36258 [IS_IN (libc)] (CENABLE): Likewise.
36259 [IS_IN (libc)] (CENABLE): Likewise.
36260 [IS_IN (librt)] (CDISABLE): Likewise.
36261 [IS_IN (librt)] (CDISABLE): Likewise.
36262 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
36263 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
36264 definition.
36265 (PSEUDO_END): Likewise.
36266 [IS_IN (libpthread)] (CENABLE): Likewise.
36267 [IS_IN (libpthread)] (CDISABLE): Likewise.
36268 [IS_IN (libc)] (CENABLE): Likewise.
36269 [IS_IN (libc)] (CENABLE): Likewise.
36270 [IS_IN (librt)] (CDISABLE): Likewise.
36271 [IS_IN (librt)] (CDISABLE): Likewise.
36272 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
36273 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
36274 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
36275 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
36276 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
36277 definition.
36278 (PSEUDO_END): Likewise.
36279 [IS_IN (libpthread)] (CENABLE): Likewise.
36280 [IS_IN (libpthread)] (CDISABLE): Likewise.
36281 [IS_IN (libc)] (CENABLE): Likewise.
36282 [IS_IN (libc)] (CENABLE): Likewise.
36283 [IS_IN (librt)] (CDISABLE): Likewise.
36284 [IS_IN (librt)] (CDISABLE): Likewise.
36285 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
36286 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
36287 definition.
36288 (PSEUDO_END): Likewise.
36289 [IS_IN (libpthread)] (CENABLE): Likewise.
36290 [IS_IN (libpthread)] (CDISABLE): Likewise.
36291 [IS_IN (libc)] (CENABLE): Likewise.
36292 [IS_IN (libc)] (CENABLE): Likewise.
36293 [IS_IN (librt)] (CDISABLE): Likewise.
36294 [IS_IN (librt)] (CDISABLE): Likewise.
36295 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
36296
8aa48656
SN
362972017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
36298
36299 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
36300
fcaaca41
L
363012017-08-23 H.J. Lu <hongjiu.lu@intel.com>
36302
36303 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
36304
376b40a2
L
363052017-08-23 H.J. Lu <hongjiu.lu@intel.com>
36306
36307 [BZ #21982]
36308 * string/stratcliff.c (do_test): Declare size, nchars, inner,
36309 middle and outer with size_t instead of int. Repleace %d and
36310 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
36311 "MAX (outer, nchars - 64)" to support unsigned outer and
36312 nchars. Also exit loop when outer == 0.
36313
2b0b9a1c
AZ
363142017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36315
36316 * include/fcntl.h (__fcntl_nocancel): Remove definition.
36317 * include/signal.h (__sigsuspend_nocancel): Likewise.
36318 * include/time.h (__nanosleep_nocancel): Likewise.
36319 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
36320 * login/utmp_file.c: Include non cancellable syscall header.
36321 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
36322 prototype.
36323
b9eaca8f
L
363242017-08-23 H.J. Lu <hongjiu.lu@intel.com>
36325
36326 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
36327 .byte sequences with AVX512F instructions.
36328 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
36329 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
36330 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
36331 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
36332 Likewise.
36333 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
36334 Likewise.
36335
5a706f64
SE
363362017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
36337 Steve Ellcey <sellcey@cavium.com>
36338
36339 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
36340 Use PTR_REG macro in cmp instruction.
36341
b513da7e
GG
363422017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
36343
36344 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
36345 Change the return type of the ifunc resolver to match the return
36346 type of the target function.
36347
78ca091c
AZ
363482017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36349
b70b6026
AZ
36350 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
36351 (preadv64): Likewise.
36352 (pwrite64(: Likewise.
36353 (pwritev64): Likewise.
36354
78ca091c
AZ
36355 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
36356 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
36357 (LOAD_ARGS_0): Likewise.
36358 (LOAD_ARGS_1): Likewise.
36359 (LOAD_ARGS_2): Likewise.
36360 (LOAD_ARGS_3): Likewise.
36361 (LOAD_ARGS_4): Likewise.
36362 (LOAD_ARGS_5): Likewise.
36363 (LOAD_ARGS_6): Likewise.
36364 (LOAD_REGS_0): Likewise.
36365 (LOAD_REGS_1): Likewise.
36366 (LOAD_REGS_2): Likewise.
36367 (LOAD_REGS_3): Likewise.
36368 (LOAD_REGS_4): Likewise.
36369 (LOAD_REGS_5): Likewise.
36370 (LOAD_REGS_6): Likewise.
36371 (ASM_ARGS_0): Likewise.
36372 (ASM_ARGS_1): Likewise.
36373 (ASM_ARGS_2): Likewise.
36374 (ASM_ARGS_3): Likewise.
36375 (ASM_ARGS_4): Likewise.
36376 (ASM_ARGS_5): Likewise.
36377 (ASM_ARGS_6): Likewise.
36378 (LOAD_ARGS_TYPES_1): Likewise.
36379 (LOAD_ARGS_TYPES_2): Likewise.
36380 (LOAD_ARGS_TYPES_3): Likewise.
36381 (LOAD_ARGS_TYPES_4): Likewise.
36382 (LOAD_ARGS_TYPES_5): Likewise.
36383 (LOAD_ARGS_TYPES_6): Likewise.
36384 (LOAD_REGS_TYPES_1): Likewise.
36385 (LOAD_REGS_TYPES_2): Likewise.
36386 (LOAD_REGS_TYPES_3): Likewise.
36387 (LOAD_REGS_TYPES_4): Likewise.
36388 (LOAD_REGS_TYPES_5): Likewise.
36389 (LOAD_REGS_TYPES_6): Likewise.
36390 (TYPEFY): New define.
36391 (ARGIFY): Likewise.
36392 (internal_syscall0): Likewise.
36393 (internal_syscall1): Likewise.
36394 (internal_syscall2): Likewise.
36395 (internal_syscall3): Likewise.
36396 (internal_syscall4): Likewise.
36397 (internal_syscall5): Likewise.
36398 (internal_syscall6): Likewise.
36399 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
36400 (INTERNAL_SYSCALL_NCS): Remove define.
36401 (internal_syscall1): Add define.
36402
453a493d
GG
364032017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
36404
36405 * math/w_remainder_compat.c: Remove duplicate inclusion of
36406 math-svid-compat.h.
36407 * math/w_remainderf_compat.c: Likewise.
36408 * math/w_remainderl_compat.c: Likewise.
36409
f2f048a5
GG
364102017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
36411
36412 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
36413
d9bef9c0
JM
364142017-08-22 Joseph Myers <joseph@codesourcery.com>
36415
36416 [BZ #21684]
36417 * math/tgmath.h (__floating_type): Simplify definitions.
36418 (__real_integer_type): New macro.
36419 (__complex_integer_type): Likewise.
36420 (__expr_is_real): Likewise.
36421 (__tgmath_real_type_sub): Update comment to describe handling of
36422 complex types.
36423 (__tgmath_complex_type_sub): New macro.
36424 (__tgmath_complex_type): Likewise.
36425 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
36426 (__TGMATH_CF128): Use __expr_is_real.
36427 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
36428 __expr_is_real.
36429 (__TGMATH_BINARY_REAL_IMAG): Likewise.
36430 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
36431 * math/gen-tgmath-tests.py (Type.create_type): Create complex
36432 integer types.
36433
08d6eb46
AZ
364342017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36435
988f991b
AZ
36436 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
36437 macro.
36438 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
36439 alias.
36440 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
36441 Likewise.
36442
6f33fd04
AZ
36443 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
36444 nanosleep_not_cancel with __nanosleep_nocancel.
36445 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
36446 (__nanosleep_nocancel): New macro.
36447 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
36448 function.
36449 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
36450 macro.
36451 (__nanosleep_nocancel): New prototype.
36452
08d6eb46
AZ
36453 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
36454 pause_not_cancel with __pause_nocancel.
36455 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
36456 (__pause_nocancel): New macro.
36457 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
36458 macro.
36459 (__pause_nocancel): New prototype.
36460 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
36461
ee4e992e
MS
364622017-08-22 Martin Sebor <msebor@redhat.com>
36463
36464 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
36465 to return a pointer to the same type as the target function.
36466
20962acb
L
364672017-08-22 H.J. Lu <hongjiu.lu@intel.com>
36468
36469 [BZ #18822]
36470 [BZ #21986]
36471 * include/printf.h (__printf_fphex): Add attribute_hidden.
36472 (__guess_grouping): New prototype.
36473 * stdio-common/printf_fp.c (__guess_grouping): Removed.
36474 * stdio-common/reg-printf.c (__register_printf_specifier): Add
36475 libc_hidden_proto and libc_hidden_def.
36476 * stdlib/strfmon_l.c (__guess_grouping): Removed.
36477 (__vstrfmon_l): Remove the third argument passed to
36478 __guess_grouping.
36479
a16e8bc0
GG
364802017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
36481
36482 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
36483 definition for issignaling that does not rely on __MATH_TG,
36484 since __MATH_TG uses __builtin_types_compatible_p, which is only
36485 available in C mode.
36486 (CFLAGS-test-math-issignaling.cc): New variable.
36487 * math/Makefile [CXX] (tests): Add test-math-issignaling.
36488 * math/test-math-issignaling.cc: New test for C++ implementation
36489 of type-generic issignaling.
36490 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
36491 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
36492 options of test-math-issignaling on powerpc64le.
36493
8d2ec553
L
364942017-08-22 H.J. Lu <hongjiu.lu@intel.com>
36495
36496 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
36497 building libc.a.
36498 (hidden_proto): Likewise.
36499 (hidden_tls_proto): Likewise.
36500 (__hidden_proto): Likewise.
36501
a4d57b79
FW
365022017-08-22 Florian Weimer <fweimer@redhat.com>
36503
36504 math: Statically link tests of internal functionality.
36505 * math/Makefile (tests): Remove atest-exp, atest-sincos,
36506 atest-exp2.
36507 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
36508 (gmp-objs): Remove assignment.
36509 (atest-exp, atest-sincos, atest-exp2): Remove targets.
36510
75dfe623
JM
365112017-08-22 Joseph Myers <joseph@codesourcery.com>
36512
80f91666
JM
36513 [BZ #21987]
36514 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
36515 and copy to ...
36516 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
36517 ... here.
36518 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
36519 ... and here.
36520
75dfe623
JM
36521 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
36522 variable definitions above inclusion of ../Rules.
36523
ea99fcd0
JM
365242017-08-21 Joseph Myers <joseph@codesourcery.com>
36525
36526 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
36527 case calling __builtin_unreachable.
36528
19926de9
AZ
365292017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36530
a8410a5f
AZ
36531 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
36532 __waitpid_nocancel.
36533 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
36534 (__waitpid_nocancel): New macro.
36535 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
36536 macro.
36537 (__waitpid_nocancel): Replace macro with a function.
36538 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
36539 function.
36540
7369800c
AZ
36541 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
36542 __fcntl_nocancel.
36543 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
36544 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
36545
19926de9
AZ
36546 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
36547 __writev_nocancel_nostatus.
36548 (write_call_graph): Likewise.
36549 (write_bb_counts): Likewise.
36550 * resolv/herror.c (herror): Likewise.
36551 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
36552 macro.
36553 (__writev_nocancel_nostatus): New macro.
36554 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
36555 Remove macro.
36556 (__writev_nocancel_nostatus): New function.
36557
813378e9
JM
365582017-08-21 Joseph Myers <joseph@codesourcery.com>
36559
df1deda6
JM
36560 Revert:
36561 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36562
36563 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
36564 building libc.a.
36565 (hidden_proto): Likewise.
36566 (hidden_tls_proto): Likewise.
36567 (__hidden_proto): Likewise.
36568
831bbd55
JM
36569 [BZ #21973]
36570 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
36571 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
36572 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
36573 Likewise.
36574 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
36575 Likewise.
36576 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
36577 Likewise.
36578 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
36579 Likewise.
36580 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
36581 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
36582 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
36583 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
36584 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
36585 GLIBC_2.0 sqrtl symbol.
36586
813378e9
JM
36587 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
36588 [__USE_MISC] (_LIB_VERSION): Likewise.
36589 [__USE_MISC] (struct exception): Likewise.
36590 [__USE_MISC] (matherr): Likewise.
36591 [__USE_MISC] (DOMAIN): Likewise.
36592 [__USE_MISC] (SING): Likewise.
36593 [__USE_MISC] (OVERFLOW): Likewise.
36594 [__USE_MISC] (UNDERFLOW): Likewise.
36595 [__USE_MISC] (TLOSS): Likewise.
36596 [__USE_MISC] (PLOSS): Likewise.
36597 [__USE_MISC] (HUGE): Likewise.
36598 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
36599 * math/math-svid-compat.h: New file.
36600 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
36601 and matherrl.
36602 * include/math.h [!_ISOMAC] (__matherr): Remove.
36603 * manual/arith.texi (FP Exceptions): Do not document matherr.
36604 * math/Makefile (tests): Change test-matherr to test-matherr-3.
36605 (tests-internal): New variable.
36606 (install-lib): Do not add libieee.a.
36607 (non-lib.a): Likewise.
36608 (extra-objs): Do not add libieee.a and ieee-math.o.
36609 (CPPFLAGS-s_lib_version.c): Remove variable.
36610 ($(objpfx)libieee.a): Remove rule.
36611 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
36612 * math/ieee-math.c: Remove.
36613 * math/libm-test-support.c (matherr): Remove.
36614 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
36615 and license notices. Include <math-svid-compat.h> and
36616 <shlib-compat.h>.
36617 (matherr): Undefine as macro. Use compat_symbol_reference.
36618 (_LIB_VERSION): Likewise.
36619 * math/test-matherr-2.c: New file.
36620 * math/test-matherr-3.c: Likewise.
36621 * sysdeps/generic/math_private.h (__kernel_standard): Remove
36622 declaration.
36623 (__kernel_standard_f): Likewise.
36624 (__kernel_standard_l): Likewise.
36625 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
36626 <math_private.h>. Include <math-svid-compat.h>.
36627 (_LIB_VERSION): Undefine as macro.
36628 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
36629 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
36630 [LIBM_SVID_COMPAT], use compat_symbol.
36631 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
36632 <math_private.h>. Include <math-svid-compat.h>.
36633 (matherr): Undefine as macro.
36634 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
36635 compat_symbol.
36636 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
36637 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
36638 compat_symbol_reference.
36639 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
36640 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
36641 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
36642 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
36643 (MATHERR_D): Remove declaration.
36644 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
36645 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
36646 [LIBM_BUILD] (pmatherrf): Likewise.
36647 [LIBM_BUILD] (pmatherr): Likewise.
36648 [LIBM_BUILD] (pmatherrl): Likewise.
36649 (DOMAIN): Likewise.
36650 (SING): Likewise.
36651 (OVERFLOW): Likewise.
36652 (UNDERFLOW): Likewise.
36653 (TLOSS): Likewise.
36654 (PLOSS): Likewise.
36655 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
36656 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
36657 compat_symbol.
36658 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
36659 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
36660 compat_symbol.
36661 * math/lgamma-compat.h: Include <math-svid-compat.h>.
36662 * math/w_acos_compat.c: Likewise.
36663 * math/w_acosf_compat.c: Likewise.
36664 * math/w_acosh_compat.c: Likewise.
36665 * math/w_acoshf_compat.c: Likewise.
36666 * math/w_acoshl_compat.c: Likewise.
36667 * math/w_acosl_compat.c: Likewise.
36668 * math/w_asin_compat.c: Likewise.
36669 * math/w_asinf_compat.c: Likewise.
36670 * math/w_asinl_compat.c: Likewise.
36671 * math/w_atan2_compat.c: Likewise.
36672 * math/w_atan2f_compat.c: Likewise.
36673 * math/w_atan2l_compat.c: Likewise.
36674 * math/w_atanh_compat.c: Likewise.
36675 * math/w_atanhf_compat.c: Likewise.
36676 * math/w_atanhl_compat.c: Likewise.
36677 * math/w_cosh_compat.c: Likewise.
36678 * math/w_coshf_compat.c: Likewise.
36679 * math/w_coshl_compat.c: Likewise.
36680 * math/w_exp10_compat.c: Likewise.
36681 * math/w_exp10f_compat.c: Likewise.
36682 * math/w_exp10l_compat.c: Likewise.
36683 * math/w_exp2_compat.c: Likewise.
36684 * math/w_exp2f_compat.c: Likewise.
36685 * math/w_exp2l_compat.c: Likewise.
36686 * math/w_fmod_compat.c: Likewise.
36687 * math/w_fmodf_compat.c: Likewise.
36688 * math/w_fmodl_compat.c: Likewise.
36689 * math/w_hypot_compat.c: Likewise.
36690 * math/w_hypotf_compat.c: Likewise.
36691 * math/w_hypotl_compat.c: Likewise.
36692 * math/w_j0_compat.c: Likewise.
36693 * math/w_j0f_compat.c: Likewise.
36694 * math/w_j0l_compat.c: Likewise.
36695 * math/w_j1_compat.c: Likewise.
36696 * math/w_j1f_compat.c: Likewise.
36697 * math/w_j1l_compat.c: Likewise.
36698 * math/w_jn_compat.c: Likewise.
36699 * math/w_jnf_compat.c: Likewise.
36700 * math/w_jnl_compat.c: Likewise.
36701 * math/w_lgamma_main.c: Likewise.
36702 * math/w_lgamma_r_compat.c: Likewise.
36703 * math/w_lgammaf_main.c: Likewise.
36704 * math/w_lgammaf_r_compat.c: Likewise.
36705 * math/w_lgammal_main.c: Likewise.
36706 * math/w_lgammal_r_compat.c: Likewise.
36707 * math/w_log10_compat.c: Likewise.
36708 * math/w_log10f_compat.c: Likewise.
36709 * math/w_log10l_compat.c: Likewise.
36710 * math/w_log2_compat.c: Likewise.
36711 * math/w_log2f_compat.c: Likewise.
36712 * math/w_log2l_compat.c: Likewise.
36713 * math/w_log_compat.c: Likewise.
36714 * math/w_logf_compat.c: Likewise.
36715 * math/w_logl_compat.c: Likewise.
36716 * math/w_pow_compat.c: Likewise.
36717 * math/w_powf_compat.c: Likewise.
36718 * math/w_powl_compat.c: Likewise.
36719 * math/w_remainder_compat.c: Likewise.
36720 * math/w_remainderf_compat.c: Likewise.
36721 * math/w_remainderl_compat.c: Likewise.
36722 * math/w_scalb_compat.c: Likewise.
36723 * math/w_scalbf_compat.c: Likewise.
36724 * math/w_scalbl_compat.c: Likewise.
36725 * math/w_sinh_compat.c: Likewise.
36726 * math/w_sinhf_compat.c: Likewise.
36727 * math/w_sinhl_compat.c: Likewise.
36728 * math/w_sqrt_compat.c: Likewise.
36729 * math/w_sqrtf_compat.c: Likewise.
36730 * math/w_sqrtl_compat.c: Likewise.
36731 * math/w_tgamma_compat.c: Likewise.
36732 * math/w_tgammaf_compat.c: Likewise.
36733 * math/w_tgammal_compat.c: Likewise.
36734 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
36735 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
36736 * sysdeps/ieee754/k_standard.c: Likewise.
36737 * sysdeps/ieee754/k_standardf.c: Likewise.
36738 * sysdeps/ieee754/k_standardl.c: Likewise.
36739 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
36740 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
36741 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
36742 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
36743 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
36744 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
36745 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
36746 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
36747 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
36748 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
36749 Likewise.
36750 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
36751 Likewise.
36752 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
36753 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
36754 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
36755 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
36756
4504783c
FW
367572017-08-21 Florian Weimer <fweimer@redhat.com>
36758
36759 [BZ #21864]
36760 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
36761 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
36762 Move before inclusion of ../Rules.
36763
b5889d25
FW
367642017-08-21 Florian Weimer <fweimer@redhat.com>
36765
36766 [BZ #21972]
36767 * assert/assert.h (assert): Use static_cast (bool) for C++.
36768 Use the ternary operator in the warning branch for GNU C.
36769 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
36770 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
36771 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
36772 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
36773 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
36774
41e673c1
L
367752017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36776
36777 [BZ #18822]
36778 * sysdeps/unix/sysv/linux/x86_64/init-first.c
36779 (__syscall_clock_gettime): Add attribute_hidden.
36780 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
36781 (__start_context): Likewise.
36782
568ff429
L
367832017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36784
36785 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
36786 building libc.a.
36787 (hidden_proto): Likewise.
36788 (hidden_tls_proto): Likewise.
36789 (__hidden_proto): Likewise.
36790
7c41b4a1
L
367912017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36792
36793 * include/libc-symbols.h (attribute_hidden): Enable hidden
36794 visibility in libc.a compiled with PIE.
36795
483d7068
L
367962017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36797
36798 [BZ #18822]
36799 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
36800 Add attribute_hidden.
36801
368022017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36803
36804 [BZ #21864]
36805 * Makerules (all-nonlib): Add $(others-extras).
36806 * catgets/Makefile (others-extras): New.
36807 * elf/Makefile (others-extras): Likewise.
36808 * nss/Makefile (others-extras): Likewise.
36809
54e4b8f2
L
368102017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36811
36812 [BZ #18822]
36813 * csu/libc-start.c (__libc_multiple_libcs): Removed.
36814 * elf/dl-open.c: Include <libc-internal.h>.
36815 (__libc_multiple_libcs): Removed.
36816 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
36817 <hp-timing.h>.
36818 * include/libc-internal.h (__libc_multiple_libcs): New.
36819 * misc/sbrk.c: Include <libc-internal.h>.
36820 (__libc_multiple_libcs): Removed.
36821
1dbbb1ec
L
368222017-08-21 H.J. Lu <hongjiu.lu@intel.com>
36823
36824 [BZ #18822]
36825 * grp/initgroups.c (__nss_group_database): Removed.
36826 (__nss_initgroups_database): Likewise.
36827 * nscd/gai.c (__nss_hosts_database): Likewise.
36828 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
36829 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
36830 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
36831 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
36832 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
36833 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
36834 attribute_hidden.
36835 * nss/nsswitch.c (__nss_database_custom): Define only if
36836 USE_NSCD is defined.
36837 (__nss_configure_lookup): Use __nss_database_custom only if
36838 USE_NSCD is defined.
36839 * nss/nsswitch.h (__nss_database_custom): Declare only if
36840 USE_NSCD is defined. Add attribute_hidden.
36841 (__nss_setent): Add attribute_hidden.
36842 (__nss_endent): Likewise.
36843 (__nss_getent_r): Likewise.
36844 (__nss_getent): Likewise.
36845 (DEFINE_DATABASE): Declare __nss_##arg##_database.
36846
2585d7b8
L
368472017-08-20 H.J. Lu <hongjiu.lu@intel.com>
36848
36849 [BZ #18822]
36850 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
36851 libc_hidden_proto and libc_hidden_def.
36852
c8dfa99c
L
368532017-08-20 H.J. Lu <hongjiu.lu@intel.com>
36854
36855 [BZ #18822]
36856 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
36857 Add libc_hidden_proto.
36858 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
36859 Add libc_hidden_def.
36860
7ed87317
L
368612017-08-20 H.J. Lu <hongjiu.lu@intel.com>
36862
36863 [BZ #21974]
36864 * gmon/Makefile (routines): Remove bb_init_func and
36865 bb_exit_func.
36866 (elide-routines.os): Removed.
9476b904
L
36867 * gmon/bb_exit_func.c: Likewise.
36868 * gmon/bb_init_func.c: Likewise.
7ed87317
L
36869 * include/sys/gmon.h (__bb): Likewise.
36870 (__bb_init_func): Likewise.
36871 (__bb_exit_func): Likewise.
91695eb1 36872 * sysdeps/alpha/bb_init_func.S: Likewise.
7ed87317 36873
94e6ba15
L
368742017-08-20 H.J. Lu <hongjiu.lu@intel.com>
36875
36876 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
36877 * include/setjmp.h (____longjmp_chk): Here. Add
36878 attribute_hidden.
36879
7550717e
L
368802017-08-19 H.J. Lu <hongjiu.lu@intel.com>
36881
36882 [BZ #18822]
36883 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
36884 attribute_hidden.
36885 (__strspn_sse2): Likewise.
36886
0bb2fabc
AZ
368872017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
36888
c181840c
AZ
36889 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
36890 (close_not_cancel_no_status): Likewise.
36891 (__close_nocancel): New macro.
36892 (__close_nocancel_nostatus): Likewise.
36893 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
36894 macro.
36895 (close_not_cancel): Likewise.
36896 (close_not_cancel_no_status): Likewise.
36897 (__close_nocancel): New prototype.
36898 (__close_nocancel_nostatus): New function.
36899 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
36900 * catgets/open_catalog.c (__open_catalog): Replace
36901 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
36902 * gmon/gmon.c (write_gmon): Likewise.
36903 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
36904 * intl/loadmsgcat.c (close): Likewise.
36905 * io/ftw.c (open_dir_stream): Likewise.
36906 (ftw_startup): Likewise.
36907 * libio/fileops.c (_IO_file_open): Likewise.
36908 (_IO_file_close_mmap): Likewise.
36909 (_IO_file_close): Likewise.
36910 * libio/iopopen.c (_IO_dup2): Likewise.
36911 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
36912 * locale/loadlocale.c (_nl_load_locale): Likewise.
36913 * login/utmp_file.c (pututline_file): Likewise.
36914 (endutent_file): Likewise.
36915 * misc/daemon.c (daemon): Likewise.
36916 * nscd/nscd_getai.c (__nscd_getai): Likewise.
36917 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
36918 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
36919 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
36920 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
36921 * nscd/nscd_helper.c (open_socket): Likewise.
36922 (__nscd_open_socket): Likewise.
36923 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
36924 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
36925 (__nscd_innetgr): Likewise.
36926 * nss/nss_db/db-open.c (internal_setent): Likewise.
36927 * resolv/res-close.c (__res_iclose): Likewise.
36928 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
36929 * sysdeps/posix/closedir.c (__closedir): Likewise.
36930 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
36931 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
36932 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
36933 (opendir_tail): Likewise.
36934 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
36935 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
36936 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
36937 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
36938 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
36939 (gethostid): Likewise.
36940 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
36941 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
36942 Likewise.
36943 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
36944 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
36945 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
36946 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
36947 Likewise.
36948 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
36949 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
36950 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
36951 Likewise.
36952 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
36953 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
36954 Likewise.
36955 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
36956 Likewise.
36957 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
36958 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
36959 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
36960 __close_nocancel.
36961
0bb2fabc
AZ
36962 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
36963 (openat_not_cancel_3): Likewise.
36964 (openat64_not_cancel_3): Likewise).
36965 (openat_not_cancel_3): Likewise).
36966 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
36967 macro.
36968 (openat_not_cancel_3): Likewise.
36969 (openat64_not_cancel): Likewise.
36970 (openat64_not_cancel_3): Likewise.
36971 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
36972 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
36973 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
36974 __open{64}_nocancel.
36975 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
36976 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
36977 * sysdeps/posix/opendir.c (__opendirat): Likewise.
36978
65a086db
L
369792017-08-18 H.J. Lu <hongjiu.lu@intel.com>
36980
36981 [BZ #18822]
36982 * include/argz.h (__argz_create_sep): New function prototype.
36983 (__argz_append): Likewise.
36984 (__argz_add): Likewise.
36985 (__argz_add_sep): Likewise.
36986 (__argz_delete): Likewise.
36987 (__argz_insert): Likewise.
36988 (__argz_replace): Likewise.
36989 * string/argz.h (__argz_create_sep): Removed.
36990 (__argz_append): Likewise.
36991 (__argz_add): Likewise.
36992 (__argz_add_sep): Likewise.
36993 (__argz_delete): Likewise.
36994 (__argz_insert): Likewise.
36995 (__argz_replace): Likewise.
36996
62753d2c
L
369972017-08-18 H.J. Lu <hongjiu.lu@intel.com>
36998
36999 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
37000 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
37001 (GNU_PROPERTY_STACK_SIZE): Likewie.
37002 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
37003 (GNU_PROPERTY_LOPROC): Likewise.
37004 (GNU_PROPERTY_HIPROC): Likewise.
37005 (GNU_PROPERTY_LOUSER): Likewise.
37006 (GNU_PROPERTY_HIUSER): Likewise.
37007 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
37008 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
37009 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
37010 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
37011 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
37012 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
37013 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
37014 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
37015 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
37016 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
37017 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
37018 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
37019 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
37020 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
37021 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
37022 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
37023 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
37024 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
37025 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
37026 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
37027 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
37028 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
37029 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
37030
6913ad65
GG
370312017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
37032
37033 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
37034 in C++ mode.
37035
47a67213
GG
370362017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
37037
37038 [BZ #21930]
37039 * math/math.h (isinf): Check if in C or C++ mode before using
37040 __builtin_types_compatible_p, since this is a C mode feature.
37041
a748eb31
AZ
370422017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
37043
c647fb88
AZ
37044 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
37045 (__write_nocancel): New macro.
37046 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
37047 Rewrite as a function prototype.
37048 (write_not_cancel): Remove macro.
37049 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
37050 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
37051 (write_gmon): Likewise.
37052 * libio/fileops.c (_IO_new_file_write): Likewise.
37053 * login/utmp_file.c (pututline_file): Likewise.
37054 (updwtmp_file): Likewise.
37055 * stdio-common/psiginfo.c (psiginfo): Likewise.
37056 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
37057 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
37058 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
37059 Likewise.
37060 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
37061 Likewise.
37062
a748eb31
AZ
37063 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
37064 (__read_nocancel): New macro.
37065 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
37066 __read_nocancel.
37067 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
37068 macro.
37069 (__read_nocancel): New prototype.
37070 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
37071 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
37072 with __read_nocancel.
37073 * intl/loadmsgcat.c (read): Likewise.
37074 * libio/fileops.c (_IO_file_read): Likewise.
37075 * locale/loadlocale.c (_nl_load_locale): Likewise.
37076 * login/utmp_file.c (getutent_r_file): Likewise.
37077 (internal_getut_r): Likewise.
37078 (getutline_r_file): Likewise.
37079 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
37080 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
37081 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
37082 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
37083 Likewise.
37084 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
37085 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
37086 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
37087 Likewise.
37088 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
37089 Likewise.
37090 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
37091 Likewise.
37092 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
37093 Likewise.
37094 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
37095
098b9dd4
L
370962017-08-18 H.J. Lu <hongjiu.lu@intel.com>
37097
37098 [BZ #21966]
37099 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
37100 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
37101 usable.
37102
a3fe6a20
DD
371032017-08-17 DJ Delorie <dj@redhat.com>
37104
37105 * bug17079.c: Update to new test harness.
37106 * test-digits-dots.c: Likewise.
37107 * test-netdb.c: Likewise.
37108 * tst-field.c: Likewise.
37109 * tst-nss-getpwent.c: Likewise.
37110 * tst-nss-static.c: Likewise.
37111 * tst-nss-test1.c: Likewise.
37112 * tst-nss-test2.c: Likewise.
37113 * tst-nss-test3.c: Likewise.
37114 * tst-nss-test4.c: Likewise.
37115 * tst-nss-test5.c: Likewise.
37116
c2284574
AZ
371172017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
37118
37119 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
37120 (open_not_cancel_2): Likewise.
37121 (open_nocancel): New macro.
37122 (open64_nocancel): Likewise.
37123 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
37124 (open_not_cancel_2): Likewise.
37125 (__open_nocancel): New prototype.
37126 (__open64_nocancel): Likewise.
37127 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
37128 __open_nocancel.
37129 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
37130 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
37131 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
37132 with __open_nocancel.
37133 * csu/check_fds.c (check_one_fd): Likewise.
37134 * gmon/gmon.c (write_gmon): Likewise.
37135 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
37136 * intl/loadmsgcat.c (open): Likewise.
37137 * libio/fileops.c (_IO_file_open): Likewise.
37138 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
37139 * locale/loadlocale.c (_nl_load_locale): Likewise.
37140 * login/utmp_file.c (setutent_file): Likewise.
37141 * misc/daemon.c (daemon): Likewise.
37142 * nss/nss_db/db-open.c (internal_setent): Likewise.
37143 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
37144 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
37145 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
37146 (__opendir): Likewise.
37147 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
37148 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
37149 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
37150 (gethostid): Likewise.
37151 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
37152 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
37153 Likewise.
37154 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
37155 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
37156 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
37157 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
37158 Likewise.
37159 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
37160 Likewise.
37161 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
37162 Likewise.
37163 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
37164 Likewise.
37165 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
37166 Likewise.
37167 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
37168 Likewise.
37169 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
37170 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
37171
d4505b89
WD
371722017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
37173
37174 * benchtests/bench-skeleton.c (main): Add support for
37175 latency benchmarking.
37176 * benchtests/scripts/bench.py: Add support for latency benchmarking.
37177
34d6a3cb
L
371782017-08-17 H.J. Lu <hongjiu.lu@intel.com>
37179
37180 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
37181 the startup object.
37182
038d1caf
FW
371832017-08-17 Florian Weimer <fweimer@redhat.com>
37184
37185 * include/sys/socket.h (__opensock): Remove internal_function.
37186 * socket/opensock.c (__opensock): Likewise.
37187 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
37188
67f0aff0
JM
371892017-08-16 Joseph Myers <joseph@codesourcery.com>
37190
37191 [BZ #21944]
37192 * signal/bits/types/__sigval_t.h: New file.
37193 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
37194 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
37195 and define sigval_t using __sigval_t.
37196 * include/bits/types/__sigval_t.h: New file.
37197 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
37198 instead of <bits/types/__sigval_t.h>.
37199 (struct sigevent): Use __sigval_t instead of sigval_t.
37200 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
37201 instead of <bits/types/__sigval_t.h>.
37202 (siginfo_t): Use __sigval_t instead of sigval_t.
37203 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
37204 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
37205 (struct sigevent): Use __sigval_t instead of sigval_t.
37206 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
37207 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
37208 (siginfo_t): Use __sigval_t instead of sigval_t.
37209 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
37210
87e7bf4d
L
372112017-08-16 H.J. Lu <hongjiu.lu@intel.com>
37212
37213 * NEWS: Remove "[Add new features here]" for 2.27.
37214
5047057f
JM
372152017-08-16 Joseph Myers <joseph@codesourcery.com>
37216
37217 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
37218 libc.so.
37219
20c7b195
L
372202017-08-16 H.J. Lu <hongjiu.lu@intel.com>
37221
37222 * NEWS: Mention x86-64 FMA optimization.
37223
24a2e658
L
372242017-08-16 H.J. Lu <hongjiu.lu@intel.com>
37225
37226 [BZ #21912]
37227 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
37228 Add e_expf-fma.
37229 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
37230 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
37231 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
37232
eedca977
AS
372332017-08-16 Andreas Schwab <schwab@suse.de>
37234
403143e1
FW
37235 [BZ #16750]
37236 CVE-2009-5064
eedca977
AS
37237 * elf/ldd.bash.in: Never run file directly.
37238
f59f7adb
L
372392017-08-15 H.J. Lu <hongjiu.lu@intel.com>
37240
37241 [BZ #21955]
37242 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
37243 (L(SP_INF_0)): Likewise.
37244
6b11a6ad
FW
372452017-08-15 Florian Weimer <fweimer@redhat.com>
37246
37247 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
37248 run-built-tests.
37249
bbf5c438
FW
372502017-08-15 Florian Weimer <fweimer@redhat.com>
37251
37252 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
37253 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
37254 BROKEN_THREAD_SIGNALS code.
37255 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
37256 request_list): Remove caller_pid member used for
37257 BROKEN_THREAD_SIGNALS.
37258 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
37259 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
37260 Remove BROKEN_THREAD_SIGNALS support.
37261 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
37262 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
37263
6014c65d
FW
372642017-08-15 Florian Weimer <fweimer@redhat.com>
37265
37266 * gmon/Makefile (tests): Add tst-gmon.
37267 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
37268 Set.
37269 (tests-special): Add tst-gmon-prof.out.
37270 (tst-gmon.out): Depend on clean-tst-gmon-data.
37271 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
37272 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
37273 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
37274 startup object.
37275 * aclocal.m4 (GPROF): Set and substitute.
37276 * config.amke.in (GPROF): Set.
37277 * configure: Regenerate.
37278
ee72219a
GR
372792017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
37280
37281 * elf/elf.h A (NT_PPC_TAR): New macro.
37282 (NT_PPC_PPR): Likewise.
37283 (NT_PPC_DSCR): Likewise.
37284 (NT_PPC_EBB): Likewise.
37285 (NT_PPC_PMU): Likewise.
37286 (NT_PPC_TM_CGPR): Likewise.
37287 (NT_PPC_TM_CFPR): Likewise.
37288 (NT_PPC_TM_CVMX): Likewise.
37289 (NT_PPC_TM_CVSX): Likewise.
37290 (NT_PPC_TM_SPR): Likewise.
37291 (NT_PPC_TM_CTAR): Likewise.
37292 (NT_PPC_TM_CPPR): Likewise.
37293 (NT_PPC_TM_CDSCR): Likewise.
37294
4ebf934e
FW
372952017-08-15 Florian Weimer <fweimer@redhat.com>
37296
37297 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
37298 regparm (2) instead of internal_function.
37299 (_MCOUNT_DECL): Adjust.
37300
e9f57484
SL
373012017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
37302
37303 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
37304 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
37305
88ff4d55
JM
373062017-08-14 Joseph Myers <joseph@codesourcery.com>
37307
37308 * conform/data/sys/wait.h-data (si_value): Do not expect for
37309 XPG42.
37310
c88ffc23
FW
373112017-08-14 Florian Weimer <fweimer@redhat.com>
37312
37313 [BZ #21962]
37314 NSS: Create stubs for accidentally exported lookup functions.
37315 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
37316 Remove declaration.
37317 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
37318 (ether_hostton): Call __nss_ethers_lookup2 instead.
37319 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
37320 (ether_ntohost): Call __nss_ethers_lookup2 instead.
37321 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
37322 (setup): Call __nss_netgroup_lookup2 instead.
37323 * nss/Makefile (routines): Add compat-lookup.
37324 * nss/Versions (GLIBC_2.27): Add symbol version.
37325 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
37326 (DB_COMPAT_FCT): Remove.
37327 * nss/compat-lookup.c: New file.
37328 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
37329 from databases.def.
37330 * nss/service-lookup.c (NO_COMPAT): Remove definition.
37331 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
37332 (netname2user): Call __nss_publickey_lookup2 instead.
37333 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
37334 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
37335 instead.
37336
35a29136 373372017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1f14d0c3
AZ
37338 Sergei Trofimovich <slyfox@inbox.ru>
37339
37340 [BZ #21908]
37341 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
37342 Rename to MMAP2_PAGE_UNIT.
37343 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
37344 __OFF_T_MATCHES_OFF64_T is not defined.
37345 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
37346 uint64_t.
37347 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
37348 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
37349
fbdc1e3e
FW
373502017-08-14 Florian Weimer <fweimer@redhat.com>
37351
37352 i386: Do not set internal_function.
37353 * config.h.in (USE_REGPARMS, internal_function): Remove.
37354 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
37355 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
37356
b3f85fd2
FW
373572017-08-14 Florian Weimer <fweimer@redhat.com>
37358
37359 * elf/dl-init.c (_dl_init): Remove internal_function.
37360 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
37361 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
37362
630bf491
FW
373632017-08-14 Florian Weimer <fweimer@redhat.com>
37364
37365 * elf/rtld.c (_dl_start): Remove internal_function.
37366 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
37367 _dl_start.
37368
9fa7449b
FW
373692017-08-14 Florian Weimer <fweimer@redhat.com>
37370
37371 * elf/dl-fini.c (_dl_fini): Remove internal_function
37372 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
37373
73322d5f
L
373742017-08-14 H.J. Lu <hongjiu.lu@intel.com>
37375
d863cd71 37376 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
73322d5f
L
37377 (bit_cpu_SHSTK): Likewise.
37378 (index_cpu_IBT): Likewise.
37379 (index_cpu_SHSTK): Likewise.
37380 (reg_IBT): Likewise.
37381 (reg_SHSTK): Likewise.
37382 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
37383 Handle index_cpu_IBT and index_cpu_SHSTK.
37384
dbc303ef
MF
373852017-08-14 Mike FABIAN <mfabian@redhat.com>
37386
37387 [BZ #19982]
37388 * po/fr.po: Fix spelling mistake.
37389
3012cfb0
FW
373902017-08-13 Florian Weimer <fweimer@redhat.com>
37391
37392 * elf/dl-addr.c (_dl_addr): Remove internal_function.
37393 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
37394 (_dl_catch_error, _dl_receive_error): Likewise.
37395 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
37396 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
37397 (_dl_deallocate_tls): Likewise.
37398 * include/dlfcn.h (_dl_addr): Likewise.
37399 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
37400 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
37401 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
37402 Likewise.
37403
52bcdf26
FW
374042017-08-13 Florian Weimer <fweimer@redhat.com>
37405
37406 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
37407 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
37408 internal_function.
37409 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
37410
e1d2ae8d
FW
374112017-08-13 Florian Weimer <fweimer@redhat.com>
37412
37413 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
37414 internal_function.
37415 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
37416 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
37417 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
37418 internal_function from _dl_make_stack_executable_hook member.
37419 (_dl_make_stack_executable): Remove internal_function.
37420 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
37421 Likewise.
37422 * sysdeps/unix/sysv/linux/dl-execstack.c
37423 (_dl_make_stack_executable): Likewise.
37424
c4ce0382
FW
374252017-08-13 Florian Weimer <fweimer@redhat.com>
37426
37427 * sysdeps/unix/sysv/linux/netlinkaccess.h
37428 (__netlink_assert_response): Remove internal_function.
37429 * sysdeps/unix/sysv/linux/netlink_assert_response.c
37430 (__netlink_assert_response): Likewise.
37431
c4d767f7
FW
374322017-08-13 Florian Weimer <fweimer@redhat.com>
37433
37434 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
37435 internal_function.
37436 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
37437
b2297409
FW
374382017-08-13 Florian Weimer <fweimer@redhat.com>
37439
37440 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
37441 internal_function.
37442 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
37443 * inet/netgroup.h (__internal_setnetgrent)
37444 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
37445 * inet/getnetgrent_r.c (__internal_setnetgrent)
37446 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
37447 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
37448 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
37449 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
37450 * nss/nsswitch.h (db_lookup_function): Likewise.
37451
1b0bfc69
FW
374522017-08-13 Florian Weimer <fweimer@redhat.com>
37453
37454 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
37455 Remove internal_function.
37456 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
37457 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
37458 message argument on the stack.
37459 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
37460 Likeweise.
37461
a6bd8722
MF
374622017-08-12 Mike FABIAN <mfabian@redhat.com>
37463
37464 Adapt test case data to the changes in the thousands
37465 separators.
37466
37467 [BZ #20756]
37468 * localedata/tst-langinfo.sh: Adapt test case data.
37469 * stdlib/tst-strfmon_l.c: Likewise.
37470 * stdlib/tst-strtod4.c: Likewise.
37471 * stdlib/tst-strtod5i.c: Likewise.
37472
8b2c63e4
FW
374732017-08-11 Florian Weimer <fweimer@redhat.com>
37474
37475 [BZ #21242]
37476 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
37477 Suppress pedantic warning resulting from statement expression.
37478 (__ASSERT_FUNCTION): Add missing __extension__.
37479
61c98291
SP
374802017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
37481
86c6519e
SP
37482 * benchtests/bench-memmove-large.c: Print output in JSON
37483 format.
37484 * benchtests/bench-memmove.c: Likewise.
37485
61c98291
SP
37486 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
37487 * benchtests/bench-memchr.c (do_one_test): Likewise.
37488 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
37489 * benchtests/bench-memcpy.c (do_one_test): Likewise.
37490 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
37491 * benchtests/bench-memmove.c (do_one_test): Likewise.
37492 * benchtests/bench-memset-large.c (do_one_test): Likewise.
37493 * benchtests/bench-memset.c (do_one_test): Likewise.
37494 * benchtests/bench-string.h (test_init): Remove memsets.
37495
925733a9
RJ
374962017-08-10 Rical Jasan <ricaljasan@pacific.net>
37497
37498 * manual/lang.texi
37499 (Computing the Width of an Integer Data Type): Rename section to
37500 "Width of an Integer Type". Remove inaccurate statement regarding
37501 lack of C language facilities for determining width of integer
37502 types, and reorder content to improve flow and context of
37503 discussion.
37504
4fcdfbfc
RJ
375052017-08-10 Rical Jasan <ricaljasan@pacific.net>
37506
37507 * lang.texi (va_copy): Change standard from ISO to C99.
37508 (__va_copy): Add standard and header annotation.
37509 Update description for clarity of origins and current use.
37510
4d98ace9
GG
375112017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
37512
37513 [BZ #21941]
37514 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
37515 xssqrtqp requires operands to be in Vector Registers
37516 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
37517 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
37518 (__ieee754_sqrtf128): Likewise.
37519
92236903
WD
375202017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
37521
37522 * sysdeps/aarch64/memcmp.S (memcmp):
37523 Rewrite of optimized memcmp.
37524
2449ae7b
FW
375252017-08-10 Florian Weimer <fweimer@redhat.com>
37526
37527 Introduce ld.so exceptions.
37528 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
37529 (_dl_exception_create, _dl_exception_create_format)
37530 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
37531 (_dl_catch_exception): Declare.
37532 (_dl_catch_error): Update comment.
37533 * elf/dl-error-skeleton.c (struct catch): Replace objname,
37534 errstring, malloced members with exception member.
37535 (_dl_out_of_memory): Remove.
37536 (fatal_error): New function, extracted from _dl_signal_error.
37537 (_dl_signal_exception, _dl_signal_cexception): New functions.
37538 (_dl_signal_error): Call _dl_exception_create to allocate an
37539 exception object.
37540 (_dl_catch_exception): New function, based on _dl_catch_error.
37541 (_dl_catch_error): Implement using _dl_catch_exception.
37542 * elf/dl-exception.c: New file.
37543 * elf/Makefile (dl-routines): Add dl-exception.
37544 (elide-routines.os): Likewise.
37545 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
37546 _dl_exception_create_format, _dl_exception_free.
37547 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
37548 _dl_signal_exception.
37549 * elf/dl-lookup.c (make_string): Remove.
37550 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
37551 _dl_signal_cexception, _dl_exception_free.
37552 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
37553 _dl_signal_exception.
37554 * elf/dl-sym.c (do_sym): Likewise.
37555 * elf/dl-version.c (make_string): Remove.
37556 (match_symbol): Use _dl_exception_create_format,
37557 _dl_signal_cexception, _dl_exception_free.
37558 (_dl_check_map_versions): Likewise.
37559 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
37560 _dl_catch_exception.
37561 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
37562 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
37563 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
37564 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
37565 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
37566 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
37567 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
37568 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
37569 Likewise.
37570 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
37571 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
37572 (ld.so): Likewise.
37573 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
37574 (ld.so): Likewise.
37575 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
37576 Likewise.
37577 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
37578 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
37579 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
37580 Likewise.
37581 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
37582 Likewise.
37583 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
37584
f87cc2bf
FW
375852017-08-10 Florian Weimer <fweimer@redhat.com>
37586
37587 * inet/net-internal.h (__inet6_scopeid_pton): Remove
37588 attribute_hidden, internal_function.
37589 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
37590 internal_function.
37591
eac43cbb
FW
375922017-08-10 Florian Weimer <fweimer@redhat.com>
37593
37594 * malloc/malloc.c (get_max_fast): Reimplement as an inline
37595 function which calls __builtin_unreachable.
37596
bd80111e
MF
375972017-08-10 Mike FABIAN <mfabian@redhat.com>
37598
37599 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
37600 Indian monetary formatting
37601 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
37602 test cases.
37603
60e2846e
DL
376042017-08-09 Dmitry V. Levin <ldv@altlinux.org>
37605
68dc02d1
DL
37606 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
37607 Fix typo in comment.
37608
60e2846e
DL
37609 [BZ #21928]
37610 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
37611 PTRACE_SEIZE_DEVEL): Remove.
37612 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
37613 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
37614 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
37615 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
37616 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
37617
3d452dab
JM
376182017-08-09 Joseph Myers <joseph@codesourcery.com>
37619
24d9f53a
JM
37620 * posix/bits/types.h (__qaddr_t): Remove.
37621
3d452dab
JM
37622 [BZ #21457]
37623 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
37624 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
37625 __glibc_reserved1.
37626 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
37627 (ucontext_t): Use __ctx with uc_flags.
37628 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
37629 (__ctxt): Likewise.
37630 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
37631 __glibc_reserved1.
37632 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
37633 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
37634 __glibc_reserved1.
37635 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
37636 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
37637 __glibc_reserved1.
37638 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
37639 macro.
37640 (ucontext_t): Use __ctx with uc_flags.
37641 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
37642 (ucontext_t): Use __ctx with uc_flags.
37643 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
37644 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
37645 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
37646 (ucontext_t): Use __ctx with uc_flags.
37647 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
37648 undefine further down.
37649 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
37650 __glibc_reserved1.
37651 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
37652 undefine further down.
37653 (ucontext_t): Use __ctx with uc_flags.
37654 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
37655 undefine further down.
37656 (ucontext_t): Use __ctx with uc_flags.
37657 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
37658 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
37659 Rename uc_pad to __glibc_reserved1.
37660 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
37661 undefine further down.
37662 (ucontext_t): Use __ctx with uc_flags.
37663 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
37664 further down.
37665 (ucontext_t): Use __ctx with uc_flags.
37666 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
37667 __ctx with uc_flags.
37668 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
37669 (ucontext_t): Use __ctx with uc_flags.
37670 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
37671 __ctx with uc_flags.
37672
30161498
FW
376732017-08-09 Florian Weimer <fweimer@redhat.com>
37674
37675 [BZ #21932]
37676 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
37677 before early return.
37678
5797b410
AS
376792017-08-09 Andreas Schwab <schwab@suse.de>
37680
139237a4 37681 [BZ #21041]
5797b410
AS
37682 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
37683 renamed alias.
37684
139237a4 37685 [BZ #21041]
40c06a3d
AS
37686 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
37687 tst-compat-forwarder.
37688 (modules-names): Add tst-compat-forwarder-mod.
37689 ($(objpfx)tst-compat-forwarder): Depend on
37690 $(objpfx)tst-compat-forwarder-mod.so.
37691 * nptl/tst-compat-forwarder.c: New file.
37692 * nptl/tst-compat-forwarder-mod.c: New file.
37693
36ada5f6
SP
376942017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
37695
0e02b510
SP
37696 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
37697 comments.
37698
36ada5f6
SP
37699 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
37700 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
37701 memcpy_falkor.
37702 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
37703 Bump.
37704 (__libc_ifunc_impl_list): Add __memcpy_falkor.
37705 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
37706 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
37707 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
37708 Add falkor.
37709 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
37710 New macro.
37711
9995c839
AZ
377122017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
37713
37714 [BZ #759]
37715 * manual/setjmp.texi (getcontex): Document uc_stack value
37716 compatibility differences.
37717
f17a4233
JM
377182017-08-08 Joseph Myers <joseph@codesourcery.com>
37719
37720 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
37721 (old_malloc_hook): Likewise.
37722 (old_memalign_hook): Likewise.
37723 (old_realloc_hook): Likewise.
37724 (struct hdr): Likewise.
37725 (flood): Likewise.
37726 (freehook): Likewise.
37727 (mallochook): Likewise.
37728 (memalignhook): Likewise.
37729 (reallochook): Likewise.
37730 (mprobe): Likewise.
37731 * malloc/mtrace.c (mallwatch): Likewise.
37732 (tr_old_free_hook): Likewise.
37733 (tr_old_malloc_hook): Likewise.
37734 (tr_old_realloc_hook): Likewise.
37735 (tr_old_memalign_hook): Likewise.
37736 (tr_where): Likewise.
37737 (lock_and_info): Likewise.
37738 (tr_freehook): Likewise.
37739 (tr_mallochook): Likewise.
37740 (tr_reallochook): Likewise.
37741 (tr_memalignhook): Likewise.
37742 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
37743 * misc/mmap.c (__mmap): Likewise.
37744 * misc/mmap64.c (__mmap64): Likewise.
37745 * misc/mprotect.c (__mprotect): Likewise.
37746 * misc/msync.c (msync): Likewise.
37747 * misc/munmap.c (__munmap): Likewise.
37748 * posix/posix_madvise.c (posix_madvise): Likewise.
37749 * socket/send.c (__send): Likewise.
37750 * socket/sendto.c (__sendto): Likewise.
37751 * socket/setsockopt.c (__setsockopt): Likewise.
37752 * string/memcmp.c (__ptr_t): Remove macro.
37753 (MEMCMP): Use void * instead of ptr_t.
37754 * string/memrchr.c (__ptr_t): Remove macro.
37755 (__memrchr): Use void * instead of ptr_t.
37756 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
37757 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
37758 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
37759 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
37760 * sysdeps/mach/msync.c (msync): Likewise.
37761 * sysdeps/mach/munmap.c (__munmap): Likewise.
37762 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
37763 Likewise.
37764 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
37765 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
37766 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
37767 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
37768 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
37769 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
37770 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
37771 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
37772 Likewise.
37773 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
37774 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
37775 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
37776 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
37777 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
37778 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
37779 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
37780 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
37781 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
37782 Likewise.
37783 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
37784 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
37785 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
37786 (MEMCMP): Use void * instead of ptr_t.
37787 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
37788 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
37789
0df595b2
FW
377902017-08-08 Florian Weimer <fweimer@redhat.com>
37791
37792 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
37793 return statement.
37794
086df229
L
377952017-08-08 H.J. Lu <hongjiu.lu@intel.com>
37796
37797 [BZ #21913]
37798 * csu/libc-tls.c: Include <startup.h> first.
37799 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
37800 * elf/dl-tunables.c: Include <startup.h> first.
37801 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
37802 * sysdeps/generic/startup.h: New file.
37803 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
37804 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
37805 (I386_USE_SYSENTER): New. Defined to 0.
37806
fc5ad702
AS
378072017-08-08 Andreas Schwab <schwab@suse.de>
37808
37809 [BZ #21041]
37810 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
37811 * nptl/pt-system.c (system): Likewise.
37812
852d6312
AZ
378132017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
37814
37815 [BZ #21780]
37816 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
37817 EOPNOTSUPP.
37818 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
37819 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
37820 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
37821 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
37822 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
37823 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
37824 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
37825
8b164787
JM
378262017-08-07 Joseph Myers <joseph@codesourcery.com>
37827
cd65836b
JM
37828 [BZ #21899]
37829 * bits/sigaction.h (struct sigaction): Define sa_handler and
37830 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
37831 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37832 [__USE_XOPEN_EXTENDED].
37833 (SA_RESTART): Likewise.
37834 (SA_NODEFER): Likewise.
37835 (SA_RESETHAND): Likewise.
37836 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
37837 (struct sigaction): Define sa_handler and sa_sigaction using union
37838 also for [__USE_XOPEN_EXTENDED].
37839 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37840 [__USE_XOPEN_EXTENDED].
37841 (SA_RESTART): Likewise.
37842 (SA_NODEFER): Likewise.
37843 (SA_RESETHAND): Likewise.
37844 * sysdeps/unix/sysv/linux/bits/sigaction.h
37845 (struct sigaction): Define sa_handler and sa_sigaction using union
37846 also for [__USE_XOPEN_EXTENDED].
37847 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37848 [__USE_XOPEN_EXTENDED].
37849 (SA_RESTART): Likewise.
37850 (SA_NODEFER): Likewise.
37851 (SA_RESETHAND): Likewise.
37852 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
37853 (struct sigaction): Define sa_handler and sa_sigaction using union
37854 also for [__USE_XOPEN_EXTENDED].
37855 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37856 [__USE_XOPEN_EXTENDED].
37857 (SA_RESTART): Likewise.
37858 (SA_NODEFER): Likewise.
37859 (SA_RESETHAND): Likewise.
37860 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
37861 (struct sigaction): Define sa_handler and sa_sigaction using union
37862 also for [__USE_XOPEN_EXTENDED].
37863 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37864 [__USE_XOPEN_EXTENDED].
37865 (SA_RESTART): Likewise.
37866 (SA_NODEFER): Likewise.
37867 (SA_RESETHAND): Likewise.
37868 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
37869 (struct sigaction): Define sa_handler and sa_sigaction using union
37870 also for [__USE_XOPEN_EXTENDED].
37871 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37872 [__USE_XOPEN_EXTENDED].
37873 (SA_RESTART): Likewise.
37874 (SA_NODEFER): Likewise.
37875 (SA_RESETHAND): Likewise.
37876 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
37877 (struct sigaction): Define sa_handler and sa_sigaction using union
37878 also for [__USE_XOPEN_EXTENDED].
37879 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37880 [__USE_XOPEN_EXTENDED].
37881 (SA_RESTART): Likewise.
37882 (SA_NODEFER): Likewise.
37883 (SA_RESETHAND): Likewise.
37884 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
37885 (struct sigaction): Define sa_handler and sa_sigaction using union
37886 also for [__USE_XOPEN_EXTENDED].
37887 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37888 [__USE_XOPEN_EXTENDED].
37889 (SA_RESTART): Likewise.
37890 (SA_NODEFER): Likewise. Define directly rather than as alias.
37891 (SA_RESETHAND): Likewise.
37892 (SA_INTERRUPT): Define only for [__USE_MISC].
37893 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
37894 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
37895 [__USE_MISC].
37896 (SA_STACK): Define only for [__USE_MISC].
37897 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
37898 (struct sigaction): Define sa_handler and sa_sigaction using union
37899 also for [__USE_XOPEN_EXTENDED].
37900 (SA_ONSTACK): Change [__USE_UNIX98] condition to
37901 [__USE_XOPEN_EXTENDED].
37902 (SA_RESTART): Likewise.
37903 (SA_NODEFER): Likewise.
37904 (SA_RESETHAND): Likewise.
37905 (SA_NOPTRACE): Define only for [__USE_MISC].
37906
d9fee042
JM
37907 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
37908 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
37909 (struct catalog_info): Likewise.
37910 * inet/htontest.c (lo): Likewise.
37911 (foo): Likewise.
37912 * inet/inet_lnaof.c (inet_lnaof): Likewise.
37913 * inet/inet_net.c (inet_network): Likewise.
37914 * inet/inet_netof.c (inet_netof): Likewise.
37915 * inet/rcmd.c (__ivaliduser): Likewise.
37916 (iruserok): Likewise.
37917 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
37918 * locale/programs/locale-spec.c (locale_special): Likewise.
37919 * nis/nis_findserv.c (struct findserv_req): Likewise.
37920 (__nis_findfastest_with_timeout): Likewise.
37921 * nss/test-netdb.c (test_network): Likewise.
37922 * resolv/inet_neta.c (inet_neta): Likewise.
37923 * resolv/ns_date.c (ns_datetosecs): Likewise.
37924 (SECS_PER_DAY): Likewise.
37925 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
37926 Likewise.
37927 * resolv/res_comp.c (__putlong): Likewise.
37928 (__putshort): Likewise.
37929 (_getlong): Likewise.
37930 (_getshort): Likewise.
37931 * resolv/res_debug.c (p_time): Likewise.
37932 (precsize_ntoa): Likewise.
37933 (precsize_aton): Likewise.
37934 (latlon2ul): Likewise.
37935 (loc_aton): Likewise.
37936 (loc_ntoa): Likewise.
37937 * resolv/res_hconf.c (struct netaddr): Likewise.
37938 (_res_hconf_reorder_addrs): Likewise.
37939 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
37940 (clnttcp_control): Likewise.
37941 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
37942 (clntudp_control): Likewise.
37943 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
37944 (clntunix_control): Likewise.
37945 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
37946 * sunrpc/rpc/auth.h (union des_block): Likewise.
37947 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
37948 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
37949 (xdrrec_create): Likewise.
37950 (xdrrec_endofrecord): Likewise.
37951 (flush_out): Likewise.
37952 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
37953 (xdrstdio_putlong): Likewise.
37954 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
37955 Likewise.
37956
8b164787
JM
37957 * misc/sys/cdefs.h (__long_double_t): Remove.
37958 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
37959 instead of __long_double_t,
37960 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
37961
7ee38e60
SP
379622017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
37963
dd3e86ad
SP
37964 * benchtests/scripts/compare_strings.py: Avoid display error when
37965 running on a text terminal.
37966
b115e819
SP
37967 * benchtests/scripts/compare_strings.py (main): Add an
37968 optional -base option.
37969 (process_results): New argument base_func.
37970
7ee38e60
SP
37971 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
37972 hardcoding memcpy.
37973 * benchtests/bench-memcpy-large.c (test_name): Likewise.
37974 * benchtests/bench-memcpy-random.c (test_name): Likewise.
37975
d5afb385
AS
379762017-08-07 Andreas Schwab <schwab@suse.de>
37977
37978 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
37979 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
37980 * intl/Makefile ($(objpfx)tst-gettext.out)
37981 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
37982 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
37983 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
37984 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
37985 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
37986 * posix/Makefile ($(objpfx)globtest.out)
37987 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
37988 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
37989 ($(objpfx)tst-printf.out): Likewise.
37990 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
37991 ($(objpfx)tst-setcontext3.out): Likewise.
37992
57a72fa3
L
379932017-08-07 H.J. Lu <hongjiu.lu@intel.com>
37994
37995 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
37996 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
37997 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
37998 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
37999 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
38000 and mptan-fma.
38001 (CFLAGS-doasin-fma.c): New.
38002 (CFLAGS-dosincos-fma.c): Likewise.
38003 (CFLAGS-e_asin-fma.c): Likewise.
38004 (CFLAGS-e_atan2-fma.c): Likewise.
38005 (CFLAGS-e_exp-fma.c): Likewise.
38006 (CFLAGS-e_log-fma.c): Likewise.
38007 (CFLAGS-e_pow-fma.c): Likewise.
38008 (CFLAGS-halfulp-fma.c): Likewise.
38009 (CFLAGS-mpa-fma.c): Likewise.
38010 (CFLAGS-mpatan-fma.c): Likewise.
38011 (CFLAGS-mpatan2-fma.c): Likewise.
38012 (CFLAGS-mpexp-fma.c): Likewise.
38013 (CFLAGS-mplog-fma.c): Likewise.
38014 (CFLAGS-mpsqrt-fma.c): Likewise.
38015 (CFLAGS-mptan-fma.c): Likewise.
38016 (CFLAGS-s_atan-fma.c): Likewise.
38017 (CFLAGS-sincos32-fma.c): Likewise.
38018 (CFLAGS-slowexp-fma.c): Likewise.
38019 (CFLAGS-slowpow-fma.c): Likewise.
38020 (CFLAGS-s_sin-fma.c): Likewise.
38021 (CFLAGS-s_tan-fma.c): Likewise.
38022 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
38023 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
38024 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
38025 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
38026 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
38027 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
38028 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
38029 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
38030 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
38031 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
38032 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
38033 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
38034 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
38035 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
38036 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
38037 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
38038 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
38039 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
38040 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
38041 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
38042 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
38043 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
38044 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
38045 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
38046 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
38047 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
38048 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
38049 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
38050 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
38051 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
38052 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
38053
219dd320
JM
380542017-08-04 Joseph Myers <joseph@codesourcery.com>
38055
38056 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
38057 (min_of_type_f): New macro.
38058 (min_of_type_): Likewise.
38059 (min_of_type_l): Likewise.
38060 (min_of_type_f128): Likewise.
38061 (min_of_type): Define using __MATH_TG and taking an expression
38062 argument.
38063 (math_check_force_underflow): Pass expression instead of type to
38064 min_of_type.
38065 (math_check_force_underflow_nonneg): Likewise.
38066
64d4dea6
L
380672017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38068
38069 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
38070 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
38071 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
38072
973da22a
L
380732017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38074
38075 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
38076 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
38077 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
38078 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
38079 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
38080 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
38081 memcpy_chk-nonshared, mempcpy_chk-nonshared,
38082 memmove_chk-nonshared and memset_chk-nonshared
38083 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
38084 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
38085 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
38086 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
38087 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
38088 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
38089 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
38090 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
38091 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
38092 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
38093 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
38094 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
38095 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
38096 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
38097 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
38098 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
38099 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
38100 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
38101 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
38102 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
38103 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
38104 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
38105 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
38106 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
38107 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
38108 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
38109 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
38110 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
38111 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
38112 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
38113 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
38114 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
38115 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
38116 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
38117 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
38118 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
38119 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
38120 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
38121 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
38122 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
38123 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
38124 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
38125 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
38126 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
38127 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
38128 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
38129 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
38130 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
38131 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
38132 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
38133 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
38134 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
38135 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
38136 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
38137 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
38138 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
38139 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
38140 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
38141 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
38142 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
38143 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
38144 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
38145 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
38146 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
38147 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
38148 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
38149 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
38150 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
38151 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
38152 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
38153 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
38154 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
38155 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
38156 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
38157 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
38158 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
38159 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
38160 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
38161 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
38162 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
38163 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
38164 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
38165 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
38166 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
38167 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
38168 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
38169 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
38170 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
38171 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
38172 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
38173 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
38174 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
38175 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
38176 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
38177 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
38178 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
38179 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
38180 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
38181 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
38182 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
38183 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
38184 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
38185 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
38186 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
38187 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
38188 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
38189 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
38190 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
38191
8537e0f6
L
381922017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38193
38194 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
38195 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
38196 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
38197 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
38198 svml_d_log2_core-sse2, svml_d_log4_core-sse,
38199 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
38200 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
38201 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
38202 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
38203 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
38204 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
38205 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
38206 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
38207 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
38208 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
38209 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
38210 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
38211 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
38212 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
38213 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
38214 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
38215 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
38216 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
38217 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
38218 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
38219 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
38220 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
38221 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
38222 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
38223 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
38224 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
38225 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
38226 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
38227 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
38228 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
38229 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
38230 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
38231 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
38232 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
38233 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
38234 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
38235 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
38236 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
38237 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
38238 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
38239 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
38240 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
38241 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
38242 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
38243 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
38244 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
38245 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
38246 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
38247 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
38248 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
38249 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
38250 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
38251 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
38252 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
38253 ...
38254 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
38255 Don't include <sysdep.h> nor <init-arch.h>.
38256 (_ZGVbN2v_cos): Removed.
38257 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
38258 ...
38259 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
38260 Don't include <sysdep.h> nor <init-arch.h>.
38261 (_ZGVdN4v_cos): Removed.
38262 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
38263 ...
38264 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
38265 Don't include <sysdep.h> nor <init-arch.h>.
38266 (_ZGVeN8v_cos): Removed.
38267 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
38268 ...
38269 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
38270 Don't include <sysdep.h> nor <init-arch.h>.
38271 (_ZGVbN2v_exp): Removed.
38272 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
38273 ...
38274 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
38275 Don't include <sysdep.h> nor <init-arch.h>.
38276 (_ZGVdN4v_exp): Removed.
38277 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
38278 ...
38279 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
38280 Don't include <sysdep.h> nor <init-arch.h>.
38281 (_ZGVeN8v_exp): Removed.
38282 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
38283 ...
38284 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
38285 Don't include <sysdep.h> nor <init-arch.h>.
38286 (_ZGVbN2v_log): Removed.
38287 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
38288 ...
38289 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
38290 Don't include <sysdep.h> nor <init-arch.h>.
38291 (_ZGVdN4v_log): Removed.
38292 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
38293 ...
38294 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
38295 Don't include <sysdep.h> nor <init-arch.h>.
38296 (_ZGVeN8v_log): Removed.
38297 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
38298 ...
38299 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
38300 Don't include <sysdep.h> nor <init-arch.h>.
38301 (_ZGVbN2vv_pow): Removed.
38302 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
38303 ...
38304 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
38305 Don't include <sysdep.h> nor <init-arch.h>.
38306 (_ZGVdN4vv_pow): Removed.
38307 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
38308 ...
38309 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
38310 Don't include <sysdep.h> nor <init-arch.h>.
38311 (_ZGVeN8vv_pow): Removed.
38312 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
38313 ...
38314 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
38315 Don't include <sysdep.h> nor <init-arch.h>.
38316 (_ZGVbN2v_sin): Removed.
38317 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
38318 ...
38319 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
38320 Don't include <sysdep.h> nor <init-arch.h>.
38321 (_ZGVbN4v_sin): Removed.
38322 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
38323 ...
38324 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
38325 Don't include <sysdep.h> nor <init-arch.h>.
38326 (_ZGVbN8v_sin): Removed.
38327 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
38328 ...
38329 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
38330 Don't include <sysdep.h> nor <init-arch.h>.
38331 (_ZGVbN2vvv_sincos): Removed.
38332 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
38333 ...
38334 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
38335 Don't include <sysdep.h> nor <init-arch.h>.
38336 (_ZGVdN4vvv_sincos): Removed.
38337 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
38338 ...
38339 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
38340 Don't include <sysdep.h> nor <init-arch.h>.
38341 (_ZGVeN8vvv_sincos): Removed.
38342 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
38343 ...
38344 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
38345 Don't include <sysdep.h> nor <init-arch.h>.
38346 (_ZGVeN16v_cosf): Removed.
38347 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
38348 ...
38349 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
38350 Don't include <sysdep.h> nor <init-arch.h>.
38351 (_ZGVbN4v_cosf): Removed.
38352 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
38353 ...
38354 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
38355 Don't include <sysdep.h> nor <init-arch.h>.
38356 (_ZGVdN8v_cosf): Removed.
38357 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
38358 ...
38359 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
38360 Don't include <sysdep.h> nor <init-arch.h>.
38361 (_ZGVeN16v_expf): Removed.
38362 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
38363 ...
38364 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
38365 Don't include <sysdep.h> nor <init-arch.h>.
38366 (_ZGVbN4v_expf): Removed.
38367 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
38368 ...
38369 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
38370 Don't include <sysdep.h> nor <init-arch.h>.
38371 (_ZGVdN8v_expf): Removed.
38372 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
38373 ...
38374 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
38375 Don't include <sysdep.h> nor <init-arch.h>.
38376 (_ZGVeN16v_logf): Removed.
38377 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
38378 ...
38379 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
38380 Don't include <sysdep.h> nor <init-arch.h>.
38381 (_ZGVbN4v_logf): Removed.
38382 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
38383 ...
38384 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
38385 Don't include <sysdep.h> nor <init-arch.h>.
38386 (_ZGVdN8v_logf): Removed.
38387 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
38388 ...
38389 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
38390 Don't include <sysdep.h> nor <init-arch.h>.
38391 (_ZGVeN16vv_powf): Removed.
38392 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
38393 ...
38394 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
38395 Don't include <sysdep.h> nor <init-arch.h>.
38396 (_ZGVbN4vv_powf): Removed.
38397 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
38398 ...
38399 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
38400 Don't include <sysdep.h> nor <init-arch.h>.
38401 (_ZGVdN8vv_powf): Removed.
38402 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
38403 ...
38404 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
38405 Don't include <sysdep.h> nor <init-arch.h>.
38406 (_ZGVeN16vvv_sincosf): Removed.
38407 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
38408 ...
38409 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
38410 Don't include <sysdep.h> nor <init-arch.h>.
38411 (_ZGVbN4vvv_sincosf): Removed.
38412 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
38413 ...
38414 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
38415 Don't include <sysdep.h> nor <init-arch.h>.
38416 (_ZGVdN8vvv_sincosf): Removed.
38417 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
38418 ...
38419 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
38420 Don't include <sysdep.h> nor <init-arch.h>.
38421 (_ZGVeN16v_sinf): Removed.
38422 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
38423 ...
38424 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
38425 Don't include <sysdep.h> nor <init-arch.h>.
38426 (_ZGVbN4v_sinf): Removed.
38427 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
38428 ...
38429 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
38430 Don't include <sysdep.h> nor <init-arch.h>.
38431 (_ZGVdN8v_sinf): Removed.
38432
10a87ca4
L
384332017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38434
38435 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
38436 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
38437 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
38438 s_rint-sse4_1 and s_rintf-sse4_1.
38439 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
38440 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
38441 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
38442 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
38443 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
38444 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
38445 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
38446 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
38447 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
38448 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
38449 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
38450 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38451 (__ceil): Removed.
38452 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
38453 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
38454 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38455 (__ceilf): Removed.
38456 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
38457 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
38458 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38459 (__floor): Removed.
38460 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
38461 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
38462 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38463 (__floorf): Removed.
38464 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
38465 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
38466 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38467 (__nearbyint): Removed.
38468 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
38469 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
38470 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38471 (__nearbyintf): Removed.
38472 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
38473 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
38474 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38475 (__rint): Removed.
38476 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
38477 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
38478 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
38479 (__rintf): Removed.
38480
1e8e527d
L
384812017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38482
38483 * sysdeps/i386/start.S (_start): Check Check PIC instead of
38484 SHARED. Avoid dynamic relocation against main in static PIE.
38485
e13daad7
L
384862017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38487
38488 [BZ #21815]
38489 * elf/Makefile (CFLAGS-tst-prelink.c): New.
38490 (LDFLAGS-tst-prelink): Likewise.
38491
627c69c8
L
384922017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38493
38494 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
38495 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
38496 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
38497 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
38498 (INTERNAL_SYSCALL_NCS): Likewise.
38499 (LOADARGS_1): Likewise.
38500 (LOADARGS_5): Likewise.
38501 (RESTOREARGS_1): Likewise.
38502 (RESTOREARGS_5): Likewise.
38503
fc11ff8d
L
385042017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38505
38506 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
38507 (MEMPCPY_SYMBOL): Likewise.
38508 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
38509 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
38510 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
38511 in libc.a.
38512 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
38513 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
38514 Likewise.
38515 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
38516 (__hidden_ver1): Don't use in libc.a.
38517 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
38518 (__mempcpy): Don't create a weak alias in libc.a.
38519 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
38520 libc.a.
38521 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
38522 (__hidden_ver1): Don't use in libc.a.
38523
19f1a11e
L
385242017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38525
38526 * config.make.in (have-insert): New.
38527 * configure.ac (libc_cv_insert): New. Set to yes if linker
38528 supports INSERT in linker script.
38529 (AC_SUBST(libc_cv_insert): New.
38530 * configure: Regenerated.
38531 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
38532 if $(have-insert) == yes.
38533
3093fd5e
L
385342017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38535
38536 * elf/Makefile (tests): Add vismain only if
38537 $(have-protected-data) == yes.
38538 (tests-pie): Likewise.
38539
d2cf37c0
L
385402017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38541
38542 [BZ #21871]
38543 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
38544 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
38545
c8a0e6ec
L
385462017-08-04 H.J. Lu <hongjiu.lu@intel.com>
38547
38548 [BZ #21790]
38549 * sysdeps/i386/i586/memset.S
38550 (__memset_zero_constant_len_parameter): Removed.
38551 * sysdeps/i386/i686/memset.S
38552 (__memset_zero_constant_len_parameter): Likewise.
38553 * sysdeps/i386/i686/multiarch/memset_chk.S
38554 (__memset_zero_constant_len_parameter): Likewise.
38555 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
38556 Likewise.
38557
2b34e271
AJ
385582017-08-03 Aurelien Jarno <aurelien@aurel32.net>
38559
38560 * stdlib/getentropy.c (getentropy): Change return type to int.
38561
144bdab0
AJ
385622017-08-03 Aurelien Jarno <aurelien@aurel32.net>
38563
38564 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
38565
24ab7723
JM
385662017-08-03 Joseph Myers <joseph@codesourcery.com>
38567
38568 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
38569 u_intN_t.
38570 * math/s_nexttowardf.c (__nexttowardf): Likewise.
38571 * sysdeps/generic/math_private.h (ieee_double_shape_type):
38572 Likewise.
38573 (ieee_float_shape_type): Likewise.
38574 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
38575 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
38576 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
38577 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
38578 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
38579 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
38580 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
38581 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
38582 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
38583 Likewise.
38584 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
38585 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
38586 (__ieee754_yn): Likewise.
38587 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
38588 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
38589 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
38590 Likewise.
38591 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
38592 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
38593 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
38594 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
38595 (__erfc): Likewise.
38596 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
38597 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
38598 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
38599 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
38600 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
38601 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
38602 Likewise.
38603 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
38604 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
38605 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
38606 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
38607 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
38608 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
38609 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
38610 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
38611 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
38612 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
38613 (__issignaling): Likewise.
38614 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
38615 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
38616 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
38617 Likewise.
38618 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
38619 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
38620 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
38621 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
38622 Likewise.
38623 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
38624 Likewise.
38625 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
38626 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
38627 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
38628 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
38629 (__erfcf): Likewise.
38630 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
38631 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
38632 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
38633 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
38634 Likewise.
38635 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
38636 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
38637 Likewise.
38638 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
38639 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
38640 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
38641 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
38642 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
38643 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
38644 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
38645 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
38646 Likewise.
38647 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
38648 Likewise.
38649 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
38650 Likewise.
38651 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
38652 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
38653 Likewise.
38654 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
38655 Likewise.
38656 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
38657 (__ieee754_ynl): Likewise.
38658 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
38659 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
38660 Likewise.
38661 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
38662 Likewise.
38663 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
38664 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
38665 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
38666 Likewise.
38667 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
38668 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
38669 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
38670 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
38671 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
38672 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
38673 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
38674 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
38675 Likewise.
38676 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
38677 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
38678 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
38679 Likewise.
38680 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
38681 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
38682 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
38683 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
38684 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
38685 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
38686 Likewise.
38687 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
38688 Likewise.
38689 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
38690 Likewise.
38691 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
38692 Likewise.
38693 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
38694 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
38695 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
38696 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
38697 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
38698 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
38699 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
38700 Likewise.
38701 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
38702 Likewise.
38703 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
38704 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
38705 Likewise.
38706 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
38707 (__ieee754_remainderl): Likewise.
38708 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
38709 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
38710 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
38711 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
38712 Likewise.
38713 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
38714 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
38715 Likewise.
38716 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
38717 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
38718 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
38719 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
38720 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
38721 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
38722 Likewise.
38723 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
38724 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
38725 (__ieee754_y0l): Likewise.
38726 (pzero): Likewise.
38727 (qzero): Likewise.
38728 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
38729 (__ieee754_y1l): Likewise.
38730 (pone): Likewise.
38731 (qone): Likewise.
38732 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
38733 (__ieee754_ynl): Likewise.
38734 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
38735 (__ieee754_lgammal_r): Likewise.
38736 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
38737 Likewise.
38738 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
38739 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
38740 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
38741 (__erfcl): Likewise.
38742 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
38743 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
38744 Likewise.
38745 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
38746 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
38747 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
38748 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
38749 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
38750 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
38751 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
38752 Likewise.
38753 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
38754 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
38755 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
38756 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
38757 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
38758 Likewise.
38759 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
38760 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
38761 Likewise.
38762 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
38763 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
38764 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
38765 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
38766 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
38767
964263bb
FW
387682017-08-03 Florian Weimer <fweimer@redhat.com>
38769
38770 [BZ #21885]
38771 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
38772 on memory allocation failure.
38773
e98c925f
AM
387742017-08-03 Alan Modra <amodra@gmail.com>
38775
38776 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
38777 tst-tlsopt-powerpc.c with function name change and no test harness.
38778 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
38779 Call tls_get_addr_opt_test.
38780 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
38781 (modules-names): Add mod-tlsopt-powerpc.
38782 (mod-tlsopt-powerpc.so-no-z-defs): Define.
38783 (tst-tlsopt-powerpc): Depend on .so.
38784 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
38785 define. Expand use in TLS_GD and TLS_LD.
38786
8ee1abdb
ST
387872017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
38788
38789 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
38790 function.
3da5756e 38791 * sysdeps/posix/shm_open.c: Include <pthread.h>.
8ee1abdb 38792
42df8d59
JM
387932017-08-02 Joseph Myers <joseph@codesourcery.com>
38794
38795 [BZ #21686]
38796 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
38797 comparing size with that of double.
38798 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
38799 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
38800 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
38801 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
38802 (__TGMATH_BINARY_REAL_IMAG): Likewise.
38803 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
38804 unsigned __int128 types.
38805
b7f95f49
SE
388062017-08-02 Steve Ellcey <sellcey@cavium.com>
38807
38808 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
38809 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
38810 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
38811 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
38812 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
38813
5b736bc9
L
388142017-08-02 H.J. Lu <hongjiu.lu@intel.com>
38815
38816 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
38817
dfc93c41
L
388182017-08-02 H.J. Lu <hongjiu.lu@intel.com>
38819
38820 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
38821 of SHARED.
38822 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
38823 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
38824 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
38825 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
38826 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
38827 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
38828 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
38829
2fee621d
JM
388302017-08-02 Joseph Myers <joseph@codesourcery.com>
38831
38832 [BZ #21685]
38833 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
38834 bit-field expressions passed to sizeof or typeof.
38835 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
38836 (__TGMATH_F128): Likewise.
38837 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
38838 (__TGMATH_CF128): Likewise.
38839 (__TGMATH_UNARY_REAL_ONLY): Likewise.
38840 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
38841 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
38842 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
38843 (__TGMATH_BINARY_REAL_ONLY): Likewise.
38844 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
38845 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
38846 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
38847 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
38848 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
38849 (__TGMATH_UNARY_REAL_IMAG): Likewise.
38850 (__TGMATH_UNARY_IMAG): Likewise.
38851 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
38852 (__TGMATH_BINARY_REAL_IMAG): Likewise.
38853 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
38854 type.
38855 (define_vars_for_type): Handle bit_field type specially.
38856 (Tests.__init__): Declare structure with bit-field element.
38857
b358255f
L
388582017-08-02 H.J. Lu <hongjiu.lu@intel.com>
38859
38860 [BZ #21791]
38861 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
38862 (MEMCPY_CHK): Define only if SHARED is defined.
38863 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
38864 Likewise.
38865 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
38866 Likewise.
edf66db1
SP
38867
38868See ChangeLog.18 for earlier changes.