]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
S390: Refactor wcsncat ifunc handling.
[thirdparty/glibc.git] / ChangeLog
1 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2
3 * sysdeps/s390/multiarch/Makefile
4 (sysdep_routines): Remove wcsncat variants.
5 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
6 * sysdeps/s390/multiarch/ifunc-impl-list.c
7 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
8 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
9 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
10 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
11 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
12 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
13 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
14 * sysdeps/s390/ifunc-wcsncat.h: New file.
15
16 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
17
18 * sysdeps/s390/multiarch/Makefile
19 (sysdep_routines): Remove wcscat variants.
20 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
21 * sysdeps/s390/multiarch/ifunc-impl-list.c
22 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
23 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
24 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
25 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
26 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
27 * sysdeps/s390/multiarch/wcscat.c: Move to ...
28 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
29 * sysdeps/s390/ifunc-wcscat.h: New file.
30
31 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
32
33 * sysdeps/s390/multiarch/Makefile
34 (sysdep_routines): Remove wcpncpy variants.
35 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
36 * sysdeps/s390/multiarch/ifunc-impl-list.c
37 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
38 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
39 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
40 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
41 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
42 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
43 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
44 * sysdeps/s390/ifunc-wcpncpy.h: New file.
45
46 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
47
48 * sysdeps/s390/multiarch/Makefile
49 (sysdep_routines): Remove wcsncpy variants.
50 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
51 * sysdeps/s390/multiarch/ifunc-impl-list.c
52 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
53 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
54 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
55 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
56 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
57 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
58 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
59 * sysdeps/s390/ifunc-wcsncpy.h: New file.
60
61 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
62
63 * sysdeps/s390/multiarch/Makefile
64 (sysdep_routines): Remove wcpcpy variants.
65 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
66 * sysdeps/s390/multiarch/ifunc-impl-list.c
67 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
68 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
69 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
70 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
71 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
72 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
73 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
74 * sysdeps/s390/ifunc-wcpcpy.h: New file.
75
76 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
77
78 * sysdeps/s390/multiarch/Makefile
79 (sysdep_routines): Remove wcscpy variants.
80 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
81 * sysdeps/s390/multiarch/ifunc-impl-list.c
82 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
83 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
84 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
85 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
86 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
87 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
88 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
89 * sysdeps/s390/ifunc-wcscpy.h: New file.
90
91 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
92
93 * sysdeps/s390/multiarch/Makefile
94 (sysdep_routines): Remove wcsnlen variants.
95 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
96 * sysdeps/s390/multiarch/ifunc-impl-list.c
97 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
98 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
99 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
100 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
101 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
102 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
103 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
104 * sysdeps/s390/ifunc-wcsnlen.h: New file.
105
106 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
107
108 * sysdeps/s390/multiarch/Makefile
109 (sysdep_routines): Remove wcslen variants.
110 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
111 * sysdeps/s390/multiarch/ifunc-impl-list.c
112 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
113 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
114 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
115 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
116 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
117 * sysdeps/s390/multiarch/wcslen.c: Move to ...
118 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
119 * sysdeps/s390/ifunc-wcslen.h: New file.
120
121 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
122
123 * sysdeps/s390/multiarch/Makefile
124 (sysdep_routines): Remove memrchr variants.
125 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
126 * sysdeps/s390/multiarch/ifunc-impl-list.c
127 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
128 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
129 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
130 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
131 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
132 * sysdeps/s390/multiarch/memrchr.c: Move to ...
133 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
134 * sysdeps/s390/ifunc-memrchr.h: New file.
135
136 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
137
138 * sysdeps/s390/multiarch/Makefile
139 (sysdep_routines): Remove memccpy variants.
140 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
141 * sysdeps/s390/multiarch/ifunc-impl-list.c
142 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
143 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
144 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
145 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
146 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
147 * sysdeps/s390/multiarch/memccpy.c: Move to ...
148 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
149 * sysdeps/s390/ifunc-memccpy.h: New file.
150
151 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
152
153 * sysdeps/s390/multiarch/Makefile
154 (sysdep_routines): Remove rawmemchr variants.
155 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
156 * sysdeps/s390/multiarch/ifunc-impl-list.c
157 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
158 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
159 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
160 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
161 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
162 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
163 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
164 * sysdeps/s390/ifunc-rawmemchr.h: New file.
165
166 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
167
168 * sysdeps/s390/multiarch/Makefile
169 (sysdep_routines): Remove memchr variants.
170 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
171 * sysdeps/s390/multiarch/ifunc-impl-list.c
172 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
173 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
174 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
175 * sysdeps/s390/multiarch/memchr.c: Move to ...
176 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
177 * sysdeps/s390/ifunc-memchr.h: New file.
178 * sysdeps/s390/s390-64/memchr.S: Move to ...
179 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
180 for 31/64bit and ifunc handling.
181 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
182 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
183 * sysdeps/s390/s390-32/memchr.S: Likewise.
184
185 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
186
187 * sysdeps/s390/multiarch/Makefile
188 (sysdep_routines): Remove strcspn variants.
189 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
190 * sysdeps/s390/multiarch/ifunc-impl-list.c
191 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
192 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
193 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
194 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
195 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
196 * sysdeps/s390/multiarch/strcspn.c: Move to ...
197 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
198 * sysdeps/s390/ifunc-strcspn.h: New file.
199
200 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
201
202 * sysdeps/s390/multiarch/Makefile
203 (sysdep_routines): Remove strpbrk variants.
204 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
205 * sysdeps/s390/multiarch/ifunc-impl-list.c
206 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
207 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
208 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
209 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
210 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
211 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
212 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
213 * sysdeps/s390/ifunc-strpbrk.h: New file.
214
215 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
216
217 * sysdeps/s390/multiarch/Makefile
218 (sysdep_routines): Remove strspn variants.
219 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
220 * sysdeps/s390/multiarch/ifunc-impl-list.c
221 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
222 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
223 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
224 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
225 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
226 * sysdeps/s390/multiarch/strspn.c: Move to ...
227 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
228 * sysdeps/s390/ifunc-strspn.h: New file.
229
230 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
231
232 * sysdeps/s390/multiarch/Makefile
233 (sysdep_routines): Remove strrchr variants.
234 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
235 * sysdeps/s390/multiarch/ifunc-impl-list.c
236 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
237 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
238 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
239 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
240 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
241 * sysdeps/s390/multiarch/strrchr.c: Move to ...
242 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
243 * sysdeps/s390/ifunc-strrchr.h: New file.
244
245 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
246
247 * sysdeps/s390/multiarch/Makefile
248 (sysdep_routines): Remove strchrnul variants.
249 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
250 * sysdeps/s390/multiarch/ifunc-impl-list.c
251 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
252 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
253 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
254 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
255 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
256 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
257 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
258 * sysdeps/s390/ifunc-strchrnul.h: New file.
259
260 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
261
262 * sysdeps/s390/multiarch/Makefile
263 (sysdep_routines): Remove strchr variants.
264 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
265 * sysdeps/s390/multiarch/ifunc-impl-list.c
266 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
267 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
268 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
269 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
270 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
271 * sysdeps/s390/multiarch/strchr.c: Move to ...
272 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
273 * sysdeps/s390/ifunc-strchr.h: New file.
274
275 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
276
277 * sysdeps/s390/multiarch/Makefile
278 (sysdep_routines): Remove strncmp variants.
279 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
280 * sysdeps/s390/multiarch/ifunc-impl-list.c
281 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
282 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
283 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
284 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
285 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
286 * sysdeps/s390/multiarch/strncmp.c: Move to ...
287 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
288 * sysdeps/s390/ifunc-strncmp.h: New file.
289
290 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
291
292 * sysdeps/s390/multiarch/Makefile
293 (sysdep_routines): Remove strcmp variants.
294 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
295 * sysdeps/s390/multiarch/ifunc-impl-list.c
296 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
297 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
298 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
299 * sysdeps/s390/multiarch/strcmp.c: Move to ...
300 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
301 * sysdeps/s390/ifunc-strcmp.h: New file.
302 * sysdeps/s390/s390-64/strcmp.S: Move to ...
303 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
304 for 31/64bit and ifunc handling.
305 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
306 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
307 * sysdeps/s390/s390-32/strcmp.S: Likewise.
308
309 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
310
311 * sysdeps/s390/multiarch/Makefile
312 (sysdep_routines): Remove strncat variants.
313 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
314 * sysdeps/s390/multiarch/ifunc-impl-list.c
315 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
316 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
317 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
318 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
319 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
320 * sysdeps/s390/multiarch/strncat.c: Move to ...
321 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
322 * sysdeps/s390/ifunc-strncat.h: New file.
323
324 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
325
326 * sysdeps/s390/multiarch/Makefile
327 (sysdep_routines): Remove strcat variants.
328 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
329 * sysdeps/s390/multiarch/ifunc-impl-list.c
330 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
331 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
332 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
333 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
334 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
335 * sysdeps/s390/multiarch/strcat.c: Move to ...
336 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
337 * sysdeps/s390/ifunc-strcat.h: New file.
338
339 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
340
341 * sysdeps/s390/multiarch/Makefile
342 (sysdep_routines): Remove stpncpy variants.
343 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
344 * sysdeps/s390/multiarch/ifunc-impl-list.c
345 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
346 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
347 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
348 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
349 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
350 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
351 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
352 * sysdeps/s390/ifunc-stpncpy.h: New file.
353
354 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
355
356 * sysdeps/s390/multiarch/Makefile
357 (sysdep_routines): Remove strncpy variants.
358 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
359 * sysdeps/s390/multiarch/ifunc-impl-list.c
360 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
361 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
362 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
363 * sysdeps/s390/multiarch/strncpy.c: Move to ...
364 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
365 * sysdeps/s390/ifunc-strncpy.h: New file.
366 * sysdeps/s390/s390-64/strncpy.S: Move to ...
367 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
368 and adjust ifunc handling.
369 * sysdeps/s390/s390-32/strncpy.S: Move to ...
370 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
371 and adjust ifunc handling.
372 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
373 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
374
375 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
376
377 * sysdeps/s390/multiarch/Makefile
378 (sysdep_routines): Remove stpcpy variants.
379 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
380 * sysdeps/s390/multiarch/ifunc-impl-list.c
381 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
382 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
383 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
384 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
385 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
386 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
387 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
388 * sysdeps/s390/ifunc-stpcpy.h: New file.
389
390 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
391
392 * sysdeps/s390/multiarch/Makefile
393 (sysdep_routines): Remove strcpy variants.
394 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
395 * sysdeps/s390/multiarch/ifunc-impl-list.c
396 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
397 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
398 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
399 * sysdeps/s390/multiarch/strcpy.c: Move to ...
400 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
401 * sysdeps/s390/ifunc-strcpy.h: New file.
402 * sysdeps/s390/s390-64/strcpy.S: Move to ...
403 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
404 for 31/64bit and ifunc handling.
405 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
406 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
407 * sysdeps/s390/s390-32/strcpy.S: Likewise.
408
409 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
410
411 * sysdeps/s390/multiarch/Makefile
412 (sysdep_routines): Remove strnlen variants.
413 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
414 * sysdeps/s390/multiarch/ifunc-impl-list.c
415 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
416 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
417 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
418 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
419 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
420 * sysdeps/s390/multiarch/strnlen.c: Move to ...
421 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
422 * sysdeps/s390/ifunc-strnlen.h: New file.
423
424 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
425
426 * sysdeps/s390/multiarch/Makefile
427 (sysdep_routines): Remove strlen variants.
428 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
429 * sysdeps/s390/multiarch/ifunc-impl-list.c
430 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
431 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
432 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
433 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
434 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
435 * sysdeps/s390/multiarch/strlen.c: Move to ...
436 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
437 * sysdeps/s390/ifunc-strlen.h: New file.
438
439 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
440
441 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
442 * sysdeps/s390/multiarch/ifunc-impl-list.c
443 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
444 * sysdeps/s390/ifunc-memmem.h: New file.
445 * sysdeps/s390/memmem.c: Likewise.
446 * sysdeps/s390/memmem-c.c: Likewise.
447 * sysdeps/s390/memmem-vx.c: Likewise.
448
449 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
450
451 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
452 * sysdeps/s390/multiarch/ifunc-impl-list.c
453 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
454 * sysdeps/s390/ifunc-strstr.h: New file.
455 * sysdeps/s390/strstr.c: Likewise.
456 * sysdeps/s390/strstr-c.c: Likewise.
457 * sysdeps/s390/strstr-vx.c: Likewise.
458
459 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
460
461 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
462 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
463 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
464 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
465 New defines.
466 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
467 * sysdeps/s390/memmove-c.c: New file.
468 * sysdeps/s390/memmove.c: Likewise.
469 * sysdeps/s390/multiarch/ifunc-impl-list.c
470 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
471
472 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
473
474 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
475 * sysdeps/s390/configure.ac: Add check for z13 support.
476 * sysdeps/s390/configure: Regenerated.
477
478 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
479
480 * sysdeps/s390/memcopy.h: New file.
481
482 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
483
484 * sysdeps/s390/s390-32/bcopy.S: Remove.
485 * sysdeps/s390/s390-64/bcopy.S: Likewise.
486
487 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
488
489 * sysdeps/s390/ifunc-memcpy.h: New File.
490 * sysdeps/s390/memcpy.S: Move to ...
491 * sysdeps/s390/memcpy-z900.S ... here.
492 Move implementations from memcpy-s390x.s to here.
493 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
494 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
495 Remove memcpy/mempcpy variants.
496 * sysdeps/s390/Makefile (sysdep_routines):
497 Add memcpy/mempcpy variants.
498 * sysdeps/s390/multiarch/ifunc-impl-list.c
499 (__libc_ifunc_impl_list): Adjust ifunc variants for
500 memcpy and mempcpy.
501 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
502 to ...
503 * sysdeps/s390/memcpy.c: ... here.
504 Adjust ifunc variants for memcpy.
505 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
506 * sysdeps/s390/mempcpy.c: ... here.
507 Adjust ifunc variants for mempcpy.
508 * sysdeps/s390/mempcpy.S: Delete file.
509
510 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
511
512 * sysdeps/s390/s390-64/memcpy.S: Move to ...
513 * sysdeps/s390/memcpy.S: ... here.
514 Adjust to be usable for 31/64bit.
515 * sysdeps/s390/s390-32/memcpy.S: Delete File.
516 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
517 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
518 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
519 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
520 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
521 Adjust to be usable for 31/64bit.
522 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
523 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
524 * sysdeps/s390/multiarch/memcpy.c: ... here.
525 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
526
527 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
528
529 * sysdeps/s390/ifunc-memcmp.h: New File.
530 * sysdeps/s390/memcmp.S: Move to ...
531 * sysdeps/s390/memcmp-z900.S ... here.
532 Move implementations from memcmp-s390x.s to here.
533 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
534 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
535 Remove memcmp variants.
536 * sysdeps/s390/Makefile (sysdep_routines):
537 Add memcmp variants.
538 * sysdeps/s390/multiarch/ifunc-impl-list.c
539 (__libc_ifunc_impl_list): Adjust ifunc variants for
540 memcmp.
541 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
542 to ...
543 * sysdeps/s390/memcmp.c: ... here.
544 Adjust ifunc variants for memcmp.
545
546 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
547
548 * sysdeps/s390/s390-64/memcmp.S: Move to ...
549 * sysdeps/s390/memcmp.S: ... here.
550 Adjust to be usable for 31/64bit.
551 * sysdeps/s390/s390-32/memcmp.S: Delete File.
552 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
553 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
554 Remove memcmp.
555 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
556 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
557 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
558 Adjust to be usable for 31/64bit.
559 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
560 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
561 * sysdeps/s390/multiarch/memcmp.c: ... here.
562 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
563
564 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
565
566 * sysdeps/s390/s390-32/bzero.S: Delete file.
567 * sysdeps/s390/s390-64/bzero.S: Likewise.
568 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
569 * sysdeps/s390/bzero.c: New file.
570 * sysdeps/s390/memset-z900.S: Add bzero entry points.
571 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
572 * sysdeps/s390/multiarch/ifunc-impl-list.c
573 (__libc_ifunc_impl_list): Add bzero ifunc variants.
574
575 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
576
577 * sysdeps/s390/ifunc-memset.h: New File.
578 * sysdeps/s390/memset.S: Move to ...
579 * sysdeps/s390/memset-z900.S ... here.
580 Move implementations from memset-s390x.s to here.
581 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
582 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
583 Remove memset variants.
584 * sysdeps/s390/Makefile (sysdep_routines):
585 Add memset variants.
586 * sysdeps/s390/multiarch/ifunc-impl-list.c
587 (__libc_ifunc_impl_list): Adjust ifunc variants for
588 memset.
589 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
590 to ...
591 * sysdeps/s390/memset.c: ... here.
592 Adjust ifunc variants for memset.
593
594 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
595
596 * sysdeps/s390/s390-64/memset.S: Move to ...
597 * sysdeps/s390/memset.S: ... here.
598 Adjust to be usable for 31/64bit.
599 * sysdeps/s390/s390-32/memset.S: Delete File.
600 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
601 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
602 Remove memset.
603 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
604 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
605 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
606 Adjust to be usable for 31/64bit.
607 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
608 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
609 * sysdeps/s390/multiarch/memset.c: ... here.
610 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
611
612 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
613
614 * sysdeps/s390/multiarch/ifunc-resolve.h
615 (s390_libc_ifunc_init, s390_libc_ifunc,
616 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
617
618 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
619
620 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
621 * sysdeps/s390/configure.ac: Add check for z10 support.
622 * sysdeps/s390/configure: Regenerated.
623
624 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
625
626 * sysdeps/i386/atomic-machine.h: Merged with ...
627 * sysdeps/x86_64/atomic-machine.h: To ...
628 * sysdeps/x86/atomic-machine.h: This. New file.
629
630 2018-12-18 Florian Weimer <fweimer@redhat.com>
631
632 Rewrite locale/gen-translit.pl in Python.
633 * locale/Makefile (generated): Add C-translit.h.
634 (before-compile): Add $(objpfx)C-translit.h.
635 (C-translit.h): Move to $(objpfx). Create target directory.
636 Build using Python script.
637 * locale/gen-translit.py: New file.
638 * locale/gen-translit.pl: Remove file.
639 * locale/C-translit.h.in: Change comment character to '#' for
640 easier parsing without a C preprocessor.
641 * locale/C-translit.h: Remove generated file.
642 * manual/install.texi (Tools for Compilation): Do not mention
643 C-translit.h.
644 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
645 Remove locale/C-translit.h.
646 * scripts/update-copyrights: Likewise.
647 * INSTALL: Regenerate.
648
649 2018-12-18 Florian Weimer <fweimer@redhat.com>
650
651 [BZ #23995]
652 * localedata/locales/bi_VU: Remove executable bit from file.
653
654 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
655
656 * include/time.h
657 (__localtime64): Add.
658 * manual/maint.texi: Document Y2038 symbol handling.
659 * time/localtime.c
660 (__localtime64): Add.
661 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
662
663 2018-12-17 Joseph Myers <joseph@codesourcery.com>
664
665 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
666 Do not clobber r12.
667
668 * scripts/glibcextract.py (compare_macro_consts): Take parameters
669 to allow extra macros from first or second sources.
670 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
671 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
672 (tests-special): Add $(objpfx)tst-mman-consts.out.
673 ($(objpfx)tst-mman-consts.out): New makefile target.
674
675 2018-12-17 Mao Han <han_mao@c-sky.com>
676
677 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
678 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
679 without stat64 system call support.
680 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
681 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
682 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
683 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
684 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
685 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
686 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
687 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
688 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
689 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
690 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
691
692 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
693
694 regex: fix storage-exhaustion error
695 [BZ #18040]
696 * posix/regexec.c (get_subexp):
697 Do not continue if storage is exhausted.
698
699 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
700
701 regex: fix heap-use-after-free error
702 [BZ #18040]
703 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
704 https://debbugs.gnu.org/32592
705 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
706 call extend_buffers which reallocates the re_string_t internal buffer.
707 Local variable 'buf' was not updated in such case, resulting in
708 use-after-free.
709 * posix/regexec.c (get_subexp): Update 'buf' after call to
710 get_subexp_sub.
711
712 2018-12-15 Florian Weimer <fweimer@redhat.com>
713
714 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
715 (minimum_stride_size): Use it.
716 (support_blob_repeat_allocate): Likewise.
717
718 2018-12-14 Joseph Myers <joseph@codesourcery.com>
719
720 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
721 definition.
722 (acosh): Likewise.
723 (atanh): Likewise.
724
725 2018-12-14 Florian Weimer <fweimer@redhat.com>
726
727 * manual/process.texi (Process Creation Concepts): Remove
728 documentation of process (ID) lifetime. List more process
729 creation functions. Reference Process Identification section.
730 (Process Identification): Add information about process ID
731 lifetime. Describe Linux thread/task IDs.
732 * manual/signal.texi (Signaling Another Process): Mention that the
733 signal is always sent to the process.
734
735 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
736
737 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
738 and tst-ldbl-efgcvt.
739 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
740 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
741 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
742 (fcvt_tests, output_error, output_r_error, do_test): Use the
743 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
744 select the type of floating-point variables and arguments; to
745 produce extra tests for double and conversion specifiers for
746 printf; and to set the names of called functions.
747 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
748 in tst-efgcvt-template.c.
749 * misc/tst-ldbl-efgcvt.c: Likewise.
750
751 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
752
753 * nss/Makefile (tst-nss-test3.out): New rule.
754
755 2018-12-13 Joseph Myers <joseph@codesourcery.com>
756
757 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
758 clobber sp.
759
760 2018-12-13 fanjinke <fanjinke@hygon.cn>
761
762 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
763 "HygonGenuine".
764
765 2018-12-13 Andreas Schwab <schwab@suse.de>
766
767 [BZ #23861]
768 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
769 (__pthread_rwlock_rdlock_full): Update expected value for
770 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
771 * nptl/tst-rwlock-pwn.c: New file.
772 * nptl/Makefile (tests): Add tst-rwlock-pwn.
773
774 2018-12-12 Joseph Myers <joseph@codesourcery.com>
775
776 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
777 definition.
778
779 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
780
781 * benchtests/scripts/compare_bench.py (do_compare): write to
782 stderr in casestat is not present.
783 * benchtests/scripts/compare_bench.py (plot_graphs): write to
784 stderr in case timings field is not present. Also string showing
785 the output filename goes into the stderr.
786
787 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
788
789 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
790 and ZeroDivisorError exceptions.
791 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
792 argument to loop through user provided statistics.
793 * benchtests/scripts/compare_bench.py (main): Include the --stats
794 argument.
795
796 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
797
798 * benchtests/scripts/compare_bench.py (compare_runs): Continue
799 instead of return.
800
801 2018-12-12 Florian Weimer <fweimer@redhat.com>
802
803 * sysdeps/posix/timespec_get.c: Add missing “any later version”
804 clause to copyright header.
805
806 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
807
808 [BZ #23614]
809 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
810 registers saved in the stack frame.
811 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
812 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
813
814 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
815
816 * include/bits/monetary-ldbl.h: New file.
817 * include/bits/printf-ldbl.h: Likewise.
818 * include/bits/stdio-ldbl.h: Likewise.
819 * include/bits/stdlib-ldbl.h: Likewise.
820 * include/bits/syslog-ldbl.h: Likewise.
821 * include/bits/wchar-ldbl.h: Likewise.
822
823 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
824
825 * libio/libio.h: Remove redirection for _IO_vfprintf.
826
827 2018-12-11 Andreas Schwab <schwab@suse.de>
828
829 * Makerules: Remove all references to abilist-pattern.
830 (update-all-abi): Simplify find expression.
831
832 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
833
834 [BZ #23961]
835 * math/auto-libm-test-in: Add new test case.
836 * math/auto-libm-test-out-pow: Regenerated.
837 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
838
839 2018-12-10 DJ Delorie <dj@redhat.com>
840
841 [BZ #23948]
842 * support/test-container.c: Move postclean step to before we
843 change namespaces.
844
845 2018-12-10 Joseph Myers <joseph@codesourcery.com>
846
847 * scripts/gen-as-const.py (main): Handle --python option.
848 * scripts/gen-py-const.awk: Remove.
849 * Makerules (py-const-script): Use gen-as-const.py.
850 ($(py-const)): Likewise.
851 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
852 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
853 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
854 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
855 ~PTHREAD_MUTEX_NO_ELISION_NP.
856 * manual/README.pretty-printers: Update reference to
857 gen-py-const.awk.
858
859 * scripts/glibcextract.py: New file.
860 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
861 or tempfile. Import glibcexctract.
862 (compute_c_consts): Remove. Moved to glibcextract.py.
863 (gen_test): Update reference to compute_c_consts.
864 (main): Likewise.
865 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
866 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
867 * sysdeps/unix/sysv/linux/Makefile
868 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
869 Redirect stderr as well as stdout.
870
871 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
872
873 [BZ #19767]
874 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
875 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
876 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
877 ALWAYS_USE_VSYSCALL.
878 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
879 ALWAYS_USE_VSYSCALL.
880 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
881 ALWAYS_USE_VSYSCALL.
882
883 2018-12-10 Florian Weimer <fweimer@redhat.com>
884
885 [BZ #23972]
886 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
887 offset instead of count for clarity. Fix typo in comment.
888 (__old_getdents64): Keep track of previous offset. Use it to call
889 handle_overflow.
890 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
891 that d_off is never zero.
892
893 2018-12-10 Andreas Schwab <schwab@suse.de>
894
895 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
896 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
897 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
898 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
899 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
900
901 2018-12-10 Joseph Myers <joseph@codesourcery.com>
902
903 * timezone/private.h: Update from tzcode 2018g.
904 * timezone/tzfile.h: Likewise.
905 * timezone/tzselect.ksh: Likewise.
906 * timezone/zdump.c: Likewise.
907 * timezone/zic.c: Likewise.
908
909 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
910
911 [BZ #23490]
912 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
913 (do_test): Adjust buffer size and fix format.
914
915 2018-12-07 DJ Delorie <dj@redhat.com>
916
917 [BZ #23907]
918 * malloc/tst-tcfree3.c: New.
919 * malloc/Makefile: Add it.
920
921 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
922
923 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
924
925 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
926
927 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
928 used as a mask for the mode argument of __vfscanf_internal and
929 __vfwscanf_internal.
930 * stdio-common/vfscanf-internal.c
931 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
932 (__strtof128_internal): Define to __wcstof128_internal.
933 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
934 __strtof128_internal or __wcstof128_internal when the format of
935 long double is the same as _Float128.
936
937 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
938
939 * include/unistd.h (__confstr): Add prototype and hidden prototype.
940 * posix/confstr.c (confstr): Rename to __confstr.
941 (__confstr): Add hidden def.
942 (confstr): Add weak alias for __confstr.
943 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
944 confstr.
945
946 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
947
948 * NEWS: Mention getcpu.
949 * include/sched.h (__getcpu): New libc_hidden_proto.
950 * manual/resource.texi: Document getcpu.
951 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
952 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
953 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
954 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
955 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
956 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
957 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
958 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
959 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
960 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
961 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
962 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
963 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
964 Likewise.
965 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
966 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
967 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
968 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
969 Likewise.
970 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
971 Likewise.
972 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
973 Likewise.
974 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
975 Likewise.
976 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
977 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
978 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
979 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
980 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
981 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
982 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
983 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
984 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
985 * sysdeps/unix/sysv/linux/getcpu.c: New file.
986 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
987 Also check getcpu.
988
989 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
990
991 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
992 functions.
993 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
994
995 2018-12-07 Florian Weimer <fweimer@redhat.com>
996
997 [BZ #17405]
998 * posix/Makefile (routines): Add spawn_faction_addfchdir.
999 * posix/Versions (GLIBC_2.29): Export
1000 posix_spawn_file_actions_addfchdir_np.
1001 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
1002 * posix/spawn_faction_destroy.c
1003 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
1004 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
1005 and the field action.fchdir_action.
1006 * posix/tst-spawn-chdir.c (add_chdir): New function.
1007 (do_test): Add do_fchdir loop. Call add_chdir.
1008 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
1009 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
1010 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
1011 posix_spawn_file_actions_addfchdir_np.
1012 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
1013 Likewise.
1014 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
1015 Likewise.
1016 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
1017 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
1018 Likewise.
1019 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
1020 Likewise.
1021 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
1022 Likewise.
1023 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
1024 Likewise.
1025 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
1026 Likewise.
1027 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
1028 Likewise.
1029 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
1030 (GLIBC_2.29): Likewise.
1031 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
1032 (GLIBC_2.29): Likewise.
1033 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
1034 (GLIBC_2.29): Likewise.
1035 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
1036 (GLIBC_2.29): Likewise.
1037 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
1038 Likewise.
1039 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
1040 (GLIBC_2.29): Likewise.
1041 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
1042 (GLIBC_2.29): Likewise.
1043 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
1044 (GLIBC_2.29): Likewise.
1045 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
1046 (GLIBC_2.29): Likewise.
1047 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
1048 Likewise.
1049 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
1050 Likewise.
1051 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
1052 Likewise.
1053 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
1054 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
1055 Likewise.
1056 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
1057 Likewise.
1058 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
1059 Likewise.
1060 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
1061 Likewise.
1062
1063 2018-12-06 Joseph Myers <joseph@codesourcery.com>
1064
1065 * manual/texinfo.tex: Update to version 2018-09-21.20 with
1066 trailing whitespace removed.
1067 * scripts/config.guess: Update to version 2018-11-28.
1068 * scripts/config.sub: Update to version 2018-11-28.
1069 * scripts/install-sh: Update to version 2018-03-11.20.
1070 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
1071 * scripts/move-if-change: Update to version 2018-03-07 03:47.
1072
1073 2018-12-07 Florian Weimer <fweimer@redhat.com>
1074
1075 [BZ #23927]
1076 CVE-2018-19591
1077 * inet/tst-if_index-long.c: New file.
1078 * inet/Makefile (tests): Add tst-if_index-long.
1079
1080 2018-12-07 Florian Weimer <fweimer@redhat.com>
1081
1082 * support/check.h (support_record_failure_is_failed): Declare.
1083 * support/descriptors.h: New file.
1084 * support/support_descriptors.c: Likewise.
1085 * support/tst-support_descriptors.c: Likewise.
1086 * support/support_record_failure.c
1087 (support_record_failure_is_failed): New function.
1088 * support/Makefile (libsupport-routines): Add support_descriptors.
1089 (tests): Add tst-support_descriptors.
1090
1091 2018-12-05 Zack Weinberg <zackw@panix.com>
1092 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1093
1094 * stdio-common/vfprintf-internal.c
1095 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
1096 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
1097 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
1098 and __no_long_double.
1099 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
1100 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
1101 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
1102 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
1103 and __nldbl_*syslog* functions.
1104 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
1105 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
1106 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
1107 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
1108 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
1109 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
1110 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
1111 (__nldbl_vwprintf, __nldbl_wprintf):
1112 Directly call the appropriate __v*printf_internal routine, passing
1113 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
1114 variable names.
1115 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
1116 (__nldbl___printf_chk, __nldbl___snprintf_chk)
1117 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
1118 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
1119 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
1120 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
1121 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
1122 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
1123 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
1124 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
1125 Likewise, and also pass PRINTF_FORTIFY when appropriate.
1126 (__nldbl_syslog, __nldbl_vsyslog):
1127 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
1128 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
1129 appropriate.
1130 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
1131 appropriate.
1132
1133 2018-12-05 Zack Weinberg <zackw@panix.com>
1134 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1135
1136 [BZ #11319]
1137 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
1138 Moved here from debug/vsprintf_chk.c.
1139 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
1140 and completion logic for the strfile to match exactly what
1141 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
1142 _IO_str_init_static_internal instead of maxlen-1.
1143 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
1144 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
1145 __vsprintf_internal.
1146
1147 * debug/vsprintf_chk.c (__vsprintf_chk)
1148 * debug/sprintf_chk.c (__sprintf_chk):
1149 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
1150 'flags' argument is positive, and slen as maxlen. No need to lock
1151 the FILE and/or construct a temporary FILE. Minimize and normalize
1152 header inclusions and variable names. Do not libc_hidden_def anything.
1153
1154 * debug/asprintf_chk.c (__asprintf_chk)
1155 * debug/dprintf_chk.c (__dprintf_chk)
1156 * debug/fprintf_chk.c (__fprintf_chk)
1157 * debug/fwprintf_chk.c (__fwprintf_chk)
1158 * debug/printf_chk.c (__printf_chk)
1159 * debug/snprintf_chk.c (__snprintf_chk)
1160 * debug/swprintf_chk.c (__swprintf_chk)
1161 * debug/vasprintf_chk.c (__vasprintf_chk)
1162 * debug/vdprintf_chk.c (__vdprintf_chk)
1163 * debug/vfprintf_chk.c (__vfprintf_chk)
1164 * debug/vfwprintf_chk.c (__vfwprintf_chk)
1165 * debug/vprintf_chk.c (__vprintf_chk)
1166 * debug/vsnprintf_chk.c (__vsnprintf_chk)
1167 * debug/vswprintf_chk.c (__vswprintf_chk)
1168 * debug/vwprintf_chk.c (__vwprintf_chk)
1169 * debug/wprintf_chk.c (__wprintf_chk):
1170 Directly call the corresponding vxxprintf_internal function, passing
1171 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
1172 the FILE and/or construct a temporary FILE. Minimize and normalize
1173 header inclusions and variable names. Do not libc_hidden_def anything.
1174
1175 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
1176 __obstack_vprintf_internal.
1177 (__obstack_vprintf_chk): Convert into a wrapper that calls
1178 __obstack_vprintf_internal (these two functions already had the
1179 same code) and move to new file...
1180 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
1181 file.
1182 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
1183 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
1184 * debug/Makefile (routines): Add vobprintf_chk.
1185
1186 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
1187 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
1188 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
1189 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
1190 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
1191 (__nldbl___obstack_vfprintf_chk):
1192 Directly call the corresponding vxxprintf_internal function,
1193 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
1194 duplicate comparison of slen with 0 or maxlen from the corresponding
1195 non-__nldbl function.
1196
1197 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
1198 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
1199 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
1200 Remove libc_hidden_proto.
1201
1202 * stdio-common/vfprintf-internal.c
1203 (__vfprintf_internal, __vfwprintf_internal):
1204 Do not check _IO_FLAGS2_FORTIFY.
1205 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
1206 * libio/libioP.h: Update prototype of __vsprintf_internal and add
1207 a comment explaining why it has the maxlen argument.
1208 (_IO_acquire_lock_clear_flags2_fct): Remove.
1209 (_IO_acquire_lock_clear_flags2): Remove.
1210 (_IO_release_lock): Remove conditional statement which will
1211 now never execute.
1212 (_IO_acquire_lock): Remove variable which is now unused.
1213 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
1214 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
1215
1216 * stdio-common/Makefile (tests): Add tst-bz11319 and
1217 tst-bz11319-fortify2.
1218 (CFLAGS-tst-bz11319-fortify2.c): New macro.
1219 * stdio-common/tst-bz11319-fortify2.c: New file.
1220 * stdio-common/tst-bz11319.c: Likewise.
1221
1222 2018-12-05 Zack Weinberg <zackw@panix.com>
1223 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1224
1225 * misc/syslog.c: Include libioP.h, not iolibio.h.
1226 (__vsyslog_internal): New function with the former body of
1227 __vsyslog_chk; takes mode_flags argument same as
1228 __v*printf_internal. Call __vfprintf_internal directly.
1229
1230 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
1231 Remove libc_hidden_def.
1232 (__syslog, __syslog_chk): Use __vsyslog_internal.
1233 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
1234
1235 * include/sys/syslog.h: Add multiple inclusion guard.
1236 Add prototype for __vsyslog_internal.
1237 Remove declaration and libc_hidden_proto for __vsyslog_chk.
1238
1239 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
1240 Use __vsyslog_internal.
1241
1242 2018-12-05 Zack Weinberg <zackw@panix.com>
1243 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1244
1245 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
1246 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
1247 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
1248 New functions.
1249 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
1250 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
1251
1252 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
1253 Include wctype.h here if COMPILE_WPRINTF is defined.
1254 Define __vfprintf_internal or __vfwprintf_internal, depending
1255 on COMPILE_WPRINTF.
1256 Temporarily, on entry to this function, update mode_flags
1257 according to the environmental settings corresponding to
1258 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
1259 Throughout, check mode_flags instead of __ldbl_is_dbl and
1260 _IO_FLAGS2_FORTIFY on the destination FILE.
1261 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
1262 Include vfprintf-internal.c. Don't include wctype.h.
1263 * stdio-common/vfprintf.c: New file. Just define __vfprintf
1264 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
1265 and vfprintf.
1266 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
1267 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
1268 and vfwprintf.
1269 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
1270
1271 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
1272 and add mode_flags argument; use __vfprintf_internal.
1273 (__vdprintf): New function. Alias vdprintf to this.
1274 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
1275 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
1276 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
1277 (__obstack_printf): Use __obstack_printf_internal.
1278 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
1279 public aliases __vsnprintf and vsnprintf.
1280 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
1281 called internally.
1282 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
1283 public aliases _IO_vsprintf and vsprintf.
1284 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
1285 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
1286 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
1287 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
1288 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
1289
1290 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
1291 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
1292 * stdio-common/fprintf.c, stdio-common/fxprintf.c
1293 * stdio-common/printf.c: Use __vfprintf_internal.
1294
1295 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
1296 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
1297 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
1298
1299 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
1300 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
1301 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
1302 __vfwprintf_internal.
1303
1304 * libio/libio.h: Remove libc_hidden_proto and declaration for
1305 _IO_vfprintf.
1306 Remove declaration of _IO_vfwprintf.
1307 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
1308 _IO_vsprintf.
1309 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
1310 _IO_obstack_printf.
1311 * include/stdio.h: Add prototype for __vasprintf.
1312 (__vsnprintf): Remove declaration, because there are no more
1313 internal calls.
1314 * include/wchar.h (__vfwprintf, __vswprintf): Remove
1315 declaration, because there are no more internal calls.
1316
1317 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
1318 __vsnprintf_internal, instead of _IO_vsnprintf.
1319 * argp/argp-help.c (__argp_error, __argp_failure): Use
1320 __vasprintf_internal, instead of _IO_vasprintf.
1321 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
1322 redefine, because there are no more internal calls.
1323
1324 2018-12-05 Zack Weinberg <zackw@panix.com>
1325 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1326
1327 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
1328 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
1329 Include libio/strfile.h instead of libioP.h.
1330 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
1331 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
1332 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
1333 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
1334 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
1335 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
1336 necessary. Do not set __no_long_double. Normalize variable names.
1337 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
1338 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
1339 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
1340 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
1341 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
1342 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
1343 Call __vfscanf_internal / __vfwscanf_internal directly, passing
1344 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
1345 Do not set __no_long_double. Normalize variable names.
1346
1347 2018-12-05 Zack Weinberg <zackw@panix.com>
1348 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1349
1350 * stdio-common/isoc99_scanf.c
1351 * stdio-common/isoc99_fscanf.c
1352 * stdio-common/isoc99_sscanf.c
1353 * stdio-common/isoc99_vscanf.c
1354 * stdio-common/isoc99_vfscanf.c
1355 * stdio-common/isoc99_vsscanf.c
1356 * wcsmbs/isoc99_wscanf.c
1357 * wcsmbs/isoc99_fwscanf.c
1358 * wcsmbs/isoc99_swscanf.c
1359 * wcsmbs/isoc99_vwscanf.c
1360 * wcsmbs/isoc99_vfwscanf.c
1361 * wcsmbs/isoc99_vswscanf.c:
1362 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
1363 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
1364 No need to lock and unlock the FILE passed to that function.
1365
1366 * stdio-common/vfscanf-internal.c
1367 (__vfscanf_internal, __vfwscanf_internal):
1368 Don't look at _IO_FLAGS2_SCANF_STD.
1369 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
1370 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
1371 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
1372
1373 2018-12-05 Zack Weinberg <zackw@panix.com>
1374 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1375
1376 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
1377 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
1378 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
1379 * libio/strfile.h: Add multiple inclusion guard.
1380 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
1381
1382 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
1383 consistency with the other version of this file.
1384 (ldbl_compat_symbol): New macro.
1385 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
1386 New macro.
1387
1388 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
1389 Define __vfscanf_internal or __vfwscanf_internal, depending on
1390 COMPILE_WSCANF; don't define any other public symbols.
1391 Remove errval and code to set errp.
1392 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
1393 as the mode_flags argument.
1394 (encode_error, conv_error, input_error): Don't set errval.
1395 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
1396 Include vfscanf-internal.c.
1397 * stdio-common/vfscanf.c: New file defining the public entry
1398 point vfscanf, which calls __vfscanf_internal.
1399 * stdio-common/vfwscanf.c: New file defining the public entry
1400 point vfwscanf, which calls __vfwscanf_internal.
1401
1402 * stdio-common/iovfscanf.c: New file.
1403 * stdio-common/iovfwscanf.c: Likewise.
1404
1405 * stdio-common/Makefile (routines): Add vfscanf-internal,
1406 vfwscanf-internal, iovfscanf, iovfwscanf.
1407 * stdio-common/Versions: Mention GLIBC_2.29, so that
1408 it can be used in SHLIB_COMPAT expressions.
1409 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
1410 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
1411 Call __vfscanf_internal, instead of _IO_vfscanf.
1412 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
1413 _IO_vfscanf.
1414 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
1415 _IO_vfwscanf.
1416
1417 * libio/iovsscanf.c: Clean up includes, when possible. Use
1418 _IO_strfile_read or _IO_strfile_readw, when needed. Call
1419 __vfscanf_internal or __vfwscanf_internal directly.
1420 * libio/iovswscanf.c: Likewise.
1421 * libio/swscanf.c: Likewise.
1422 * libio/vscanf.c: Likewise.
1423 * libio/vwscanf.c: Likewise.
1424 * libio/wscanf.c: Likewise.
1425 * stdio-common/isoc99_fscanf.c: Likewise.
1426 * stdio-common/isoc99_scanf.c: Likewise.
1427 * stdio-common/isoc99_sscanf.c: Likewise.
1428 * stdio-common/isoc99_vfscanf.c: Likewise.
1429 * stdio-common/isoc99_vscanf.c: Likewise.
1430 * stdio-common/isoc99_vsscanf.c: Likewise.
1431 * stdio-common/scanf.c: Likewise.
1432 * stdio-common/sscanf.c: Likewise.
1433 * wcsmbs/isoc99_fwscanf.c: Likewise.
1434 * wcsmbs/isoc99_swscanf.c: Likewise.
1435 * wcsmbs/isoc99_vfwscanf.c: Likewise.
1436 * wcsmbs/isoc99_vswscanf.c: Likewise.
1437 * wcsmbs/isoc99_vwscanf.c: Likewise.
1438 * wcsmbs/isoc99_wscanf.c: Likewise.
1439
1440 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
1441
1442 * include/time.h
1443 (__tz_compute): Replace time_t with __time64_t.
1444 (__tz_convert): Replace time_t* with __time64_t.
1445 (__offtime): Replace time_t* with __time64_t.
1446 * time/gmtime.c
1447 (__gmtime_r): Adjust call to __tz_convert.
1448 (gmtime): Likewise.
1449 * time/localtime.c
1450 (__localtime_r): Likewise.
1451 (localtime): Likewise.
1452 * time/offtime.c: Replace time_t with __time64_t.
1453 * time/tzset.c: Likewise.
1454
1455 2018-12-04 Joseph Myers <joseph@codesourcery.com>
1456
1457 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
1458 dynamic linker unless [$(run-built-tests) = yes].
1459
1460 2018-12-03 DJ Delorie <dj@delorie.com>
1461
1462 * support/test-container.c (check_for_unshare_hints): New.
1463 (main): Call it if unshare fails. Add support for "su" scriptlet
1464 command.
1465
1466 2018-12-03 Joseph Myers <joseph@codesourcery.com>
1467
1468 * scripts/gen-as-const.py (compute_c_consts): Take an argument
1469 'START' to indicate that start text should be output.
1470 (gen_test): Likewise.
1471 (main): Generate 'START' for first symbol or '--' line, or at end
1472 of input if not previously generated.
1473
1474 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
1475
1476 [BZ #19767]
1477 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
1478 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
1479 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
1480 ALWAYS_USE_VSYSCALL.
1481
1482 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1483
1484 [BZ #23913]
1485 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
1486 new_argv by one.
1487
1488 2018-12-03 Carlos O'Donell <carlos@redhat.com>
1489
1490 [BZ #23923]
1491 * locale/programs/localedef.c: Declare boolean hard_links default true.
1492 (options): Add --no-hard-links option.
1493 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
1494 * locale/programs/localedef.h: Declare prototype for hard_links.
1495 * locale/programs/locfile.c (write_locale_data): Don't use hard
1496 links if hard_links is false.
1497
1498 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
1499
1500 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
1501 cpu_features_basic.
1502 (__cache_sysconf): Likewise.
1503 (init_cacheinfo): Likewise.
1504 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
1505 populate COMMON_CPUID_INDEX_80000007 and
1506 COMMON_CPUID_INDEX_80000008.
1507 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
1508 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
1509 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
1510 (init_cpu_features): Use _Static_assert on
1511 index_arch_Fast_Unaligned_Load.
1512 __get_cpuid_registers and __get_arch_feature. Updated for
1513 cpu_features_basic. Set stepping in cpu_features.
1514 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
1515 (FEATURE_INDEX_2): New.
1516 (FEATURE_INDEX_MAX): Changed to enum.
1517 (COMMON_CPUID_INDEX_D_ECX_1): New.
1518 (COMMON_CPUID_INDEX_80000007): Likewise.
1519 (COMMON_CPUID_INDEX_80000008): Likewise.
1520 (cpuid_registers): Likewise.
1521 (cpu_features_basic): Likewise.
1522 (CPU_FEATURE_USABLE): Likewise.
1523 (bit_arch_XXX_Usable): Likewise.
1524 (cpu_features): Use cpuid_registers and cpu_features_basic.
1525 (bit_arch_XXX): Reweritten.
1526 (bit_cpu_XXX): Likewise.
1527 (index_cpu_XXX): Likewise.
1528 (reg_XXX): Likewise.
1529 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
1530 <support/check.h>.
1531 (CHECK_CPU_FEATURE): New.
1532 (CHECK_CPU_FEATURE_USABLE): Likewise.
1533 (cpu_kinds): Likewise.
1534 (do_test): Print vendor, family, model and stepping. Check
1535 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
1536 (TEST_FUNCTION): Removed.
1537 Include <support/test-driver.c> instead of
1538 "../../test-skeleton.c".
1539 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
1540 Check POPCNT instead of POPCOUNT.
1541 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
1542
1543 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
1544
1545 * scripts/gen-as-const.py (main): Avoid emitting empty line when
1546 there is no element in `consts'.
1547
1548 2018-12-01 Florian Weimer <fweimer@redhat.com>
1549
1550 * support/support_capture_subprocess.c
1551 (support_capture_subprocess): Check that pipe descriptors have
1552 expected values. Close original pipe descriptors in subprocess.
1553
1554 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
1555
1556 [BZ #23032]
1557 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
1558 attr with __pthread_default_barrierattr.
1559 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
1560 attr with __pthread_default_condattr.
1561 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
1562 attr with __pthread_default_mutexattr.
1563 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
1564 attr with __pthread_default_rwlockattr.
1565
1566 2018-12-01 Kemi Wang <kemi.wang@intel.com>
1567
1568 * manual/tunables.texi (POSIX Thread Tunables): New node.
1569 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
1570 * nptl/nptl-init.c: Include pthread_mutex_conf.h
1571 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
1572 __pthread_tunables_init.
1573 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
1574 (max_adaptive_count): Define.
1575 * nptl/pthread_mutex_conf.c: New file.
1576 * nptl/pthread_mutex_conf.h: New file.
1577 * sysdeps/generic/adaptive_spin_count.h: New file.
1578 * sysdeps/nptl/dl-tunables.list: New file.
1579 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
1580 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
1581 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
1582 Likewise.
1583
1584 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
1585
1586 [BZ #20544]
1587 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
1588 * stdlib/on_exit.c (__on_exit): Likewise.
1589 * stdlib/Makefile (tests): Add tst-bz20544.
1590 * stdlib/tst-bz20544.c: New test.
1591
1592 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
1593
1594 [BZ #19767]
1595 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
1596 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
1597 New.
1598
1599 2018-11-30 Florian Weimer <fweimer@redhat.com>
1600
1601 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
1602 Extend error logging.
1603 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
1604 symbol.
1605
1606 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1607
1608 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
1609 __sigismember instead of sigismember.
1610 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
1611 cancel_handler): New definitions.
1612 (do_system): Use posix_spawn instead of fork and execl and remove
1613 reentracy code.
1614 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
1615 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
1616 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
1617 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
1618 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
1619 * sysdeps/unix/sysv/linux/system.c: Likewise.
1620
1621 [BZ #22834]
1622 [BZ #17490]
1623 * NEWS: Add new semantic for atfork with popen and system.
1624 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
1625 fork and execl.
1626
1627 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
1628
1629 [BZ #23690]
1630 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
1631 modification order when accessing reloc_result->addr.
1632 * include/link.h (reloc_result): Add field init.
1633 * nptl/Makefile (tests): Add tst-audit-threads.
1634 (modules-names): Add tst-audit-threads-mod1 and
1635 tst-audit-threads-mod2.
1636 Add rules to build tst-audit-threads.
1637 * nptl/tst-audit-threads-mod1.c: New file.
1638 * nptl/tst-audit-threads-mod2.c: Likewise.
1639 * nptl/tst-audit-threads.c: Likewise.
1640 * nptl/tst-audit-threads.h: Likewise.
1641
1642 2018-11-30 Joseph Myers <joseph@codesourcery.com>
1643
1644 * scripts/gen-as-const.py: New file.
1645 * scripts/gen-as-const.awk: Remove.
1646 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
1647 gen-as-const.py.
1648 ($(objpfx)test-as-const-%.c): Likewise.
1649
1650 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
1651
1652 * elf/dl-exception.c: Include <_itoa.h>.
1653
1654 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
1655
1656 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
1657 returned by __f_setlk.
1658
1659 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
1660 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1661
1662 * elf/Makefile (tests-internal): Add tst-create_format1.
1663 * elf/dl-exception.c (_dl_exception_create_format): Support
1664 %x, %lx and %zx.
1665 * elf/tst-create_format1.c: New file.
1666
1667 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
1668
1669 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
1670 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
1671 gnulib.)
1672 * argp/argp-help.c (__argp_failure): Likewise.
1673
1674 2018-11-29 Mao Han <han_mao@c-sky.com>
1675
1676 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
1677 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
1678 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
1679 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
1680 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
1681 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
1682 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
1683 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
1684 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
1685 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
1686 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
1687 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
1688 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
1689 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
1690 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
1691 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
1692 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
1693 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
1694 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
1695 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
1696 (R_CKCORE_TLS_TPOFF32): New defines.
1697
1698 2018-11-29 Florian Weimer <fweimer@redhat.com>
1699
1700 * posix/Makefile (before-compile): Remove testcases.h and
1701 ptestcases.h.
1702 (generated): Add testcases.h and ptestcases.h.
1703 (testcases.h, ptestcases.h): Move to $(objpfx).
1704 (runtests.o): Add dependency on testcases.h.
1705 (runptests.o): Add dependency on ptestcases.h.
1706 * posix/testcases.h, posix/ptestcases.h: Remove files.
1707 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
1708 not touch posix/testcases.h and posix/ptestcases.h.
1709
1710 2018-11-28 Florian Weimer <fweimer@redhat.com>
1711
1712 support: Add signal support to support_capture_subprocess_check.
1713 * support/capture_subprocess.h (support_capture_subprocess_check):
1714 Adjust comment and rename parameter.
1715 * support/support_capture_subprocess_check.c
1716 (print_actual_status): New function.
1717 (support_capture_subprocess_check): Support negative
1718 status_or_signal. Call print_actual_status.
1719 * support/tst-support_capture_subprocess.c (do_test): Call
1720 support_capture_subprocess_check.
1721 * libio/tst-vtables-common.c (termination_status)
1722 (init_termination_status): Remove.
1723 (check_for_termination): Adjust support_capture_subprocess_check
1724 call.
1725 (do_test): Remove call to init_termination_status.
1726
1727 2018-11-28 Joseph Myers <joseph@codesourcery.com>
1728
1729 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
1730 source directory instead of a copy.
1731 (CommandList.create_copy_dir): Remove.
1732
1733 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
1734
1735 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
1736
1737 2018-11-28 Florian Weimer <fweimer@redhat.com>
1738
1739 * support/support.h (support_quote_string): Do not use str
1740 parameter name.
1741
1742 2018-11-27 Joseph Myers <joseph@codesourcery.com>
1743
1744 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
1745 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
1746
1747 2018-11-27 Florian Weimer <fweimer@redhat.com>
1748
1749 * support/support.h (support_quote_string): Declare.
1750 * support/support_quote_string.c: New file.
1751 * support/tst-support_quote_string.c: Likewise.
1752 * support/Makefile (libsupport-routines): Add
1753 support_quote_string.
1754 (tests): Add tst-support_quote_string.
1755
1756 2018-11-27 Florian Weimer <fweimer@redhat.com>
1757
1758 [BZ #23927]
1759 CVE-2018-19591
1760 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
1761 descriptor leak in case of ENODEV error.
1762
1763 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
1764
1765 [BZ #19767]
1766 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
1767 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
1768 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
1769
1770 2018-11-26 Carlos O'Donell <carlos@redhat.com>
1771
1772 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
1773 Error for unknown lines.
1774
1775 2018-11-26 Joseph Myers <joseph@codesourcery.com>
1776
1777 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
1778 Touch additional files.
1779
1780 2018-11-26 Florian Weimer <fweimer@redhat.com>
1781
1782 [BZ #23907]
1783 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
1784 double-frees.
1785
1786 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
1787
1788 [BZ #19767]
1789 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
1790 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
1791 SHARED. Include sysdep.h.
1792 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
1793 ALWAYS_USE_VSYSCALL.
1794 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
1795 ALWAYS_USE_VSYSCALL.
1796
1797 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
1798
1799 [BZ #19767]
1800 * nptl/Makefile (tests-static): Add tst-cond11-static.
1801 (tests): Likewise.
1802 * nptl/tst-cond11-static.c: New File.
1803 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
1804 tst-affinity-static.
1805 (tests): Likewise.
1806 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
1807 instead of SHARED.
1808 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
1809 (USE_VSYSCALL): Likewise.
1810 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
1811 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
1812 instead of SHARED.
1813 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
1814 SHARED.
1815 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
1816 New.
1817
1818 2018-11-23 Joseph Myers <joseph@codesourcery.com>
1819
1820 [BZ #23915]
1821 * sysdeps/unix/sysv/linux/arm/kernel-features.h
1822 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
1823 Undefine.
1824
1825 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
1826
1827 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
1828 (tst-cet-legacy-1a-ARGS): New.
1829 ($(objpfx)tst-cet-legacy-1a): New target.
1830 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
1831
1832 2018-11-22 Joseph Myers <joseph@codesourcery.com>
1833
1834 * conform/conformtest.py (CompileSubTest.__init__): Set
1835 self.run_early to False.
1836 (ExecuteSubTest.__init__): Likewise.
1837 (HeaderTests.run): Try running all non-optional, non-XFAILed
1838 compilation tests in a single execution of the compiler.
1839
1840 * conform/conformtest.py (CompileSubTest): New class.
1841 (ExecuteSubTest): Likewise.
1842 (ElementTest.run): Rename to gen_subtests. Append tests to
1843 self.subtests instead of running them.
1844 (ConstantTest.run): Likewise.
1845 (SymbolTest.run): Likewise.
1846 (TypeTest.run): Likewise.
1847 (TagTest.run): Likewise.
1848 (FunctionTest.run): Likewise.
1849 (VariableTest.run): Likewise.
1850 (MacroFunctionTest.run): Likewise.
1851 (MacroStrTest.run): Likewise.
1852 (HeaderTests.handle_test_line): Generate subtests for tests.
1853 (HeaderTests.run): Run subtests for tests.
1854
1855 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
1856
1857 * math/Versions (GLIBC_2.29): Add pow.
1858 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
1859 symbol.
1860 * math/w_pow.c: New file.
1861 * sysdeps/i386/fpu/w_pow.c: New file.
1862 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
1863 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
1864 and add necessary aliases.
1865 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
1866 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
1867 * sysdeps/mach/hurd/i386/libm.abilist: Update.
1868 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
1869 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
1870 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
1871 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
1872 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
1873 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
1874 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
1875 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
1876 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
1877 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
1878 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
1879 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
1880 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
1881 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
1882 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
1883 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
1884 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
1885 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
1886 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
1887 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
1888 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
1889 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
1890 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
1891 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
1892 __pow.
1893 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
1894 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
1895 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
1896
1897 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
1898
1899 * math/Versions (GLIBC_2.29): Add log2.
1900 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
1901 symbol.
1902 * math/w_log2.c: New file.
1903 * sysdeps/i386/fpu/w_log2.c: New file.
1904 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
1905 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
1906 and add necessary aliases.
1907 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
1908 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
1909 * sysdeps/mach/hurd/i386/libm.abilist: Update.
1910 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
1911 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
1912 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
1913 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
1914 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
1915 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
1916 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
1917 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
1918 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
1919 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
1920 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
1921 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
1922 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
1923 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
1924 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
1925 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
1926 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
1927 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
1928 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
1929 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
1930 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
1931 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
1932 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
1933
1934 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
1935
1936 * math/Versions (GLIBC_2.29): Add log.
1937 * math/w_log_compat.c (__log_compat): Change to versioned compat
1938 symbol.
1939 * math/w_log.c: New file.
1940 * sysdeps/i386/fpu/w_log.c: New file.
1941 * sysdeps/ia64/fpu/e_log.S: Update.
1942 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
1943 and add necessary aliases.
1944 * sysdeps/ieee754/dbl-64/w_log.c: New file.
1945 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
1946 * sysdeps/mach/hurd/i386/libm.abilist: Update.
1947 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
1948 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
1949 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
1950 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
1951 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
1952 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
1953 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
1954 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
1955 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
1956 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
1957 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
1958 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
1959 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
1960 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
1961 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
1962 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
1963 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
1964 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
1965 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
1966 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
1967 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
1968 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
1969 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
1970 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
1971 __log.
1972 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
1973 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
1974 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
1975 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
1976
1977 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
1978
1979 * math/Versions (GLIBC_2.29): Add exp and exp2.
1980 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
1981 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
1982 * math/w_exp_compat.c (__exp_compat): Likewise.
1983 * math/w_exp.c: New file.
1984 * math/w_exp2.c: New file.
1985 * sysdeps/i386/fpu/w_exp.c: New file.
1986 * sysdeps/i386/fpu/w_exp2.c: New file.
1987 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
1988 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
1989 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
1990 and add necessary aliases.
1991 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
1992 and add necessary aliases.
1993 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
1994 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
1995 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
1996 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
1997 * sysdeps/mach/hurd/i386/libm.abilist: Update.
1998 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
1999 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
2000 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
2001 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
2002 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
2003 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
2004 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
2005 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
2006 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
2007 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
2008 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
2009 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
2010 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
2011 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
2012 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
2013 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
2014 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
2015 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
2016 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
2017 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
2018 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
2019 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
2020 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
2021 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
2022 (__ieee754_exp): Rename to __exp.
2023 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
2024 (__ieee754_exp): Rename to __exp.
2025 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
2026 (__ieee754_exp): Rename to __exp.
2027 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
2028 __exp.
2029 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
2030
2031 2018-11-20 DJ Delorie <dj@redhat.com>
2032
2033 * malloc/malloc.c (tcache_entry): Add key field.
2034 (tcache_put): Set it.
2035 (tcache_get): Likewise.
2036 (_int_free): Check for double free in tcache.
2037 * malloc/tst-tcfree1.c: New.
2038 * malloc/tst-tcfree2.c: New.
2039 * malloc/Makefile: Run the new tests.
2040 * manual/probes.texi: Document memory_tcache_double_free probe.
2041
2042 * dlfcn/dlerror.c (check_free): Prevent double frees.
2043
2044 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
2045
2046 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
2047
2048 2018-11-20 Joseph Myers <joseph@codesourcery.com>
2049
2050 * conform/conformtest.py (ElementTest.run): Use unique identifiers
2051 in tests. Use names for format arguments.
2052 (ConstantTest.run): Likewise.
2053 (SymbolTest.run): Likewise.
2054 (TypeTest.run): Likewise.
2055 (TagTest.run): Likewise.
2056 (FunctionTest.run): Likewise.
2057 (VariableTest.run): Likewise.
2058 (MacroFunctionTest.run): Likewise.
2059 (MacroStrTest.run): Likewise.
2060 (HeaderTests.__init__): Set self.num_tests.
2061 (HeaderTests.handle_test_line): Set test.num. Increment
2062 self.num_tests.
2063
2064 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
2065
2066 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
2067 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
2068 SEEK_SET.
2069
2070 2018-11-19 Mao Han <han_mao@c-sky.com>
2071
2072 * scripts/config.guess: Update to version 2018-08-29.
2073 * scripts/config.sub: Update to version 2018-08-29.
2074
2075 2018-11-19 Florian Weimer <fweimer@redhat.com>
2076
2077 support: Print timestamps in timeout handler.
2078 * support/support_test_main.c (print_timestamp): New function.
2079 (signal_handler): Use it to print the termination time and the
2080 time of the last write to standard output.
2081
2082 2018-11-16 Zack Weinberg <zackw@panix.com>
2083 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2084
2085 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
2086 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
2087 argument.
2088 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
2089 and add flags argument. Check flags instead of __ldbl_is_dbl when
2090 deciding whether to set is_long_double.
2091 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
2092 passing zero for flags argument.
2093 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
2094
2095 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
2096 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
2097 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
2098 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
2099 variable names. Remove libc_hidden_def/libc_hidden_proto from
2100 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
2101 longer called from within the library.
2102 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
2103 for __nldbl___vstrfmon_l, declare it explicitly.
2104
2105 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
2106
2107 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
2108
2109 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
2110 macros
2111 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
2112 F_SETLK64, F_SETLKW64, respectively.
2113 * sysdeps/mach/hurd/f_setlk.c: New file.
2114 * sysdeps/mach/hurd/f_setlk.h: New file.
2115 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
2116 f_setlk.
2117 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
2118 (__libc_fcntl): Move non-flock operations to...
2119 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
2120 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
2121
2122 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
2123
2124 mktime: DEBUG_MKTIME cleanup
2125 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
2126 And it’s no longer needed now that glibc and Gnulib both have
2127 their own testing mechanisms for mktime.
2128 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
2129
2130 mktime: fix non-EOVERFLOW errno handling
2131 [BZ#23789]
2132 mktime was not properly reporting failures when the underlying
2133 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
2134 them like EOVERFLOW failures, and set errno to EOVERFLOW.
2135 The problem could happen on non-glibc platforms, with Gnulib.
2136 * time/mktime.c (guess_time_tm): Remove, replacing with ...
2137 (tm_diff): ... this simpler function, which does not change errno.
2138 All callers changed to deal with errno themselves.
2139 (ranged_convert, __mktime_internal): Return failure immediately if
2140 the underlying function reports any failure other than EOVERFLOW.
2141 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
2142 gap code fails.
2143
2144 mktime: fix bug with Y2038 DST transition
2145 [BZ#23789]
2146 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
2147 mishandle a DST transition that jumps over the Y2038 boundary.
2148 No such DST transitions are known so this is only a theoretical
2149 bug, but we might as well do things right.
2150
2151 mktime: make more room for overflow
2152 [BZ#23789]
2153 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
2154 This is so that we can add tm_diff results to a previous guess,
2155 which will be useful in a later patch.
2156
2157 mktime: simplify offset guess
2158 [BZ#23789]
2159 * time/mktime.c (__mktime_internal): Omit excess precision.
2160
2161 mktime: new test for mktime failure
2162 [BZ#23789]
2163 Based on a test suggested by Albert Aribaud in:
2164 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
2165 * time/Makefile (tests): Add bug-mktime4.
2166 * time/bug-mktime4.c: New file.
2167
2168 mktime: fix EOVERFLOW bug
2169 [BZ#23789]
2170 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
2171 Include libc-config.h, not config.h, for __set_errno.
2172 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
2173
2174 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
2175
2176 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
2177 __attribute_copy__ to copy attributes from name. Drop static qualifier
2178 to avoid warnings about leaf attribute not having effect on static
2179 functions.
2180
2181 2018-11-13 Florian Weimer <fweimer@redhat.com>
2182
2183 * malloc/malloc.c (fastbin_push_entry): New function.
2184 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
2185 (REMOVE_FB): Remove macro.
2186 (_int_malloc): Use fastbin_pop_entry and reindent.
2187 (_int_free): Use fastbin_push_entry.
2188 (malloc_consolidate): Use atomic_exchange_acquire.
2189
2190 2018-11-13 Joseph Myers <joseph@codesourcery.com>
2191
2192 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
2193 alias attribute, not with strong_alias.
2194
2195 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
2196 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
2197 with additional parameter thread.
2198 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
2199 in terms of __hidden_ver2.
2200 (hidden_tls_def): New macro.
2201 (libc_hidden_tls_def): Likewise.
2202 (rtld_hidden_tls_def): Likewise.
2203 (libm_hidden_tls_def): Likewise.
2204 (libmvec_hidden_tls_def): Likewise.
2205 (libresolv_hidden_tls_def): Likewise.
2206 (librt_hidden_tls_def): Likewise.
2207 (libdl_hidden_tls_def): Likewise.
2208 (libnss_files_hidden_tls_def): Likewise.
2209 (libnsl_hidden_tls_def): Likewise.
2210 (libnss_nisplus_hidden_tls_def): Likewise.
2211 (libutil_hidden_tls_def): Likewise.
2212 (libutil_hidden_tls_def): Likweise.
2213 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
2214 libc_hidden_tls_def.
2215 (__sim_disabled_exceptions_thread): Likewise.
2216 (__sim_round_mode_thread): Likewise.
2217
2218 * sysdeps/sparc/sparc-ifunc.h [SHARED]
2219 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
2220 copy attributes from name.
2221
2222 2018-11-12 Joseph Myers <joseph@codesourcery.com>
2223
2224 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
2225 Use __attribute_copy__ to copy attributes from name.
2226
2227 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
2228 with __hidden_ver1 call.
2229 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
2230 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
2231 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
2232 (__cosf): Do not declare here.
2233 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
2234 (__sincosf): Do not declare here.
2235 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
2236 (__sinf): Do not declare here.
2237
2238 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
2239 (__BIG_ENDIAN): Likewise.
2240 (__BYTE_ORDER): Likewise.
2241 (strong_alias): Likewise.
2242 (_strong_alias): Likewise.
2243
2244 2018-11-12 Florian Weimer <fweimer@redhat.com>
2245
2246 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
2247 function. Move after the definition of in_smallbin_range. Do not
2248 use __builtin_expect for paths that lead to a noreturn function.
2249 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
2250 because it is unclear whether this is in fact an unlikely
2251 condition.
2252 (_int_malloc, _int_free): Adjust.
2253 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
2254 variables.
2255 * malloc/arena.c (heap_trim): Likewise.
2256
2257 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
2258
2259 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
2260 it, free it if needed.
2261 (reauthenticate): Test and use ccwdir.
2262 (child_init_port): In non-resetids case, test and use ccwdir.
2263 (child_chdir): New nested function to set ccwdir.
2264 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
2265 * hurd/hurd/port.h (_hurd_port_move): New function.
2266 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
2267 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
2268 * hurd/Versions (_hurd_port_move): Export function.
2269 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
2270 symbol.
2271 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
2272 of dtablesize for allocating dtable_cloexec.
2273
2274 2018-11-09 Martin Sebor <msebor@redhat.com>
2275
2276 * include/libc-symbols.h (__attribute_copy__): Define macro unless
2277 it's already defined.
2278 (_strong_alias): Use __attribute_copy__.
2279 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
2280 * misc/sys/cdefs.h (__attribute_copy__): New macro.
2281 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
2282 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
2283 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
2284 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
2285 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
2286 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
2287 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
2288 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
2289 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
2290 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
2291 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
2292 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
2293 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
2294 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
2295 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
2296 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
2297 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
2298
2299 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2300
2301 * misc/tst-efgcvt.c: Include support/check.h and
2302 support/test-driver.c. Do not include test-skeleton.c.
2303 (error_count): Remove.
2304 (output_error): Replace increments to error_count with calls to
2305 support_record_failure.
2306 (output_r_error): Likewise.
2307 (special): Likewise.
2308 (do_test): Unconditionally return zero.
2309 (TEST_FUNCTION): Remove.
2310
2311 2018-11-09 Joseph Myers <joseph@codesourcery.com>
2312
2313 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
2314 not $(@D)/scratch.
2315 ($(linknamespace-header-tests)): Likewise.
2316
2317 * conform/conformtest.py: New file.
2318 * conform/conformtest.pl: Remove.
2319 * conform/GlibcConform.pm: Likewise.
2320 * conform/glibcconform.py (KEYWORDS_C90): New constant.
2321 (KEYWORDS_C99): Likewise.
2322 (KEYWORDS): Likewise.
2323 * conform/Makefile ($(conformtest-header-tests)): Use
2324 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
2325 option. Use --header instead of --headers.
2326 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
2327 function entries.
2328 * conform/data/spawn.h-data: Likewise.
2329 * conform/data/fcntl.h-data (openat): Add space after function
2330 name.
2331 * conform/data/wchar.h-data (wcscasecmp): Likewise.
2332 (wcscasecmp_l): Likewise.
2333 * conform/data/termios.h-data (c_cc): Add space after element
2334 name.
2335
2336 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2337
2338 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
2339 instead of manually comparing and reporting mismatching strings.
2340 * misc/tst-ldbl-error.c (do_one_test): Likewise.
2341 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
2342
2343 2018-11-08 Joseph Myers <joseph@codesourcery.com>
2344
2345 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
2346 __ASSUME_SOCKETCALL.
2347 * sysdeps/unix/sysv/linux/i386/kernel-features.h
2348 (__ASSUME_SOCKETCALL): Remove.
2349 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
2350 (__ASSUME_SOCKETCALL): Likewise.
2351 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
2352 (__ASSUME_SOCKETCALL): Likewise.
2353 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
2354 (__ASSUME_SOCKETCALL): Likewise.
2355 * sysdeps/unix/sysv/linux/s390/kernel-features.h
2356 (__ASSUME_SOCKETCALL): Likewise.
2357 * sysdeps/unix/sysv/linux/sh/kernel-features.h
2358 (__ASSUME_SOCKETCALL): Likewise.
2359 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
2360 (__ASSUME_SOCKETCALL): Likewise.
2361
2362 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
2363
2364 [BZ #23509]
2365 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
2366 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
2367 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
2368 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
2369 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
2370 lc_unknown.
2371
2372 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
2373
2374 [BZ #17630]
2375 * resolv/tst-resolv-network.c: Add test for getnetbyname.
2376
2377 2018-11-07 Joseph Myers <joseph@codesourcery.com>
2378
2379 [BZ #23867]
2380 * sysdeps/unix/sysv/linux/arm/kernel-features.h
2381 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
2382 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
2383 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
2384
2385 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2386
2387 * support/support_test_compare_string.c
2388 (support_test_compare_string): Fix printf format.
2389
2390 2018-11-07 Florian Weimer <fweimer@redhat.com>
2391
2392 Implement TEST_COMPARE_STRING.
2393 * support/check.h (TEST_COMPARE_STRING): Define.
2394 (support_test_compare_string): Declare.
2395 * support/Makefile (libsupport-routines): Add
2396 support_test_compare_string.
2397 (tests): Add tst-test_compare_string.
2398 * support/support_test_compare_string.c: New file.
2399 * support/tst-test_compare_string.c: Likewise.
2400
2401 2018-11-07 Andreas Schwab <schwab@suse.de>
2402
2403 [BZ #23864]
2404 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
2405 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
2406 Undef.
2407
2408 2018-11-06 Joseph Myers <joseph@codesourcery.com>
2409
2410 [BZ #23862]
2411 * sysdeps/unix/sysv/linux/sh/kernel-features.h
2412 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
2413 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
2414 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
2415 Likewise.
2416
2417 2018-11-06 Florian Weimer <fweimer@redhat.com>
2418
2419 [BZ #17405]
2420 * posix/Makefile (routines): Add spawn_faction_addchdir.
2421 (tests): Add tst-spawn-chdir.
2422 * posix/Versions (GLIBC_2.29): Add
2423 posix_spawn_file_actions_addchdir_np.
2424 * posix/spawn_faction_addchdir.c: New file.
2425 * posix/spawn_faction_destroy.c
2426 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
2427 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
2428 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
2429 chdir_action.
2430 * posix/tst-spawn-chdir.c: New file.
2431 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
2432 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
2433 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
2434 posix_spawn_file_actions_addchdir_np.
2435 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
2436 Likewise.
2437 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
2438 Likewise.
2439 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
2440 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
2441 Likewise.
2442 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
2443 Likewise.
2444 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
2445 Likewise.
2446 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
2447 Likewise.
2448 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
2449 Likewise.
2450 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
2451 Likewise.
2452 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
2453 (GLIBC_2.29): Likewise.
2454 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
2455 (GLIBC_2.29): Likewise.
2456 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
2457 (GLIBC_2.29): Likewise.
2458 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
2459 (GLIBC_2.29): Likewise.
2460 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
2461 Likewise.
2462 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
2463 (GLIBC_2.29): Likewise.
2464 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
2465 (GLIBC_2.29): Likewise.
2466 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
2467 (GLIBC_2.29): Likewise.
2468 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
2469 (GLIBC_2.29): Likewise.
2470 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
2471 Likewise.
2472 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
2473 Likewise.
2474 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
2475 Likewise.
2476 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
2477 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
2478 Likewise.
2479 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
2480 Likewise.
2481 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
2482 Likewise.
2483 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
2484 Likewise.
2485
2486 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2487
2488 * misc/Makefile (tests): Add tst-ldbl-error.
2489 * misc/tst-ldbl-error.c: New file.
2490
2491 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2492
2493 * misc/Makefile (tests): Add tst-ldbl-warn.
2494 * misc/tst-ldbl-warn.c: New file.
2495
2496 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2497
2498 * argp/Makefile (tests): Add tst-ldbl-argp.
2499 * argp/tst-ldbl-argp.c: New file.
2500
2501 2018-11-05 Arjun Shankar <arjun@redhat.com>
2502
2503 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
2504 __gconv_path_elem and call __gconv_get_path unconditionally.
2505
2506 2018-11-05 Andreas Schwab <schwab@suse.de>
2507
2508 [BZ #22927]
2509 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
2510 creating the first helper thread failed.
2511
2512 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
2513
2514 * sysdeps/mach/hurd/msync.c: New file.
2515
2516 2018-11-02 Florian Weimer <fweimer@redhat.com>
2517
2518 * support/shell-container.c (copy_func): Call
2519 support_copy_file_range instead of copy_file_range to support
2520 cross-device copies.
2521
2522 2018-11-02 Florian Weimer <fweimer@redhat.com>
2523
2524 * support/test-container.c: Include <libc-pointer-arith.h> for
2525 ALIGN_UP.
2526
2527 2018-11-01 Zong Li <zong@andestech.com>
2528
2529 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
2530 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
2531 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
2532 (__FP_FRAC_SET_8): Add implementation for RV32 use.
2533
2534 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
2535 variable to avoid overlap arguments.
2536
2537 2018-11-01 Joseph Myers <joseph@codesourcery.com>
2538
2539 * posix/bug-regex22.c (main): Use puts with distinct error
2540 messages for unexpected success of re_compile_pattern, not printf
2541 with NULL argument to %s.
2542
2543 * stdio-common/bug22.c: Include <libc-diag.h>.
2544 (do_test): Disable -Wformat-overflow= warnings around fprintf
2545 calls outputting more than INT_MAX characters.
2546 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
2547 around printf call with NULL %s argument.
2548
2549 [BZ #23848]
2550 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
2551 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
2552 Undefine.
2553 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
2554 (__ASSUME_RECVMSG_SYSCALL): Likewise.
2555 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
2556 (__ASSUME_SENDTO_SYSCALL): Likewise.
2557 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
2558 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
2559 [!__arch64__].
2560 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
2561 (__ASSUME_CONNECT_SYSCALL): Likewise.
2562 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
2563 (__ASSUME_RECVFROM_SYSCALL): Likewise.
2564 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
2565 Define.
2566 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
2567 Likewise.
2568 [__LINUX_KERNEL_VERSION >= 0x040400]
2569 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
2570 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
2571 Remove.
2572 (listen): Likewise.
2573 (setsockopt): Likewise.
2574
2575 2018-11-01 Fredrik Noring <noring@nocrew.org>
2576
2577 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
2578 with the ISA override.
2579
2580 2018-10-31 Rafael Avila de Espindola <rafael@espindo.la>
2581
2582 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
2583 #endif.
2584
2585 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
2586
2587 * manual/errno.texi (EIEIO): Document how translators should
2588 translate the error message.
2589 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
2590 printing trailing whitespaces refused by git.
2591 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
2592 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
2593 * hurd/Makefile (user-interfaces): Add pci.
2594
2595 2018-10-30 Joseph Myers <joseph@codesourcery.com>
2596
2597 * conform/linknamespace.py: New file.
2598 * conform/linknamespace.pl: Remove file.
2599 * conform/Makefile ($(linknamespace-header-tests)): Use
2600 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
2601 option.
2602
2603 2018-10-30 Florian Weimer <fweimer@redhat.com>
2604
2605 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
2606 memory leaks.
2607
2608 2018-10-30 Florian Weimer <fweimer@redhat.com>
2609
2610 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
2611
2612 2018-10-30 Florian Weimer <fweimer@redhat.com>
2613
2614 * stdlib/tst-strtod-overflow.c (do_test): Switch to
2615 support_blob_repeat.
2616
2617 2018-10-30 Florian Weimer <fweimer@redhat.com>
2618
2619 Avoid spurious test failures in stdlib/test-bz22786.
2620 * support/Makefile (libsupport-routines): Add blob_repeat.
2621 (tests): Add tst-support_blob_repeat.
2622 * support/blob_repeat.h: New file.
2623 * support/blob_repeat.c: Likewise.
2624 * support/tst-support_blob_repeat.c: Likewise.
2625 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
2626 support_blob_repeat_allocate.
2627
2628 2018-10-30 Andreas Schwab <schwab@suse.de>
2629
2630 [BZ #23125]
2631 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
2632 Don't use tail call.
2633 * elf/tst-unwind-main.c: New file.
2634 * elf/Makefile (tests): Add tst-unwind-main.
2635 (CFLAGS-tst-unwind-main.c): Define.
2636
2637 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
2638
2639 [BZ #23791]
2640 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
2641 n_cs_precedes to 0.
2642 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
2643
2644 2018-10-29 Joseph Myers <joseph@codesourcery.com>
2645
2646 * conform/glibcconform.py: Do not import shutil.
2647 (list_exported_functions): Use tempfile.TemporaryDirectory instead
2648 of mkdtemp.
2649
2650 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
2651 critic_missing for versions before 3.4.
2652 * configure: Regenerated.
2653 * manual/install.texi (Tools for Compilation): Document
2654 requirement for Python to build glibc.
2655 * INSTALL: Regenerated.
2656 * Rules [PYTHON]: Make code unconditional.
2657 * benchtests/Makefile [PYTHON]: Likewise.
2658 * conform/Makefile [PYTHON]: Likewise.
2659 * manual/Makefile [PYTHON]: Likewise.
2660 * math/Makefile [PYTHON]: Likewise.
2661
2662 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
2663
2664 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
2665 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
2666 answer to interrupt_operation, return EIEIO instead of EINTR.
2667 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
2668 _hurd_intr_rpc_msg_about_to global point to start of controlled
2669 assembly snippet. Make it check canceled flag.
2670 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
2671 the _hurd_intr_rpc_msg_about_to point.
2672 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
2673 issue, remove cancel flag check.
2674
2675 2018-10-26 Joseph Myers <joseph@codesourcery.com>
2676
2677 * scripts/build-many-glibcs.py: Remove compatibility for missing
2678 os.cpu_count and re.fullmatch.
2679
2680 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
2681
2682 [BZ #23822]
2683 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
2684 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
2685 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
2686
2687 2018-10-25 Joseph Myers <joseph@codesourcery.com>
2688
2689 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
2690 macro.
2691
2692 2018-10-25 Florian Weimer <fweimer@redhat.com>
2693
2694 [BZ #23562]
2695 [BZ #23821]
2696 XFAIL siginfo_t si_band conform test on sparc64.
2697 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
2698 (__SI_BAND_TYPE): Only override long int default type on sparc64.
2699 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
2700 (conformtest-xfail-conds): Add sparc64-linux.
2701 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
2702 sparc64.
2703 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
2704
2705 2018-10-25 Joseph Myers <joseph@codesourcery.com>
2706
2707 * elf/elf.h (NT_MIPS_DSP): New macro.
2708 (NT_MIPS_FP_MODE): Likewise.
2709
2710 2018-10-25 Zong Li <zong@andestech.com>
2711
2712 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
2713 name by adding the file extension (.so).
2714
2715 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
2716
2717 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
2718 (test-xfail-ISO11/threads.h/linknamespace,
2719 test-xfail-ISO11/threads.h/conform): Add.
2720
2721 2018-10-24 Joseph Myers <joseph@codesourcery.com>
2722
2723 * math/gen-libm-test.py: Import os.
2724 (ALL_FLOATS_MANUAL): New constant.
2725 (ALL_FLOATS_SUFFIX): Likewise.
2726 (Ulps.all_functions): New function.
2727 (real_all_ulps): Likewise.
2728 (generate_err_table_sub): Likewise.
2729 (generate_err_table): Likewise.
2730 (main): Handle -s and -m options.
2731 * manual/libm-err-tab.pl: Remove.
2732 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
2733 instead of libm-err-tab.pl.
2734 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
2735 != no].
2736 * manual/install.texi (Tools for Compilation): Document
2737 requirement for Python to build manual.
2738 * INSTALL: Regenerated.
2739
2740 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
2741
2742 * bits/time64.h: New file.
2743 * include/time.h: Replace internal_time_t with __time64_t.
2744 * posix/bits/types (__time64_t): Add.
2745 * stdlib/Makefile: Add bits/time64.h to includes.
2746 * time/tzfile.c: Replace internal_time_t with __time64_t.
2747
2748 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2749
2750 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
2751 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
2752 __posix_spawn_file_actions_init, __posix_spawnattr_init,
2753 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
2754 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
2755 prototype.
2756 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
2757 * posix/spawn_faction_addclose.c
2758 (__posix_spawn_file_actions_addclose): Add hidden definition.
2759 * posix/spawn_faction_adddup2.c
2760 (__posix_spawn_file_actions_adddup2): Likewise.
2761 * posix/spawn_faction_destroy.c
2762 (__posix_spawn_file_actions_destroy): Likewise.
2763 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
2764 Likewise.
2765 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
2766 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
2767 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
2768 Likewise.
2769 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
2770 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
2771 Likewise.
2772
2773 2018-10-24 Andreas Schwab <schwab@suse.de>
2774
2775 [BZ #18093]
2776 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
2777 format cache.
2778 * elf/cache.c (print_cache): Likewise.
2779
2780 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
2781
2782 * bits/timesize.h: New file.
2783 * stdlib/Makefile (headers): Add bits/timesize.h.
2784 * sysdeps/unix/sysv/linux/bits/msq-pad.h
2785 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
2786 * sysdeps/unix/sysv/linux/bits/sem-pad.h
2787 (__SEM_PAD_AFTER_TIME): Likewise.
2788 * sysdeps/unix/sysv/linux/bits/shm-pad.h
2789 (__SHM_PAD_AFTER_TIME): Likewise.
2790 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
2791 (__MSQ_PAD_BEFORE_TIME): Likewise.
2792 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
2793 (__SEM_PAD_BEFORE_TIME): Likewise.
2794 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
2795 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
2796 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
2797 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
2798 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
2799 (__MSQ_PAD_BEFORE_TIME): Likewise.
2800 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
2801 (__SEM_PAD_BEFORE_TIME): Likewise.
2802 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
2803 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
2804 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
2805 (__MSQ_PAD_BEFORE_TIME): Likewise.
2806 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
2807 (__SEM_PAD_BEFORE_TIME): Likewise.
2808 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
2809 (__SHM_PAD_BEFORE_TIME): Likewise.
2810 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
2811 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
2812 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
2813
2814 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
2815
2816 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
2817 USE_RDTSCP is defined.
2818 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
2819 USE_RDTSCP is defined.
2820
2821 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2822
2823 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
2824 defined.
2825
2826 [BZ #23709]
2827 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
2828 independently of other flags.
2829
2830 2018-10-23 Florian Weimer <fweimer@redhat.com>
2831
2832 * time/tst-mktime2.c (N_STRINGS): Remove.
2833 (set_timezone): New function.
2834 (spring_forward_gap): Call it. Use FAIL_EXIT1.
2835 (mktime_test1): Report localtime failure and check errno value.
2836 Use TEST_COMPARE.
2837 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
2838 (do_test): Remove alarm call. Use set_timezone and array_length.
2839
2840 2018-10-23 Andreas Schwab <schwab@suse.de>
2841
2842 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
2843 (__start_context): Use END instead of PSEUDO_END.
2844
2845 2018-10-22 Joseph Myers <joseph@codesourcery.com>
2846
2847 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
2848 version to 4.19.
2849
2850 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
2851 version to 4.19.
2852
2853 [BZ #23793]
2854 * wcsmbs/c32rtomb.c: New file.
2855 * wcsmbs/mbrtoc32.c: Likewise.
2856 * wcsmbs/tst-c32-state.c: Likewise.
2857 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
2858 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
2859 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
2860 (tests): Add tst-c32-state.
2861 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
2862 $(gen-locales).
2863
2864 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
2865
2866 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
2867 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
2868
2869 2018-10-19 Joseph Myers <joseph@codesourcery.com>
2870
2871 [BZ #23794]
2872 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
2873 pair and return 0 in that case, and use saved character to
2874 interpret following character.
2875 * wcsmbs/tst-c16-surrogate.c: New file.
2876 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
2877 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
2878 Depend on $(gen-locales)
2879
2880 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
2881
2882 [BZ #23562]
2883 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
2884 (struct siginfo_t): Use correct type for si_band.
2885
2886 2018-10-19 Florian Weimer <fweimer@redhat.com>
2887
2888 [BZ #23689]
2889 * resource/bits/types/struct_rusage.h (struct rusage): Update
2890 comment on struct. Remove extraneous field comment.
2891
2892 2018-10-18 David S. Miller <davem@davemloft.net>
2893
2894 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
2895 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
2896 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
2897 sysdep_routines in subdir elf.
2898 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
2899 version for __vdso_clock_gettime.
2900 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
2901 Define.
2902 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
2903 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
2904
2905 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
2906
2907 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
2908
2909 * sysdeps/i386/init-arch.h: Removed.
2910 * sysdeps/i386/i586/init-arch.h: Likewise.
2911 * sysdeps/i386/i686/init-arch.h: Likewise.
2912 * sysdeps/i386/i686/hp-timing.h: Likewise.
2913 * sysdeps/x86_64/hp-timing.h: Likewise.
2914 * sysdeps/i386/isa.h: New file.
2915 * sysdeps/i386/i586/isa.h: Likewise.
2916 * sysdeps/i386/i686/isa.h: Likewise.
2917 * sysdeps/x86_64/isa.h: Likewise.
2918 * sysdeps/x86/hp-timing.h: New file.
2919 * sysdeps/x86/init-arch.h: Include <isa.h>.
2920
2921 2018-10-17 Joseph Myers <joseph@codesourcery.com>
2922
2923 * math/libm-test-pow.inc (pow_test_data): Do not allow
2924 divide-by-zero exception for pow(+/- 0, -Inf).
2925
2926 2018-10-17 Zack Weinberg <zackw@panix.com>
2927
2928 * manual/job.texi (Job Control is Optional): Remove node, as
2929 job control has not been optional in quite some time.
2930 (Job Control): Mention briefly that systems older than
2931 POSIX.1-2001 might not support job control.
2932 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
2933 defined on systems conforming to POSIX.1-2001.
2934
2935 2018-10-17 Arjun Shankar <arjun@redhat.com>
2936
2937 [BZ #22062]
2938 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
2939 indentation.
2940 * (__gconv_read_conf): Mark function static.
2941 * (once): New static variable.
2942 * (__gconv_load_conf): New function.
2943 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
2944 * iconv/gconv_db.c (once): Remove static variable.
2945 * (__gconv_compare_alias): Use __gconv_load_conf instead of
2946 __gconv_read_conf.
2947 * (__gconv_find_transform): Likewise.
2948 * iconv/tst-iconv-mt.c: New test.
2949 * iconv/Makefile: Add tst-iconv_mt.
2950
2951 2018-10-17 Joseph Myers <joseph@codesourcery.com>
2952
2953 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2954 bits/shm-pad.h.
2955 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
2956 (shmatt_t): Define as __syscall_ulong_t.
2957 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
2958 and [__SHM_PAD_AFTER_TIME].
2959 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
2960 Define shm_segsz and associated padding based on
2961 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
2962 Use __syscall_ulong_t instead of unsigned long int.
2963 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
2964 unsigned long int.
2965 [__USE_MISC] (struct shm_info): Likewise.
2966 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
2967 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
2968 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
2969 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
2970 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
2971 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
2972 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
2973 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
2974 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
2975 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
2976 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
2977
2978 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2979 bits/shmlba.h.
2980 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
2981 (SHMLBA): Remove macro.
2982 (__getpagesize): Remove function declaration.
2983 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
2984 <bits/shmlba.h>.
2985 (SHMLBA): Remove macro.
2986 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
2987 <bits/shmlba.h>.
2988 (SHMLBA): Remove macro.
2989 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
2990 <bits/shmlba.h>.
2991 (SHMLBA): Remove macro.
2992 (__getpagesize): Remove function declaration.
2993 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
2994 <bits/shmlba.h>.
2995 (SHMLBA): Remove macro.
2996 (__getshmlba): Remove function declaration.
2997 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
2998 (SHMLBA): Remove macro.
2999 (__getpagesize): Remove function declaration.
3000 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
3001 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
3002 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
3003 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
3004 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
3005 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
3006 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
3007 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
3008 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
3009 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
3010
3011 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
3012
3013 [BZ #23275]
3014 * nptl/tst-mutex10.c: New File.
3015 * nptl/Makefile (tests): Add tst-mutex10.
3016 (tst-mutex10-ENV): New variable.
3017 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
3018 Ensure that elision path is used if elision is available.
3019 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
3020 Likewise.
3021 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
3022 Likewise.
3023 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
3024 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
3025 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
3026 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
3027 Likewise.
3028 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
3029 (__pthread_mutex_cond_lock_adjust): Likewise.
3030 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
3031 Likewise.
3032 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
3033 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
3034 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
3035 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
3036 Add comments.
3037 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
3038 Use atomic_load_relaxed and atomic_store_relaxed.
3039 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
3040 Use atomic_store_relaxed.
3041
3042 2018-10-17 Andreas Schwab <schwab@suse.de>
3043
3044 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
3045 * crypt/badsalttest.c (TIMEOUT): Likewise.
3046 * crypt/sha256c-test.c (TIMEOUT): Likewise.
3047 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
3048 * io/test-lfs.c (TIMEOUT): Likewise.
3049 * libio/tst-atime.c (TIMEOUT): Likewise.
3050 * localedata/tst-leaks.c (TIMEOUT): Likewise.
3051 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
3052 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
3053 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
3054 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
3055 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
3056 * nptl/tst-cond11.c (TIMEOUT): Likewise.
3057 * nptl/tst-cond14.c (TIMEOUT): Likewise.
3058 * nptl/tst-cond15.c (TIMEOUT): Likewise.
3059 * nptl/tst-cond24.c (TIMEOUT): Likewise.
3060 * nptl/tst-cond25.c (TIMEOUT): Likewise.
3061 * nptl/tst-kill2.c (TIMEOUT): Likewise.
3062 * nptl/tst-kill3.c (TIMEOUT): Likewise.
3063 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
3064 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
3065 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
3066 * nptl/tst-once2.c (TIMEOUT): Likewise.
3067 * nptl/tst-once3.c (TIMEOUT): Likewise.
3068 * nptl/tst-once4.c (TIMEOUT): Likewise.
3069 * nptl/tst-robust8.c (TIMEOUT): Likewise.
3070 * nptl/tst-robust9.c (TIMEOUT): Likewise.
3071 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
3072 * nptl/tst-sem14.c (TIMEOUT): Likewise.
3073 * nptl/tst-sem6.c (TIMEOUT): Likewise.
3074 * nptl/tst-signal3.c (TIMEOUT): Likewise.
3075 * nptl/tst-spin4.c (TIMEOUT): Likewise.
3076 * nptl/tst-tls3.c (TIMEOUT): Likewise.
3077 * nptl/tst-tls4.c (TIMEOUT): Likewise.
3078 * posix/tst-chmod.c (TIMEOUT): Likewise.
3079 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
3080 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
3081 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
3082 * posix/tst-regex2.c (TIMEOUT): Likewise.
3083 * posix/tst-waitid.c (TIMEOUT): Likewise.
3084 * rt/tst-aio.c (TIMEOUT): Likewise.
3085 * rt/tst-aio10.c (TIMEOUT): Likewise.
3086 * rt/tst-aio4.c (TIMEOUT): Likewise.
3087 * rt/tst-aio5.c (TIMEOUT): Likewise.
3088 * rt/tst-aio6.c (TIMEOUT): Likewise.
3089 * rt/tst-aio64.c (TIMEOUT): Likewise.
3090 * rt/tst-aio7.c (TIMEOUT): Likewise.
3091 * rt/tst-aio9.c (TIMEOUT): Likewise.
3092 * rt/tst-clock.c (TIMEOUT): Likewise.
3093 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
3094 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
3095 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
3096 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
3097 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
3098 * rt/tst-timer4.c (TIMEOUT): Likewise.
3099 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
3100 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
3101 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
3102 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
3103 * time/tst-ftime.c (TIMEOUT): Likewise.
3104 * timezone/tst-tzset.c (TIMEOUT): Likewise.
3105
3106 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
3107
3108 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
3109 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
3110 for thunderX2.
3111
3112 2018-10-15 Joseph Myers <joseph@codesourcery.com>
3113
3114 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3115 bits/sem-pad.h.
3116 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
3117 instead of <bits/wordsize.h>.
3118 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
3119 and [__SEM_PAD_AFTER_TIME].
3120 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
3121 __syscall_ulong_t instead of unsigned long int.
3122 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
3123 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
3124 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
3125 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
3126 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
3127 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
3128 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
3129 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
3130 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
3131 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
3132 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
3133
3134 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
3135
3136 regex: simplify by using intprops.h
3137 [BZ#23744]
3138 * posix/regex_internal.h [_LIBC]: Include intprops.h.
3139 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
3140 intprops.h defines them.
3141
3142 regex: __builtin_expect → __glibc_unlikely
3143 [BZ#23744]
3144 This refactoring was prompted by a problem when the regex code is
3145 used as part of Gnulib and when the builder’s compiler does not grok
3146 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
3147 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
3148 Although this refactoring does not fix the problem directly,
3149 we might as well have Gawk use the now-preferred glibc style for when
3150 __builtin_expect is unavailable.
3151 * posix/regex_internal.h (BE): Remove.
3152 All uses replaced by __glibc_unlikely or __glibc_likely.
3153
3154 2018-10-11 Joseph Myers <joseph@codesourcery.com>
3155
3156 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3157 bits/msq-pad.h.
3158 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
3159 instead of <bits/wordsize.h>.
3160 (msgqnum_t): Define as __syscall_ulong_t.
3161 (msglen_t): Likewise.
3162 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
3163 and [__MSQ_PAD_AFTER_TIME].
3164 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
3165 __syscall_ulong_t instead of unsigned long int.
3166 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
3167 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
3168 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
3169 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
3170 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
3171 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
3172 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
3173 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
3174 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
3175 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
3176 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
3177
3178 2018-10-10 Joseph Myers <joseph@codesourcery.com>
3179
3180 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
3181 (struct shmid_ds): Condition padding after time fields on
3182 [__WORDSIZE == 32].
3183 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
3184 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
3185 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
3186
3187 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
3188 (struct semid_ds): Condition padding after time fields on
3189 [__WORDSIZE == 32].
3190 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
3191 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
3192 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
3193 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
3194
3195 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
3196 (struct msqid_ds): Condition padding after time fields on
3197 [__WORDSIZE == 32].
3198 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
3199 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
3200 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
3201 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
3202
3203 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
3204
3205 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
3206
3207 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
3208
3209 * libio/tst-readline.c (TIMEOUT): Define.
3210
3211 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
3212
3213 mktime fix for Gnulib + coreutils
3214 [BZ#23745]
3215 This fix affects only Gnulib. Problem discovered when
3216 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
3217 * time/mktime.c:
3218 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
3219 Do not define since it is not used. Defining an unused static
3220 function prompts a warning from GCC when Coreutils is configured
3221 with --enable-gcc-warnings.
3222
3223 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3224
3225 * benchtests/scripts/compare_bench.py (main): set float type on
3226 threshold argument.
3227
3228 2018-10-08 Rafal Luzynski <digitalfreak@lingonborough.com>
3229
3230 [BZ #23740]
3231 * localedata/locales/kl_GL (mon): Update, the relative case.
3232 (alt_mon): Add, fill with month names in the nominative case.
3233 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
3234 (d_fmt): Set to "%b %d %Y".
3235
3236 2018-10-04 Joseph Myers <joseph@codesourcery.com>
3237
3238 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
3239 <bits/mman-linux.h>.
3240 (PROT_READ): Don't define here.
3241 (PROT_WRITE): Likewise.
3242 (PROT_EXEC): Likewise.
3243 (PROT_NONE): Likewise.
3244 (PROT_GROWSDOWN): Likewise.
3245 (PROT_GROWSUP): Likewise.
3246 (MAP_SHARED): Likewise.
3247 (MAP_PRIVATE): Likewise.
3248 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
3249 [__USE_MISC] (MAP_FILE): Likewise.
3250 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
3251 [__USE_MISC] (MAP_ANON): Likewise.
3252 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
3253 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
3254 (MCL_CURRENT): Likewise.
3255 (MCL_FUTURE): Likewise.
3256 (MCL_ONFAULT): Likewise.
3257 [__USE_MISC] (MADV_NORMAL): Likewise.
3258 [__USE_MISC] (MADV_RANDOM): Likewise.
3259 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
3260 [__USE_MISC] (MADV_WILLNEED): Likewise.
3261 [__USE_MISC] (MADV_DONTNEED): Likewise.
3262 [__USE_MISC] (MADV_FREE): Likewise.
3263 [__USE_MISC] (MADV_REMOVE): Likewise.
3264 [__USE_MISC] (MADV_DONTFORK): Likewise.
3265 [__USE_MISC] (MADV_DOFORK): Likewise.
3266 [__USE_MISC] (MADV_HWPOISON): Likewise.
3267 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
3268 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
3269 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
3270 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
3271 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
3272 (__MAP_ANONYMOUS): New macro.
3273 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
3274 <bits/mman-linux.h> inclusion.
3275 (MAP_FIXED): Likewise.
3276 (MS_SYNC): Likewise.
3277 (MS_ASYNC): Likewise.
3278 (MS_INVALIDATE): Likewise.
3279 [__USE_MISC] (MADV_MERGEABLE): Likewise.
3280 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
3281 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
3282 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
3283 [__USE_MISC] (MADV_DONTDUMP): Likewise.
3284 [__USE_MISC] (MADV_DODUMP): Likewise.
3285 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
3286 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
3287
3288 [BZ #23735]
3289 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
3290 Define.
3291 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
3292 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
3293 Add test-nldbl-redirect.
3294 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
3295 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
3296 $(objpfx)libnldbl_nonshared.a.
3297
3298 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
3299
3300 * support/support.h (support_objdir_elf_ldso): New variable.
3301 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
3302 * support/Makefile (CFLAGS-support_paths.c): Add definition
3303 for OBJDIR_ELF_LDSO_PATH.
3304 * support/test-container.c (main): Search for the ld.so
3305 which is also used by the testsuite.
3306
3307 2018-10-02 Rafal Luzynski <digitalfreak@lingonborough.com>
3308
3309 [BZ #20209]
3310 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
3311 should be "sap" rather than "sab".
3312 (day): Fix spelling of Sunday, should be "sapaat" rather than
3313 "sabaat".
3314
3315 2018-10-02 Joseph Myers <joseph@codesourcery.com>
3316
3317 * math/libm-test-fma.inc (fma_test_data): Add more tests.
3318
3319 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
3320
3321 [BZ #19444]
3322 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
3323 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
3324 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
3325
3326 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3327
3328 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
3329
3330 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
3331
3332 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
3333 Add -mrtm.
3334 (CFLAGS-elision-unlock.c): Likewise.
3335 (CFLAGS-elision-timed.c): Likewise.
3336 (CFLAGS-elision-trylock.c): Likewise.
3337 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
3338
3339 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3340
3341 [BZ #21037]
3342 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
3343 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
3344 new fd_to_filename interface.
3345 * libio/freopen64.c (freopen64): Likewise.
3346 * libio/tst-memstream.h: New file.
3347 * libio/tst-memstream4.c: Likewise.
3348 * libio/tst-wmemstream4.c: Likewise.
3349 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
3350 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
3351 and remove internal dynamic allocation.
3352
3353 2018-10-01 Joseph Myers <joseph@codesourcery.com>
3354
3355 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
3356 (MREMAP_MAYMOVE): Do not define here.
3357 [__USE_GNU] (MREMAP_FIXED): Likewise.
3358 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
3359 (MREMAP_MAYMOVE): Define here instead.
3360 [__USE_GNU] (MREMAP_FIXED): Likewise.
3361 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
3362 (MREMAP_MAYMOVE): Remove.
3363 [__USE_GNU] (MREMAP_FIXED): Likewise.
3364
3365 2018-09-28 Joseph Myers <joseph@codesourcery.com>
3366
3367 * math/fromfp.h: Do not include <math_private.h>.
3368 * math/s_cacosh_template.c: Likewise.
3369 * math/s_casin_template.c: Likewise.
3370 * math/s_casinh_template.c: Likewise.
3371 * math/s_ccos_template.c: Likewise.
3372 * math/s_cproj_template.c: Likewise.
3373 * math/s_fdim_template.c: Likewise.
3374 * math/s_fmaxmag_template.c: Likewise.
3375 * math/s_fminmag_template.c: Likewise.
3376 * math/s_iseqsig_template.c: Likewise.
3377 * math/s_ldexp_template.c: Likewise.
3378 * math/s_nextdown_template.c: Likewise.
3379 * math/w_log1p_template.c: Likewise.
3380 * math/w_scalbln_template.c: Likewise.
3381 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
3382 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
3383 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
3384 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
3385 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
3386 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
3387 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
3388 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
3389 * sysdeps/i386/fpu/s_atanl.c: Likewise.
3390 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
3391 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
3392 * sysdeps/i386/fpu/s_fdim.c: Likewise.
3393 * sysdeps/i386/fpu/s_logbl.c: Likewise.
3394 * sysdeps/i386/fpu/s_rintl.c: Likewise.
3395 * sysdeps/i386/fpu/s_significandl.c: Likewise.
3396 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
3397 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
3398 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
3399 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
3400 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
3401 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
3402 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
3403 * sysdeps/ieee754/k_standardf.c: Likewise.
3404 * sysdeps/ieee754/k_standardl.c: Likewise.
3405 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
3406 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
3407 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
3408 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
3409 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
3410 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
3411 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
3412 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
3413 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
3414 * sysdeps/ieee754/s_signgam.c: Likewise.
3415 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
3416 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
3417 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
3418 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
3419 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
3420 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
3421 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
3422 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
3423 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
3424 * sysdeps/riscv/rvd/s_finite.c: Likewise.
3425 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
3426 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
3427 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
3428 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
3429 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
3430 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
3431 * sysdeps/riscv/rvf/fegetround.c: Likewise.
3432 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
3433 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
3434 * sysdeps/riscv/rvf/fesetround.c: Likewise.
3435 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
3436 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
3437 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
3438 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
3439 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
3440 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
3441 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
3442 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
3443 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
3444 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
3445 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
3446 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
3447 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
3448 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
3449 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
3450 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
3451 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
3452 <math_private.h>.
3453 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
3454
3455 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
3456
3457 [BZ #23716]
3458 * sysdeps/i386/dl-cet.c: Removed.
3459 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
3460 prototype.
3461 (_dl_runtime_profile_shstk): Likewise.
3462 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
3463 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
3464
3465 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3466
3467 [BZ #23579]
3468 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
3469 do_test_with_invalid_iov): New tests.
3470 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
3471 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
3472 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
3473 errno is ENOSYS.
3474 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
3475 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
3476 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
3477
3478 2018-09-27 Joseph Myers <joseph@codesourcery.com>
3479
3480 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
3481 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
3482 (MATH_REDIRECT_BINARY_ARGS): New macro.
3483 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
3484 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
3485 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
3486 header inclusion.
3487 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
3488 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
3489 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
3490 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
3491 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
3492 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
3493 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
3494 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
3495 Likewise.
3496 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
3497 Likewise.
3498 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
3499 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
3500 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
3501 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
3502 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
3503 Likewise.
3504 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
3505 Likewise.
3506 * sysdeps/generic/math_private_calls.h
3507 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
3508 Do not declare and define as an inline function.
3509 * math/divtc3.c (__divtc3): Use copysign functions instead of
3510 __copysign variants.
3511 * math/multc3.c (__multc3): Likewise.
3512 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
3513 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
3514 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
3515 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
3516 Likewise.
3517 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
3518 (__ieee754_yn): Likewise.
3519 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
3520 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
3521 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
3522 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
3523 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
3524 (__sin): Likewise.
3525 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
3526 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
3527 Likewise.
3528 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
3529 Likewise.
3530 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
3531 Likewise.
3532 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
3533 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
3534 Likewise.
3535 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
3536 (__ieee754_ynf): Likewise.
3537 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
3538 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
3539 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
3540 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
3541 Likewise.
3542 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
3543 (__ieee754_ynl): Likewise.
3544 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
3545 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
3546 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
3547 Likewise.
3548 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
3549 (__ieee754_ynl): Likewise.
3550 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
3551 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
3552 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
3553 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
3554 Likewise.
3555 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
3556 (__ieee754_ynl)
3557 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
3558 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
3559 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
3560 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
3561 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
3562
3563 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
3564 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
3565 using MATH_REDIRECT.
3566 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
3567 header inclusion.
3568 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
3569 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
3570 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
3571 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
3572 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
3573 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
3574 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
3575 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
3576 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
3577 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
3578 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
3579 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
3580 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
3581 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
3582 (round): Redirect to __round.
3583 (__roundl): Call round instead of __round.
3584 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
3585 Remove macro.
3586 [_ARCH_PWR5X] (__roundf): Likewise.
3587 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
3588 functions instead of __round variants.
3589 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
3590 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
3591 Likewise.
3592 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
3593 Likewise.
3594 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
3595 Likewise.
3596 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
3597 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
3598 __lroundl.
3599 (__ieee754_expl): Call roundl instead of __roundl.
3600
3601 2018-09-27 Andreas Schwab <schwab@suse.de>
3602
3603 [BZ #23717]
3604 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
3605 (do_test): Make st1 static.
3606
3607 2018-09-26 Andreas Schwab <schwab@suse.de>
3608
3609 [BZ #23707]
3610 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
3611 * elf/Makefile (tests): Add tst-unwind-ctor.
3612 (modules-names): Add tst-unwind-ctor-lib.
3613 ($(objpfx)tst-unwind-ctor): Depend on
3614 $(objpfx)tst-unwind-ctor-lib.so.
3615
3616 2018-09-26 Joseph Myers <joseph@codesourcery.com>
3617
3618 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
3619 file. Most contents moved from ....
3620 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
3621 and include <bits/mman-map-flags-generic.h>.
3622 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
3623 (sysdep_headers): Add bits/mman-map-flags-generic.h.
3624 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
3625 <bits/mman-map-flags-generic.h>.
3626 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
3627 macros defined in <bits/mman-map-flags-generic.h>.
3628 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
3629 <bits/mman-map-flags-generic.h>.
3630 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
3631 defined in <bits/mman-map-flags-generic.h>.
3632
3633 2018-09-26 Andreas Schwab <schwab@suse.de>
3634
3635 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
3636 output.
3637
3638 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
3639 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3640 Fangrui Song <maskray@google.com>
3641
3642 [BZ #20480]
3643 * config.make.in (have-textrel_ifunc): New define.
3644 * configure.ac: Add check if linker supports textrel relocation with
3645 ifunc.
3646 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
3647 tst-ifunc-textrel.
3648 (CFLAGS-tst-ifunc-textrel.c): New rule.
3649 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
3650 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
3651 * elf/tst-ifunc-textrel.c: New file.
3652
3653 2018-09-25 Joseph Myers <joseph@codesourcery.com>
3654
3655 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
3656 <bits/procfs-prregset.h>.
3657 (prgregset_t): Define using __prgregset_t.
3658 (prfpregset_t): Define using __prfpregset_t.
3659 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
3660 (sysdep_headers): Add bits/procfs-prregset.h.
3661 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
3662 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
3663 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
3664 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
3665
3666 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
3667 <bits/procfs-id.h> and <bits/procfs-extra.h>.
3668 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
3669 pr_uid and pr_gid.
3670 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
3671 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
3672 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
3673 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
3674 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
3675 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
3676 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
3677 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
3678 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
3679 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
3680 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
3681 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
3682 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
3683 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
3684 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
3685 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
3686 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
3687 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
3688 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
3689 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
3690 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
3691 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
3692 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
3693 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
3694
3695 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
3696 AArch64 version. Include <bits/procfs.h>.
3697 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
3698 (sysdep_headers): Add bits/procfs.h.
3699 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
3700 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
3701 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
3702 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
3703 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
3704 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
3705 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
3706 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
3707 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
3708 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
3709 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
3710 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
3711 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
3712 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
3713 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
3714 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
3715 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
3716
3717 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3718
3719 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
3720 Use libsupport.
3721
3722 2018-09-25 Arjun Shankar <arjun@redhat.com>
3723
3724 * iconv/gconv_int.h (__gconv_path_elem): Remove.
3725 (__gconv_max_path_elem_len): Likewise.
3726 (__gconv_nmodules): Likewise.
3727 (__gconv_get_path): Likewise.
3728 (path_elem): Move to ...
3729 * iconv/gconv_conf.c: ... here.
3730 (__gconv_get_path): Mark function static.
3731 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
3732 * iconv/gconv_open.c: ... here.
3733
3734 2018-09-24 Andreas Schwab <schwab@suse.de>
3735
3736 * scripts/haveversions.awk: New file.
3737 * Makerules ($(common-objpfx)Versions.def)
3738 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
3739 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
3740 Move rules ...
3741 * Makeconfig ($(common-objpfx)Versions.def)
3742 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
3743 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
3744 ... here.
3745 ($(common-objpfx)Versions.mk): New rule. Include it.
3746 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
3747 Emit error if build-obsolete-nsl = yes.
3748 * manual/install.texi (Configuring and compiling): Describe
3749 --enable-obsolete-nsl as unavaiable after version 2.28.
3750 * INSTALL: Regenerate.
3751
3752 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3753
3754 * NEWS: Add note about new TLE support on powerpc64le.
3755 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
3756 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
3757 __ununsed1.
3758 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
3759 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
3760 * sysdeps/powerpc/powerpc32/sysdep.h,
3761 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
3762 ABORT_TRANSACTION): Remove macros.
3763 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
3764 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
3765 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
3766 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
3767 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
3768 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
3769 usage.
3770 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
3771
3772 2018-09-21 Rafal Luzynski <digitalfreak@lingonborough.com>
3773
3774 [BZ #10425]
3775 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
3776 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
3777 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
3778 which is the same as in it_IT.
3779 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
3780 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
3781
3782 2018-09-20 Joseph Myers <joseph@codesourcery.com>
3783
3784 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
3785 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
3786 using MATH_REDIRECT.
3787 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
3788 header inclusion.
3789 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
3790 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
3791 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
3792 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
3793 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
3794 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
3795 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
3796 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
3797 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
3798 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
3799 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
3800 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
3801 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
3802 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
3803 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
3804 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
3805 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
3806 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
3807 (ceil): Redirect to __ceil.
3808 (floor): Redirect to __floor.
3809 (trunc): Redirect to __trunc.
3810 (__truncl): Call trunc instead of __trunc.
3811 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
3812 Remove macro.
3813 [_ARCH_PWR5X] (__truncf): Likewise.
3814 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
3815 trunc functions instead of __trunc variants.
3816 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
3817 Likewise.
3818 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
3819 Likewise.
3820 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
3821 Likewise.
3822 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
3823 Likewise.
3824
3825 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
3826 [__i586__ || __pentium__].
3827 [__i486__]: Handle explicitly.
3828 (HAS_CPUID): Define to 1 if above macros are undefined.
3829 (HAS_I586): Likewise.
3830 (HAS_I686): Likewise.
3831
3832 2018-09-20 Florian Weimer <fweimer@redhat.com>
3833
3834 * misc/tst-gethostid.c: New file.
3835 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
3836 (tst-gethostid): Link with -ldl.
3837
3838 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
3839
3840 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
3841 value from gethostbyname_r.
3842
3843 2018-09-19 Carlos O'Donell <carlos@redhat.com>
3844
3845 * stdlib/tst-setcontext9.c (f1): Rename to...
3846 (f1a): ... this.
3847 (f1b): New function implementing lower half of f1 in alternate stack.
3848
3849 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
3850
3851 Fix mktime localtime offset confusion
3852 [BZ #23603]
3853 * include/time.h (__mktime_internal): The localtime offset is now
3854 of type long int instead of time_t. This is the longstanding type
3855 in glibc, and it is more than enough to represent difference
3856 between localtime and gmtime even if it is 32 bits and time_t is
3857 64. Changing it now will let us avoid an unnecessary change when
3858 time_t is widened to 64 bits on 32-bit platforms.
3859 * time/mktime-internal.h (mktime_offset_t): Now long int.
3860
3861 Merge mktime, timegm from upstream Gnulib
3862 [BZ #23603][BZ #16346]
3863 This fixes some obscure problems with integer overflow.
3864 Although it looks scary, it is almost all a byte-for-byte copy
3865 from Gnulib, and the Gnulib code has been tested reasonably well.
3866 * include/intprops.h: New file, copied from Gnulib.
3867 * include/verify.h, time/mktime-internal.h:
3868 New tiny files, simplified from Gnulib.
3869 * time/mktime.c: Copy from Gnulib. This has the following changes:
3870 Do not include config.h if DEBUG_MKTIME is nonzero.
3871 Include stdbool.h, intprops.h, verify.h.
3872 Include string.h only if needed.
3873 Include stdlib.h on MS-Windows.
3874 Include mktime-internal.h.
3875 (DEBUG_MKTIME): Default to 0, and simplify later uses.
3876 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
3877 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
3878 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
3879 simplify later conditionals; default the others to zero. Use
3880 these conditionals to express only the code needed on the current
3881 platform. In uses of these conditionals, explicitly spell out how
3882 _LIBC affects things, so it’s easier to review from a glibc
3883 viewpoint.
3884 (WRAPV): Remove; no longer needed now that we have
3885 systematic overflow checking.
3886 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
3887 compartmentalize tzset issues. Move system-dependent tzsettish
3888 code here from mktime.
3889 (verify): Remove; now done by verify.h. All uses changed.
3890 (long_int): Use a more-conservative definition, to avoid
3891 integer overflow.
3892 (SHR): Remove, replacing with ...
3893 (shr): New function, which means we needn’t worry about side
3894 effects in args, and conversion analysis is simpler.
3895 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
3896 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
3897 (time_t_avg, time_t_add_ok): Remove.
3898 (mktime_min, mktime_max): New constants.
3899 (leapyear, isdst_differ): Use bool for booleans.
3900 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
3901 Use long_int, not time_t, for mktime differences.
3902 (long_int_avg): New function, replacing time_t_avg.
3903 INT_ADD_WRAPV replaces time_t_add_ok.
3904 (guess_time_tm): 6th arg is now long_int, not time_t const *.
3905 All uses changed.
3906 (convert_time): New function.
3907 (ranged_convert): Use it.
3908 (__mktime_internal): Last arg now points to mktime_offset_t, not
3909 time_t. All uses changed. This is a no-op on glibc, where
3910 mktime_offset_t is always time_t. Use int, not time_t, for UTC
3911 offset guess. Directly check for integer overflow instead of
3912 using a heuristic that works only 99.9...% of the time.
3913 Access *OFFSET only once, to avoid an unlikely race if the
3914 compiler delays a load and if this cascades into a signed integer
3915 overflow.
3916 (mktime): Move tzsettish code to my_tzset, and move
3917 localtime_offset to within mktime so that it doesn’t
3918 need a separate ifdef.
3919 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
3920 instead of localtime.
3921 * time/timegm.c: Copy from Gnulib. This has the following changes:
3922 Include mktime-internal.h.
3923 [!_LIBC]: Include config.h and time.h. Do not include
3924 timegm.h or time_r.h. Make __mktime_internal a macro,
3925 and include mktime-internal.h to get its declaration.
3926 (timegm): Temporary is now mktime_offset_t, not time_t.
3927 This affects only Gnulib.
3928
3929 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
3930
3931 [BZ #23637]
3932 * string/test-strstr.c (pr23637): New function.
3933 (test_main): Add tests with longer needles.
3934 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
3935 * string/strstr.c (AVAILABLE): Likewise.
3936
3937 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
3938
3939 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
3940
3941 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
3942
3943 * NEWS: Mention pow improvements.
3944 * math/Makefile (type-double-routines): Add e_pow_log_data.
3945 * sysdeps/generic/math_private.h (__exp1): Remove.
3946 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
3947 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
3948 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
3949 contraction.
3950 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
3951 (exp_inline): Remove.
3952 (__ieee754_exp): Only single double input is handled.
3953 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
3954 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
3955 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
3956 (__pow_log_data): Define.
3957 * sysdeps/ieee754/dbl-64/upow.h: Remove.
3958 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
3959 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
3960 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
3961 contraction.
3962 (CFLAGS-e_pow-fma4.c): Likewise.
3963
3964 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
3965
3966 Simplify tzfile fstat failure code
3967 [BZ #21716]
3968 * time/tzfile.c (__tzfile_read): Simplify slightly.
3969
3970 Fix tzfile low-memory assertion failure
3971 [BZ #21716]
3972 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
3973 when registering time zone abbreviations.
3974
3975 2018-09-18 Joseph Myers <joseph@codesourcery.com>
3976
3977 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
3978 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
3979 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
3980 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
3981 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
3982 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
3983 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
3984 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
3985 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
3986
3987 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
3988 __ceil.
3989 (__ceill): Call ceil instead of __ceil.
3990 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
3991 __floor.
3992 (__floorl): Call floor instead of __floor.
3993
3994 2018-09-17 Joseph Myers <joseph@codesourcery.com>
3995
3996 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
3997 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
3998 using MATH_REDIRECT.
3999 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
4000 header inclusion.
4001 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
4002 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
4003 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
4004 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
4005 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
4006 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
4007 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
4008 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
4009 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
4010 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
4011 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
4012 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
4013 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
4014 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
4015 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
4016 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
4017 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
4018 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
4019 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
4020 Remove macro.
4021 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
4022 functions instead of __ceil variants.
4023 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
4024 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
4025 Likewise.
4026 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
4027 Likewise.
4028 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
4029 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
4030 Likewise.
4031 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
4032 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
4033
4034 [BZ #21286]
4035 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
4036 constant.
4037 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
4038 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
4039 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
4040 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
4041 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
4042 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
4043 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
4044 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
4045 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
4046 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
4047 (ILL_BADIADDR): Remove constant.
4048 (TRAP_BRANCH): Likewise.
4049 (TRAP_HWBKPT): Likewise.
4050
4051 2018-09-14 Joseph Myers <joseph@codesourcery.com>
4052
4053 [BZ #23656]
4054 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
4055 Remove [_MIPS_SIM = _ABIN32] conditional case.
4056 (struct elf_prpsinfo): Likewise.
4057
4058 [BZ #23649]
4059 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
4060 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
4061 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
4062 Likewise.
4063 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
4064 elf_prpsinfo): Likewise.
4065 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
4066 elf_prpsinfo): Likewise.
4067 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
4068 Likewise.
4069
4070 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
4071 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
4072 using MATH_REDIRECT.
4073 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
4074 header inclusion.
4075 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
4076 * sysdeps/alpha/fpu/s_rint.c: Likewise.
4077 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
4078 * sysdeps/i386/fpu/s_rintl.c: Likewise.
4079 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
4080 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
4081 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
4082 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
4083 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
4084 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
4085 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
4086 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
4087 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
4088 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
4089 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
4090 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
4091 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
4092 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
4093 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
4094 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
4095 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
4096 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
4097 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
4098 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
4099 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
4100 * sysdeps/x86_64/fpu/math_private.h: Remove file.
4101 * math/e_scalb.c (invalid_fn): Use rint functions instead of
4102 __rint variants.
4103 * math/e_scalbf.c (invalid_fn): Likewise.
4104 * math/e_scalbl.c (invalid_fn): Likewise.
4105 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
4106 Likewise.
4107 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
4108 Likewise.
4109 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
4110 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
4111 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
4112 Likewise.
4113 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
4114 Likewise.
4115 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
4116 Likewise.
4117 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
4118 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
4119
4120 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
4121 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
4122 New macro.
4123 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
4124 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
4125 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
4126 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
4127 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
4128 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
4129 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
4130 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
4131 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
4132 && !NO_MATH_REDIRECT] (floor): Likewise.
4133 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
4134 header inclusion.
4135 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
4136 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
4137 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
4138 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
4139 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
4140 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
4141 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
4142 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
4143 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
4144 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
4145 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
4146 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
4147 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
4148 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
4149 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
4150 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
4151 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
4152 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
4153 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
4154 Remove macro.
4155 [_ARCH_PWR5X] (__floorf): Likewise.
4156 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
4157 inline function.
4158 [__SSE4_1__] (__floorf): Likewise.
4159 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
4160 instead of __floor variants.
4161 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
4162 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
4163 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
4164 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
4165 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
4166 * math/w_tgamma_compat.c (__tgamma): Likewise.
4167 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
4168 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
4169 * math/w_tgammal_compat.c (__tgammal): Likewise.
4170 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
4171 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
4172 Likewise.
4173 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
4174 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
4175 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
4176 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
4177 Likewise.
4178 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
4179 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
4180 Likewise.
4181 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
4182 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
4183 Likewise.
4184 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
4185 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
4186 Likewise.
4187 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
4188 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
4189 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
4190 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
4191 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
4192 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
4193
4194 2018-09-12 Joseph Myers <joseph@codesourcery.com>
4195
4196 * elf/Makefile (modules-names-tests): New variable.
4197
4198 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
4199
4200 * NEWS: Mention log2 improvements.
4201 * math/Makefile (type-double-routines): Add e_log2_data.
4202 * sysdeps/i386/fpu/e_log2_data.c: New file.
4203 * sysdeps/ia64/fpu/e_log2_data.c: New file.
4204 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
4205 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
4206 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
4207 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
4208 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
4209
4210 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
4211
4212 * NEWS: Mention log improvement.
4213 * math/Makefile (type-double-routines): Add e_log_data.
4214 * sysdeps/i386/fpu/e_log_data.c: New file.
4215 * sysdeps/ia64/fpu/e_log_data.c: New file.
4216 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
4217 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
4218 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
4219 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
4220 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
4221 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
4222
4223 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
4224 Xuepeng Guo <xuepeng.guo@intel.com>
4225
4226 [BZ #23606]
4227 * sysdeps/i386/start.S: Include <sysdep.h>
4228 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
4229 enabled. Add cfi_undefined (eip).
4230
4231 2018-09-11 Joseph Myers <joseph@codesourcery.com>
4232
4233 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
4234 (MOVQ): Likewise.
4235 (EXTRACT_WORDS64): Likewise.
4236 (INSERT_WORDS64): Likewise.
4237 (GET_FLOAT_WORD): Likewise.
4238 (SET_FLOAT_WORD): Likewise.
4239
4240 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
4241 argument.
4242 (Config.build_gcc): Use --disable-libsanitizer for first GCC
4243 build, but not for second build if --full-gcc. Use
4244 --enable-languages=all for second build if --full-gcc.
4245 (get_parser): Add --full-gcc option.
4246 (main): Update call to Context.
4247
4248 2018-09-10 Rafal Luzynski <digitalfreak@lingonborough.com>
4249
4250 [BZ #10797]
4251 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
4252 Single Quotation Mark).
4253 (thousands_sep): Likewise.
4254 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
4255 * localedata/locales/it_IT (thousands_sep): Use ".".
4256 (grouping): Use "3;3".
4257
4258 2018-09-10 Joseph Myers <joseph@codesourcery.com>
4259
4260 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
4261 x86_64 and i686 configs using --enable-obsolete-rpc
4262 --enable-obsolete-nsl.
4263
4264 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
4265
4266 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
4267
4268 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
4269
4270 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
4271 Increment size of new_argv by one.
4272
4273 2018-09-05 Rafal Luzynski <digitalfreak@lingonborough.com>
4274
4275 [BZ #17426]
4276 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
4277 * localedata/locales/ar_IN (d_fmt): Likewise.
4278 * localedata/locales/bhb_IN (d_fmt): Likewise.
4279 * localedata/locales/bho_IN (d_fmt): Likewise.
4280 * localedata/locales/bn_BD (d_fmt): Likewise.
4281 * localedata/locales/bn_IN (d_fmt): Likewise.
4282 * localedata/locales/doi_IN (d_fmt): Likewise.
4283 * localedata/locales/gu_IN (d_fmt): Likewise.
4284 * localedata/locales/hi_IN (d_fmt): Likewise.
4285 * localedata/locales/hne_IN (d_fmt): Likewise.
4286 * localedata/locales/kn_IN (d_fmt): Likewise.
4287 * localedata/locales/mag_IN (d_fmt): Likewise.
4288 * localedata/locales/mai_IN (d_fmt): Likewise.
4289 * localedata/locales/mjw_IN (d_fmt): Likewise.
4290 * localedata/locales/ml_IN (d_fmt): Likewise.
4291 * localedata/locales/mni_IN (d_fmt): Likewise.
4292 * localedata/locales/mr_IN (d_fmt): Likewise.
4293 * localedata/locales/pa_IN (d_fmt): Likewise.
4294 * localedata/locales/raj_IN (d_fmt): Likewise.
4295 * localedata/locales/sat_IN (d_fmt): Likewise.
4296 * localedata/locales/sd_IN (d_fmt): Likewise.
4297 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
4298 * localedata/locales/ta_IN (d_fmt): Likewise.
4299 * localedata/locales/ta_LK (d_fmt): Likewise.
4300 * localedata/locales/tcy_IN (d_fmt): Likewise.
4301 * localedata/locales/ur_IN (d_fmt): Likewise.
4302
4303 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
4304 * localedata/locales/ks_IN (d_fmt): Likewise.
4305 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
4306
4307 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
4308 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
4309 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
4310 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
4311
4312 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
4313
4314 * NEWS: Mention exp and exp2 improvements.
4315 * math/Makefile (libm-support): Remove t_exp.
4316 (type-double-routines): Add math_err and e_exp_data.
4317 * sysdeps/aarch64/libm-test-ulps: Update.
4318 * sysdeps/arm/libm-test-ulps: Update.
4319 * sysdeps/i386/fpu/e_exp_data.c: New file.
4320 * sysdeps/i386/fpu/math_err.c: New file.
4321 * sysdeps/i386/fpu/t_exp.c: Remove.
4322 * sysdeps/ia64/fpu/e_exp_data.c: New file.
4323 * sysdeps/ia64/fpu/math_err.c: New file.
4324 * sysdeps/ia64/fpu/t_exp.c: Remove.
4325 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
4326 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
4327 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
4328 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
4329 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
4330 * sysdeps/ieee754/dbl-64/math_config.h: New file.
4331 * sysdeps/ieee754/dbl-64/math_err.c: New file.
4332 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
4333 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
4334 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
4335 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
4336 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
4337 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
4338 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
4339 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4340 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
4341
4342 2018-09-05 Joseph Myers <joseph@codesourcery.com>
4343
4344 * sysdeps/alpha/fpu/math_private.h: Remove.
4345
4346 * sysdeps/generic/math_private.h
4347 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
4348 Move this inline function ....
4349 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
4350 * include/math.h [!_ISOMAC]: To here....
4351
4352 2018-09-04 Joseph Myers <joseph@codesourcery.com>
4353
4354 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
4355 code ....
4356 [!FE_HAVE_ROUNDING_MODES]: And this code ....
4357 * include/fenv.h [!_ISOMAC]: ... to here.
4358 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
4359 (feraiseexcept): Likewise.
4360 * math/fromfp.h: Do not include <fenv_private.h>.
4361 * math/s_cexp_template.c: Likewise.
4362 * math/s_csin_template.c: Likewise.
4363 * math/s_csinh_template.c: Likewise.
4364 * math/s_ctan_template.c: Likewise.
4365 * math/s_ctanh_template.c: Likewise.
4366 * math/s_iseqsig_template.c: Likewise.
4367 * math/w_acos_compat.c: Likewise.
4368 * math/w_acosf_compat.c: Likewise.
4369 * math/w_acosl_compat.c: Likewise.
4370 * math/w_asin_compat.c: Likewise.
4371 * math/w_asinf_compat.c: Likewise.
4372 * math/w_asinl_compat.c: Likewise.
4373 * math/w_j0_compat.c: Likewise.
4374 * math/w_j0f_compat.c: Likewise.
4375 * math/w_j0l_compat.c: Likewise.
4376 * math/w_j1_compat.c: Likewise.
4377 * math/w_j1f_compat.c: Likewise.
4378 * math/w_j1l_compat.c: Likewise.
4379 * math/w_jn_compat.c: Likewise.
4380 * math/w_jnf_compat.c: Likewise.
4381 * math/w_log10_compat.c: Likewise.
4382 * math/w_log10f_compat.c: Likewise.
4383 * math/w_log10l_compat.c: Likewise.
4384 * math/w_log2_compat.c: Likewise.
4385 * math/w_log2f_compat.c: Likewise.
4386 * math/w_log2l_compat.c: Likewise.
4387 * math/w_log_compat.c: Likewise.
4388 * math/w_logf_compat.c: Likewise.
4389 * math/w_logl_compat.c: Likewise.
4390 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
4391 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
4392 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
4393 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
4394 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
4395 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
4396 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
4397 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
4398 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
4399 * sysdeps/ieee754/k_standardl.c: Likewise.
4400 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
4401 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
4402 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
4403 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
4404 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
4405 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
4406 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
4407 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
4408 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
4409 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
4410 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
4411 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
4412 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
4413 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
4414 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
4415 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
4416 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
4417 * math/w_ilogb_template.c: Include <fenv.h> instead of
4418 <fenv_private.h>.
4419 * math/w_llogb_template.c: Likewise.
4420 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
4421 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
4422
4423 2018-09-03 Joseph Myers <joseph@codesourcery.com>
4424
4425 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
4426 * math/fromfp.h: Include <fenv_private.h>.
4427 * math/math-narrow.h: Likewise.
4428 * math/s_cexp_template.c: Likewise.
4429 * math/s_csin_template.c: Likewise.
4430 * math/s_csinh_template.c: Likewise.
4431 * math/s_ctan_template.c: Likewise.
4432 * math/s_ctanh_template.c: Likewise.
4433 * math/s_iseqsig_template.c: Likewise.
4434 * math/w_acos_compat.c: Likewise.
4435 * math/w_acosf_compat.c: Likewise.
4436 * math/w_acosl_compat.c: Likewise.
4437 * math/w_asin_compat.c: Likewise.
4438 * math/w_asinf_compat.c: Likewise.
4439 * math/w_asinl_compat.c: Likewise.
4440 * math/w_ilogb_template.c: Likewise.
4441 * math/w_j0_compat.c: Likewise.
4442 * math/w_j0f_compat.c: Likewise.
4443 * math/w_j0l_compat.c: Likewise.
4444 * math/w_j1_compat.c: Likewise.
4445 * math/w_j1f_compat.c: Likewise.
4446 * math/w_j1l_compat.c: Likewise.
4447 * math/w_jn_compat.c: Likewise.
4448 * math/w_jnf_compat.c: Likewise.
4449 * math/w_llogb_template.c: Likewise.
4450 * math/w_log10_compat.c: Likewise.
4451 * math/w_log10f_compat.c: Likewise.
4452 * math/w_log10l_compat.c: Likewise.
4453 * math/w_log2_compat.c: Likewise.
4454 * math/w_log2f_compat.c: Likewise.
4455 * math/w_log2l_compat.c: Likewise.
4456 * math/w_log_compat.c: Likewise.
4457 * math/w_logf_compat.c: Likewise.
4458 * math/w_logl_compat.c: Likewise.
4459 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
4460 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
4461 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
4462 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
4463 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
4464 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
4465 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
4466 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
4467 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
4468 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
4469 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
4470 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
4471 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
4472 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
4473 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
4474 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
4475 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
4476 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
4477 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
4478 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
4479 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
4480 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
4481 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
4482 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
4483 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
4484 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
4485 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
4486 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
4487 * sysdeps/ieee754/float128/float128_private.h: Likewise.
4488 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
4489 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
4490 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
4491 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
4492 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
4493 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
4494 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
4495 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
4496 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
4497 * sysdeps/ieee754/k_standardl.c: Likewise.
4498 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
4499 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
4500 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
4501 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
4502 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
4503 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
4504 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
4505 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
4506 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
4507 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
4508 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
4509 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
4510 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
4511 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
4512 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
4513 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
4514 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
4515 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
4516 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
4517 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
4518 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
4519 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
4520 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
4521 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
4522 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
4523 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
4524 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
4525 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
4526 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
4527 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
4528 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
4529 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
4530 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
4531 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
4532 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
4533 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
4534 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
4535 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
4536 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
4537 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
4538 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
4539 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
4540 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
4541 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
4542 * sysdeps/riscv/rvd/s_finite.c: Likewise.
4543 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
4544 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
4545 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
4546 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
4547 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
4548 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
4549 * sysdeps/riscv/rvf/fegetround.c: Likewise.
4550 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
4551 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
4552 * sysdeps/riscv/rvf/fesetround.c: Likewise.
4553 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
4554 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
4555 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
4556 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
4557 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
4558 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
4559 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
4560 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
4561 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
4562 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
4563 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
4564 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
4565 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
4566 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
4567 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
4568 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
4569
4570 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
4571
4572 [BZ #20271]
4573 * include/stdio.h (__libc_fatal): Mention newline in comment.
4574 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
4575 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
4576 * nscd/initgrcache.c (addinitgroupsX): Likewise.
4577 * nss/nsswitch.c (__nss_next2): Likewise.
4578 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
4579 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
4580 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
4581 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
4582 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
4583 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
4584 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
4585 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
4586 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
4587 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
4588 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
4589 * sysdeps/unix/sysv/linux/netlink_assert_response.c
4590 (__netlink_assert_response): Likewise.
4591
4592 2018-08-31 Joseph Myers <joseph@codesourcery.com>
4593
4594 * conform/glibcconform.py: New file.
4595 * conform/list-header-symbols.py: Likewise.
4596 * conform/list-header-symbols.pl: Remove.
4597 * conform/Makefile (tests-special): Only add linknamespace tests
4598 if [PYTHON].
4599 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
4600
4601 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
4602
4603 [BZ #23597]
4604 * support/Makefile (libsupport-routines): Add
4605 support_copy_file_range and xcopy_file_range.
4606 * support/support.h: Include <sys/types.h>.
4607 (support_copy_file_range): New prototype.
4608 * support/support_copy_file_range.c: New file. Copied and
4609 modified from io/copy_file_range-compat.c.
4610 * support/test-container.c (copy_one_file): Call xcopy_file_rang
4611 instead of copy_file_range.
4612 * support/xcopy_file_range.c: New file.
4613 * support/xunistd.h (xcopy_file_range): New prototype.
4614
4615 2018-08-30 Carlos O'Donell <carlos@redhat.com>
4616
4617 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
4618 xpthread_create and xpthread_join.
4619
4620 2018-08-30 Florian Weimer <fweimer@redhat.com>
4621
4622 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
4623
4624 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
4625
4626 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
4627 if malloc fails.
4628
4629 2018-08-29 Joseph Myers <joseph@codesourcery.com>
4630
4631 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
4632 and minus_oflow as non-finite.
4633
4634 2018-08-28 Joseph Myers <joseph@codesourcery.com>
4635
4636 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
4637 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
4638 moved to fenv_private.h except for ...
4639 (TOINT_INTRINSICS): Kept in math_private.h.
4640 (roundtoint): Likewise.
4641 (converttoint): Likewise.
4642 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
4643 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
4644 * sysdeps/arm/math_private.h: Remove.
4645 * sysdeps/generic/fenv_private.h: New file. Contents moved from
4646 ....
4647 * sysdeps/generic/math_private.h: ... this file. Include
4648 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
4649 Include <fenv_private.h>. Remove functions and macros moved to
4650 fenv_private.h.
4651 * sysdeps/i386/fpu/math_private.h: Remove.
4652 * sysdeps/mips/math_private.h: Move to ....
4653 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
4654 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
4655 [__mips_hard_float] conditional. Include next <fenv_private.h>.
4656 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
4657 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
4658 * sysdeps/powerpc/fpu/math_private.h: Do not include
4659 <fenv_private.h>.
4660 * sysdeps/riscv/rvf/math_private.h: Move to ....
4661 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
4662 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
4663 <fenv_private.h>.
4664 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
4665 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
4666 * sysdeps/sparc/fpu/math_private.h: Remove.
4667 * sysdeps/i386/fpu/fenv_private.h: Move to ....
4668 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
4669 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
4670 <fenv_private.h>.
4671 * sysdeps/x86_64/fpu/math_private.h: Do not include
4672 <sysdeps/i386/fpu/fenv_private.h>.
4673
4674 2018-08-28 Florian Weimer <fweimer@redhat.com>
4675
4676 [BZ #23578]
4677 * posix/tst-regcomp-truncated.c: New file.
4678 * posix/Makefile (tests): Add it.
4679 (tst-regcomp-truncated.out): Depend on generated locales.
4680
4681 2018-08-28 Florian Weimer <fweimer@redhat.com>
4682
4683 * support/test-container.c (main): Treat unshare failure with
4684 EPERM as an unsupported test.
4685
4686 2018-08-28 Florian Weimer <fweimer@redhat.com>
4687
4688 [BZ #23520]
4689 nscd: Fix use-after-free in addgetnetgrentX and its callers.
4690 * nscd/netgroupcache.c
4691 (addgetnetgrentX): Add tofreep parameter. Do not free
4692 heap-allocated buffer.
4693 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
4694 (addgetnetgrentX_ignore): New function.
4695 (addgetnetgrent): Call it.
4696 (readdgetnetgrent): Likewise.
4697
4698 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
4699
4700 * string/memmem.c: Use memcmp for first match.
4701
4702 2018-08-28 Rafal Luzynski <digitalfreak@lingonborough.com>
4703
4704 [BZ #17426]
4705 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
4706
4707 2018-08-27 DJ Delorie <dj@redhat.com>
4708
4709 * support/Makefile (others): Don't list programs explicitly as a
4710 dependency of "others".
4711
4712 2018-08-27 Joseph Myers <joseph@codesourcery.com>
4713
4714 * sysdeps/generic/math-tests-trap-force.h: New file.
4715 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
4716 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
4717 * sysdeps/powerpc/math-tests.h: Remove file.
4718 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
4719
4720 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
4721 Torvald Riegel <triegel@redhat.com>
4722
4723 [BZ #23538]
4724 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
4725 Update r to include the set wake-request flag if waiters are
4726 remaining after spinning.
4727
4728 2018-08-27 Joseph Myers <joseph@codesourcery.com>
4729
4730 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
4731
4732 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
4733
4734 [BZ #23578]
4735 regex: fix uninitialized memory access
4736 I introduced this bug into gnulib in commit
4737 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
4738 eventually it was merged into glibc. The bug was found by
4739 project-repo <bugs@feusi.co> and reported here:
4740 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
4741 Diagnosis and draft fix reported by Assaf Gordon here:
4742 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
4743 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
4744 * posix/regex_internal.c (build_wcs_upper_buffer):
4745 Fix bug when mbrtowc returns 0.
4746
4747 2018-08-24 Carlos O'Donell <carlos@redhat.com>
4748
4749 * po/be.po: Update translation.
4750
4751 2018-08-24 DJ Delorie <dj@delorie.com>
4752
4753 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
4754 $(libunwind).
4755
4756 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
4757
4758 [BZ #23400]
4759 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
4760 create temporary files in source tree.
4761
4762 2018-08-24 Joseph Myers <joseph@codesourcery.com>
4763
4764 * sysdeps/generic/math-tests-trap.h: New file.
4765 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
4766 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
4767 * sysdeps/aarch64/math-tests.h: Remove file.
4768 * sysdeps/arm/math-tests.h: Likewise.
4769 * sysdeps/riscv/math-tests.h: Likewise.
4770 * sysdeps/aarch64/math-tests-trap.h: New file.
4771 * sysdeps/arm/math-tests-trap.h: Likewise.
4772 * sysdeps/riscv/math-tests-trap.h: Likewise.
4773
4774 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
4775
4776 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
4777 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
4778 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
4779 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
4780 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
4781 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
4782 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
4783 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
4784 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
4785 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
4786 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
4787 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
4788 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
4789 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
4790 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
4791 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
4792 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
4793 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
4794
4795 2018-08-23 Joseph Myers <joseph@codesourcery.com>
4796
4797 * sysdeps/generic/math-tests-exceptions.h: New file.
4798 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
4799 (EXCEPTION_TESTS_float): Do not define here.
4800 (EXCEPTION_TESTS_double): Likewise.
4801 (EXCEPTION_TESTS_long_double): Likewise.
4802 (EXCEPTION_TESTS_float128): Likewise.
4803 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
4804 Likewise.
4805 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
4806 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
4807 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
4808 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
4809 * sysdeps/mips/math-tests.h: Likewise.
4810 * sysdeps/nios2/math-tests.h: Likewise.
4811 * sysdeps/riscv/math-tests.h [!__riscv_flen]
4812 (EXCEPTION_TESTS_float): Do not define here.
4813 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
4814 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
4815 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
4816
4817 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
4818
4819 * NEWS: Move optimized sinf entry to 2.29.
4820
4821 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
4822
4823 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
4824
4825 2018-08-22 DJ Delorie <dj@redhat.com>
4826
4827 * Makefile (testroot.pristine): New rules to initialize the
4828 test-in-container "testroot".
4829 * Makerules (all-testsuite): Add tests-container.
4830 * Rules (tests-expected): Add tests-container.
4831 (binaries-all-tests): Likewise.
4832 (tests-container): New, run these tests in the testroot container.
4833 * support/Makefile (others): Add *-container, support_paths.c,
4834 xmkdirp, and links-dso-program.
4835 * support/links-dso-program-c.c: New.
4836 * support/links-dso-program.cc: New.
4837 * support/test-container.c: New.
4838 * support/shell-container.c: New.
4839 * support/echo-container.c: New.
4840 * support/true-container.c: New.
4841 * support/xmkdirp.c: New.
4842 * support/xsymlink.c: New.
4843 * support/support_paths.c: New.
4844 * support/support.h: Add support paths prototypes.
4845 * support/xunistd.h: Add xmkdirp () and xsymlink ().
4846
4847 * nss/tst-nss-test3.c: Convert to test-in-container.
4848 * nss/tst-nss-test3.root/: New.
4849
4850 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
4851
4852 regex: port Gnulib code to z/OS POSIX environment
4853 Problem reported by Arnold Robbins in:
4854 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
4855 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
4856 Undef.
4857
4858 2018-08-22 Joseph Myers <joseph@codesourcery.com>
4859
4860 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
4861 (ROUNDING_TESTS_double): Remove.
4862 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
4863 (ROUNDING_TESTS_double): Remove.
4864 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
4865 (ROUNDING_TESTS_double): Remove.
4866 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
4867 (ROUNDING_TESTS_float): Remove.
4868 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
4869 (ROUNDING_TESTS_float): Remove.
4870 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
4871 (ROUNDING_TESTS_float): Remove.
4872 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
4873 !TEST_MATHVEC here.
4874 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
4875 (IF_ROUND_INIT_FE_UPWARD): Likewise.
4876
4877 * sysdeps/generic/math-tests-rounding.h: New file.
4878 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
4879 (ROUNDING_TESTS_float): Do not define here.
4880 (ROUNDING_TESTS_double): Likewise.
4881 (ROUNDING_TESTS_long_double): Likewise.
4882 (ROUNDING_TESTS_float128): Likewise.
4883 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
4884 (ROUNDING_TESTS_double): Undefine before defining.
4885 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
4886 (ROUNDING_TESTS_double): Undefine before defining.
4887 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
4888 (ROUNDING_TESTS_double): Undefine before defining.
4889 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
4890 (ROUNDING_TESTS_float): Undefine before defining.
4891 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
4892 (ROUNDING_TESTS_float): Undefine before defining.
4893 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
4894 (ROUNDING_TESTS_float): Undefine before defining.
4895 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
4896 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
4897 not define here.
4898 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
4899 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
4900 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
4901 * sysdeps/riscv/math-tests.h [!__riscv_flen]
4902 (ROUNDING_TESTS_float): Do not define here.
4903 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
4904 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
4905 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
4906 (ROUNDING_TESTS_float): Likewise.
4907 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
4908 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
4909 * sysdeps/mips/math-tests.h [__mips_soft_float]
4910 (ROUNDING_TESTS_float): Likewise.
4911 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
4912 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
4913 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
4914 (ROUNDING_TESTS_double): Likewise.
4915 (ROUNDING_TESTS_long_double): Likewise.
4916
4917 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
4918
4919 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
4920 (PF_XDP): New macro.
4921 (AF_XDP): New macro.
4922 (SOL_XDP): New macro.
4923
4924 2018-08-21 Joseph Myers <joseph@codesourcery.com>
4925
4926 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
4927 (TCP_INQ): Likewise.
4928 (TCP_CM_INQ): Likewise.
4929 (TCP_REPAIR_ON): Likewise.
4930 (TCP_REPAIR_OFF): Likewise.
4931 (TCP_REPAIR_OFF_NO_WP): Likewise.
4932 (struct tcp_zerocopy_receive): New type.
4933
4934 2018-08-21 Florian Weimer <fweimer@redhat.com>
4935
4936 * support/support.h (support_descriptor_supports_holes): Declare.
4937 * support/Makefile (libsupport-routines): Add
4938 support_descriptor_supports_holes.
4939 * support/support_descriptor_supports_holes.c: New file.
4940 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
4941 and stop testing if holes are not supported.
4942 * io/test-lfs.c (do_prepare): Likewise.
4943 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
4944 Likewise.
4945 * timezone/tst-tzset.c (create_tz_file): Likewise.
4946 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
4947 variable.
4948 (do_prepare): Set it.
4949 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
4950
4951 2018-08-21 Florian Weimer <fweimer@redhat.com>
4952
4953 [BZ #17248]
4954 * Makeconfig (+cflags): Do not sort (and deduplicate).
4955
4956 2018-08-21 Florian Weimer <fweimer@redhat.com>
4957
4958 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
4959 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
4960
4961 2018-08-20 Florian Weimer <fweimer@redhat.com>
4962
4963 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
4964 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
4965
4966 2018-08-20 Joseph Myers <joseph@codesourcery.com>
4967
4968 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
4969 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
4970 and ssi_arch members.
4971
4972 * elf/elf.c (NT_VMCOREDD): New macro.
4973 (AT_MINSIGSTKSZ): Likewise.
4974
4975 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
4976
4977 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
4978 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
4979 s_cosf-ppc64 and s_cosf-power8.
4980 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
4981 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
4982 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
4983 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
4984 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
4985 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
4986 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
4987 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
4988 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
4989 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
4990 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
4991 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
4992
4993 2018-08-17 Florian Weimer <fweimer@redhat.com>
4994
4995 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
4996
4997 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
4998
4999 * malloc/malloc.c (_int_malloc): Additional binning code checks.
5000
5001 2018-08-16 Florian Weimer <fweimer@redhat.com>
5002
5003 * configure.ac: Add --with-nonshared-cflags option.
5004 * config.make.in (extra-nonshared-cflags): Set variable.
5005 * Makeconfig (CFLAGS-.oS): Use it.
5006 * manual/install.texi (Configuring and compiling): Document
5007 --with-nonshared-cflags.
5008 * configure: Regenerate.
5009 * INSTALL: Likewise.
5010
5011 2018-08-16 Florian Weimer <fweimer@redhat.com>
5012
5013 * Makeconfig (ASFLAGS): Always append required assembler flags.
5014
5015 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
5016
5017 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
5018 (malloc_consolidate): Likewise.
5019
5020 2018-08-16 Pochang Chen <johnchen902@gmail.com>
5021
5022 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
5023
5024 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
5025
5026 * benchtests/bench-strlen.c (do_test): Allocate buffers before
5027 every strlen call.
5028
5029 * benchtests/bench-strlen.c: Print performance numbers in json.
5030
5031 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
5032
5033 * sysdeps/powerpc/powerpc64/multiarch/Makefile
5034 (sysdep_routines): Build strcmp-power9 and strncmp-power9
5035 only for little endian.
5036 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
5037 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
5038 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
5039 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
5040 Add check for little endian.
5041 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
5042 (__strcmp_power9): Add check for little endian.
5043 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
5044 Add check for little endian.
5045 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
5046 (__strncmp_power9): Add check for little endian.
5047 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
5048 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
5049 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
5050 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
5051 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
5052
5053 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
5054
5055 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
5056 [!STRLEN](STRLEN): Set to __strlen.
5057 * sysdeps/aarch64/multiarch/strlen.c: New file.
5058 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
5059 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
5060 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
5061 (__libc_ifunc_impl_list): Add strlen.
5062 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
5063 strlen_generic and strlen_asimd.
5064
5065 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
5066
5067 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
5068 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
5069 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
5070
5071 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
5072
5073 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
5074
5075 2018-08-14 Florian Weimer <fweimer@redhat.com>
5076
5077 [BZ #23519]
5078 * include/stdio.h (__vfxprintf): Declare.
5079 * stdio-common/fxprintf.c (__vfxprintf): New function.
5080 (__fxprintf): Call it.
5081 * misc/err.c (convert_and_print): Remove function.
5082 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
5083 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
5084 * misc/Makefile (tests): Add tst-warn-wide.
5085 * misc/tst-warn-wide.c: New file.
5086
5087 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
5088 Szabolcs Nagy <szabolcs.nagy@arm.com>
5089
5090 * NEWS: Mention sinf, cosf, sincosf.
5091 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
5092 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
5093 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
5094 constants rather than including generic sincosf.h.
5095 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
5096 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
5097 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
5098 (reduced_cos): Remove.
5099 (sinf_poly): New function.
5100 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
5101
5102 2018-08-14 Florian Weimer <fweimer@redhat.com>
5103
5104 [BZ #23521]
5105 [BZ #23522]
5106 * nss/nss_files/files-alias.c (get_next_alias): During :include:
5107 processing, bail out if no room, and close the stream before
5108 returning ERANGE.
5109 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
5110 (tst-nss-files-alias-leak): Link with libdl.
5111 (tst-nss-files-alias-leak.out): Depend on nss_files.
5112
5113 * nss/tst-nss-files-alias-leak.c: New file.
5114
5115 2018-08-14 Florian Weimer <fweimer@redhat.com>
5116
5117 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
5118 server_user, stat_user.
5119
5120 2018-08-13 Joseph Myers <joseph@codesourcery.com>
5121
5122 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
5123 version to 4.18.
5124 (io_pgetevents): New syscall.
5125 (rseq): Likewise.
5126
5127 * manual/install.texi (Configuring and compiling): Do not list
5128 tools used for testing pretty printers here.
5129 (Tools for Compilation): List Python, PExpect and GDB here.
5130 Update descriptions of uses of Perl and Python.
5131 * INSTALL: Regenerate.
5132
5133 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
5134 version to 4.18.
5135
5136 2018-08-13 Florian Weimer <fweimer@redhat.com>
5137
5138 * misc/error.c (error): Add missing va_end call.
5139 (error_at_line): Likewise.
5140
5141 2018-08-13 Florian Weimer <fweimer@redhat.com>
5142
5143 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
5144
5145 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
5146
5147 * benchtests/scripts/benchout.schema.json (properties): Add
5148 new properties.
5149
5150 * benchtests/bench-skeleton.c (main): Add duration and
5151 iterations attributes.
5152
5153 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
5154
5155 regex: Gnulib unibyte RRI uses bytes not chars
5156 Adjust the non-glibc code to agree with what Gawk needs for
5157 rational range interpretation (RRI) for regular expression ranges.
5158 In unibyte locales, Gawk wants ranges to use the underlying byte
5159 rather than the character code point. This change does not affect
5160 glibc proper.
5161 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
5162 In unibyte locales, use the byte value rather than
5163 running it through btowc.
5164
5165 2018-08-10 Joseph Myers <joseph@codesourcery.com>
5166
5167 * sysdeps/generic/math-tests-snan.h: New file.
5168 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
5169 (SNAN_TESTS_float): Do not define here.
5170 (SNAN_TESTS_double): Likewise.
5171 (SNAN_TESTS_long_double): Likewise.
5172 (SNAN_TESTS_float128): Likewise.
5173 * sysdeps/i386/fpu/math-tests-snan.h: New file.
5174 * sysdeps/i386/fpu/math-tests.h: Remove file.
5175 * sysdeps/ia64/math-tests-snan.h: New file.
5176 * sysdeps/ia64/math-tests.h: Remove file.
5177 * sysdeps/x86/math-tests.h: Likewise.
5178 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
5179
5180 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
5181 Szabolcs Nagy <szabolcs.nagy@arm.com>
5182
5183 * math/Makefile: Add s_sincosf_data.c.
5184 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
5185 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
5186 (sincosf_poly): Likewise.
5187 (reduce_small): Likewise.
5188 (reduce_large): Likewise.
5189 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
5190 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
5191 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
5192 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
5193
5194 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
5195 Szabolcs Nagy <szabolcs.nagy@arm.com>
5196
5197 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
5198 (converttoint): Use lround.
5199 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
5200 document the semantics when TOINT_INTRINSICS is set.
5201 (converttoint): Likewise.
5202 (TOINT_RINT): Remove.
5203 (TOINT_SHIFT): Remove.
5204 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
5205 path.
5206
5207 2018-08-10 Florian Weimer <fweimer@redhat.com>
5208
5209 [BZ #23497]
5210 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
5211 function.
5212 (__old_getdents64): Use getdents64. Convert entries without
5213 moving them.
5214 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
5215 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
5216 tst-readdir64-compat.
5217
5218 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
5219
5220 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
5221 Fix unwind.
5222
5223 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
5224
5225 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
5226 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
5227 code to s390x-mcount.h and #include it.
5228 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
5229 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
5230 (__fentry__): Add.
5231
5232 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
5233
5234 * stdlib/Versions: Remove __fentry__.
5235 * sysdeps/i386/Versions: Add __fentry__.
5236 * sysdeps/x86_64/Versions: Add __fentry__.
5237
5238 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
5239
5240 * sysdeps/s390/Makefile: Register the new tests.
5241 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
5242 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
5243 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
5244 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
5245 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
5246 * sysdeps/s390/tst-dl-runtime.c: New file.
5247
5248 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
5249
5250 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
5251 Do not clobber R0.
5252
5253 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
5254
5255 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
5256 Do not clobber R0.
5257
5258 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
5259
5260 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
5261 Do not clobber R0.
5262
5263 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
5264
5265 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
5266 Do not clobber R0.
5267
5268 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
5269
5270 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
5271 Use symbolic offsets for stack variables.
5272
5273 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
5274
5275 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
5276 Use symbolic offsets for stack variables.
5277
5278 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
5279
5280 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
5281 Use symbolic offsets for stack variables.
5282
5283 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
5284
5285 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
5286 Use symbolic offsets for stack variables.
5287
5288 2018-08-09 Joseph Myers <joseph@codesourcery.com>
5289
5290 * math/gen-libm-test.py: New file.
5291 * math/gen-libm-test.pl: Remove.
5292 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
5293 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
5294 gen-libm-test.pl.
5295 ($(libm-test-c-noauto-obj)): Likewise.
5296 ($(libm-test-c-auto-obj)): Likewise.
5297 ($(libm-test-c-narrow-obj)): Likewise.
5298 (regen-ulps): Likewise.
5299 * math/README.libm-test: Update references to gen-libm-test.pl.
5300 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
5301 referencing gen-libm-test.pl.
5302 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
5303 * math/libm-test-support.c: Likewise.
5304 * math/libm-test-support.h: Likewise.
5305 * sysdeps/generic/libm-test-ulps: Likewise.
5306
5307 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
5308
5309 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
5310 Fix value.
5311
5312 2018-08-08 Joseph Myers <joseph@codesourcery.com>
5313
5314 * math/libm-test-nextdown.inc (do_test): Move comment to ....
5315 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
5316
5317 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
5318
5319 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
5320 symbols.
5321 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
5322 __pthread_setspecific): Add hidden proto.
5323 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
5324 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
5325
5326 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
5327
5328 * benchtests/bench-string.h (buf1_size, buf2_size): New
5329 variables.
5330 (init_sizes): New function.
5331 (test_init): Use it.
5332 (alloc_buf, exit_error): New functions.
5333 (alloc_bufs): Use ALLOC_BUF.
5334 (realloc_bufs): Remove.
5335 * benchtests/bench-memcmp.c (do_test): Adjust.
5336 * benchtests/bench-memset-large.c (do_test): Likewise.
5337 * benchtests/bench-memset-walk.c (do_test): Likewise.
5338 * benchtests/bench-memset.c (do_test): Likewise.
5339 * benchtests/bench-strncmp.c (do_test): Likewise.
5340
5341 2018-08-06 Andreas Schwab <schwab@suse.de>
5342
5343 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
5344 of CONST_THREAD_AREA.
5345
5346 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
5347
5348 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
5349 (STATE_SAVE_MASK): Likewise.
5350 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
5351 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
5352 (STATE_SAVE_MASK): Likewise.
5353 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
5354 instead of <cpu-features.h>.
5355
5356 2018-08-03 DJ Delorie <dj@redhat.com>
5357
5358 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
5359 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
5360
5361 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
5362
5363 2018-08-03 Joseph Myers <joseph@codesourcery.com>
5364
5365 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
5366 after TEST_* calls.
5367 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
5368 * math/libm-test-logb.inc (logb_test_data): Likewise.
5369
5370 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
5371
5372 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
5373 * string/strstr.c (AVAILABLE): Likewise.
5374
5375 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
5376
5377 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
5378 <init-arch.h>.
5379 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
5380 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
5381 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
5382
5383 2018-08-03 Carlos O'Donell <carlos@redhat.com>
5384
5385 * po/be.po: Update translation.
5386
5387 * po/be.po: Update translation.
5388
5389 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
5390
5391 * sysdeps/x86/cpu-features-offsets.sym
5392 (rtld_global_ro_offsetof): Removed.
5393 (CPU_FEATURES_SIZE): Likewise.
5394 (CPUID_OFFSET): Likewise.
5395 (CPUID_SIZE): Likewise.
5396 (CPUID_EAX_OFFSET): Likewise.
5397 (CPUID_EBX_OFFSET): Likewise.
5398 (CPUID_ECX_OFFSET): Likewise.
5399 (CPUID_EDX_OFFSET): Likewise.
5400 (FAMILY_OFFSET): Likewise.
5401 (MODEL_OFFSET): Likewise.
5402 (FEATURE_OFFSET): Likewise.
5403 (FEATURE_SIZ): Likewise.
5404 (COMMON_CPUID_INDEX_1): Likewise.
5405 (COMMON_CPUID_INDEX_7): Likewise.
5406 (FEATURE_INDEX_1): Likewise.
5407 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
5408
5409 2018-08-02 Carlos O'Donell <carlos@redhat.com>
5410
5411 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
5412 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
5413 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
5414 (install-locales): Depend on install-locale-archive.
5415 (install-locale-archive): Define.
5416 (install-locale-files): Define.
5417 (build-one-locale): Define macro.
5418 * manual/install.texi (Running make install): Document.
5419 * manual/INSTALL: Regenerate.
5420
5421 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
5422
5423 * benchtests/scripts/compare_strings.py: Import traceback.
5424 (parse_file): Pretty-print error.
5425
5426 * NEWS: Mention the change.
5427 * elf/dl-tunables.list: Rename tune namespace to cpu.
5428 * sysdeps/powerpc/dl-tunables.list: Likewise.
5429 * sysdeps/x86/dl-tunables.list: Likewise.
5430 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
5431 cpu.name.
5432 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
5433 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
5434 * manual/README.tunables: Likewise.
5435 * manual/tunables.texi: Likewise.
5436 * sysdeps/powerpc/cpu-features.c: Likewise.
5437 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
5438 (init_cpu_features): Likewise.
5439 * sysdeps/x86/cpu-features.c: Likewise.
5440 * sysdeps/x86/cpu-features.h: Likewise.
5441 * sysdeps/x86/cpu-tunables.c: Likewise.
5442 * sysdeps/x86_64/Makefile: Likewise.
5443 * sysdeps/x86/dl-cet.c: Likewise.
5444
5445 2018-08-02 Joseph Myers <joseph@codesourcery.com>
5446
5447 [BZ #23479]
5448 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
5449 [__mips_hard_float].
5450 (FE_UNDERFLOW): Likewise.
5451 (FE_OVERFLOW): Likewise.
5452 (FE_DIVBYZERO): Likewise.
5453 (FE_INVALID): Likewise.
5454 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
5455 (FE_TOWARDZERO): Define only if [__mips_hard_float].
5456 (FE_UPWARD): Likewise.
5457 (FE_DOWNWARD): Likewise.
5458 (__FE_UNDEFINED): Define if [!__mips_hard_float]
5459 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
5460 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
5461 [__mips_hard_float].
5462 (FP_ROUNDMODE): Likewise.
5463 (FP_RND_NEAREST): Likewise.
5464 (FP_RND_ZERO): Likewise.
5465 (FP_RND_PINF): Likewise.
5466 (FP_RND_MINF): Likewise.
5467 (FP_EX_INVALID): Likewise.
5468 (FP_EX_OVERFLOW): Likewise.
5469 (FP_EX_UNDERFLOW): Likewise.
5470 (FP_EX_DIVZERO): Likewise.
5471 (FP_EX_INEXACT): Likewise.
5472 (FP_INIT_ROUNDMODE): Likewise.
5473 * sysdeps/mips/nofpu/fesetenv.c: New file.
5474 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
5475
5476 2018-08-01 Joseph Myers <joseph@codesourcery.com>
5477
5478 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
5479 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
5480 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
5481 conditional on [FE_UPWARD].
5482
5483 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
5484
5485 regex: fix memory leak in Gnulib
5486 Problem and fix reported by Assaf Gordon in:
5487 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
5488 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
5489 range_ends members too, as they are defined in 'struct
5490 re_charset_t' even if not _LIBC. This affects only Gnulib.
5491
5492 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
5493
5494 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
5495 ...
5496 (get_common_indices): This.
5497 (init_cpu_features): Updated.
5498
5499 2018-08-01 Joseph Myers <joseph@codesourcery.com>
5500
5501 * sysdeps/generic/math-tests-snan-payload.h: New file.
5502 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
5503 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
5504 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
5505 * sysdeps/generic/math-tests.h: Include
5506 <math-tests-snan-payload.h>.
5507 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
5508 * sysdeps/hppa/math-tests.h: Remove file.
5509 * sysdeps/mips/math-tests.h [!__mips_nan2008]
5510 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
5511 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
5512 Likewise.
5513
5514 * sysdeps/generic/math-tests-snan-cast.h: New file.
5515 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
5516 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
5517 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
5518 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
5519
5520 2018-08-01 Carlos O'Donel <carlos@redhat.com>
5521
5522 * version.h (RELEASE): Set to "development".
5523 (VERSION): Set to "2.28.9000".
5524 * NEWS (2.29): New section.
5525
5526 * version.h (RELEASE): Set to "stable".
5527 (VERSION): Set to "2.28".
5528 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
5529 * NEWS: Add the list of bugs fixed in 2.28.
5530
5531 * po/ca.po: Update to latest version.
5532 * po/cs.po: Likewise
5533 * po/da.po: Likewise
5534 * po/el.po: Likewise
5535 * po/eo.po: Likewise
5536 * po/es.po: Likewise
5537 * po/fi.po: Likewise
5538 * po/fr.po: Likewise
5539 * po/gl.po: Likewise
5540 * po/hu.po: Likewise
5541 * po/ia.po: Likewise
5542 * po/id.po: Likewise
5543 * po/it.po: Likewise
5544 * po/ja.po: Likewise
5545 * po/ko.po: Likewise
5546 * po/lt.po: Likewise
5547 * po/nb.po: Likewise
5548 * po/nl.po: Likewise
5549 * po/pt_BR.po: Likewise
5550 * po/ru.po: Likewise
5551 * po/rw.po: Likewise
5552 * po/sk.po: Likewise
5553 * po/sl.po: Likewise
5554 * po/tr.po: Likewise
5555 * po/zh_CN.po: Likewise
5556 * po/zh_TW.po: Likewise
5557
5558 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
5559
5560 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
5561 initialization...
5562 (init): ... before initializing libpthread.
5563
5564 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
5565 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
5566 (__mach_setup_tls): ... new function.
5567 (mach_setup_tls): New alias.
5568 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
5569 __mach_setup_thread.
5570 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
5571 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
5572 * mach/Versions [libc] (mach_setup_tls): Add symbol.
5573 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
5574
5575 2018-07-31 Carlos O'Donell <carlos@redhat.com>
5576
5577 * manual/install.texi: Update versions.
5578 * INSTALL: Regenerate.
5579
5580 * manual/contrib.texi (Contributors): Update contributions.
5581
5582 2018-07-31 Carlos O'Donell <carlos@redhat.com>
5583
5584 * po/be.po: Update translations.
5585
5586 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5587
5588 * sysdeps/sh/libm-test-ulps: Update.
5589
5590 2018-07-30 Carlos O'Donell <carlos@redhat.com>
5591
5592 * po/bg.po: Update translations.
5593 * po/de.po: Likewise.
5594 * po/hr.po: Likewise.
5595 * po/pt_BR.po: Likewise.
5596 * po/sv.po: Likewise.
5597 * po/vi.po: Likewise.
5598
5599 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
5600
5601 [BZ #23467]
5602 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
5603 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
5604 (CFLAGS-tst-cet-property-1.o): New.
5605 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
5606 ($(objpfx)tst-cet-property-2): Likewise.
5607 ($(objpfx)tst-cet-property-2.out): Likewise.
5608 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
5609 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
5610 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
5611 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
5612 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
5613
5614 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
5615
5616 [BZ #23458]
5617 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
5618
5619 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
5620
5621 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
5622 __sbrk): Do not set attribute_hidden.
5623 * sysdeps/mach/hurd/not-errno.h: New file.
5624 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
5625 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
5626
5627 2018-07-27 Carlos O'Donell <carlos@redhat.com>
5628
5629 * po/uk.po: Update translations.
5630 * po/cs.po: Likewise.
5631 * po/pl.po: Likewise.
5632
5633 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
5634
5635 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
5636 parse beyond the note end.
5637
5638 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5639
5640 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
5641 kernel does not support OFD locks.
5642 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
5643
5644 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
5645
5646 * sysdeps/mach/hurd/Versions (libc): Make __access and
5647 __access_noerrno external so they can override the ld symbols.
5648 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
5649 __writev, __open64, __access_noerrno extern so they can be overrided.
5650 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
5651 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
5652
5653 2018-07-26 Carlos O'Donell <carlos@redhat.com>
5654
5655 * po/libc.pot: Regenerate.
5656
5657 2018-07-26 Joseph Myers <joseph@codesourcery.com>
5658
5659 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
5660
5661 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
5662
5663 [BZ #23459]
5664 * sysdeps/x86/cpu-features.c (get_extended_indices): New
5665 function.
5666 (init_cpu_features): Call get_extended_indices for both Intel
5667 and AMD CPUs.
5668 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
5669 Remove "for AMD" comment.
5670
5671 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
5672
5673 [BZ # 23456]
5674 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
5675 COMMON_CPUID_INDEX_80000001.
5676
5677 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
5678
5679 * string/tst-xbzero-opt.c (use_test_buffer): New function.
5680 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
5681
5682 2018-07-26 Florian Weimer <fweimer@redhat.com>
5683
5684 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
5685 aliases for symbols not in the implementation namespace.
5686
5687 2018-07-25 Carlos O'Donell <carlos@redhat.com>
5688
5689 [BZ #23393]
5690 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
5691 lowercase in LATIN script.
5692 * localedata/Makefile (test-input): Add en_US.UTF-8.
5693 * localedata/en_US.UTF-8.in: New file.
5694 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
5695 and restore old tests.
5696 * posix/tst-regexloc.c (do_test): Add back range expression test.
5697
5698 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
5699
5700 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
5701
5702 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5703
5704 * nptl/threads.h: Move to ...
5705 * sysdeps/nptl/threads.h: ... here.
5706 * sysdeps/hurd/stdc-predef.h: New file.
5707
5708 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
5709
5710 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
5711 tst-cet-setcontext-1 if CET is enabled.
5712 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
5713 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
5714
5715 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5716
5717 * include/threads.h: Move to ...
5718 * sysdeps/nptl/threads.h: ... here.
5719 * sysdeps/htl/threads.h: New file.
5720 * conform/Makefile (linknamespace-libs-ISO11): Use
5721 static-thread-library instead of linking libpthread.
5722 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
5723
5724 2018-07-25 Florian Weimer <fweimer@redhat.com>
5725
5726 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
5727 nanoseconds into seconds.
5728 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
5729 (do_test): Likewise.
5730 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
5731 (do_test): Likewise. Avoid nanosecond overflow and spurious
5732 timeouts due to system load.
5733 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
5734 (child_wait): Increment it.
5735 (do_test): Wait as long as necessary until all expected threads
5736 have arrived.
5737
5738 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
5739 H.J. Lu <hongjiu.lu@intel.com>
5740
5741 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
5742 __ssp.
5743 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
5744 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
5745 (__push___start_context): New.
5746 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
5747 <asm/prctl.h>.
5748 (__getcontext): Record the current shadow stack base. Save the
5749 caller's shadow stack pointer and base.
5750 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
5751 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
5752 (__push___start_context): New prototype.
5753 (__makecontext): Call __push___start_context to allocate a new
5754 shadow stack, push __start_context onto the new stack as well
5755 as the new shadow stack.
5756 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
5757 <asm/prctl.h>.
5758 (__setcontext): Restore the target shadow stack.
5759 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
5760 <asm/prctl.h>.
5761 (__swapcontext): Record the current shadow stack base. Save
5762 the caller's shadow stack pointer and base. Restore the target
5763 shadow stack.
5764 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
5765 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
5766 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
5767
5768 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
5769
5770 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
5771 tst-setcontext8 and tst-setcontext9.
5772 * stdlib/tst-setcontext6.c: New file.
5773 * stdlib/tst-setcontext7.c: Likewise.
5774 * stdlib/tst-setcontext8.c: Likewise.
5775 * stdlib/tst-setcontext9.c: Likewise.
5776
5777 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
5778
5779 * stdlib/Makefile ((tests): Add tst-setcontext5.
5780 * stdlib/tst-setcontext5.c: New file.
5781
5782 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
5783
5784 * stdlib/Makefile (tests): Add tst-setcontext4.
5785 * stdlib/tst-setcontext4.c: New file.
5786
5787 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
5788
5789 * stdlib/Makefile (tests): Add tst-swapcontext1.
5790 * stdlib/tst-swapcontext1.c: New test.
5791
5792 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
5793
5794 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
5795 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
5796 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
5797 and tst-cet-legacy-4c.
5798 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
5799 and tst-cet-legacy-mod-4.
5800 (CFLAGS-tst-cet-legacy-2.c): New.
5801 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
5802 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
5803 (CFLAGS-tst-cet-legacy-3.c): Likewise.
5804 (CFLAGS-tst-cet-legacy-4.c): Likewise.
5805 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
5806 ($(objpfx)tst-cet-legacy-1): Likewise.
5807 ($(objpfx)tst-cet-legacy-2): Likewise.
5808 ($(objpfx)tst-cet-legacy-2.out): Likewise.
5809 ($(objpfx)tst-cet-legacy-2a): Likewise.
5810 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
5811 ($(objpfx)tst-cet-legacy-4): Likewise.
5812 ($(objpfx)tst-cet-legacy-4.out): Likewise.
5813 ($(objpfx)tst-cet-legacy-4a): Likewise.
5814 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
5815 (tst-cet-legacy-4a-ENV): Likewise.
5816 ($(objpfx)tst-cet-legacy-4b): Likewise.
5817 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
5818 (tst-cet-legacy-4b-ENV): Likewise.
5819 ($(objpfx)tst-cet-legacy-4c): Likewise.
5820 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
5821 (tst-cet-legacy-4c-ENV): Likewise.
5822 * sysdeps/x86/tst-cet-legacy-1.c: New file.
5823 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
5824 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
5825 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
5826 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
5827 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
5828 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
5829 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
5830 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
5831 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
5832 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
5833
5834 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
5835
5836 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
5837 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
5838 with ssp_base.
5839 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
5840 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
5841 with ssp_base.
5842
5843 2018-07-25 Andreas Schwab <schwab@suse.de>
5844
5845 [BZ #23442]
5846 * locale/weightwc.h (findidx): Handle the case where usrc is a
5847 prefix of cp but one character too short.
5848
5849 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5850
5851 * NEWS: Add ISO C threads addition.
5852
5853 2018-07-24 Florian Weimer <fweimer@redhat.com>
5854
5855 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
5856 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
5857 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
5858 4.13.
5859
5860 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
5861
5862 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
5863 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
5864 <sys/prctl.h> and <asm/prctl.h>.
5865 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
5866 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
5867 and <asm/prctl.h>.
5868 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
5869 ARCH_CET_LEGACY_BITMAP.
5870 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
5871 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
5872 * sysdeps/x86/libc-start.c: Include <startup.h>.
5873
5874 2018-07-24 Florian Weimer <fweimer@redhat.com>
5875
5876 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
5877 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
5878
5879 2018-07-24 Rical Jasan <rj@2c3t.io>
5880 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5881 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
5882
5883 [BZ #14092]
5884 * manual/debug.texi: Update adjacent chapter name.
5885 * manual/probes.texi: Likewise.
5886 * manual/threads.texi (ISO C Threads): New section.
5887 (POSIX Threads): Convert to a section.
5888
5889 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5890 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
5891
5892 [BZ# 14092]
5893 * nptl/Makefile (tests): Add new test files.
5894 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
5895 * nptl/tst-cnd-basic.c: Likewise.
5896 * nptl/tst-cnd-broadcast.c: Likewise.
5897 * nptl/tst-cnd-timedwait.c: Likewise.
5898 * nptl/tst-mtx-basic.c: Likewise.
5899 * nptl/tst-mtx-recursive.c: Likewise.
5900 * nptl/tst-mtx-timedlock.c: Likewise.
5901 * nptl/tst-mtx-trylock.c: Likewise.
5902 * nptl/tst-thrd-basic.c: Likewise.
5903 * nptl/tst-thrd-detach.c: Likewise.
5904 * nptl/tst-thrd-sleep.c: Likewise.
5905 * nptl/tst-tss-basic.c: Likewise.
5906
5907 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5908
5909 [BZ #14092]
5910 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
5911 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
5912 symbols.
5913 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
5914 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
5915 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
5916 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
5917 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
5918 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
5919 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
5920 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
5921 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
5922 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
5923 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
5924 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
5925 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
5926 Likewise.
5927 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
5928 Likewise.
5929 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
5930 Likewise.
5931 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
5932 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
5933 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
5934 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
5935 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
5936 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
5937 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
5938 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
5939 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
5940 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
5941 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
5942 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
5943 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
5944 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
5945 Likewise.
5946 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
5947 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
5948 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
5949 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
5950 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
5951 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
5952 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
5953 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
5954 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
5955 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
5956 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
5957 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
5958 ikewise.
5959 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
5960 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
5961 Likewise.
5962 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
5963 Likewise.
5964 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
5965 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
5966 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
5967 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
5968 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
5969 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
5970 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
5971 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
5972
5973 [BZ #14092]
5974 * conform/data/threads.h-data (thread_local): New macro.
5975 (TSS_DTOR_ITERATIONS): Likewise.
5976 (tss_t): New type.
5977 (tss_dtor_t): Likewise.
5978 (tss_create): New function.
5979 (tss_get): Likewise.
5980 (tss_set): Likewise.
5981 (tss_delete): Likewise.
5982 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
5983 tss_get, and tss_set objects.
5984 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
5985 * nptl/tss_create.c: New file.
5986 * nptl/tss_delete.c: Likewise.
5987 * nptl/tss_get.c: Likewise.
5988 * nptl/tss_set.c: Likewise.
5989 * sysdeps/nptl/threads.h (thread_local): New define.
5990 (TSS_DTOR_ITERATIONS): Likewise.
5991 (tss_t): New typedef.
5992 (tss_dtor_t): Likewise.
5993 (tss_create): New prototype.
5994 (tss_get): Likewise.
5995 (tss_set): Likewise.
5996 (tss_delete): Likewise.
5997
5998 [BZ #14092]
5999 * conform/data/threads.h-data (cnd_t): New type.
6000 (cnd_init): New function.
6001 (cnd_signal): Likewise.
6002 (cnd_broadcast): Likewise.
6003 (cnd_wait): Likewise.
6004 (cnd_timedwait): Likewise.
6005 (cnd_destroy): Likewise.
6006 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
6007 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
6008 object.
6009 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
6010 * nptl/cnd_broadcast.c: New file.
6011 * nptl/cnd_destroy.c: Likewise.
6012 * nptl/cnd_init.c: Likewise.
6013 * nptl/cnd_signal.c: Likewise.
6014 * nptl/cnd_timedwait.c: Likewise.
6015 * nptl/cnd_wait.c: Likewise.
6016 * sysdeps/nptl/threads.h (cnd_t): New type.
6017 (cnd_init): New prototype.
6018 (cnd_signa): Likewise.
6019 (cnd_broadcast): Likewise.
6020 (cnd_wait): Likewise.
6021 (cnd_timedwait): Likewise.
6022 (cnd_destroy): Likewise.
6023
6024 [BZ #14092]
6025 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
6026 (once_flag): New type.
6027 (call_once): New function.
6028 * nptl/Makefile (libpthread-routines): Add call_once object.
6029 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
6030 * nptl/call_once.c: New file.
6031 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
6032 (once_flag): New type.
6033 (call_once): New prototype.
6034
6035 [BZ #14092]
6036 * conform/data/threads.h-data (mtx_plain): New constant.
6037 (mtx_recursive): Likewise.
6038 (mtx_timed): Likewise.
6039 (mtx_t): New type.
6040 (mtx_init): New function.
6041 (mtx_lock): Likewise.
6042 (mtx_timedlock): Likewise.
6043 (mtx_trylock): Likewise.
6044 (mtx_unlock): Likewise.
6045 (mtx_destroy): Likewise.
6046 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
6047 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
6048 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
6049 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
6050 * nptl/mtx_destroy.c: New file.
6051 * nptl/mtx_init.c: Likewise.
6052 * nptl/mtx_lock.c: Likewise.
6053 * nptl/mtx_timedlock.c: Likewise.
6054 * nptl/mtx_trylock.c: Likewise.
6055 * nptl/mtx_unlock.c: Likewise.
6056 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
6057 (mtx_recursive): Likewise.
6058 (mtx_timed): Likewise.
6059 (mtx_t): New type.
6060 (mtx_init): New prototype.
6061 (mtx_lock): Likewise.
6062 (mtx_timedlock): Likewise.
6063 (mtx_trylock): Likewise.
6064 (mtx_unlock): Likewise.
6065 (mtx_destroy): Likewise.
6066
6067 [BZ #14092]
6068 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
6069 (linknamespace-libs-ISO11): Add libpthread.a.
6070 * conform/data/threads.h-data: New file: add C11 thrd_* types and
6071 functions.
6072 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
6073 * nptl/Makefile (headers): Add threads.h.
6074 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
6075 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
6076 thrd_yield.
6077 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
6078 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
6079 thrd_join, thrd_sleep, and thrd_yield symbols.
6080 * nptl/descr.h (struct pthread): Add c11 field.
6081 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
6082 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
6083 routine with expected function prototype.
6084 (__pthread_create_2_1): Add C11 threads check based on attribute
6085 value.
6086 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
6087 * nptl/thrd_create.c: New file.
6088 * nptl/thrd_current.c: Likewise.
6089 * nptl/thrd_detach.c: Likewise.
6090 * nptl/thrd_equal.c: Likewise.
6091 * nptl/thrd_exit.c: Likewise.
6092 * nptl/thrd_join.c: Likewise.
6093 * nptl/thrd_priv.h: Likewise.
6094 * nptl/thrd_sleep.c: Likewise.
6095 * nptl/thrd_yield.c: Likewise.
6096 * include/threads.h: Likewise.
6097
6098 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
6099
6100 * bits/indirect-return.h: New file.
6101 * misc/sys/cdefs.h (__glibc_has_attribute): New.
6102 * sysdeps/x86/bits/indirect-return.h: Likewise.
6103 * stdlib/Makefile (headers): Add bits/indirect-return.h.
6104 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
6105 (swapcontext): Add __INDIRECT_RETURN.
6106 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
6107 (prepare_test_buffer): Use it.
6108
6109 2018-07-24 Andreas Schwab <schwab@suse.de>
6110
6111 [BZ #23448]
6112 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
6113 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
6114
6115 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
6116
6117 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
6118 Redefine if shadow stack is enabled.
6119 (SYSCALL_ERROR_LABEL): Likewise.
6120 (__vfork): Pop shadow stack and jump back to to caller directly
6121 when shadow stack is in use.
6122 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
6123 Redefine if shadow stack is enabled.
6124 (SYSCALL_ERROR_LABEL): Likewise.
6125 (__vfork): Pop shadow stack and jump back to to caller directly
6126 when shadow stack is in use.
6127
6128 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
6129
6130 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
6131 enabled.
6132 (foo): Likewise.
6133 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
6134 (foo): Likewise.
6135
6136 2018-07-20 Joseph Myers <joseph@codesourcery.com>
6137
6138 * scripts/build-many-glibcs.py (Context.checkout): Default
6139 binutils version to 2.31 branch.
6140
6141 2018-07-20 Zong Li <zong@andestech.com>
6142
6143 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
6144 URL of gcc's tarball.
6145
6146 2018-07-20 Florian Weimer <fweimer@redhat.com>
6147
6148 [BZ #23396]
6149 * posix/regcomp.c (build_equiv_class): When comparing weights, do
6150 not compare an extra byte after the end of the weights.
6151
6152 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
6153
6154 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
6155 to 1.
6156 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
6157 hidden prototypes.
6158 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
6159 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
6160 * scripts/check-execstack.awk: Consider `xfail' variable containing a
6161 list of libraries whose stack executability is expected.
6162 * elf/Makefile ($(objpfx)check-execstack.out): Pass
6163 $(check-execstack-xfail) to check-execstack.awk through `xfail'
6164 variable.
6165 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
6166 libc.so libpthread.so.
6167
6168 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
6169
6170 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
6171 SOCK_NONBLOCK.
6172 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
6173 and SOCK_NONBLOCK.
6174 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
6175 implement __pipe2.
6176 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
6177
6178 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
6179
6180 * benchtests/scripts/compare_bench.py (__main__): use the argparse
6181 library to improve command line parsing.
6182 (__main__): make schema file as optional parameter (--schema),
6183 defaulting to benchtests/scripts/benchout.schema.json.
6184 (main): move out of the parsing stuff to __main_  and leave it
6185 only as caller of main comparison functions.
6186
6187 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
6188
6189 * NEWS: Add a note for Intel CET status.
6190 * manual/install.texi: Likewise.
6191 * INSTALL: Regenerated.
6192
6193 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
6194
6195 [BZ #23140]
6196 * localedata/locales/oc_FR (mon): Rename to...
6197 (alt_mon): This, then update October (typo fix).
6198 (mon): New content (genitive case, month names preceded by
6199 "de" or "d’").
6200
6201 [BZ #23422]
6202 * localedata/locales/oc_FR (abday): Update all items.
6203 (day): Update Wednesday and Saturday (typo fixes).
6204 (abmon): Update all items, except May.
6205 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
6206 (LC_IDENTIFICATION): Bump the revision number and date.
6207 Keep the "category" entries in alphabetic order.
6208 (LC_ADDRESS): Remove no longer needed comment.
6209 (LC_COLLATE): Use “copy "ca_ES"”.
6210 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
6211 "name_mrs".
6212
6213 2018-07-18 Joseph Myers <joseph@codesourcery.com>
6214
6215 * grp/tst_fgetgrent.c: Include <unistd.h>.
6216 (main): Use mkstemp instead of tmpnam.
6217 * io/test-utime.c (main): Likewise.
6218 * posix/annexc.c (macrofile): Change to modifiable array.
6219 (main): Remove macrofile here.
6220 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
6221 macrofile here.
6222 (check_header): Do not remove macrofile here.
6223 * posix/bug-getopt1.c: Include <stdlib.h>.
6224 (do_test): Use mkstemp instead of tmpnam.
6225 * posix/bug-getopt2.c: Include <stdlib.h>.
6226 (do_test): Use mkstemp instead of tmpnam.
6227 * posix/bug-getopt3.c: Include <stdlib.h>.
6228 (do_test): Use mkstemp instead of tmpnam.
6229 * posix/bug-getopt4.c: Include <stdlib.h>.
6230 (do_test): Use mkstemp instead of tmpnam.
6231 * posix/bug-getopt5.c: Include <stdlib.h>.
6232 (do_test): Use mkstemp instead of tmpnam.
6233 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
6234 (main): Use mkstemp instead of tmpnam.
6235 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
6236 (main): Use mkstemp instead of tmpnam.
6237 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
6238 (main): use mkstemp instead of tmpnam.
6239 * stdlib/isomac.c (macrofile): Change to modifiable array.
6240 (main): Remove macrofile here.
6241 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
6242 macrofile here.
6243 (check_header): Do not remove macrofile here.
6244
6245 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
6246
6247 * manual/tunables.texi: Document glibc.tune.x86_ibt and
6248 glibc.tune.x86_shstk.
6249
6250 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
6251
6252 * NEWS: Mention --enable-cet.
6253 * manual/install.texi: Document --enable-cet.
6254 * INSTALL: Regenerated.
6255
6256 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
6257
6258 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
6259 Add _CET_NOTRACK before indirect jump to jump table.
6260
6261 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
6262
6263 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
6264 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
6265 to jump table.
6266
6267 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
6268
6269 * sysdeps/i386/i686/multiarch/strcat-sse2.S
6270 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
6271 to jump table.
6272
6273 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
6274
6275 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
6276 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
6277 to jump table.
6278
6279 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
6280
6281 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
6282 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
6283 to jump table.
6284
6285 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
6286
6287 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
6288 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
6289 to jump table.
6290 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
6291
6292 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
6293
6294 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
6295 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
6296 to jump table.
6297
6298 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
6299
6300 * sysdeps/i386/i686/multiarch/memset-sse2.S
6301 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
6302 to jump table.
6303
6304 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
6305
6306 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
6307 indirect jump to jump table.
6308
6309 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
6310
6311 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
6312 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
6313 to jump table.
6314 (MEMCPY): Likewise.
6315
6316 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
6317
6318 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
6319 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
6320 to jump table.
6321 (MEMCPY): Likewise.
6322
6323 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
6324
6325 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
6326 _CET_NOTRACK before indirect jump to jump table.
6327
6328 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
6329
6330 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
6331 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
6332 to jump table.
6333
6334 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
6335
6336 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
6337 indirect jump to jump table.
6338
6339 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
6340
6341 [BZ #22241]
6342 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
6343 (LOCALES): Likewise.
6344 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
6345 * localedata/locales/sah_RU: New file.
6346 * localedata/sah_RU.UTF-8.in: New file.
6347
6348 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
6349
6350 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
6351 "sysdep.h".
6352 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
6353 _CET_ENDBR to indirect jump targets and adjust jump destination
6354 for _CET_ENDBR.
6355 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
6356 "sysdep.h".
6357 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
6358 _CET_ENDBR to indirect jump targets and adjust jump destination
6359 for _CET_ENDBR.
6360 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
6361 "sysdep.h".
6362 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
6363 _CET_ENDBR to indirect jump targets and adjust jump destination
6364 for _CET_ENDBR.
6365
6366 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
6367
6368 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
6369 _CET_ENDBR.
6370
6371 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
6372
6373 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
6374 _CET_ENDBR.
6375 (_dl_tlsdesc_undefweak): Likewise.
6376 (_dl_tlsdesc_dynamic): Likewise.
6377 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
6378 (_dl_tlsdesc_resolve_rel): Likewise.
6379 (_dl_tlsdesc_resolve_rela): Likewise.
6380 (_dl_tlsdesc_resolve_hold): Likewise.
6381 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
6382 (_dl_tlsdesc_undefweak): Likewise.
6383 (_dl_tlsdesc_dynamic): Likewise.
6384 (_dl_tlsdesc_resolve_rela): Likewise.
6385 (_dl_tlsdesc_resolve_hold): Likewise.
6386
6387 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
6388
6389 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
6390 (_fini): Likewise.
6391 * sysdeps/x86_64/crti.S (_init): Likewise.
6392 (_fini): Likewise.
6393
6394 2018-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
6395
6396 [BZ #23140]
6397 * localedata/locales/os_RU (mon): Rename to...
6398 (alt_mon): This.
6399 (mon): Import from CLDR (genitive case).
6400
6401 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
6402
6403 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
6404 cet-tunables.h> when CET is enabled.
6405
6406 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
6407
6408 [BZ #21598]
6409 * configure.ac: Add --enable-cet.
6410 * configure: Regenerated.
6411 * elf/Makefille (all-built-dso): Add a comment.
6412 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
6413 Include <dl-prop.h>.
6414 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
6415 segment.
6416 * elf/dl-open.c: Include <dl-prop.h>.
6417 (dl_open_worker): Call _dl_open_check.
6418 * elf/rtld.c: Include <dl-prop.h>.
6419 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
6420 _rtld_main_check.
6421 * sysdeps/generic/dl-prop.h: New file.
6422 * sysdeps/i386/dl-cet.c: Likewise.
6423 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
6424 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
6425 * sysdeps/x86/cet-tunables.h: Likewise.
6426 * sysdeps/x86/check-cet.awk: Likewise.
6427 * sysdeps/x86/configure: Likewise.
6428 * sysdeps/x86/configure.ac: Likewise.
6429 * sysdeps/x86/dl-cet.c: Likewise.
6430 * sysdeps/x86/dl-procruntime.c: Likewise.
6431 * sysdeps/x86/dl-prop.h: Likewise.
6432 * sysdeps/x86/libc-start.h: Likewise.
6433 * sysdeps/x86/link_map.h: Likewise.
6434 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
6435 _CET_ENDBR.
6436 (_dl_runtime_profile): Likewise.
6437 (_dl_runtime_resolve_shstk): New.
6438 (_dl_runtime_profile_shstk): Likewise.
6439 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
6440 if CET is enabled.
6441 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
6442 (CFLAGS-.os): Likewise.
6443 (CFLAGS-.op): Likewise.
6444 (CFLAGS-.oS): Likewise.
6445 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
6446 is enabled.
6447 (tests-special): Add $(objpfx)check-cet.out.
6448 (cet-built-dso): New.
6449 (+$(cet-built-dso:=.note)): Likewise.
6450 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
6451 ($(objpfx)check-cet.out): New.
6452 (generated): Add check-cet.out.
6453 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
6454 <cet-tunables.h>.
6455 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
6456 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
6457 (init_cpu_features): Call get_cet_status to check CET status
6458 and update dl_x86_feature_1 with CET status. Call
6459 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
6460 (set_x86_shstk). Disable and lock CET in libc.a.
6461 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
6462 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
6463 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
6464 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
6465 (_CET_ENDBR): Define if not defined.
6466 (ENTRY): Add _CET_ENDBR.
6467 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
6468 x86_shstk.
6469 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
6470 _CET_ENDBR.
6471 (_dl_runtime_profile): Likewise.
6472
6473 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
6474
6475 [BZ #21895]
6476 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
6477 restore r2 on longjmp.
6478 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
6479 test list.
6480 Added rules to build test tst-setjmp-bug21895-static.
6481 Added module setjmp-bug21895 and rules to build a shared object from it.
6482 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
6483 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
6484
6485 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
6486
6487 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
6488 * benchtests/bench-strstr.c: Likewise.
6489 * string/memmem.c (FASTSEARCH): Define.
6490 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
6491 Add support for FASTSEARCH.
6492 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
6493 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
6494 (FASTSEARCH): Define.
6495 * string/test-strcasestr.c: Rename __strnlen to strnlen.
6496 * string/test-strstr.c: Likewise.
6497
6498 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
6499
6500 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
6501 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
6502
6503 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
6504 H.J. Lu <hongjiu.lu@intel.com>
6505
6506 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
6507 (__longjmp): Restore shadow stack pointer if shadow stack is
6508 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
6509 isn't defined for __longjmp_cancel.
6510 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
6511 (_setjmp): Save shadow stack pointer if shadow stack is enabled
6512 and SHADOW_STACK_POINTER_OFFSET is defined.
6513 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
6514 (setjmp): Save shadow stack pointer if shadow stack is enabled
6515 and SHADOW_STACK_POINTER_OFFSET is defined.
6516 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
6517 (__sigsetjmp): Save shadow stack pointer if shadow stack is
6518 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
6519 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
6520 <jmp_buf-ssp.h>.
6521 (____longjmp_chk): Restore shadow stack pointer if shadow stack
6522 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
6523 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
6524 Remove jmp_buf-ssp.sym.
6525 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
6526 <jmp_buf-ssp.h>.
6527 (____longjmp_chk): Restore shadow stack pointer if shadow stack
6528 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
6529 * sysdeps/x86/Makefile (gen-as-const-headers): Add
6530 jmp_buf-ssp.sym.
6531 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
6532 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
6533 (__longjmp): Restore shadow stack pointer if shadow stack is
6534 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
6535 isn't defined for __longjmp_cancel.
6536 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
6537 (__sigsetjmp): Save shadow stack pointer if shadow stack is
6538 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
6539
6540 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
6541
6542 [BZ #22563]
6543 * nptl/pthread_create.c: Include <tls-setup.h>.
6544 (__pthread_create_2_1): Call tls_setup_tcbhead.
6545 * sysdeps/generic/tls-setup.h: New file.
6546 * sysdeps/x86/nptl/tls-setup.h: Likewise.
6547 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
6548 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
6549 Likewise.
6550 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
6551 to feature_1.
6552 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
6553 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
6554 (X86_FEATURE_1_SHSTK): Likewise.
6555 (CET_ENABLED): Likewise.
6556 (IBT_ENABLED): Likewise.
6557 (SHSTK_ENABLED): Likewise.
6558
6559 2018-07-13 Rafal Luzynski <digitalfreak@lingonborough.com>
6560
6561 [BZ #23208]
6562 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
6563 (LOCALES): Likewise.
6564 * localedata/dsb_DE.UTF-8.in: New file.
6565 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
6566
6567 2018-07-12 Florian Weimer <fweimer@redhat.com>
6568
6569 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
6570 __mprotect, not mprotect.
6571
6572 2018-07-11 Florian Weimer <fweimer@redhat.com>
6573
6574 * io/Makefile (headers): Add bits/statx.h.
6575
6576 2018-07-10 Mike FABIAN <mfabian@redhat.com>
6577
6578 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
6579 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
6580 and headers.
6581 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
6582 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
6583 for utf8_gen.py
6584
6585 2018-07-10 Florian Weimer <fweimer@redhat.com>
6586
6587 * io/Makefile (routines): Add statx.
6588 (tests-internal): Add tst-statx.
6589 * io/Versions (GLIBC_2.28): Export statx.
6590 * io/bits/statx.h: New file.
6591 * io/sys/stat.h [__USE_GNU]: Include it.
6592 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
6593 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
6594 Define.
6595 * io/statx.c: New file.
6596 * io/statx_generic.: Likewise.
6597 * io/tst-statx.: Likewise.
6598 * include/bits/statx.h: Likewise.
6599 * sysdeps/unix/sysv/linux/kernel-features.h
6600 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
6601 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
6602 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
6603 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
6604 Undefine.
6605 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
6606 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
6607 * sysdeps/unix/sysv/linux/statx.c: New file.
6608 * manual/filesys.texi: Note that statx is undocumented.
6609 * sysdeps/**/libc*.abilist: Update.
6610
6611 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6612
6613 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
6614 a kernel issue which lead to test failure in some cases.
6615
6616 2018-07-10 Florian Weimer <fweimer@redhat.com>
6617
6618 [BZ #23036]
6619 * posix/regexec.c (check_node_accept_bytes): When comparing
6620 weights, do not compare an extra byte after the end of the
6621 weights.
6622
6623 2018-07-10 Florian Weimer <fweimer@redhat.com>
6624
6625 * libio/readline.c: Fix copyright year.
6626 * libio/tst-readline.c Likewise.
6627 * nss/tst-nss-files-hosts-getent.c: Likewise.
6628
6629 2018-07-06 Florian Weimer <fweimer@redhat.com>
6630
6631 [BZ #18991]
6632 * nss/nss_files/files-XXX.c (internal_getent): Use
6633 __libc_readline_unlocked. Seek back to the start of the line if
6634 parsing failes with ERANGE.
6635 (get_contents_ret, get_contents): Remove.
6636 * nss/tst-nss-files-hosts-getent.c: New file.
6637 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
6638 (tst-nss-files-hosts-getent): Link with -ldl.
6639
6640 2018-07-06 Florian Weimer <fweimer@redhat.com>
6641
6642 * include/stdio.h (__libc_readline_unlocked): Declare.
6643 (__ftello64, __fseeko64): Declare aliases.
6644 * libio/readline.c: New file.
6645 * libio/tst-readline.c: Likewise.
6646 (routines): Add readline.
6647 (tests-internal): Add tst-readlime.
6648 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
6649 __libc_readline_unlocked.
6650 * libio/fseeko.c (__fseeko): Rename from fseeko.
6651 (fseeko): Add alias.
6652 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
6653 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
6654 (fseeko64): Add alias.
6655 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
6656 * libio/ftello64.c (__ftello64): Rename from ftello64.
6657 (ftello64): Add alias.
6658
6659 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
6660
6661 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
6662 HWCAP_ATOMICS.
6663
6664 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
6665
6666 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
6667 Use dl_hwcap without masking.
6668 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
6669 Remove HWCAP_CPUID.
6670
6671 2018-07-06 Florian Weimer <fweimer@redhat.com>
6672
6673 * conform/conformtest.pl (checknamespace): Escape literal braces
6674 in regular expressions.
6675
6676 2018-07-06 Amit Pawar <amit.pawar@amd.com>
6677
6678 * sysdeps/x86/cpu-features.c (get_common_indeces):
6679 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
6680 * sysdeps/x86/cpu-features.c (init_cpu_features):
6681 AVX_Fast_Unaligned_Load is disabled for Excavator core.
6682
6683 2018-07-05 Florian Weimer <fweimer@redhat.com>
6684
6685 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
6686 protector.
6687 (CFLAGS-elf-init.oS): Likewise.
6688
6689 2018-07-05 Florian Weimer <fweimer@redhat.com>
6690 Carlos O'Donell <carlos@redhat.com>
6691
6692 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
6693 $(no-stack-protector). stack_chk_fail_local.c can be compiled
6694 with stack protector enabled because there is no risk of infinite
6695 recursion.
6696
6697 2018-07-05 Maciej W. Rozycki <macro@mips.com>
6698
6699 [BZ #19818]
6700 [BZ #23307]
6701 * libc-abis (ABSOLUTE): New ABI.
6702 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
6703 * NEWS: Mention the new ABI.
6704
6705 2018-07-05 Florian Weimer <fweimer@redhat.com>
6706
6707 [BZ # 17662]
6708 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
6709 (RENAME_WHITEOUT): Define.
6710 [__USE_GNU] (renameat2): Declare.
6711 * stdio-common/Makefile (routines): Add renameat2.
6712 (tests): Add tst-renameat2.
6713 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
6714 * stdio-common/renameat2.c: New file.
6715 * stdio-common/tst-renameat2.c: Likewise.
6716 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
6717 * manual/filesys.texi (Temporary Files): Note that renameat2 is
6718 undocumented.
6719 * sysdeps/unix/sysv/linux/kernel-features.h
6720 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
6721 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
6722 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
6723 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
6724 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
6725 * sysdeps/unix/sysv/linux/sh/kernel-features.h
6726 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
6727 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
6728 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
6729 * include/stdio.h (__renameat): Add alias for renameat.
6730 * stdio-common/renameat.c (__renameat): Rename from renameat.
6731 Add hidden definition and alias.
6732 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
6733 * sysdeps/mach/hurd/renameat.c: Likewise.
6734 * sysdeps/**/libc*.abilist: Add renameat2.
6735
6736 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6737
6738 * posix/bug-regex33.c: Fix build after regex sync.
6739
6740 2018-07-04 Carlos O'Donell <carlos@redhat.com>
6741
6742 [BZ #23164]
6743 * localedata/tst-langinfo-setlocale.c: New file.
6744 * localedata/tst-langinfo-setlocale-static.c: New file.
6745 * localedata/tst-langinfo-newlocale.c: New file.
6746 * localedata/tst-langinfo-newlocale-static.c: New file.
6747 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
6748 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
6749 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
6750 (tests-static): Remove tst-langinfo-static. Add
6751 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
6752 (tests-special): Remove $(objpfx)tst-langinfo.out,
6753 $(objpfx)tst-langinfo-static.out. Add
6754 $(objpfx)tst-langinfo-setlocale.out,
6755 $(objpfx)tst-langinfo-newlocale.out,
6756 $(objpfx)tst-langinfo-setlocale-static.out,
6757 $(objpfx)tst-langinfo-newlocale-static.out.
6758 ($(objpfx)tst-langinfo.out): Remove.
6759 ($(objpfx)tst-langinfo-static.out): Remove.
6760 ($(objpfx)tst-langinfo-newlocale.out): New target.
6761 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
6762 (test-xfail-tst-langinfo-newlocale-static): Add.
6763 ($(objpfx)tst-langinfo-setlocale.out): New target.
6764 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
6765 * localedata/tst-langinfo.c: Call test_locale.
6766 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
6767 data.
6768
6769 2018-07-04 Florian Weimer <fweimer@redhat.com>
6770
6771 testrun.sh: Implement --tool=strace, --tool=valgrind
6772 * Makefile (testrun-script): Define variable.
6773 (testrun.sh): Use variable.
6774 * manual/install.texi (Tools for Compilation): make 4.0 or later
6775 is required.
6776 * configure.ac: Check for make 4.0 or later.
6777 * INSTALL: Regenerate.
6778 * configure: Likewise.
6779
6780 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6781
6782 [BZ #23233]
6783 [BZ #21163]
6784 [BZ #18986]
6785 [BZ #13762]
6786 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
6787 * posix/PCRE.tests: Remove invalid test.
6788 * posix/bug-regex28.c: Fix expected values for used syntax.
6789 * posix/bug-regex37.c: New file.
6790 * posix/bug-regex38.c: Likewise.
6791 * posix/regcomp.c: Sync with gnulib.
6792 * posix/regex.c: Likewise.
6793 * posix/regex.h: Likewise.
6794 * posix/regex_internal.c: Likewise.
6795 * posix/regex_internal.h: Likewise.
6796 * posix/regexec.c: Likewise.
6797
6798 2018-06-26 Mike FABIAN <mfabian@redhat.com>
6799
6800 [BZ #23308]
6801 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
6802 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
6803 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
6804 * localedata/unicode-gen/PropList.txt: likewise.
6805 * localedata/unicode-gen/UnicodeData.txt: likewise.
6806 * localedata/charmaps/UTF-8: Regenerate.
6807 * localedata/locales/i18n_ctype: likewise.
6808 * localedata/locales/tr_TR: likewise.
6809 * localedata/locales/translit_circle: likewise.
6810 * localedata/locales/translit_cjk_compat: likewise.
6811 * localedata/locales/translit_combining: likewise.
6812 * localedata/locales/translit_compat: likewise.
6813 * localedata/locales/translit_font: likewise.
6814 * localedata/locales/translit_fraction: likewise.
6815
6816 2018-07-03 Florian Weimer <fweimer@redhat.com>
6817
6818 [BZ #23363]
6819 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
6820 * stdio-common/tst-printf.sh: Adjust expected output.
6821 * LICENSES: Update.
6822
6823 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6824
6825 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
6826 symbol.
6827
6828 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6829
6830 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
6831 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
6832 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
6833 * stdio-common/tst-printfsz-islongdouble.c: New file.
6834 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
6835 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
6836 [subdir == stdio-common] (routines): Add ieee128-printf_size.
6837 [subdir == stdio-common] (tests-internal): Add
6838 test-printf-size-ieee128, and test-printf-size-ibm128.
6839 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
6840 (CFLAGS-test-printf-size-ibm128.c): New variables.
6841 [subdir == stdio-common] (tests-special): Add
6842 $(objpfx)test-printf-size-ieee128.out and
6843 $(objpfx)test-printf-size-ibm128.out.
6844 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
6845 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
6846 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
6847 __printf_sizeieee128.
6848 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
6849 New file.
6850 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
6851 Likewise.
6852 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
6853 Likewise.
6854
6855 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
6856
6857 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
6858 (exp2f_inline): Likewise.
6859 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
6860 (__math_uflowf): Likewise.
6861 (__math_may_uflowf): Likewise.
6862 (__math_divzerof): Likewise.
6863 (__math_invalidf): Likewise.
6864 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
6865 (__math_oflowf): Likewise.
6866 (__math_uflowf): Likewise.
6867 (__math_may_uflowf): Likewise.
6868 (__math_divzerof): Likewise.
6869 (__math_invalidf): Likewise.
6870
6871 2018-06-29 DJ Delorie <dj@redhat.com>
6872 Carlos O'Donell <carlos@redhat.com>
6873
6874 [BZ #23329]
6875 * include/libc-symbols.h: Comment the freeres framework.
6876 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
6877 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
6878 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
6879 * dlfcn/dlerror.c: Include libc-symbols.h
6880 (__dlerror_main_freeres): New function.
6881 * dlfcn/dlfreeres.c: New file.
6882 * dlfcn/sdlfreeres.c: New file.
6883 * include/dlfcn.h: Declare __dlerror_main_freeres.
6884 * malloc/set-freeres.c: Declare __libdl_freeres, and
6885 __libpthread_freeres.
6886 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
6887 the releavant libraries are loaded.
6888 * malloc/thread-freeres.c: Add comments.
6889 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
6890 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
6891 * nptl/allocatestack.c (__nptl_free_stacks): New function.
6892 (__free_stacks): Rename to...
6893 (free_stacks): ...this. Mark static.
6894 (queue_stack): Call free_stacks.
6895 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
6896 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
6897 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
6898 ptr_freeres element from struct.
6899 (pthread_functions): Remove .ptr_freeres from struct initializer.
6900 [SHARED] (nptl_freeres): Remove.
6901 * nptl/nptlfreeres.c: New file.
6902 * nptl/pthreadP.h
6903 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
6904 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
6905 attribute_hidden.
6906 (__free_stacks): Rename to...
6907 (__nptl_stacks_freeres): ...this.
6908 (__shm_directory_freeres): Declare.
6909 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
6910 (__nptl_unwind_freeres): ...this.
6911 * resolv/res-close.c: Add comment.
6912 * resolv/resolv_conf.c: Include libc-symbols.h.
6913 * string/strerror_l.c: Include libc-symbols.h.
6914 * sunrpc/rpc_thread.c: Include libc-symbols.h.
6915 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
6916 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
6917 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
6918
6919 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
6920
6921 * stdlib/tst-strfmon_l.c: Add tests for long double.
6922
6923 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
6924
6925 [BZ #23208]
6926 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
6927 * localedata/locales/dsb_DE: New file.
6928
6929 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
6930
6931 [BZ #23140]
6932 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
6933 genitive case).
6934 (alt_mon): New entry, import from CLDR (nominative case).
6935
6936 2018-06-29 Sylvain Lesage <severo@rednegra.net>
6937
6938 [BZ #22996]
6939 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
6940
6941 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
6942
6943 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
6944 Use vector registers.
6945
6946 * sysdeps/aarch64/multiarch/memmove_falkor.S
6947 (__memcpy_falkor): Use vector registers.
6948
6949 2018-06-29 Martin Sebor <msebor@redhat.com>
6950
6951 * manual/stdio.texi (Customizing Printf): Mention interaction
6952 with GCC built-ins.
6953
6954 2018-06-29 Maciej W. Rozycki <macro@mips.com>
6955
6956 [BZ #23307]
6957 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
6958 `st_value' is 0 if `st_shndx' is SHN_ABS.
6959 * elf/tst-absolute-zero.c: New file.
6960 * elf/tst-absolute-zero-lib.c: New file.
6961 * elf/tst-absolute-zero-lib.lds: New file.
6962 * elf/Makefile (tests): Add `tst-absolute-zero'.
6963 (modules-names): Add `tst-absolute-zero-lib'.
6964 (LDLIBS-tst-absolute-zero-lib.so): New variable.
6965 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
6966 ($(objpfx)tst-absolute-zero: New dependency.
6967
6968 2018-06-29 Zack Weinberg <zackw@panix.com>
6969
6970 * configure.ac: New command-line option --disable-crypt.
6971 Force --disable-nss-crypt when --disable-crypt is given, with a
6972 warning if it was explicitly enabled.
6973 * configure: Regenerate.
6974 * config.make.in: New boolean substitution variable $(build-crypt).
6975 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
6976 when $(build-crypt).
6977 * manual/install.texi: Document --disable-crypt.
6978 * INSTALL: Regenerate.
6979
6980 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
6981 which is never set.
6982 * conform/Makefile: Only include libcrypt.a in
6983 linknamespace-libs-xsi and linknamespace-libs-XPG4
6984 when $(build-crypt).
6985 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
6986 USE_CRYPT to 1 when $(build-crypt).
6987 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
6988 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
6989 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
6990
6991 2018-06-29 Zack Weinberg <zackw@panix.com>
6992
6993 * crypt/crypt.h, posix/unistd.h: Update comments and
6994 prototypes for crypt and crypt_r.
6995
6996 * manual/crypt.texi (Cryptographic Functions): New initial
6997 exposition.
6998 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
6999 (Unpredictable Bytes): Improve initial exposition. Clarify error
7000 behavior of getentropy and getrandom.
7001 * manual/examples/genpass.c: Generate a salt using getentropy
7002 instead of the current time. Use hash $5$ (SHA-2-256).
7003 * manual/examples/testpass.c: Demonstrate validation against
7004 hashes generated with three different one-way functions.
7005
7006 * manual/intro.texi: crypt.texi does not need an overview
7007 anymore.
7008
7009 * manual/nss.texi, manual/memory.texi, manual/socket.texi
7010 * manual/terminal.texi: Consistently refer to "passphrases"
7011 * instead of "passwords", and to the "user database" instead
7012 * of the "password database".
7013 * manual/users.texi: Similarly. Add notes about how actual
7014 passphrase hashes are now stored in the shadow database.
7015 Remove 20-year-old junk todo note.
7016
7017 2018-06-29 Zack Weinberg <zackw@panix.com>
7018
7019 * manual/crypt.texi: Use a normal top-level @node declaration.
7020 Move most of the introductory text to the 'crypt' section.
7021 Move the example programs below the @deftypefun for 'crypt_r'.
7022 Move the 'getpass' section...
7023 * manual/terminal.texi: ...here.
7024
7025 2018-06-29 Zack Weinberg <zackw@panix.com>
7026 Florian Weimer <fweimer@redhat.com>
7027
7028 * posix/unistd.h: Do not declare encrypt.
7029 (_XOPEN_CRYPT): Remove macro definition.
7030 (crypt): Declare only for _USE_MISC.
7031 * stdlib/stdlib.h: Do not declare setkey.
7032 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
7033 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
7034
7035 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
7036 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
7037 into compat symbols. Don't define initial_perm if it's not
7038 going to be used.
7039 * crypt/cert.c: Link explicitly with the expected versions for
7040 setkey and encrypt. If they are not available at all, mark
7041 the test as unsupported.
7042
7043 * sunrpc/des_crypt.c: Unconditionally block linkage with
7044 cbc_crypt and ecb_crypt for new binaries.
7045 * sunrpc/des_soft.c: Unconditionally block linkage with
7046 des_setparity for new binaries.
7047
7048 * manual/crypt.texi: Remove the entire "DES Encryption"
7049 section. Also remove the paragraph talking about FIPS 140-2
7050 from the introduction.
7051 * manual/string.texi (strfry, memfrob): Revise. Recommend use
7052 of libgcrypt for "real" encryption, not DES.
7053 * manual/conf.texi (Constants for Sysconf): Mention that
7054 _XOPEN_CRYPT is no longer impelemented.
7055
7056 * conform/data/unistd.h-data: Remove crypt function declaration.
7057
7058 2018-06-29 Florian Weimer <fweimer@redhat.com>
7059
7060 [BZ #23351]
7061 * malloc/hooks.c: Update comments on restoring of dumped heaps.
7062 (disallow_malloc_check): Remove variable.
7063 (__malloc_check_init): Adjust.
7064 (malloc_set_state): Update comment.
7065 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
7066 declarations.
7067
7068 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
7069
7070 [BZ #23140]
7071 * localedata/locales/ast_ES (mon): Rename to...
7072 (alt_mon): This.
7073 (mon): Import from CLDR (genitive case).
7074
7075 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
7076 Jakub Sitnicki <jkbs@redhat.com>
7077
7078 [BZ #21812]
7079 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
7080 on NLM_F_DUMP_INTR.
7081
7082 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
7083
7084 * manual/llio.texi: Remove spurious space.
7085
7086 2018-06-28 Florian Weimer <fweimer@redhat.com>
7087
7088 [BZ #23349]
7089 * time/bits/types/struct_timespec.h: Change header inclusion guard to
7090 _STRUCT_TIMESPEC.
7091
7092 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7093
7094 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
7095 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
7096 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
7097 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
7098 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
7099 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
7100 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
7101
7102 2018-06-27 Maciej W. Rozycki <macro@mips.com>
7103
7104 [BZ #23266]
7105 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
7106 Copy and null-terminate entries that are not terminated, in
7107 addition to empty ones.
7108
7109 2018-06-27 Florian Weimer <fweimer@redhat.com>
7110
7111 [BZ #18023]
7112 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
7113 (extend_alloca_account): Remove.
7114 * manual/stdio.texi (Variable Arguments Output): Update comment.
7115
7116 2018-06-27 Joseph Myers <joseph@codesourcery.com>
7117
7118 * nptl/sockperf.c: Remove file.
7119
7120 2018-06-27 Florian Weimer <fweimer@redhat.com>
7121
7122 [BZ #18023]
7123 * elf/dl-deps.c (_dl_map_object_deps): Use struct
7124 scratch_buffer instead of extend_alloca.
7125
7126 2018-06-27 Florian Weimer <fweimer@redhat.com>
7127
7128 [BZ #18023]
7129 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
7130 scratch_buffer instead of extend_alloca. Update comments.
7131
7132 2018-06-27 Florian Weimer <fweimer@redhat.com>
7133
7134 [BZ #18023]
7135 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
7136 instead of extend_alloca.
7137
7138 2018-06-26 Joseph Myers <joseph@codesourcery.com>
7139
7140 [BZ #13888]
7141 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
7142 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
7143 /tmp.
7144 * scripts/test-installation.pl: Put temporary files in build
7145 directory, not /tmp.
7146 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
7147 (CFLAGS-bug4.c): Likewise.
7148 (CFLAGS-bug5.c): Likewise.
7149 (CFLAGS-test-fseek.c): Likewise.
7150 (CFLAGS-test-popen.c): Likewise.
7151 (CFLAGS-test_rdwr.c): Likewise.
7152 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
7153 /tmp.
7154 * stdio-common/bug4.c (main): Likewise.
7155 * stdio-common/bug5.c (main): Likewise.
7156 * stdio-common/test-fseek.c (TESTFILE): Likewise.
7157 * stdio-common/test-popen.c (do_test): Likewise.
7158 * stdio-common/test_rdwr.c (main): Likewise.
7159
7160 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
7161
7162 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
7163 (sem_open): Set sem.newsem.pad to zero for valgrind.
7164
7165 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7166
7167 [BZ #20251]
7168 * NEWS: Mention fcntl64 addition.
7169 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
7170 * login/utmp_file.c: Likewise.
7171 * sysdeps/posix/fdopendir.c: Likewise.
7172 * sysdeps/posix/opendir.c: Likewise.
7173 * sysdeps/unix/pt-fcntl.c: Likewise.
7174 * include/fcntl.h (__libc_fcntl64, __fcntl64,
7175 __fcntl64_nocancel_adjusted): New prototype.
7176 (__fcntl_nocancel_adjusted): Remove prototype.
7177 * io/Makefile (routines): Add fcntl64.
7178 (CFLAGS-fcntl64.c): New rule.
7179 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
7180 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
7181 * io/fcntl.h (fcntl64): Add prototype and redirect if
7182 __USE_FILE_OFFSET64 is defined.
7183 * io/fcntl64.c: New file.
7184 * manual/llio.text: Add a note for which commands fcntl acts a
7185 cancellation point.
7186 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
7187 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
7188 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
7189 New symbols.
7190 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
7191 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
7192 non-LFS case.
7193 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
7194 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
7195 to __fcntl64_nocancel.
7196 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
7197 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
7198 to __fcntl64_nocancel.
7199 * sysdeps/generic/not-cancel.h: Likewise.
7200 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
7201 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
7202 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
7203 (fcntl64): New symbol.
7204 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
7205 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
7206 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
7207 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
7208 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
7209 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
7210 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
7211 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
7212 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
7213 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
7214 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
7215 fcntl64): Likewise.
7216 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
7217 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
7218 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
7219 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
7220 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
7221 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
7222 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
7223 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
7224 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
7225 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
7226 Likewise.
7227 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
7228 Likewise.
7229 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
7230 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
7231 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
7232
7233 2018-06-26 Florian Weimer <fweimer@redhat.com>
7234
7235 Run thread shutdown functions in an explicit order.
7236 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
7237 definition.
7238 (__libc_thread_freeres): Call thread shutdown functions
7239 explicitly.
7240 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
7241 * include/string.h (__strerror_thread_freeres): Declare.
7242 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
7243 arena_thread_freeres. No longer static. Remove thread shutdown
7244 hook registration.
7245 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
7246 Declare.
7247 * resolv/res-close.c (__res_thread_freeres): Renamed from
7248 res_thread_freeres. No longer static. Remove thread shutdown
7249 hook registration.
7250 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
7251 * resolv/resolv_conf.c (freeres): Remove incorrect section
7252 attribute and use libc_freeres_fn.
7253 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
7254 strerror_thread_freeres. No longer static. Remove thread
7255 shutdown hook registration.
7256 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
7257 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
7258 shutdown hook registration.
7259 * Makerules (shlib.lds): Do not provide section boundary symbols
7260 for __libc_thread_subfreeres.
7261 * manual/memory.texi (Basic Allocation): Update comment.
7262
7263 2018-06-26 Florian Weimer <fweimer@redhat.com>
7264
7265 Remove always-defined _RPC_THREAD_SAFE_ macro.
7266 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
7267 Do not define _RPC_THREAD_SAFE_.
7268 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
7269 conditional.
7270 * sunrpc/clnt_perr.c: Likewise.
7271 * sunrpc/clnt_raw.c: Likewise.
7272 * sunrpc/clnt_simp.c: Likewise.
7273 * sunrpc/key_call.c: Likewise.
7274 * sunrpc/rpc_common.c: Likewise.
7275 * sunrpc/rpc_main.c: Likewise.
7276 * sunrpc/rpc_thread.c: Likewise.
7277 * sunrpc/svc.c: Likewise.
7278 * sunrpc/svc_raw.c: Likewise.
7279 * sunrpc/svc_simple.c: Likewise.
7280 * sumrpc/svcauth_des.c: Likewise.
7281
7282 2018-06-26 Florian Weimer <fweimer@redhat.com>
7283
7284 * libio/Makefile (tests-internal): Add tst-vtables,
7285 tst-vtables-interposed.
7286 * libio/tst-vtables.c: New file.
7287 * libio/tst-vtables-common.c: Likewise.
7288 * libio/tst-vtables-interposed.c: Likewise.
7289
7290 2018-06-26 Florian Weimer <fweimer@redhat.com>
7291
7292 * support/support_test_main.c (support_test_main): Only call
7293 setvbuf if not disables.
7294 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
7295 * support/test-driver.h (struct test_config): Add no_setvbuf member.
7296
7297 2018-06-26 Florian Weimer <fweimer@redhat.com>
7298
7299 [BZ #23313]
7300 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
7301
7302 2018-06-25 Florian Weimer <fweimer@redhat.com>
7303
7304 [BZ #18023]
7305 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
7306 Use struct scratch_buffer instead of extend_alloca.
7307
7308 2018-06-25 Florian Weimer <fweimer@redhat.com>
7309
7310 [BZ #18023]
7311 * nss/getent.c (initgroups_keys): Use dynarray instead of
7312 extend_alloca.
7313
7314 2018-06-25 Florian Weimer <fweimer@redhat.com>
7315
7316 [BZ #18023]
7317 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
7318 Use struct scratch_buffer instead of extend_alloca.
7319
7320 2018-06-25 Florian Weimer <fweimer@redhat.com>
7321
7322 [BZ #18023]
7323 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
7324 back to malloc directly, without stack allocations.
7325
7326 2018-06-25 Florian Weimer <fweimer@redhat.com>
7327
7328 [BZ #18023]
7329 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
7330 of extend_alloca.
7331
7332 2018-06-25 Florian Weimer <fweimer@redhat.com>
7333
7334 [BZ #18023]
7335 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
7336 of extend_alloca.
7337 * nscd/hstcache.c (addhstbyX): Likewise.
7338 * nscd/pwdcache.c (addpwbyX): Likewise.
7339 * nscd/servicescache.c (addservbyX): Likewise.
7340
7341 2018-06-25 Florian Weimer <fweimer@redhat.com>
7342
7343 [BZ #18023]
7344 * nscd/connections.c (read_cmdline): New function.
7345 (restart): Use it. Update comment.
7346
7347 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
7348
7349 [BZ #23140]
7350 * localedata/locales/csb_PL (mon): Rename to...
7351 (alt_mon): This.
7352 (abmon): Rename to...
7353 (ab_alt_mon): This.
7354 (mon): Add with proper genitive forms, copy from Wikipedia.
7355 (abmon): Likewise.
7356
7357 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
7358
7359 [BZ #19485]
7360 * localedata/locales/csb_PL (mon): Fix typos:
7361 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
7362 (yesstr): Add, value is "jo".
7363 (nostr): Add, value is "nié".
7364
7365 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
7366
7367 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
7368 all log1p and significand functions on m680x0.
7369 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
7370 of s_significand.c..
7371 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
7372 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
7373 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
7374 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
7375 s_log1p.c and include it..
7376
7377 2018-06-21 Vincent Chen <vincentc@andestech.com>
7378
7379 * elf/elf.h (R_NDS32_NONE): New define.
7380 (R_NDS32_32_RELA): Likewise.
7381 (R_NDS32_COPY): Likewise.
7382 (R_NDS32_GLOB_DAT): Likewise.
7383 (R_NDS32_JUMP_SLOT): Likewise.
7384 (R_NDS32_RELATIVE): Likewise.
7385 (R_NDS32_TLS_TPOFF): Likewise.
7386 (R_NDS32_TLS_DESC): Likewise.
7387
7388 2018-06-21 Mark Wielaard <mark@klomp.org>
7389
7390 * elf/elf.h (R_BPF_MAP_FD): Removed.
7391 (R_BPF_64_64, R_BPF_64_32): New.
7392
7393 2018-06-21 Florian Weimer <fweimer@redhat.com>
7394
7395 [BZ #23253]
7396 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
7397 Renamed from libc_feholdsetround_ctx.
7398 (default_libc_feresetround_ctx): Renamed from
7399 libc_feresetround_ctx.
7400 (default_libc_feholdsetround_noex_ctx): Renamed from
7401 libc_feholdsetround_noex_ctx.
7402 (default_libc_feresetround_noex_ctx): Renamed from
7403 libc_feresetround_noex_ctx.
7404 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
7405 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
7406 forwardning to the old implementations under the new names.
7407 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
7408 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
7409 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
7410 (libc_feresetround_ctx): Forward to default implements for i386
7411 and MATH_SET_BOTH_ROUNDING_MODES.
7412 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
7413 Add -DMATH_SET_BOTH_ROUNDING_MODES.
7414
7415 2018-06-20 Joseph Myers <joseph@codesourcery.com>
7416
7417 * string/tst-cmp.c: Include <libc-diag.h>.
7418 (strncmp_max): Disable -Wstringop-overflow= around call to
7419 strncmp.
7420 (strncasecmp_max): Disable -Wstringop-overflow= around call to
7421 strncasecmp.
7422
7423 * string/bug-strpbrk1.c: Include <libc-diag.h>.
7424 (main): Disable -Wunused-value around call to strpbrk.
7425 * string/bug-strspn1.c: Include <libc-diag.h>.
7426 (main): Disable -Wunused-value around call to strspn.
7427
7428 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
7429 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7430
7431 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
7432 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
7433
7434 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
7435
7436 * math/Makefile (libm-calls): Move s_significandF to...
7437 (gen-libm-calls): ... here.
7438 * math/s_significand_template.c: New file.
7439 * math/s_significand.c: Removed.
7440 * math/s_significandf.c: Removed.
7441 * math/s_significandl.c: Removed.
7442 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
7443 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
7444
7445 * math/e_exp2_template.c (declare_mgen_finite_alias,
7446 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
7447 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
7448 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
7449
7450 2018-06-20 Florian Weimer <fweimer@redhat.com>
7451
7452 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
7453
7454 2018-06-19 Joseph Myers <joseph@codesourcery.com>
7455
7456 [BZ #23280]
7457 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
7458 floating-point number to strtod functions rather than possibly
7459 negating result of those functions.
7460 * stdio-common/tst-scanf-round.c: New file.
7461 * stdio-common/Makefile (tests): Add tst-scanf-round.
7462 ($(objpfx)tst-scanf-round): Depend on $(libm).
7463
7464 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
7465
7466 * sysdeps/mach/hurd/localplt.data: Move to...
7467 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
7468 R_386_GLOB_DAT like on Linux i386.
7469
7470 2018-06-18 Joseph Myers <joseph@codesourcery.com>
7471
7472 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
7473 (SHM_STAT_ANY): New macro.
7474 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
7475 (SHM_STAT_ANY): Likewise.
7476 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
7477 (SHM_STAT_ANY): Likewise.
7478 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
7479 (SHM_STAT_ANY): Likewise.
7480 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
7481 (SHM_STAT_ANY): Likewise.
7482 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
7483 (SHM_STAT_ANY): Likewise.
7484 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
7485 (SHM_STAT_ANY): Likewise.
7486 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
7487 (SHM_STAT_ANY): Likewise.
7488 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
7489 (SHM_STAT_ANY): Likewise.
7490 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
7491 (SHM_STAT_ANY): Likewise.
7492 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
7493 (SHM_STAT_ANY): Likewise.
7494 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
7495 (SHM_STAT_ANY): Likewise.
7496
7497 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
7498 (SEM_STAT_ANY): New macro.
7499 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
7500 (SEM_STAT_ANY): Likewise.
7501 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
7502 (SEM_STAT_ANY): Likewise.
7503 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
7504 (SEM_STAT_ANY): Likewise.
7505 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
7506 (SEM_STAT_ANY): Likewise.
7507 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
7508 (SEM_STAT_ANY): Likewise.
7509 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
7510 (SEM_STAT_ANY): Likewise.
7511 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
7512 (SEM_STAT_ANY): Likewise.
7513 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
7514 (SEM_STAT_ANY): Likewise.
7515 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
7516 (SEM_STAT_ANY): Likewise.
7517
7518 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
7519 (MSG_STAT_ANY): New macro.
7520 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
7521 (MSG_STAT_ANY): Likewise.
7522 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
7523 (MSG_STAT_ANY): Likewise.
7524 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
7525 (MSG_STAT_ANY): Likewise.
7526 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
7527 (MSG_STAT_ANY): Likewise.
7528 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
7529 (MSG_STAT_ANY): Likewise.
7530 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
7531 (MSG_STAT_ANY): Likewise.
7532 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
7533 (MSG_STAT_ANY): Likewise.
7534 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
7535 (MSG_STAT_ANY): Likewise.
7536 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
7537 (MSG_STAT_ANY): Likewise.
7538
7539 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
7540 (MAP_TYPE): Change value to 0x2b.
7541
7542 2018-06-18 Florian Weimer <fweimer@redhat.com>
7543
7544 [BZ #15722]
7545 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
7546 socket with SOCK_CLOEXEC.
7547
7548 2018-06-18 Joseph Myers <joseph@codesourcery.com>
7549
7550 [BZ #23303]
7551 * sysdeps/powerpc/powerpc64/le/Makefile
7552 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
7553 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
7554 (gnulib-tests): Also add $(f128-loader-link) for
7555 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
7556
7557 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
7558
7559 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
7560 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
7561 of sendfile.
7562 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
7563 (sendfile64): New strong alias.
7564 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
7565 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
7566 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
7567 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
7568 attribute.
7569 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
7570 ___pthread_get_cleanup_stack.
7571 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
7572 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
7573 * mach/shortcut.awk: Make syscall stubs include
7574 <mach-shortcuts-hidden.h> and add hidden definition.
7575 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
7576 (__mach_msg): Add hidden prototype.
7577 * mach/msg.c: Include <mach.h>.
7578 (__mach_msg): Add hidden definition.
7579 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
7580 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
7581 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
7582 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
7583 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
7584 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
7585 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
7586 prototype and definition.
7587 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
7588 hidden target for _hurd_self_sigstate.
7589
7590 2018-06-15 Joseph Myers <joseph@codesourcery.com>
7591
7592 [BZ #23007]
7593 * stdlib/tst-strtod-nan-sign-main.c: New file.
7594 * stdlib/tst-strtod-nan-sign.c: Likewise.
7595 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
7596 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
7597 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
7598 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
7599 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
7600
7601 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
7602
7603 [BZ #23007]
7604 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
7605 appropriate sign.
7606
7607 2018-06-14 Florian Weimer <fweimer@redhat.com>
7608
7609 [BZ #23290]
7610 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
7611 that the result stays within the ISO-8859-1 range.
7612 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
7613 characters are defined in IBM273.
7614
7615 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
7616
7617 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
7618 __mach_task_self): Remove attribute_hidden.
7619
7620 2018-06-14 Joseph Myers <joseph@codesourcery.com>
7621
7622 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
7623 ignore -Wrestrict for one test.
7624
7625 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
7626 Szabolcs Nagy <szabolcs.nagy@arm.com>
7627
7628 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
7629
7630 2018-06-14 Florian Weimer <fweimer@redhat.com>
7631
7632 * scripts/update-abilist.sh: Accept empty list of files to patch.
7633
7634 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
7635
7636 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
7637 test-xfail-check-abi-libmachuser): Add.
7638 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
7639 __libc_read and __libc_write to __read and __write.
7640 * sysdeps/hurd/include/hurd/port.h: New file.
7641 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
7642 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
7643 __thread_switch, __evc_wait): Move declarations to...
7644 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
7645 attribute_hidden.
7646 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
7647 use PLT to call _hurd_self_sigstate.
7648
7649 2018-06-13 Joseph Myers <joseph@codesourcery.com>
7650
7651 [BZ #23279]
7652 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
7653 MAX_EXP as overflowing.
7654 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
7655 overflow flag.
7656 (round_str): Output also whether result overflows in each rounding
7657 mode.
7658 * stdlib/tst-strtod-round-data: Add more tests.
7659 * stdlib/tst-strtod-round-data.h: Regenerated.
7660 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
7661 (TEST): Handle extra arguments for overflow flags.
7662 (struct test_overflow): New type.
7663 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
7664 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
7665 (test_in_one_mode): Take argument with overflow information.
7666 (do_test): Update calls to test_in_one_mode.
7667
7668 2018-06-12 Carlos O'Donell <carlos@redhat.com>
7669
7670 * elf/dl-load (_dl_dst_substitute): Correct comment.
7671 (_dl_dst_count): Likewise.
7672
7673 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
7674 lll_futex_timed_wait.
7675
7676 2018-06-12 Joseph Myers <joseph@codesourcery.com>
7677
7678 [BZ #23277]
7679 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
7680 attribute.
7681 * math/test-nan-const.c: New file.
7682 * math/Makefile (tests): Add test-nan-const.
7683 (CFLAGS-test-nan-const.c): New variable.
7684
7685 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
7686
7687 * benchtests/scripts/compare_strings.py (process_results): Add
7688 funcs argument. Compare only functions which are selected.
7689 (main): Check if base function is among selected functions.
7690 Pass selected functions to process_results.
7691 (__main__): Add -f/--functions argument.
7692
7693 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
7694 Hongbo Zhang <hongbo.zhang@linaro.org>
7695
7696 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
7697 __memcpy_falkor for phecda core.
7698 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
7699 __memmove_falkor for phecda core.
7700 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
7701 __memset_falkor for phecda core.
7702 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
7703 for phecda core.
7704 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
7705 macro to identify phecda core.
7706
7707 2018-06-12 Carlos O'Donell <carlos@redhat.com>
7708 Andreas Schwab <schwab@suse.de>
7709 Dmitry V. Levin <ldv@altlinux.org>
7710 Florian Weimer <fweimer@redhat.com>
7711
7712 [BZ #23102]
7713 [BZ #21942]
7714 [BZ #18018]
7715 [BZ #23259]
7716 CVE-2011-0536
7717 * elf/dl-dst.h: Remove DL_DST_COUNT.
7718 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
7719 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
7720 (is_dst): Comment. Support ELF gABI.
7721 (_dl_dst_count): Comment. Simplify and count DSTs.
7722 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
7723 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
7724 locals.
7725
7726 2018-06-12 Zack Weinberg <zackw@panix.com>
7727
7728 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
7729 * sysdeps/unix/sysv/linux/dl-sysdep.c
7730 Include not-cancel.h. Use __close_nocancel instead of __close,
7731 __open64_nocancel instead of __open, __read_nocancel instead of
7732 __libc_read, and __write_nocancel instead of __libc_write.
7733
7734 * csu/check_fds.c (check_one_fd)
7735 * sysdeps/posix/fdopendir.c (__fdopendir)
7736 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
7737 instead of __fcntl and/or __libc_fcntl.
7738
7739 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
7740 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
7741 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
7742 Use __open64_nocancel instead of __open_nocancel.
7743
7744 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
7745 hidden_proto declarations to the end and issue them if either
7746 IS_IN(libc) or IS_IN(rtld).
7747 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
7748 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
7749 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
7750 read_nocancel, waitpid_nocancel, write_nocancel.
7751
7752 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
7753 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
7754 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
7755
7756 * nptl/pt-fcntl.c: New file.
7757 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
7758 (libpthread-routines): Add pt-fcntl.
7759 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
7760 (__libc_fcntl): Remove attribute_hidden.
7761 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
7762 __fcntl_nocancel_adjusted, not fcntl_common.
7763 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
7764 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
7765 to fcntl_nocancel.c.
7766 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
7767 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
7768 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
7769 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
7770
7771 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
7772 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
7773 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
7774 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
7775 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
7776 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
7777 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
7778 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
7779 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
7780 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
7781 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
7782 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
7783 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
7784 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
7785 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
7786 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
7787 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
7788 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
7789 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
7790 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
7791
7792 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
7793 libpthread-routines.
7794 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
7795 defines nothing.
7796
7797 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
7798 __libc_read, and __write instead of __libc_write. Define
7799 __open64 in addition to __open.
7800
7801 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
7802
7803 [BZ #23250]
7804 [BZ #10686]
7805 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
7806 to _private_tm[3] and add __glibc_reserved2.
7807 Add _Static_assert of offset of __private_ss == 0x30.
7808 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
7809 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
7810
7811 2018-06-12 Florian Weimer <fweimer@redhat.com>
7812
7813 x86: Make strncmp usable from rtld.
7814 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
7815 __strncmp_ia32 if in libc (and not in rtld).
7816 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
7817 strncmp if not in libc (and not to __strncmp_sse2).
7818
7819 2018-06-12 Rafal Luzynski <digitalfreak@lingonborough.com>
7820
7821 [BZ #23140]
7822 * localedata/locales/gd_GB (mon): Rename to...
7823 (alt_mon): This.
7824 (mon): Import from CLDR (genitive case).
7825 * localedata/locales/hsb_DE (mon): Rename to...
7826 (alt_mon): This.
7827 (mon): Import from CLDR (genitive case).
7828 * localedata/locales/wa_BE (mon): Rename to...
7829 (alt_mon): This.
7830 (mon): Add, fill with the proper genitive forms, but CLDR data
7831 is incomplete; completed according to the comments in this file.
7832 (d_t_fmt): Do not use "di" before the month name, no longer needed.
7833
7834 * localedata/locales/wa_BE (country_name): Reword
7835 "Beljike" -> "Beldjike".
7836
7837 2018-06-11 Joseph Myers <joseph@codesourcery.com>
7838
7839 [BZ #23272]
7840 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
7841 cases of non-finite arguments.
7842 * math/libm-test-fma.inc (fma_test_data): Add more tests.
7843
7844 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
7845
7846 [BZ #23174]
7847 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
7848
7849 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7850
7851 [BZ #23264]
7852 * include/unistd.h (__execvpex): New prototype.
7853 * posix/Makefile (tests): Add tst-spawn4.
7854 (tests-internal): Add tst-spawn4-compat.
7855 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
7856 * posix/tst-spawn4-compat.c: New file.
7857 * posix/tst-spawn4.c: Likewise.
7858 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
7859 binaries as shell scripts.
7860 * sysdeps/posix/spawni.c (__spawni): Likewise.
7861
7862 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
7863
7864 [BZ #23145]
7865 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
7866 ($(all-built-dso:=.dynsym): New target.
7867 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
7868 ($(objpfx)check-initfini.out): New target.
7869 (generated): Add check-initfini.out.
7870 * scripts/check-initfini.awk: New file.
7871 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
7872 (_fini): Likewise.
7873 * sysdeps/alpha/crti.S (_init): Mark as hidden.
7874 (_fini): Likewise.
7875 * sysdeps/arm/crti.S (_init): Mark as hidden.
7876 (_fini): Likewise.
7877 * sysdeps/hppa/crti.S (_init): Mark as hidden.
7878 (_fini): Likewise.
7879 * sysdeps/i386/crti.S (_init): Mark as hidden.
7880 (_fini): Likewise.
7881 * sysdeps/ia64/crti.S (_init): Mark as hidden.
7882 (_fini): Likewise.
7883 * sysdeps/m68k/crti.S (_init): Mark as hidden.
7884 (_fini): Likewise.
7885 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
7886 (_fini): Likewise.
7887 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
7888 (_fini): Likewise.
7889 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
7890 (_fini): Likewise.
7891 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
7892 (_fini): Likewise.
7893 * sysdeps/nios2/crti.S (_init): Mark as hidden.
7894 (_fini): Likewise.
7895 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
7896 (_fini): Likewise.
7897 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
7898 (_fini): Likewise.
7899 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
7900 (_fini): Likewise.
7901 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
7902 (_fini): Likewise.
7903 * sysdeps/sh/crti.S (_init): Mark as hidden.
7904 (_fini): Likewise.
7905 * sysdeps/sparc/crti.S (_init): Mark as hidden.
7906 (_fini): Likewise.
7907 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
7908 (_fini): Likewise.
7909
7910 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
7911
7912 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
7913 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
7914 and TF redirection to KFtype and KF only when the default
7915 long double type is not the IEEE 128-bit floating point type.
7916
7917 2018-06-05 Joseph Myers <joseph@codesourcery.com>
7918
7919 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
7920 macro.
7921 (HWCAP_USCAT): Likewise.
7922 (HWCAP_ILRCPC): Likewise.
7923 (HWCAP_FLAGM): Likewise.
7924 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
7925 Increase to 28.
7926 (_dl_aarch64_cap_flags): Add new flag names.
7927
7928 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
7929 (MAP_FIXED_NOREPLACE): New macro.
7930 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
7931 (MAP_FIXED_NOREPLACE): Likewise.
7932 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
7933 (MAP_FIXED_NOREPLACE): Likewise.
7934 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
7935 (MAP_FIXED_NOREPLACE): Likewise.
7936 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
7937 (MAP_FIXED_NOREPLACE): Likewise.
7938 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
7939 (MAP_FIXED_NOREPLACE): Likewise.
7940 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
7941 (MAP_FIXED_NOREPLACE): Likewise.
7942 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
7943 (MAP_FIXED_NOREPLACE): Likewise.
7944 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
7945 (MAP_FIXED_NOREPLACE): Likewise.
7946 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
7947 (MAP_FIXED_NOREPLACE): Likewise.
7948 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
7949 (MAP_FIXED_NOREPLACE): Likewise.
7950 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
7951 (MAP_FIXED_NOREPLACE): Likewise.
7952 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
7953 (MAP_FIXED_NOREPLACE): Likewise.
7954 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
7955 (MAP_FIXED_NOREPLACE): Likewise.
7956 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
7957 (MAP_FIXED_NOREPLACE): Likewise.
7958
7959 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
7960 version to 4.17.
7961
7962 2018-06-04 Joseph Myers <joseph@codesourcery.com>
7963
7964 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
7965 version to 4.17
7966
7967 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
7968
7969 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
7970 int.
7971 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
7972
7973 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
7974
7975 * benchtests/scripts/compare_string.py: (process_results) Catch
7976 exception in non-existent base_func and catch exception in
7977 non-existent attribute.
7978 (parse_file) Catch exception if input file does not exist.
7979
7980 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
7981
7982 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
7983 options to avoid diff calculation and omit header, respectively.
7984 (main): process --no-diff and --no-header
7985
7986 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
7987 H.J. Lu <hongjiu.lu@intel.com>
7988
7989 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
7990 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
7991 wcsncmp-sse2.
7992 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
7993 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
7994 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
7995 and __wcsncmp_sse2.
7996 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
7997 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
7998 AVX unaligned load is fast and vzeroupper is preferred.
7999 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
8000 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
8001 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
8002 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
8003 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
8004 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
8005 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
8006 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
8007 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
8008 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
8009 is undefined.
8010
8011 2018-06-01 Florian Weimer <fweimer@redhat.com>
8012
8013 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
8014 configuring with --disable-multi-arch, building with
8015 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
8016 Haswell-era CPU.
8017
8018 2018-06-01 Florian Weimer <fweimer@redhat.com>
8019
8020 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
8021 results from building with “-march=x86-64 -mtune=generic
8022 -mfpmath=sse” and running on a Haswell-era CPU.
8023
8024 2018-06-01 Joseph Myers <joseph@codesourcery.com>
8025
8026 [BZ #18473]
8027 * soft-fp/sqrttf2.c: Remove file.
8028 * soft-fp/sqrtdf2.c: Move to ....
8029 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
8030 <shlib-compat.h>.
8031 (__sqrtdf2): Make conditional on
8032 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
8033 symbol.
8034 * soft-fp/sqrtsf2.c: Move to ....
8035 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
8036 <shlib-compat.h>.
8037 (__sqrtsf2): Make conditional on
8038 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
8039 symbol.
8040 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
8041 (gcc-double-routines): Remove sqrtdf2.
8042 (gcc-quad-routines): Remove sqrttf2.
8043 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
8044 Do not filter out sqrtsf2 and sqrtdf2.
8045 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
8046 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
8047
8048 2018-06-01 Florian Weimer <fweimer@redhat.com>
8049
8050 * sysdeps/generic/libcidn.abilist: Remove file.
8051
8052 2018-06-01 Florian Weimer <fweimer@redhat.com>
8053
8054 [BZ #23236]
8055 * libio/strfile.h (struct _IO_str_fields): Rename members to
8056 discourage their use and add comment.
8057 (_IO_STR_DYNAMIC): Remove unused macro.
8058 * libio/strops.c (_IO_str_init_static_internal): Do not use
8059 callback pointers. Call malloc and free.
8060 (_IO_str_overflow): Do not use callback pointers. Call malloc
8061 and free.
8062 (enlarge_userbuf): Likewise.
8063 (_IO_str_finish): Call free.
8064 * libio/wstrops.c (_IO_wstr_init_static): Initialize
8065 _allocate_buffer_unused.
8066 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
8067 and free.
8068 (enlarge_userbuf): Likewise.
8069 (_IO_wstr_finish): Call free.
8070 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
8071 _allocate_buffer_unused, _free_buffer_unused.
8072 * libio/memstream.c (__open_memstream): Likewise.
8073 * libio/vasprintf.c (_IO_vasprintf): Likewise.
8074 * libio/wmemstream.c (open_wmemstream): Likewise.
8075
8076 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
8077
8078 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
8079 AMD Ryzen 7 1800X.
8080
8081 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
8082
8083 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
8084 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
8085 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
8086 New file.
8087 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
8088 Likewise.
8089 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
8090
8091 2018-05-29 Florian Weimer <fweimer@redhat.com>
8092
8093 * support/Makefile (libsupport-routines): Add
8094 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
8095 xpthread_barrierattr_setpshared.
8096 * support/xpthread_barrierattr_destroy.c: New file.
8097 * support/xpthread_barrierattr_init.c: Likewise.
8098 * support/xpthread_barrierattr_setpshared.c: Likewise.
8099
8100 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
8101
8102 [BZ #23206]
8103 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
8104 _r_debug and update DT_DEBUG for debugger.
8105
8106 2018-05-29 Florian Weimer <fweimer@redhat.com>
8107
8108 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
8109 (tst-strtod5i.out): Likewise.
8110
8111 2018-05-25 Joseph Myers <joseph@codesourcery.com>
8112
8113 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
8114 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
8115 (sparc64-quad-routines): New variable. Moved from ....
8116 [$(subdir) = soft-fp] (sysdep_routines): Add
8117 $(sparc64-quad-routines). Moved from ....
8118 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
8119 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
8120 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
8121 moved from ....
8122 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
8123 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
8124 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
8125 * sysdeps/sparc/sparc64/qp_add.c: ... here.
8126 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
8127 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
8128 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
8129 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
8130 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
8131 * sysdeps/sparc/sparc64/qp_div.c: ... here.
8132 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
8133 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
8134 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
8135 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
8136 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
8137 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
8138 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
8139 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
8140 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
8141 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
8142 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
8143 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
8144 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
8145 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
8146 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
8147 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
8148 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
8149 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
8150 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
8151 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
8152 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
8153 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
8154 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
8155 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
8156 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
8157 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
8158 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
8159 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
8160 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
8161 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
8162 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
8163 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
8164 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
8165 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
8166 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
8167 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
8168 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
8169 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
8170 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
8171 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
8172 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
8173 * sysdeps/sparc/sparc64/qp_util.c: ... here.
8174 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
8175 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
8176 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
8177 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
8178 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
8179 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
8180
8181 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
8182 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
8183 (sparc32-quad-routines): New variable. Moved from ....
8184 [$(subdir) = soft-fp] (sysdep_routines): Add
8185 $(sparc32-quad-routines). Moved from ....
8186 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
8187 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
8188 moved from ....
8189 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
8190 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
8191 * sysdeps/sparc/sparc32/q_add.c: ... here.
8192 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
8193 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
8194 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
8195 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
8196 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
8197 * sysdeps/sparc/sparc32/q_div.c: ... here.
8198 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
8199 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
8200 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
8201 * sysdeps/sparc/sparc32/q_feq.c: ... here.
8202 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
8203 * sysdeps/sparc/sparc32/q_fge.c: ... here.
8204 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
8205 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
8206 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
8207 * sysdeps/sparc/sparc32/q_fle.c: ... here.
8208 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
8209 * sysdeps/sparc/sparc32/q_flt.c: ... here.
8210 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
8211 * sysdeps/sparc/sparc32/q_fne.c: ... here.
8212 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
8213 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
8214 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
8215 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
8216 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
8217 * sysdeps/sparc/sparc32/q_mul.c: ... here.
8218 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
8219 * sysdeps/sparc/sparc32/q_neg.c: ... here.
8220 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
8221 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
8222 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
8223 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
8224 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
8225 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
8226 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
8227 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
8228 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
8229 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
8230 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
8231 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
8232 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
8233 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
8234 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
8235 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
8236 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
8237 * sysdeps/sparc/sparc32/q_sub.c: ... here.
8238 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
8239 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
8240 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
8241 * sysdeps/sparc/sparc32/q_util.c: ... here.
8242 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
8243 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
8244 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
8245 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
8246
8247 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
8248 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
8249
8250 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
8251 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
8252 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
8253 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
8254
8255 2018-05-24 Joseph Myers <joseph@codesourcery.com>
8256
8257 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
8258 powerpc/soft-fp.
8259 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
8260 Likewise.
8261 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
8262 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
8263
8264 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
8265
8266 [BZ #23171]
8267 * math/math.h [C++] (iseqsig): Fix parameter type for the long
8268 double version.
8269
8270 2018-05-23 Joseph Myers <joseph@codesourcery.com>
8271
8272 * sysdeps/sh/Implies: Remove sh/soft-fp.
8273 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
8274 * sysdeps/sh/sfp-machine.h: ... here.
8275
8276 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
8277
8278 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
8279 (__mempcpy_erms): Skip zero length.
8280 (__memmove_erms): Likewise.
8281 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
8282 (__memset_erms): Likewise.
8283
8284 2018-05-23 Joseph Myers <joseph@codesourcery.com>
8285
8286 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
8287 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
8288 Add functions moved from ....
8289 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
8290 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
8291 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
8292 from ....
8293 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
8294 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
8295 * sysdeps/alpha/e_sqrtl.c: ... here.
8296 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
8297 * sysdeps/alpha/local-soft-fp.h: ... here.
8298 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
8299 * sysdeps/alpha/ots_add.c: ... here.
8300 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
8301 * sysdeps/alpha/ots_cmp.c: ... here.
8302 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
8303 * sysdeps/alpha/ots_cmpe.c: ... here.
8304 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
8305 * sysdeps/alpha/ots_cvtqux.c: ... here.
8306 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
8307 * sysdeps/alpha/ots_cvtqx.c: ... here.
8308 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
8309 * sysdeps/alpha/ots_cvttx.c: ... here.
8310 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
8311 * sysdeps/alpha/ots_cvtxq.c: ... here.
8312 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
8313 * sysdeps/alpha/ots_cvtxt.c: ... here.
8314 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
8315 * sysdeps/alpha/ots_div.c: ... here.
8316 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
8317 * sysdeps/alpha/ots_mul.c: ... here.
8318 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
8319 * sysdeps/alpha/ots_nintxq.c: ... here.
8320 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
8321 * sysdeps/alpha/ots_sub.c: ... here.
8322 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
8323 * sysdeps/alpha/sfp-machine.h: ... here.
8324
8325 2018-05-23 Florian Weimer <fweimer@redhat.com>
8326
8327 [BZ #19728]
8328 [BZ #19729]
8329 [BZ #22247]
8330 CVE-2016-6261
8331 CVE-2016-6263
8332 CVE-2017-14062
8333 Switch to extern IDNA implementation (libidn2).
8334 * libidn: Remove subdirectory.
8335 * LICENSES: Do not mention licensing conditions for the removed
8336 libidn code.
8337 * config.h.in (HAVE_LIBIDN): Remove.
8338 * include/dlfcn.h (__libc_dlopen): Update comment.
8339 * include/idna.h: Remove file.
8340 * inet/Makefile (routines): Add idna.
8341 (tests-static, tests-internal): Add tst-idna_name_classify.
8342 (LOCALES): Generate locales for tests.
8343 (tst-idna_name_classify.out): Depend on generated locales.
8344 * inet/idna_name_classify.c: New file.
8345 * inet/tst-idna_name_classify.c: Likewise.
8346 * inet/net-internal.h (__idna_to_dns_encoding)
8347 (__idna_from_dns_encoding): Declare.
8348 * inet/net-internal.h (enum idna_name_classification): Define.
8349 (__idna_name_classify): Declare.
8350 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
8351 __idna_from_dns_encoding.
8352 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
8353 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
8354 name as a fallback in case of encoding errors.
8355 (getnameinfo): Use DEPRECATED_NI_IDN.
8356 * inet/idna.c: New file.
8357 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
8358 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
8359 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
8360 (modules-names): Add tst-no-libidn2.
8361 (extra-test-objs): Add tst-no-libidn2.os.
8362 (LDFLAGS-tst-no-libidn2.so): Set soname.
8363 (LOCALES): Set, and generate locales.
8364 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
8365 (tst-resolv-ai_idn-latin1): Likewise.
8366 (tst-resolv-ai_idn-nolibidn2): Likewise.
8367 (tst-resolv-ai_idn.out): Depend on locales.
8368 (tst-resolv-ai_idn-latin1.out): Depend on locales.
8369 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
8370 tst-no-libidn2.so.
8371 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
8372 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
8373 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
8374 * resolv/tst-resolv-ai_idn.c: New file.
8375 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
8376 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
8377 * resolv/tst-no-libidn2.c: Likewise.
8378 * support/support_format_addrinfo.c (format_ai_flags): Do not
8379 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
8380 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
8381 (gaih_inet): Call __idna_to_dns_encoding and
8382 __idna_from_dns_encoding, and use the original (punycode) name if
8383 __idna_from_dns_encoding fails due to an encoding error.
8384 (getaddrinfo): Use DEPRECATED_AI_IDN.
8385 * sysdeps/unix/inet/Subdirs (libidn): Remove.
8386 * sysdeps/unix/inet/configure: Remove file.
8387 * sysdeps/unix/inet/configure.ac: Likewise.
8388
8389 2018-05-23 Florian Weimer <fweimer@redhat.com>
8390
8391 Implement allocate_once.
8392 * include/allocate_once.h: New file.
8393 * misc/allocate_once.c: Likewise.
8394 * misc/tst-allocate_once.c: Likewise.
8395 * misc/Makefile (routines): Add allocate_once.
8396 (tests-internal): Add tst-allocate_once.
8397 (generated): Add tst-allocate_once.mtrace,
8398 tst-allocate_once-mem.out.
8399 (tests-special): Add tst-allocate_once-mem.out.
8400 (tst-allocate_once-ENV): Set MALLOC_TRACE.
8401 (tst-allocate_once-mem.out): Call mtrace.
8402 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
8403
8404 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
8405
8406 [BZ #23196]
8407 * string/test-memcpy.c (do_test1): New function.
8408 (test_main): Call it.
8409
8410 2018-05-23 Andreas Schwab <schwab@suse.de>
8411
8412 [BZ #23196]
8413 CVE-2018-11237
8414 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
8415 (L(preloop_large)): Save initial destination pointer in %r11 and
8416 use it instead of %rax after the loop.
8417 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
8418
8419 2018-05-22 Joseph Myers <joseph@codesourcery.com>
8420
8421 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
8422 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
8423 -I../soft-fp. Moved from ....
8424 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
8425 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
8426 * sysdeps/aarch64/e_sqrtl.c: ... here.
8427 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
8428 * sysdeps/aarch64/sfp-machine.h: ... here.
8429
8430 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
8431 -Wmaybe-uninitialized around access to fq[0].
8432 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
8433 Likewise.
8434
8435 [BZ #18471]
8436 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
8437 aliases for non-libc case of versioned symbols.
8438 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
8439 (llseek): Define as compat symbol if
8440 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
8441 with link warning.
8442 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
8443 Make into a compat symbol, disabled for minimum symbol version
8444 GLIBC_2.28 and later.
8445 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
8446
8447 2018-05-22 Florian Weimer <fweimer@redhat.com>
8448
8449 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
8450 not add -mpreferred-stack-boundary=4.
8451 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
8452 (stack-align-test-flags): Likewise.
8453 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
8454 Likewise.
8455 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
8456 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
8457 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
8458 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
8459 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
8460 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
8461 (CFLAGS-tst-align2.c): Likewise.
8462
8463 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
8464
8465 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
8466 (index_arch_Prefer_FSRM): Likewise.
8467 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
8468 Also check Prefer_FSRM.
8469 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
8470 Also return OPTIMIZE (erms) for Prefer_FSRM.
8471
8472 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
8473
8474 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
8475 (index_cpu_FSRM): Likewise.
8476 (reg_FSRM): Likewise.
8477
8478 2018-05-18 Joseph Myers <joseph@codesourcery.com>
8479
8480 * math/gen-tgmath-tests.py: Import sys.
8481 (Tests.__init__): Initialize macros_seen.
8482 (Tests.add_tests): Add macro to macros_seen. Only generate tests
8483 if requested to do so for this macro.
8484 (Tests.add_all_tests): Take argument for macro for which to
8485 generate tests.
8486 (Tests.check_macro_list): New function.
8487 (main): Handle check-list argument and argument specifying macro
8488 for which to generate tests.
8489 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
8490 [PYTHON] (tgmath3-macro-tests): Likewise.
8491 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
8492 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
8493 not test-tgmath3.c.
8494 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
8495 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
8496 to CFLAGS.
8497 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
8498 [PYTHON] ($(foreach
8499 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
8500 rule.
8501 [PYTHON] (tests-special): Add
8502 $(objpfx)test-tgmath3-macro-list.out.
8503 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
8504
8505 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
8506 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
8507 later.
8508
8509 [BZ #22639]
8510 * time/tzset.c (SECSPERDAY): Cast to time_t.
8511 * time/tst-y2039.c: New file.
8512 * time/Makefile (tests): Add tst-y2039.
8513
8514 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
8515
8516 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
8517 (PREFETCH_ONE_SET): Remove duplicate line.
8518
8519 2018-05-17 Florian Weimer <fweimer@redhat.com>
8520
8521 * sysdeps/generic/math-type-macros-double.h: Include
8522 <math-nan-payload-double.h> after <libm-alias-double.h>.
8523 * sysdeps/generic/math-type-macros-float.h: Include
8524 <math-nan-payload-float.h> after <libm-alias-float.h>.
8525 * sysdeps/generic/math-type-macros-float128.h: Include
8526 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
8527 * sysdeps/generic/math-type-macros-ldouble.h: Include
8528 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
8529
8530 2018-05-17 Andreas Schwab <schwab@suse.de>
8531
8532 * resolv/res_send.c (__res_context_send): Don't set errno when
8533 returing error after malloc failure.
8534
8535 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
8536
8537 * nptl/allocatestack.c (allocate_stack): Remove the
8538 !__ASSUME_PRIVATE_FUTEX paths.
8539 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
8540 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
8541 Likewise.
8542 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
8543 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
8544 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
8545 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
8546 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
8547 !__ASSUME_PRIVATE_FUTEX path.
8548 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
8549 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
8550 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
8551 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
8552 !__ASSUME_PRIVATE_FUTEX macros.
8553 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
8554 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
8555 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
8556 * sysdeps/unix/sysv/linux/kernel-features.h
8557 (__ASSUME_PRIVATE_FUTEX): Removed.
8558
8559 2018-05-17 Joseph Myers <joseph@codesourcery.com>
8560
8561 * math/Makefile (libm-narrow-fns): Add div.
8562 (libm-test-funcs-narrow): Likewise.
8563 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
8564 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
8565 * math/gen-auto-libm-tests.c (test_functions): Add div.
8566 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
8567 (NARROW_DIV_ROUND_TO_ODD): Likewise.
8568 (NARROW_DIV_TRIVIAL): Likewise.
8569 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
8570 macro.
8571 (__ddivl): Likewise.
8572 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
8573 ddiv.
8574 (CFLAGS-nldbl-ddiv.c): New variable.
8575 (CFLAGS-nldbl-fdiv.c): Likewise.
8576 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
8577 __nldbl_ddivl.
8578 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
8579 prototype.
8580 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
8581 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
8582 * math/auto-libm-test-in: Add tests of div.
8583 * math/auto-libm-test-out-narrow-div: New generated file.
8584 * math/libm-test-narrow-div.inc: New file.
8585 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
8586 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
8587 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
8588 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
8589 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
8590 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
8591 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
8592 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
8593 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
8594 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
8595 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
8596 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
8597 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
8598 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
8599 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
8600 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
8601 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
8602 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
8603 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8604 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
8605 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
8606 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
8607 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
8608 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
8609 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
8610 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
8611 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
8612 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
8613 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
8614 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
8615 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
8616 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
8617 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
8618 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
8619 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
8620 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
8621 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
8622 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
8623 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
8624 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
8625 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
8626 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
8627 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
8628 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
8629
8630 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8631
8632 [BZ #23178]
8633 * nscd/nscd-client.h (sendfileall): Remove prototype.
8634 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
8635 (handle_request): Use writeall instead of sendfileall.
8636 * nscd/aicache.c (addhstaiX): Likewise.
8637 * nscd/grpcache.c (cache_addgr): Likewise.
8638 * nscd/hstcache.c (cache_addhst): Likewise.
8639 * nscd/initgrcache.c (addinitgroupsX): Likewise.
8640 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
8641 * nscd/pwdcache.c (cache_addpw): Likewise.
8642 * nscd/servicescache.c (cache_addserv): Likewise.
8643 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
8644 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
8645 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
8646 Remove define.
8647
8648 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
8649
8650 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
8651 Include <string/strncat.c>.
8652 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
8653 alias.
8654 (__GI___strncat): New hidden alias.
8655
8656 2018-05-16 Joseph Myers <joseph@codesourcery.com>
8657
8658 * sysdeps/mips/mips32/libm-test-ulps: Update.
8659 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
8660
8661 2018-05-16 Florian Weimer <fweimer@redhat.com>
8662
8663 * support/Makefile (libsupport-routines): Add support_quote_blob,
8664 support_test_compare_blob.
8665 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
8666 * support/check.h (TEST_COMPARE_BLOB): Define.
8667 (support_test_compare_blob): Declare.
8668 * support/support.h (support_quote_blob): Declare.
8669 * support/support_quote_blob.c: New file.
8670 * support/support_test_compare_blob.c: Likewise.
8671 * support/tst-support_quote_blob.c: Likewise.
8672 * support/tst-test_compare_blob.c: Likewise.
8673
8674 2018-05-16 Florian Weimer <fweimer@redhat.com>
8675
8676 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
8677 of <strtod_nan_double.h>.
8678 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
8679 instead of SET_MANTISSA.
8680 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
8681 of include <strtod_nan_float.h>.
8682 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
8683 instead of <strtod_nan_ldouble.h>.
8684 * stdlib/strtod_nan_double.h: Move to ...
8685 * sysdeps/generic/math-nan-payload-double.h: ... here.
8686 (FLOAT): Remove definition.
8687 (SET_MANTISSA): Rename to ...
8688 (SET_NAN_PAYLOAD): ... this.
8689 * stdlib/strtod_nan_float.h: Move to ...
8690 * sysdeps/generic/math-nan-payload-float.h: ... here.
8691 (FLOAT): Remove definition.
8692 (SET_MANTISSA): Rename to ...
8693 (SET_NAN_PAYLOAD): ... this.
8694 * sysdeps/generic/math-type-macros-double.h: Include
8695 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
8696 instead of <math-svid-compat.h>.
8697 * sysdeps/generic/math-type-macros-float.h: Include
8698 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
8699 instead of <math-svid-compat.h>.
8700 * sysdeps/generic/math-type-macros-float128.h: Include
8701 <math-nan-payload-float128.h>.
8702 * sysdeps/generic/math-type-macros-ldouble.h: Include
8703 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
8704 instead of <math-svid-compat.h>.
8705 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
8706 check for definition.
8707 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
8708 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
8709 Include <ieee754_float128.h>.
8710 (FLOAT): Remove definition.
8711 (SET_MANTISSA): Rename to ...
8712 (SET_NAN_PAYLOAD): ... this.
8713 * sysdeps/ieee754/float128/strtof128_nan.c: Include
8714 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
8715 Do not include <float128_private.h>.
8716 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
8717 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
8718 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
8719 (FLOAT): Remove definition.
8720 (SET_MANTISSA): Rename to ...
8721 (SET_NAN_PAYLOAD): ... this.
8722 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
8723 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
8724 (FLOAT): Remove definition.
8725 (SET_MANTISSA): Rename to ...
8726 (SET_NAN_PAYLOAD): ... this.
8727 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
8728 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
8729 (FLOAT): Remove definition.
8730 (SET_MANTISSA): Rename to ...
8731 (SET_NAN_PAYLOAD): ... this.
8732 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
8733 of "../stdlib/strtod_nan_double.h".
8734 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
8735 of "../stdlib/strtod_nan_float.h".
8736 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
8737 instead of "../stdlib/strtod_nan_ldouble.h".
8738 * manual/arith.texi (Parsing of Floats): Adjust comment.
8739
8740 2018-05-16 Joseph Myers <joseph@codesourcery.com>
8741
8742 * math/Makefile (libm-narrow-fns): Add mul.
8743 (libm-test-funcs-narrow): Likewise.
8744 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
8745 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
8746 * math/gen-auto-libm-tests.c (test_functions): Add mul.
8747 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
8748 (NARROW_MUL_ROUND_TO_ODD): Likewise.
8749 (NARROW_MUL_TRIVIAL): Likewise.
8750 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
8751 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
8752 macro.
8753 (__dmull): Likewise.
8754 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
8755 dmul.
8756 (CFLAGS-nldbl-dmul.c): New variable.
8757 (CFLAGS-nldbl-fmul.c): Likewise.
8758 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
8759 __nldbl_dmull.
8760 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
8761 prototype.
8762 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
8763 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
8764 * math/auto-libm-test-in: Add tests of mul.
8765 * math/auto-libm-test-out-narrow-mul: New generated file.
8766 * math/libm-test-narrow-mul.inc: New file.
8767 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
8768 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
8769 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
8770 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
8771 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
8772 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
8773 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
8774 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
8775 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
8776 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
8777 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
8778 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
8779 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
8780 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
8781 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
8782 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
8783 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
8784 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
8785 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8786 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
8787 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
8788 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
8789 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
8790 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
8791 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
8792 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
8793 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
8794 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
8795 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
8796 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
8797 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
8798 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
8799 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
8800 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
8801 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
8802 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
8803 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
8804 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
8805 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
8806 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
8807 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
8808 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
8809 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
8810 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
8811
8812 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
8813
8814 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
8815 with *%eax in call.
8816
8817 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
8818
8819 * sysdeps/i386/ldsodefs.h: Removed.
8820 * sysdeps/x86_64/ldsodefs.h: Moved to ...
8821 * sysdeps/x86/ldsodefs.h: This.
8822 (La_i86_regs): New.
8823 (La_i86_retval): Likewise.
8824 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
8825 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
8826
8827 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
8828
8829 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
8830 unnecessary testl.
8831
8832 2018-05-13 Alan Modra <amodra@gmail.com>
8833
8834 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
8835 R_PARISC_TLS_DTPOFF32 reloc addend.
8836
8837 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
8838
8839 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
8840 * math/math.h: Restrict the prototype definition for the functions
8841 issignaling(_Float128) and iszero(_Float128); and template
8842 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
8843 __HAVE_FLOAT128_UNLIKE_LDBL.
8844 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
8845 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
8846 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
8847 __f128() constants; define the type _Float128 as long double;
8848 and reuse long double in __CFLOAT128.
8849
8850 2018-05-11 Joseph Myers <joseph@codesourcery.com>
8851
8852 * sysdeps/generic/math_private.h: Do not include
8853 <math-barriers.h>.
8854 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
8855 <math_private.h>.
8856 * math/fromfp.h: Include <math-barriers.h>.
8857 * math/math-narrow.h: Likewise.
8858 * math/s_nextafter.c: Likewise.
8859 * math/s_nexttowardf.c: Likewise.
8860 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
8861 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
8862 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
8863 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
8864 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
8865 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
8866 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
8867 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
8868 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
8869 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
8870 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
8871 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
8872 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
8873 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
8874 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
8875 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
8876 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
8877 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
8878 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
8879 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
8880 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
8881 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
8882 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
8883 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
8884 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
8885 * sysdeps/ieee754/k_standardl.c: Likewise.
8886 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
8887 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
8888 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
8889 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
8890 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
8891 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
8892 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
8893 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
8894 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
8895 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
8896 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
8897 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
8898 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
8899 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
8900 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
8901 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
8902 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
8903 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
8904 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
8905 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
8906 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
8907 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
8908
8909 2018-05-11 Florian Weimer <fweimer@redhat.com>
8910
8911 Use 64-bit epoch values in the time zone file parser.
8912 * include/time.h (internal_time_t): Define.
8913 (__tzfile_compute): Use it.
8914 * time/tzfile.c (struct leap): Use internal_time_t for epoch
8915 member.
8916 (transitions): Switch to internal_time_t.
8917 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
8918 types.
8919 (__tzfile_compute): Use internal_time_t for timer argument. Check
8920 for truncation before calling __offtime.
8921
8922 2018-05-11 Florian Weimer <fweimer@redhat.com>
8923
8924 [BZ #23166]
8925 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
8926 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
8927 Likewise.
8928 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
8929 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
8930 export without --enable-obsolete-rpc.
8931 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
8932 symbol. This should not have been exported, ever.
8933
8934 2018-05-11 Rafal Luzynski <digitalfreak@lingonborough.com>
8935
8936 [BZ #23152]
8937 * localedata/locales/gd_GB (abmon): Fix typo in May:
8938 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
8939
8940 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
8941
8942 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
8943 Use multiple registers to copy data in loop tail.
8944
8945 * sysdeps/aarch64/multiarch/memmove_falkor.S
8946 (__memmove_falkor): Use multiple registers to move data in
8947 loop tail.
8948
8949 2018-05-10 Joseph Myers <joseph@codesourcery.com>
8950
8951 * math/math-underflow.h: New file.
8952 * sysdeps/generic/math_private.h: Do not include <float.h>.
8953 (fabs_tg): Remove macro. Moved to math-underflow.h.
8954 (min_of_type_f): Likewise.
8955 (min_of_type_): Likewise.
8956 (min_of_type_l): Likewise.
8957 (min_of_type_f128): Likewise.
8958 (min_of_type): Likewise.
8959 (math_check_force_underflow): Likewise.
8960 (math_check_force_underflow_nonneg): Likewise.
8961 (math_check_force_underflow_complex): Likewise.
8962 * math/e_exp2_template.c: Include <math-underflow.h>.
8963 * math/k_casinh_template.c: Likewise.
8964 * math/s_catan_template.c: Likewise.
8965 * math/s_catanh_template.c: Likewise.
8966 * math/s_ccosh_template.c: Likewise.
8967 * math/s_cexp_template.c: Likewise.
8968 * math/s_clog10_template.c: Likewise.
8969 * math/s_clog_template.c: Likewise.
8970 * math/s_csin_template.c: Likewise.
8971 * math/s_csinh_template.c: Likewise.
8972 * math/s_csqrt_template.c: Likewise.
8973 * math/s_ctan_template.c: Likewise.
8974 * math/s_ctanh_template.c: Likewise.
8975 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
8976 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
8977 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
8978 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
8979 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
8980 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
8981 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
8982 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
8983 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
8984 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
8985 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
8986 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
8987 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
8988 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
8989 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
8990 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
8991 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
8992 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
8993 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
8994 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
8995 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
8996 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
8997 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
8998 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
8999 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
9000 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
9001 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
9002 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
9003 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
9004 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
9005 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
9006 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
9007 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
9008 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
9009 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
9010 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
9011 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
9012 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
9013 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
9014 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
9015 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
9016 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
9017 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
9018 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
9019 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
9020 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
9021 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
9022 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
9023 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
9024 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
9025 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
9026 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
9027 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
9028 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
9029 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
9030 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
9031 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
9032 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
9033 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
9034 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
9035 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
9036 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
9037 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
9038 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
9039 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
9040 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
9041 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
9042 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
9043 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
9044 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
9045 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
9046 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
9047 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
9048 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
9049 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
9050 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
9051 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
9052 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
9053 * sysdeps/x86/fpu/powl_helper.c: Likewise.
9054 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
9055 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
9056 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
9057 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
9058 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
9059
9060 2018-05-09 Joseph Myers <joseph@codesourcery.com>
9061
9062 * sysdeps/generic/math-barriers.h: New file.
9063 * sysdeps/generic/math_private.h [!math_opt_barrier]
9064 (math_opt_barrier): Move to math-barriers.h.
9065 [!math_opt_barrier] (math_force_eval): Likewise.
9066 * sysdeps/aarch64/fpu/math-barriers.h: New file.
9067 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
9068 math-barriers.h.
9069 (math_force_eval): Likewise.
9070 * sysdeps/alpha/fpu/math-barriers.h: New file.
9071 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
9072 math-barriers.h.
9073 (math_force_eval): Likewise.
9074 * sysdeps/x86/fpu/math-barriers.h: New file.
9075 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
9076 math-barriers.h.
9077 (math_force_eval): Likewise.
9078 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
9079 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
9080 multiple-include guard for rename.
9081 * sysdeps/powerpc/fpu/math-barriers.h: New file.
9082 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
9083 math-barriers.h.
9084 (math_force_eval): Likewise.
9085
9086 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
9087
9088 [BZ #22786]
9089 CVE-2018-11236
9090 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
9091 computation.
9092 * stdlib/Makefile (test-bz22786): New test.
9093 * stdlib/test-bz22786.c: New test.
9094
9095 2018-05-09 Joseph Myers <joseph@codesourcery.com>
9096
9097 * include/math-narrow-eval.h: New file. Contents moved from ....
9098 * sysdeps/generic/math_private.h: ... here.
9099 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
9100 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
9101 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
9102 * stdlib/strtod_l.c: Likewise.
9103 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
9104 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
9105 * sysdeps/i386/fpu/s_fdim.c: Likewise.
9106 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
9107 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
9108 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
9109 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
9110 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
9111 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
9112 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
9113 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
9114 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
9115 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
9116 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
9117 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
9118 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
9119 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
9120 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
9121 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
9122 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
9123 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
9124 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
9125 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
9126 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
9127 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
9128 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
9129 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
9130 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
9131 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
9132
9133 2018-05-08 Andreas Schwab <schwab@suse.de>
9134
9135 * sysdeps/nptl/internaltypes.h: Fix comment.
9136
9137 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
9138
9139 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
9140 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
9141 hidden.
9142
9143 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
9144
9145 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
9146 of I into loop header.
9147 * benchtests/bench-memmove-walk.c
9148 (test_main): Likewise.
9149
9150 2018-05-07 Alexandre Oliva <oliva@gnu.org>
9151
9152 Revert:
9153 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
9154 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
9155
9156 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
9157
9158 [BZ #20419]
9159 * elf/dl-load.c (open_verify): Fix stack overflow.
9160 * elf/Makefile (tst-big-note): New test.
9161 * elf/tst-big-note-lib.S: New.
9162 * elf/tst-big-note.c: New.
9163
9164 2018-05-04 Joseph Myers <joseph@codesourcery.com>
9165
9166 * scripts/abilist.awk: Ignore absolute symbols.
9167 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
9168 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
9169 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
9170 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
9171 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
9172 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
9173 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
9174 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
9175 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
9176 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
9177 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
9178 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
9179 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
9180 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
9181 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
9182 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
9183 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
9184 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
9185 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
9186 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
9187 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
9188 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
9189 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
9190 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
9191 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
9192 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
9193 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
9194 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
9195 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
9196 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
9197 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
9198 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
9199 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
9200 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
9201 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
9202 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
9203 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
9204 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
9205 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
9206 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
9207 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
9208 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
9209 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
9210 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
9211 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
9212 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
9213 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
9214 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
9215 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
9216 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
9217 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
9218 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
9219 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
9220 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
9221 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
9222 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
9223 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
9224 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
9225 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
9226 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
9227 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
9228 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
9229 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
9230 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
9231 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
9232 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
9233 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
9234 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
9235 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
9236 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
9237 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
9238 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
9239 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
9240 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
9241 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
9242 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
9243 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
9244 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
9245 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
9246 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
9247 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
9248 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
9249 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
9250 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
9251 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
9252 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
9253 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
9254 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
9255 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
9256 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
9257 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
9258 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
9259 Likewise.
9260 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
9261 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
9262 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
9263 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
9264 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
9265 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
9266 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
9267 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
9268 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
9269 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
9270 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
9271 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
9272 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
9273 Likewise.
9274 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
9275 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
9276 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
9277 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
9278 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
9279 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
9280 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
9281 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
9282 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
9283 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
9284 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
9285 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
9286 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
9287 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
9288 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
9289 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
9290 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
9291 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
9292 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
9293 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
9294 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
9295 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
9296 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
9297 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
9298 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
9299 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
9300 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
9301 Likewise.
9302 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
9303 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
9304 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
9305 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
9306 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
9307 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
9308 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
9309 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
9310 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
9311 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
9312 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
9313 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
9314 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
9315 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
9316 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
9317 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
9318 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
9319 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
9320 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
9321 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
9322 Likewise.
9323 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
9324 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
9325 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
9326 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
9327 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
9328 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
9329 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
9330 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
9331 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
9332 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
9333 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
9334 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
9335 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
9336 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
9337 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
9338 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
9339 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
9340 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
9341 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
9342 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
9343 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
9344 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
9345 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
9346 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
9347 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
9348 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
9349 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
9350 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
9351 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
9352 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
9353 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
9354 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
9355 Likewise.
9356 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
9357 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
9358 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
9359 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
9360 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
9361 Likewise.
9362 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
9363 Likewise.
9364 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
9365 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
9366 Likewise.
9367 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
9368 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
9369 Likewise.
9370 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
9371 Likewise.
9372 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
9373 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
9374 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
9375 Likewise.
9376 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
9377 Likewise.
9378 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
9379 Likewise.
9380 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
9381 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
9382 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
9383 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
9384 Likewise.
9385 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
9386 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
9387 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
9388 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
9389 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
9390 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
9391 Likewise.
9392 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
9393 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
9394 Likewise.
9395 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
9396 Likewise.
9397 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
9398 Likewise.
9399 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
9400 Likewise.
9401 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
9402 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
9403 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
9404 Likewise.
9405 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
9406 Likewise.
9407 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
9408 Likewise.
9409 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
9410 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
9411 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
9412 Likewise.
9413 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
9414 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
9415 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
9416 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
9417 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
9418 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
9419 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
9420 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
9421 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
9422 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
9423 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
9424 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
9425 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
9426 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
9427 Likewise.
9428 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
9429 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
9430 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
9431 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
9432 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
9433 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
9434 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
9435 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
9436 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
9437 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
9438 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
9439 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
9440 Likewise.
9441 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
9442 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
9443 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
9444 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
9445 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
9446 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
9447 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
9448 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
9449 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
9450 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
9451 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
9452 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
9453 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
9454 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
9455 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
9456 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
9457 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
9458 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
9459 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
9460 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
9461 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
9462 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
9463 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
9464 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
9465 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
9466 Likewise.
9467 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
9468 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
9469 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
9470 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
9471 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
9472 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
9473 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
9474 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
9475 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
9476 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
9477 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
9478 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
9479 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
9480 Likewise.
9481 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
9482 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
9483 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
9484 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
9485 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
9486 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
9487 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
9488 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
9489 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
9490 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
9491 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
9492 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
9493 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
9494 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
9495 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
9496 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
9497 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
9498 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
9499 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
9500 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
9501 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
9502 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
9503 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
9504 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
9505 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
9506 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
9507 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
9508 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
9509 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
9510 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
9511 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
9512 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
9513 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
9514 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
9515 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
9516 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
9517 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
9518 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
9519
9520 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
9521
9522 [BZ #23137]
9523 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
9524 Use atomic_load_acquire to load __tid.
9525
9526 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
9527
9528 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
9529 Restore the pointer into %rdx, after syscall and use %rdx,
9530 instead of %rsi, to restore context.
9531
9532 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
9533
9534 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
9535 Pop the pointer into %rdx after syscall and use %rdx, instead
9536 of %rsi, to restore context.
9537
9538 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
9539
9540 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
9541 handlers after setjmp.
9542 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
9543 defined.
9544 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
9545 <libc-pointer-arith.h>.
9546 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
9547 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
9548 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
9549 _JUMP_BUF_SIGSET_BITS_PER_WORD.
9550 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
9551 * sysdeps/x86/__longjmp_cancel.S: New file.
9552 * sysdeps/x86/longjmp.c: Likewise.
9553 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
9554
9555 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9556
9557 * NEWS: Add ustat.h deprecation entry.
9558 * bits/ustat.h: Remove file.
9559 * misc/sys/ustat.h: Likewise.
9560 * misc/ustat.h: Likewise.
9561 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
9562 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
9563 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
9564 compatibility mode.
9565 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
9566 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
9567 generic Linux implementation.
9568
9569 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9570
9571 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
9572 * math/w_expl_compat.c: Likewise.
9573 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
9574
9575 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
9576
9577 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
9578
9579 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9580
9581 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
9582 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
9583 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
9584 Remove.
9585 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
9586 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
9587 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
9588 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
9589 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
9590 and SYSCALL_LL64.
9591
9592 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9593
9594 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
9595
9596 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
9597 * math/w_asin_template.c: Likewise.
9598 * math/w_atanh_template.c: Likewise.
9599
9600 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9601
9602 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
9603 to powerpc/powerpc64/be for big-endian.
9604 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
9605 little-endian.
9606
9607 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
9608 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
9609 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
9610 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
9611 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
9612 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
9613 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
9614 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
9615 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
9616 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
9617 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
9618 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
9619 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
9620 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
9621 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
9622 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
9623 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
9624 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
9625 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
9626 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
9627 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
9628 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
9629 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
9630 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
9631 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
9632 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
9633 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
9634 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
9635 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
9636 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
9637 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
9638 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
9639
9640 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
9641 adjusted to imply powerpc64 and older processors on powerpc64/be.
9642 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
9643 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
9644 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
9645 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
9646 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
9647 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
9648 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
9649 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
9650 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
9651 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
9652 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
9653 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
9654 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
9655 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
9656 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
9657 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
9658 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
9659 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
9660 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
9661 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
9662 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
9663 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
9664 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
9665 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
9666 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
9667 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
9668 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
9669 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
9670 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
9671 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
9672 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
9673
9674 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
9675 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
9676 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
9677 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
9678
9679 * sysdeps/powerpc/powerpc64/be/Implies: New file.
9680 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
9681 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
9682 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
9683
9684 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
9685 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
9686 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
9687 * sysdeps/powerpc/powerpc64le/configure: Likewise.
9688 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
9689 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
9690 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
9691 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
9692 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
9693 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
9694 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
9695
9696 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
9697 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
9698 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
9699 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
9700 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
9701 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
9702 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
9703 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
9704 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
9705 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
9706 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
9707
9708 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
9709 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
9710 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
9711 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
9712 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
9713 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
9714 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
9715 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
9716 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
9717 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
9718 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
9719 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
9720
9721 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
9722 and adjusted to imply olders processors.
9723 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
9724 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
9725 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
9726 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
9727 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
9728 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
9729 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
9730 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
9731 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
9732 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
9733 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
9734
9735 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
9736 powerpc64/le.
9737 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
9738 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
9739
9740 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
9741 powerpc64le.
9742 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
9743 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
9744
9745 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
9746 powerpc64/be.
9747 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
9748 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
9749 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
9750
9751 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
9752 powerpc64 and adjusted.
9753 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
9754 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
9755 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
9756 Likewise.
9757
9758 2018-04-27 Joseph Myers <joseph@codesourcery.com>
9759
9760 * sysdeps/tile: Remove.
9761 * sysdeps/unix/sysv/linux/tile: Likewise.
9762 * README (tilegx-*-linux-gnu): Remove from list of supported
9763 configurations.
9764 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
9765 contribution of support for generic Linux kernel syscall
9766 interface.
9767 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
9768 tilegx configurations.
9769 (Config.install_linux_headers): Do not handle tile.
9770 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
9771 in comment.
9772 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
9773 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
9774 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
9775 conditional undefine and redefine.
9776 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
9777 in comment.
9778 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
9779 conditional undefine and redefine.
9780
9781 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
9782
9783 * signal/tst-sigaction.c: New file to test BZ #23069.
9784 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
9785
9786 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9787
9788 [BZ #22766]
9789 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
9790 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
9791 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
9792 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
9793
9794 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9795
9796 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
9797 _DIRENT_MATCHES_DIRENT64 is not defined.
9798 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
9799 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
9800 is defined.
9801 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
9802 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
9803
9804 2018-04-25 Joseph Myers <joseph@codesourcery.com>
9805
9806 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
9807 version to GCC 8 branch.
9808
9809 2018-04-24 Joseph Myers <joseph@codesourcery.com>
9810
9811 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
9812 (check_no_hidden): Use type of original function when declaring
9813 alias.
9814
9815 * sysdeps/unix/sysv/linux/sys/ptrace.h
9816 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
9817 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
9818 (struct __ptrace_seccomp_metadata): New type.
9819 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
9820 (PTRACE_SECCOMP_GET_METADATA): Likewise.
9821 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
9822 (PTRACE_SECCOMP_GET_METADATA): Likewise.
9823 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
9824 (PTRACE_SECCOMP_GET_METADATA): Likewise.
9825 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
9826 (PTRACE_SECCOMP_GET_METADATA): Likewise.
9827 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
9828 (PTRACE_SECCOMP_GET_METADATA): Likewise.
9829 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
9830 (PTRACE_SECCOMP_GET_METADATA): Likewise.
9831 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
9832 (PTRACE_SECCOMP_GET_METADATA): Likewise.
9833 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
9834 (PTRACE_SECCOMP_GET_METADATA): Likewise.
9835
9836 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9837
9838 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
9839 defined.
9840 * dirent/versionsort.c (versionsort): Likewise.
9841 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
9842 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
9843 * dirent/versionsort64.c (versionsort64): Likewise.
9844 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
9845 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
9846 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
9847 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
9848 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
9849 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
9850 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
9851 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
9852 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
9853 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
9854 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
9855 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
9856 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
9857 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
9858
9859 2018-04-23 Joseph Myers <joseph@codesourcery.com>
9860
9861 * elf/elf.h (NT_PPC_PKEY): New macro.
9862
9863 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
9864
9865 [BZ #23094]
9866 * localedata/locales/hr_HR: fix thousands_sep and
9867 mon_thousands_sep
9868
9869 2018-04-20 Joseph Myers <joseph@codesourcery.com>
9870
9871 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
9872 (XTABS): Define to TAB3.
9873
9874 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9875
9876 * sysdeps/hppa/fpu/libm-test-ulps: Update.
9877
9878 * dirent/scandir-tail-common.c: New file.
9879 * dirent/scandir-tail.c: Use scandir-tail-common.c.
9880 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
9881 * dirent/scandir.c: Use scandir-tail-common.c.
9882 * dirent/scandirat.c: Likewise.
9883 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
9884 * dirent/scandir64.c (scandir64): Always build and alias to scandir
9885 if _DIRENT_MATCHES_DIRENT64 is defined.
9886 * dirent/scandirat64.c (scandirat64): Likewise.
9887 * include/dirent.h (__scandir_tail): Only define iff
9888 _DIRENT_MATCHES_DIRENT64 is not defined.
9889 (__scandir64_tail): Define regardless.
9890 (__scandirat, scandirat64): Remove libc_hidden_proto.
9891 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
9892 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
9893 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
9894 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
9895 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
9896 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
9897 * sysdeps/unix/sysv/linux/scandir64.c: New file.
9898
9899 2018-04-20 Joseph Myers <joseph@codesourcery.com>
9900
9901 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
9902 New macro.
9903 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
9904 Increase to 24.
9905 (_dl_aarch64_cap_flags): Add asimdfhm.
9906
9907 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
9908
9909 * sysdeps/nios2/libm-test-ulps: Update.
9910
9911 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9912
9913 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
9914 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
9915
9916 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
9917 requirements.
9918 (_DIRENT_MATCHES_DIRENT64): Undef
9919 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
9920 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
9921 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
9922 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
9923 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
9924 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
9925 use getdents64 syscalls as base.
9926 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
9927 symbol if required.
9928 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
9929 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
9930 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
9931 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
9932 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
9933 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
9934 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
9935 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
9936 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
9937 (__get_clockfreq_via_proc_openprom): Use __getdents64.
9938 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
9939
9940 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
9941
9942 * scripts/test_printers_common.py (init_test): Disable lock elision.
9943
9944 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
9945
9946 * math/test-tgmath.c (count_double, count_float,
9947 count_ldouble, count_cdouble, count_cfloat,
9948 count_cldouble): Use volatile int.
9949
9950 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
9951
9952 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
9953 (conformtest-xfail-conds): Add i386-gnu.
9954 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
9955 i386-gnu.
9956 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
9957 ipc_perm.cuid, ipc_perm.cgid): Likewise.
9958 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
9959 msqid_ds.msg_lrpid): Likewise.
9960 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
9961 Likewise.
9962 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
9963 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
9964 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
9965 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
9966 unsigned int.
9967 (struct statvfs64): Likewise.
9968 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
9969 Likewise.
9970 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
9971 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
9972 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
9973 instead of wait_queue.
9974 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
9975 instead of vm_area_struct.
9976 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
9977 struct sched_param definition to it.
9978 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
9979 * bits/types/struct_sched_param.h: New file.
9980 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
9981 <bits/types/struct_sched_param.h> instead of <sched.h>.
9982 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
9983 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
9984 generic version but include <bits/pthreadtypes.h> to make struct
9985 sigevent's sigev_notify_attributes field a pthread_attr_t*.
9986 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
9987 non-compliant.
9988 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
9989 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
9990 [__USE_XOPEN] (OFDEL): New macro.
9991 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
9992 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
9993 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
9994 prototypes.
9995 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
9996 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
9997 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
9998 non-compliant.
9999 * sysdeps/i386/sys/ucontext.h: Likewise.
10000 * sysdeps/m68k/sys/ucontext.h: Likewise.
10001 * sysdeps/mips/sys/ucontext.h: Likewise.
10002 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
10003 * sysdeps/mach/hurd/i386/Makefile
10004 (test-xfail-POSIX/fcntl.h/conform): Add.
10005 (test-xfail-POSIX/signal.h/conform): Add.
10006 (test-xfail-POSIX/semaphore.h/conform): Add.
10007 (test-xfail-POSIX/regex.h/conform): Add.
10008 (test-xfail-POSIX/aio.h/conform): Add.
10009 (test-xfail-POSIX/mqueue.h/conform): Add.
10010 (test-xfail-POSIX/sys/types.h/conform): Add.
10011 (test-xfail-UNIX98/fcntl.h/conform): Add.
10012 (test-xfail-UNIX98/netdb.h/conform): Add.
10013 (test-xfail-UNIX98/signal.h/conform): Add.
10014 (test-xfail-UNIX98/semaphore.h/conform): Add.
10015 (test-xfail-UNIX98/regex.h/conform): Add.
10016 (test-xfail-UNIX98/aio.h/conform): Add.
10017 (test-xfail-UNIX98/ftw.h/conform): Add.
10018 (test-xfail-UNIX98/mqueue.h/conform): Add.
10019 (test-xfail-UNIX98/netinet/in.h/conform): Add.
10020 (test-xfail-UNIX98/sys/wait.h/conform): Add.
10021 (test-xfail-UNIX98/sys/sem.h/conform): Add.
10022 (test-xfail-UNIX98/sys/uio.h/conform): Add.
10023 (test-xfail-UNIX98/sys/socket.h/conform): Add.
10024 (test-xfail-UNIX98/sys/types.h/conform): Add.
10025 (test-xfail-UNIX98/stdlib.h/conform): Add.
10026 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
10027 (test-xfail-POSIX2008/fcntl.h/conform): Add.
10028 (test-xfail-POSIX2008/netdb.h/conform): Add.
10029 (test-xfail-POSIX2008/signal.h/conform): Add.
10030 (test-xfail-POSIX2008/semaphore.h/conform): Add.
10031 (test-xfail-POSIX2008/regex.h/conform): Add.
10032 (test-xfail-POSIX2008/aio.h/conform): Add.
10033 (test-xfail-POSIX2008/mqueue.h/conform): Add.
10034 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
10035 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
10036 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
10037 (test-xfail-POSIX2008/sys/types.h/conform): Add.
10038 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
10039 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
10040 (test-xfail-XOPEN2K/netdb.h/conform): Add.
10041 (test-xfail-XOPEN2K/signal.h/conform): Add.
10042 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
10043 (test-xfail-XOPEN2K/regex.h/conform): Add.
10044 (test-xfail-XOPEN2K/aio.h/conform): Add.
10045 (test-xfail-XOPEN2K/ftw.h/conform): Add.
10046 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
10047 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
10048 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
10049 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
10050 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
10051 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
10052 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
10053 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
10054 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
10055 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
10056 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
10057 (test-xfail-XOPEN2K8/signal.h/conform): Add.
10058 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
10059 (test-xfail-XOPEN2K8/regex.h/conform): Add.
10060 (test-xfail-XOPEN2K8/aio.h/conform): Add.
10061 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
10062 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
10063 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
10064 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
10065 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
10066 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
10067 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
10068 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
10069 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
10070 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
10071 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
10072 i386-gnu.
10073 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
10074 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
10075
10076 2018-04-18 Joseph Myers <joseph@codesourcery.com>
10077
10078 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
10079 --enable-obsolete for powerpc-linux-gnuspe.
10080
10081 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
10082
10083 * conform/data/sys/un.h-data: Allow sun_ prefix.
10084 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
10085 prototypes.
10086 * sysdeps/mach/include/mach.h: Likewise.
10087 * sysdeps/mach/include/mach/mig_support.h: Likewise.
10088 * sysdeps/mach/include/mach_error.h: Likewise.
10089
10090 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10091
10092 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
10093 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
10094 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
10095 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
10096
10097 2018-04-16 Andreas Schwab <schwab@suse.de>
10098
10099 [BZ #19527]
10100 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
10101
10102 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
10103
10104 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
10105 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
10106
10107 2018-04-12 DJ Delorie <dj@redhat.com>
10108
10109 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
10110 version to 4.16.
10111
10112 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
10113
10114 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
10115 (struct kernel_sigaction): Use the same definition on 31bit as is used
10116 on 64bit.
10117
10118 2018-04-09 Florian Weimer <fweimer@redhat.com>
10119
10120 [BZ #23037]
10121 * resolv/res_send.c (send_dg): Use designated initializers instead
10122 of assignment to zero-initialize other fields of struct mmsghdr.
10123
10124 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10125
10126 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
10127 __READDIR_ALIAS): Undefine after usage.
10128 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
10129 __READDIR_R_ALIAS): Likewise.
10130 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
10131 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
10132 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
10133 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
10134 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
10135 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
10136 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
10137 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
10138 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
10139 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
10140 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
10141 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
10142 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
10143 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
10144 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
10145 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
10146 * sysdeps/unix/sysv/linux/readdir.c: New file.
10147 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
10148 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
10149 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
10150
10151 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
10152
10153 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
10154
10155 * manual/charset.texi (Converting a Character): Fix typo.
10156
10157 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10158
10159 * sysdeps/sparc/fpu/libm-test-ulps: Update.
10160
10161 * sysdeps/arm/libm-test-ulps: Update.
10162
10163 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
10164 as base implementation.
10165 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
10166 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
10167 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
10168 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
10169 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
10170 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
10171 remove unrequired definitions and update comments.
10172 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
10173 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
10174 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
10175 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
10176 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
10177 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
10178 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
10179 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
10180 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
10181 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
10182 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
10183 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
10184 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
10185 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
10186 and RESET_SA_RESTORER hooks.
10187
10188 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
10189
10190 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
10191
10192 2018-04-05 Florian Weimer <fweimer@redhat.com>
10193
10194 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
10195 integer overflow, memory leak on error, and indeterminate errno
10196 value. Add a null wide character to terminate the result string.
10197 * manual/charset.texi (Converting a Character): Mention embedded
10198 null bytes in the mbrtowc input string. Explain what happens in
10199 the -2 result case. Do not claim that mbrtowc is simple or
10200 obvious to use. Adjust the description of the code example. Use
10201 @code, not @var, for concrete variables.
10202
10203 2018-04-05 Florian Weimer <fweimer@redhat.com>
10204
10205 * manual/examples/mbstouwcs.c: New file.
10206 * manual/charset.texi (Converting a Character): Include it.
10207
10208 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
10209
10210 * include/dirent.h (dirfd): Add hidden proto.
10211 * dirent/dirfd.c (dirfd): Add hidden def.
10212 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
10213 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
10214
10215 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10216
10217 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
10218 sin, cos and sincos to 1 ULP.
10219
10220 2018-04-04 Maciej W. Rozycki <macro@mips.com>
10221
10222 [BZ #19818]
10223 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
10224 symbols.
10225 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
10226 * elf/tst-absolute-sym.c: New file.
10227 * elf/tst-absolute-sym-lib.c: New file.
10228 * elf/tst-absolute-sym-lib.lds: New file.
10229 * elf/Makefile (tests): Add `tst-absolute-sym'.
10230 (modules-names): Add `tst-absolute-sym-lib'.
10231 (LDLIBS-tst-absolute-sym-lib.so): New variable.
10232 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
10233 ($(objpfx)tst-absolute-sym): New dependency.
10234
10235 [BZ #19818]
10236 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
10237 parameter.
10238 (SYMBOL_ADDRESS): New macro.
10239 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
10240 SYMBOL_ADDRESS for symbol address calculation.
10241 * elf/dl-runtime.c (_dl_fixup): Likewise.
10242 (_dl_profile_fixup): Likewise.
10243 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
10244 * elf/rtld.c (dl_main): Likewise.
10245 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
10246 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
10247 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
10248 (elf_machine_rela): Likewise.
10249 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
10250 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
10251 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
10252 (elf_machine_rela): Likewise.
10253 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
10254 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
10255 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
10256 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
10257 Likewise.
10258 (elf_machine_reloc): Likewise.
10259 (elf_machine_got_rel): Likewise.
10260 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
10261 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
10262 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
10263 Likewise.
10264 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
10265 Likewise.
10266 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
10267 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
10268 Likewise.
10269 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
10270 Likewise.
10271 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
10272 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
10273 Likewise.
10274 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
10275 Likewise.
10276 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
10277 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
10278
10279 2018-04-04 Zack Weinberg <zackw@panix.com>
10280
10281 * sysdeps/generic/internal-signals.h: Include signal.h,
10282 sigsetops.h, and stdbool.h.
10283 (__libc_signal_block_all): Actually block all signals.
10284 (__libc_signal_block_app): Likewise.
10285 (__libc_signal_restore_set): Actually restore the signal mask.
10286
10287 2018-04-04 Florian Weimer <fweimer@redhat.com>
10288
10289 inet: Actually build and run tst-deadline.
10290 * inet/Makefile (tests-internal): Add tst-deadline and do not
10291 overwrite the variable.
10292 (tests-static-internal): Remove variable.
10293
10294 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
10295
10296 [BZ #22947]
10297 * bits/uio-ext.h (RWF_APPEND): New.
10298 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
10299 * manual/llio.texi: Document RWF_APPEND.
10300 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
10301 (RWF_SUPPORTED): Add RWF_APPEND.
10302
10303 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10304
10305 [BZ #22391]
10306 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
10307 check for internal nptl signals.
10308 * nptl/sigaction.c (__sigaction): Likewise.
10309 * signal/sigaddset.c (sigaddset): Likewise.
10310 * signal/sigdelset.c (sigdelset): Likewise.
10311 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
10312 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
10313 value.
10314 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
10315 to filter out internal nptl signals.
10316 * signal/tst-sigset.c (do_test): Check ech signal indidually and
10317 also check realtime signals using standard macros.
10318 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
10319 __is_internal_signal, __libc_signal_block_all,
10320 __libc_signal_block_app, __libc_signal_restore_set): New functions.
10321 * sysdeps/nptl/sigfillset.c: Remove file.
10322 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
10323 Change return to bool.
10324 (__clear_internal_signals): Remove SIGTIMER clean since it is
10325 equal to SIGCANEL on Linux.
10326 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
10327 signal set was constructed using standard functions.
10328
10329 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
10330
10331 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
10332 ifname is too long.
10333 * hurd/hurdsig.c (interrupted_reply_port_location): Use
10334 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
10335 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
10336 hidden def.
10337 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
10338 * signal/sigaddset.c: Include <sigsetopts.h>.
10339 * signal/sigdelset.c: Likewise.
10340
10341 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
10342
10343 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
10344 (__cos): Likewise.
10345 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
10346 logic as sin and cos.
10347
10348 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
10349
10350 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
10351 inputs. Return correct sign.
10352 (do_sincos): Remove small input check before do_sin, let do_sin set
10353 the sign.
10354 (__sin): Likewise.
10355 (__cos): Likewise.
10356
10357 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
10358
10359 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
10360 (do_cos_slow): Likewise.
10361 (do_sin_slow): Likewise.
10362 (reduce_and_compute): Likewise.
10363 (slow): Likewise.
10364 (slow1): Likewise.
10365 (slow2): Likewise.
10366 (sloww): Likewise.
10367 (sloww1): Likewise.
10368 (sloww2): Likewise.
10369 (bslow): Likewise.
10370 (bslow1): Likewise.
10371 (bslow2): Likewise.
10372 (cslow2): Likewise.
10373
10374 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
10375
10376 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
10377 (do_cos): Remove corp parameter and calculations.
10378 (do_sin): Likewise.
10379 (do_sincos): Remove cor variable.
10380 (__sin): Use do_sincos for huge inputs.
10381 (__cos): Likewise.
10382 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
10383 (reduce_and_compute_sincos): Remove unused function.
10384
10385 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
10386
10387 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
10388 reduce_sincos, improve accuracy to 136 bits.
10389 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
10390 (__sin): Use improved reduction and simplified do_sincos calculation.
10391 (__cos): Likewise.
10392 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
10393
10394 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
10395
10396 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
10397 (do_sincos_2): Likewise.
10398 (__sin): Remove middle range reduction case.
10399 (__cos): Likewise.
10400 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
10401 reduction case.
10402
10403 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
10404
10405 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
10406 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
10407 inputs.
10408 (__cos): Likewise.
10409 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
10410
10411 2018-04-03 Joseph Myers <joseph@codesourcery.com>
10412
10413 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
10414 version to 4.16
10415
10416 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10417
10418 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
10419 Remove definitions.
10420 (opendir_oflags): Use O_DIRECTORY regardless.
10421 (__opendir, __opendirat): Remove need_isdir_precheck usage.
10422 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
10423
10424 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
10425
10426 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
10427 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
10428 macros.
10429 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
10430 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
10431 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
10432 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
10433 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
10434 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
10435
10436 * htl/Makefile: Bump licence to LGPL 2.1+.
10437 * htl/alloca_cutoff.c: Likewise.
10438 * htl/cthreads-compat.c: Likewise.
10439 * htl/lockfile.c: Likewise.
10440 * htl/pt-alloc.c: Likewise.
10441 * htl/pt-cancel.c: Likewise.
10442 * htl/pt-cleanup.c: Likewise.
10443 * htl/pt-create.c: Likewise.
10444 * htl/pt-dealloc.c: Likewise.
10445 * htl/pt-detach.c: Likewise.
10446 * htl/pt-exit.c: Likewise.
10447 * htl/pt-getattr.c: Likewise.
10448 * htl/pt-initialize.c: Likewise.
10449 * htl/pt-internal.h: Likewise.
10450 * htl/pt-join.c: Likewise.
10451 * htl/pt-self.c: Likewise.
10452 * htl/pt-setcancelstate.c: Likewise.
10453 * htl/pt-setcanceltype.c: Likewise.
10454 * htl/pt-sigmask.c: Likewise.
10455 * htl/pt-spin-inlines.c: Likewise.
10456 * htl/pt-testcancel.c: Likewise.
10457 * htl/pt-yield.c: Likewise.
10458 * htl/tests/test-1.c: Likewise.
10459 * htl/tests/test-10.c: Likewise.
10460 * htl/tests/test-11.c: Likewise.
10461 * htl/tests/test-12.c: Likewise.
10462 * htl/tests/test-13.c: Likewise.
10463 * htl/tests/test-14.c: Likewise.
10464 * htl/tests/test-15.c: Likewise.
10465 * htl/tests/test-16.c: Likewise.
10466 * htl/tests/test-17.c: Likewise.
10467 * htl/tests/test-2.c: Likewise.
10468 * htl/tests/test-3.c: Likewise.
10469 * htl/tests/test-4.c: Likewise.
10470 * htl/tests/test-5.c: Likewise.
10471 * htl/tests/test-6.c: Likewise.
10472 * htl/tests/test-7.c: Likewise.
10473 * htl/tests/test-8.c: Likewise.
10474 * htl/tests/test-9.c: Likewise.
10475 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
10476 * sysdeps/htl/bits/cancelation.h: Likewise.
10477 * sysdeps/htl/bits/pthread-np.h: Likewise.
10478 * sysdeps/htl/bits/pthread.h: Likewise.
10479 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
10480 * sysdeps/htl/bits/semaphore.h: Likewise.
10481 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
10482 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
10483 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
10484 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
10485 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
10486 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
10487 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
10488 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
10489 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
10490 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
10491 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
10492 * sysdeps/htl/old_pt-atfork.c: Likewise.
10493 * sysdeps/htl/pt-atfork.c: Likewise.
10494 * sysdeps/htl/pt-attr-destroy.c: Likewise.
10495 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
10496 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
10497 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
10498 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
10499 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
10500 * sysdeps/htl/pt-attr-getscope.c: Likewise.
10501 * sysdeps/htl/pt-attr-getstack.c: Likewise.
10502 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
10503 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
10504 * sysdeps/htl/pt-attr-init.c: Likewise.
10505 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
10506 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
10507 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
10508 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
10509 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
10510 * sysdeps/htl/pt-attr-setscope.c: Likewise.
10511 * sysdeps/htl/pt-attr-setstack.c: Likewise.
10512 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
10513 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
10514 * sysdeps/htl/pt-attr.c: Likewise.
10515 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
10516 * sysdeps/htl/pt-barrier-init.c: Likewise.
10517 * sysdeps/htl/pt-barrier-wait.c: Likewise.
10518 * sysdeps/htl/pt-barrier.c: Likewise.
10519 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
10520 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
10521 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
10522 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
10523 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
10524 * sysdeps/htl/pt-cond-destroy.c: Likewise.
10525 * sysdeps/htl/pt-cond-init.c: Likewise.
10526 * sysdeps/htl/pt-cond-signal.c: Likewise.
10527 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
10528 * sysdeps/htl/pt-cond-wait.c: Likewise.
10529 * sysdeps/htl/pt-cond.c: Likewise.
10530 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
10531 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
10532 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
10533 * sysdeps/htl/pt-condattr-init.c: Likewise.
10534 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
10535 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
10536 * sysdeps/htl/pt-destroy-specific.c: Likewise.
10537 * sysdeps/htl/pt-equal.c: Likewise.
10538 * sysdeps/htl/pt-getconcurrency.c: Likewise.
10539 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
10540 * sysdeps/htl/pt-getschedparam.c: Likewise.
10541 * sysdeps/htl/pt-getspecific.c: Likewise.
10542 * sysdeps/htl/pt-init-specific.c: Likewise.
10543 * sysdeps/htl/pt-key-create.c: Likewise.
10544 * sysdeps/htl/pt-key-delete.c: Likewise.
10545 * sysdeps/htl/pt-key.h: Likewise.
10546 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
10547 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
10548 * sysdeps/htl/pt-mutex-init.c: Likewise.
10549 * sysdeps/htl/pt-mutex-lock.c: Likewise.
10550 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
10551 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
10552 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
10553 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
10554 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
10555 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
10556 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
10557 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
10558 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
10559 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
10560 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
10561 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
10562 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
10563 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
10564 * sysdeps/htl/pt-mutexattr.c: Likewise.
10565 * sysdeps/htl/pt-once.c: Likewise.
10566 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
10567 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
10568 * sysdeps/htl/pt-rwlock-init.c: Likewise.
10569 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
10570 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
10571 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
10572 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
10573 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
10574 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
10575 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
10576 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
10577 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
10578 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
10579 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
10580 * sysdeps/htl/pt-setconcurrency.c: Likewise.
10581 * sysdeps/htl/pt-setschedparam.c: Likewise.
10582 * sysdeps/htl/pt-setschedprio.c: Likewise.
10583 * sysdeps/htl/pt-setspecific.c: Likewise.
10584 * sysdeps/htl/pt-spin.c: Likewise.
10585 * sysdeps/htl/pt-startup.c: Likewise.
10586 * sysdeps/htl/pthread.h: Likewise.
10587 * sysdeps/htl/sem-close.c: Likewise.
10588 * sysdeps/htl/sem-destroy.c: Likewise.
10589 * sysdeps/htl/sem-getvalue.c: Likewise.
10590 * sysdeps/htl/sem-init.c: Likewise.
10591 * sysdeps/htl/sem-open.c: Likewise.
10592 * sysdeps/htl/sem-post.c: Likewise.
10593 * sysdeps/htl/sem-timedwait.c: Likewise.
10594 * sysdeps/htl/sem-trywait.c: Likewise.
10595 * sysdeps/htl/sem-unlink.c: Likewise.
10596 * sysdeps/htl/sem-wait.c: Likewise.
10597 * sysdeps/hurd/htl/pt-kill.c: Likewise.
10598 * sysdeps/i386/htl/pt-machdep.h: Likewise.
10599 * sysdeps/mach/htl/pt-block.c: Likewise.
10600 * sysdeps/mach/htl/pt-spin.c: Likewise.
10601 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
10602 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
10603 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
10604 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
10605 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
10606 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
10607 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
10608 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
10609 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
10610 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
10611 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
10612 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
10613 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
10614 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
10615 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
10616 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
10617 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
10618 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
10619 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
10620 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
10621 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
10622 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
10623 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
10624 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
10625 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
10626 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
10627 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
10628 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
10629 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
10630 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
10631 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
10632 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
10633 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
10634 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
10635 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
10636 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
10637 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
10638 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
10639 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
10640 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
10641 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
10642 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
10643 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
10644
10645 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
10646 * README: Remove the mention of out-of-tree patches needed for
10647 GNU/Hurd.
10648
10649 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
10650 (UTIME_NOW, UTIME_OMIT): Define macros.
10651
10652 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
10653 instead of pthread_detach.
10654 (__cthread_fork): Call __pthread_create instead of pthread_create.
10655 (__cthread_keycreate): Call __pthread_key_create instead of
10656 pthread_key_create.
10657 (__cthread_getspecific): Call __pthread_getspecific instead of
10658 pthread_getspecific.
10659 (__cthread_setspecific): Call __pthread_setspecific instead of
10660 pthread_setspecific.
10661 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
10662 __pthread_mutex_unlock instead of pthread_mutex_lock and
10663 pthread_mutex_unlock.
10664 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
10665 ___pthread_get_cleanup_stack.
10666 (__pthread_get_cleanup_stack): New strong alias.
10667 * htl/pt-create.c: Include <pthreadP.h>.
10668 (entry_point): Call __pthread_exit instead of pthread_exit.
10669 (pthread_create): Rename to __pthread_create.
10670 (pthread_create): New strong alias.
10671 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
10672 (pthread_detach): New strong alias.
10673 (__pthread_detach): Call __pthread_cond_broadcast instead of
10674 pthread_cond_broadcast.
10675 * htl/pt-exit.c: Include <pthreadP.h>.
10676 (__pthread_exit): Call __pthread_setcancelstate and
10677 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
10678 __pthread_get_cleanup_stack.
10679 * htl/pt-testcancel.c: Include <pthreadP.h>.
10680 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
10681 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
10682 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
10683 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
10684 pthread_attr_getstacksize.
10685 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
10686 Rename to __pthread_attr_getstackaddr.
10687 (pthread_attr_getstackaddr): New strong alias.
10688 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
10689 Rename to __pthread_attr_getstacksize.
10690 (pthread_attr_getstacksize): New strong alias.
10691 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
10692 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
10693 (pthread_attr_setstack): New strong alias.
10694 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
10695 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
10696 pthread_attr_getstacksize, pthread_attr_setstacksize and
10697 pthread_attr_setstackaddr.
10698 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
10699 Rename to __pthread_attr_setstackaddr.
10700 (pthread_attr_setstackaddr): New strong alias.
10701 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
10702 Rename to __pthread_attr_setstacksize.
10703 (pthread_attr_setstacksize): New strong alias.
10704 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
10705 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
10706 pthread_exit.
10707 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
10708 (__pthread_key_create): New hidden def.
10709 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
10710 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
10711 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
10712 __pthread_exit, __pthread_key_create, __pthread_getspecific,
10713 __pthread_setspecific, __pthread_setcancelstate,
10714 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
10715 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
10716 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
10717 declarations.
10718 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
10719 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
10720 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
10721 (pthread_attr_setstackaddr): New strong alias.
10722 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
10723 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
10724 (pthread_attr_setstacksize): New strong alias.
10725 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
10726 (call_exit): Call __pthread_exit instead of pthread_exit.
10727 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
10728 (_pthread_mutex_init): New hidden definition.
10729 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
10730 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
10731 instead of pthread_attr_init and pthread_attr_setstack.
10732
10733 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
10734 __vm_deallocate instead of vm_allocate and vm_deallocate.
10735 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
10736 setenv.
10737 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
10738 of geteuid.
10739 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
10740 strdup.
10741 * hurd/siginfo.c: Include <libioP.h>.
10742 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
10743 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
10744 munmap.
10745 * mach/devstream.c: Include <libioP.h>.
10746 (dealloc_ref): Call __mach_port_deallocate instead of
10747 mach_port_deallocate.
10748 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
10749 Call __mach_port_deallocate instead of mach_port_deallocate.
10750 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
10751 pathconf.
10752 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
10753 munmap.
10754 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
10755 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
10756 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
10757 of munmap.
10758 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
10759 of close.
10760 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
10761 instead of sysconf.
10762 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
10763 __clock_gettime instead of clock_gettime.
10764 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
10765 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
10766 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
10767 * sysdeps/unix/bsd/stty.c (stty): Likewise.
10768 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
10769 tcgetattr.
10770 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
10771 __clock_gettime and __nanosleep instead of clock_gettime and
10772 nanosleep.
10773 * hurd/catch-signal.c (hurd_catch_signal): Rename to
10774 __hurd_catch_signal.
10775 (hurd_catch_signal): New strong alias.
10776 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
10777 __hurd_catch_signal instead of hurd_catch_signal.
10778 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
10779 * hurd/hurdexec.c (_hurd_init): Add hidden def.
10780 * hurd/hurdinit.c (_hurd_init): Add hidden def.
10781 * hurd/hurdsig.c: Include <mach/mig_support.h>.
10782 (_hurd_thread_sigstate): Add hidden def.
10783 (_hurd_internal_post_signal): Use __mutex_unlock instead of
10784 mutex_unlock.
10785 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
10786 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
10787 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
10788 __hurd_file_name_path_lookup.
10789 (hurd_file_name_path_lookup): New strong alias.
10790 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
10791 hurd_file_name_path_lookup.
10792 * mach/errstring.c (mach_error_type): Add hidden def.
10793 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
10794 * mach/mutex-init.c (__mutex_init): Add hidden def.
10795 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
10796 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
10797 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
10798 * sysdeps/mach/hurd/getcwd.c
10799 (_hurd_canonicalize_directory_name_internal): Rename to
10800 __hurd_canonicalize_directory_name_internal.
10801 (_hurd_canonicalize_directory_name_internal): New strong alias.
10802 (__canonicalize_directory_name_internal, __getcwd): Call
10803 __hurd_canonicalize_directory_name_internal instead of
10804 _hurd_canonicalize_directory_name_internal.
10805 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
10806 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
10807 hidden defs.
10808 * sysdeps/hurd/include/hurd.h: New file.
10809 * sysdeps/hurd/include/hurd/fd.h: New file.
10810 * sysdeps/hurd/include/hurd/signal.h: New file.
10811 * sysdeps/mach/include/lock-intern.h: New file.
10812 * sysdeps/mach/include/mach.h: New file.
10813 * sysdeps/mach/include/mach/mig_support.h: New file.
10814 * sysdeps/mach/include/mach_error.h: New file.
10815 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
10816 prototype.
10817 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
10818 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
10819 _HEADER_H_HIDDEN_DEF macro.
10820 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
10821 _hurd_fd_error_signal): Add hidden prototype.
10822 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
10823 hidden def.
10824 * libio/iolibio.h (_IO_puts): New hidden prototype.
10825 * libio/ioputs.c (_IO_puts): New hidden def.
10826 * sysdeps/mach/hurd/localplt.data: New file.
10827
10828 2018-04-02 Agustina Arzille <avarzille@riseup.net>
10829 Amos Jeffries <squid3@treenet.co.nz>
10830 David Michael <fedora.dm0@gmail.com>
10831 Marco Gerards <marco@gnu.org>
10832 Marcus Brinkmann <marcus@gnu.org>
10833 Neal H. Walfield <neal@gnu.org>
10834 Pino Toscano <toscano.pino@tiscali.it>
10835 Richard Braun <rbraun@sceen.net>
10836 Roland McGrath <roland@gnu.org>
10837 Samuel Thibault <samuel.thibault@ens-lyon.org>
10838 Thomas DiModica <ricinwich@yahoo.com>
10839 Thomas Schwinge <tschwinge@gnu.org>
10840
10841 * htl: New directory.
10842 * sysdeps/htl: New directory.
10843 * sysdeps/hurd/htl: New directory.
10844 * sysdeps/i386/htl: New directory.
10845 * sysdeps/mach/htl: New directory.
10846 * sysdeps/mach/hurd/htl: New directory.
10847 * sysdeps/mach/hurd/i386/htl: New directory.
10848 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
10849 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
10850 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
10851
10852 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
10853
10854 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
10855 signals in thread created for runing timers.
10856
10857 2018-04-01 Florian Weimer <fweimer@redhat.com>
10858
10859 * support/support_format_addrinfo.c (support_format_addrinfo):
10860 Include unknown error number in formatted result.
10861
10862 2018-03-29 Florian Weimer <fweimer@redhat.com>
10863
10864 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
10865 capture SIGBUS.
10866
10867 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10868
10869 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
10870 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
10871 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
10872 (__ASSUME_CLONE_BACKWARDS): Define.
10873
10874 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
10875
10876 [BZ #23024]
10877 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
10878 early when linux sentinel value is set.
10879
10880 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
10881
10882 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
10883
10884 2018-03-27 Andreas Schwab <schwab@suse.de>
10885
10886 [BZ #23005]
10887 * resolv/res_send.c (__res_context_send): Return ENOMEM if
10888 allocation of private copy of nsaddr_list fails.
10889
10890 2018-03-26 Joseph Myers <joseph@codesourcery.com>
10891
10892 [BZ #16552]
10893 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
10894 * sysdeps/unix/sysv/linux/umount.c: ... here.
10895 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
10896 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
10897 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
10898 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
10899 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
10900 * sysdeps/unix/sysv/linux/umount.S: Likewise.
10901 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
10902
10903 2018-03-26 Andreas Schwab <schwab@suse.de>
10904
10905 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
10906 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
10907 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
10908 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
10909 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
10910 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
10911 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
10912 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
10913 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
10914 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
10915 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
10916 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
10917 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
10918 (R_RISCV_NUM): Define.
10919
10920 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
10921
10922 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
10923 TLS declaration of errno.
10924 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
10925 __libc_setup_tls.
10926 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
10927 (ARCH_SETUP_TLS): Likewise.
10928 * sysdeps/mach/hurd/libc-start.h: New file copied from
10929 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
10930 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
10931 instead of __libc_setup_tls.
10932 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
10933 __libc_setup_tls before initializing libpthread and running _hurd_init
10934 which starts the signal thread.
10935 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
10936 Declare function.
10937 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
10938
10939 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
10940
10941 [BZ #22998]
10942 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
10943 after it is defined.
10944
10945 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
10946 Max Horn <max@quendi.de>
10947
10948 [BZ #22644]
10949 CVE-2017-18269
10950 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
10951 branch conditions.
10952 * string/test-memmove.c (do_test2): New testcase.
10953
10954 2018-03-22 Joseph Myers <joseph@codesourcery.com>
10955
10956 * sysdeps/generic/frame.h: Remove file.
10957 * sysdeps/arm/frame.h: Likewise.
10958 * sysdeps/hppa/frame.h: Likewise.
10959 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
10960 macro.
10961 (GET_FRAME): Likewise.
10962 (GET_STACK): Likewise.
10963 (CALL_SIGHANDLER): Likewise.
10964 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
10965 Likewise.
10966 (GET_FRAME): Likewise.
10967 (GET_STACK): Likewise.
10968 (CALL_SIGHANDLER): Likewise.
10969 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
10970 (SIGCONTEXT_EXTRA_ARGS): Likewise.
10971 (GET_FRAME): Likewise.
10972 (GET_STACK): Likewise.
10973 (CALL_SIGHANDLER): Likewise.
10974 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
10975 (SIGCONTEXT_EXTRA_ARGS): Likewise.
10976 (GET_FRAME): Likewise.
10977 (GET_STACK): Likewise.
10978 (ADVANCE_STACK_FRAME): Likewise.
10979 (CALL_SIGHANDLER): Likewise.
10980 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
10981 (SIGCONTEXT_EXTRA_ARGS): Likewise.
10982 (GET_FRAME): Likewise.
10983 (GET_STACK): Likewise.
10984 (CALL_SIGHANDLER): Likewise.
10985 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
10986 (SIGCONTEXT_EXTRA_ARGS): Likewise.
10987 (GET_FRAME): Likewise.
10988 (GET_STACK): Likewise.
10989 (CALL_SIGHANDLER): Likewise.
10990 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
10991 (SIGCONTEXT_EXTRA_ARGS): Likewise.
10992 (GET_FRAME): Likewise.
10993 (GET_STACK): Likewise.
10994 (CALL_SIGHANDLER): Likewise.
10995 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
10996 (SIGCONTEXT_EXTRA_ARGS): Likewise.
10997 (GET_FRAME): Likewise.
10998 (GET_STACK): Likewise.
10999 (CALL_SIGHANDLER): Likewise.
11000 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
11001 (SIGCONTEXT_EXTRA_ARGS): Likewise.
11002 (GET_FRAME): Likewise.
11003 (GET_STACK): Likewise.
11004 (CALL_SIGHANDLER): Likewise.
11005 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
11006 (SIGCONTEXT_EXTRA_ARGS): Likewise.
11007 (GET_FRAME): Likewise.
11008 (GET_STACK): Likewise.
11009 (CALL_SIGHANDLER): Likewise.
11010 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
11011 (SIGCONTEXT_EXTRA_ARGS): Likewise.
11012 (GET_FRAME): Likewise.
11013 (GET_STACK): Likewise.
11014 (CALL_SIGHANDLER): Likewise.
11015 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
11016 (SIGCONTEXT_EXTRA_ARGS): Likewise.
11017 (GET_FRAME): Likewise.
11018 (GET_STACK): Likewise.
11019 (CALL_SIGHANDLER): Likewise.
11020 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
11021 (SIGCONTEXT_EXTRA_ARGS): Likewise.
11022 (GET_FRAME): Likewise.
11023 (GET_STACK): Likewise.
11024 (CALL_SIGHANDLER): Likewise.
11025 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
11026 (SIGCONTEXT_EXTRA_ARGS): Likewise.
11027 (FIRST_FRAME_POINTER): Likewise.
11028 (ADVANCE_STACK_FRAME): Likewise.
11029 (GET_STACK): Likewise.
11030 (GET_FRAME): Likewise.
11031 (CALL_SIGHANDLER): Likewise.
11032 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
11033 (SIGCONTEXT_EXTRA_ARGS): Likewise.
11034 (ADVANCE_STACK_FRAME): Likewise.
11035 (GET_STACK): Likewise.
11036 (GET_FRAME): Likewise.
11037 (CALL_SIGHANDLER): Likewise.
11038 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
11039 (SIGCONTEXT_EXTRA_ARGS): Likewise.
11040 (GET_FRAME): Likewise.
11041 (GET_STACK): Likewise.
11042 (CALL_SIGHANDLER): Likewise.
11043 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
11044 (SIGCONTEXT_EXTRA_ARGS): Likewise.
11045 (GET_FRAME): Likewise.
11046 (GET_STACK): Likewise.
11047 (CALL_SIGHANDLER): Likewise.
11048
11049 2018-03-21 Joseph Myers <joseph@codesourcery.com>
11050
11051 * sysdeps/x86_64/backtrace.c: Move to ....
11052 * debug/backtrace.c: ... here.
11053 * sysdeps/aarch64/backtrace.c: Remove file.
11054 * sysdeps/alpha/backtrace.c: Likewise.
11055 * sysdeps/hppa/backtrace.c: Likewise.
11056 * sysdeps/ia64/backtrace.c: Likewise.
11057 * sysdeps/mips/backtrace.c: Likewise.
11058 * sysdeps/nios2/backtrace.c: Likewise.
11059 * sysdeps/riscv/backtrace.c: Likewise.
11060 * sysdeps/sh/backtrace.c: Likewise.
11061 * sysdeps/tile/backtrace.c: Likewise.
11062
11063 2018-03-20 Joseph Myers <joseph@codesourcery.com>
11064
11065 [BZ #22987]
11066 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
11067 function.
11068 (fdimf): Likewise.
11069 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
11070
11071 [BZ #17343]
11072 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
11073 possibly overflowing computations.
11074
11075 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
11076
11077 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
11078 values from Linux-specific section now that it is in the GNU section.
11079 * sysdeps/gnu/errlist.c: Regenerate.
11080
11081 2018-03-20 Joseph Myers <joseph@codesourcery.com>
11082
11083 * math/Makefile (libm-narrow-fns): Add sub.
11084 (libm-test-funcs-narrow): Likewise.
11085 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
11086 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
11087 * math/gen-auto-libm-tests.c (test_functions): Add sub.
11088 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
11089 (NARROW_SUB_ROUND_TO_ODD): Likewise.
11090 (NARROW_SUB_TRIVIAL): Likewise.
11091 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
11092 macro.
11093 (__dsubl): Likewise.
11094 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
11095 dsub.
11096 (CFLAGS-nldbl-dsub.c): New variable.
11097 (CFLAGS-nldbl-fsub.c): Likewise.
11098 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
11099 __nldbl_dsubl.
11100 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
11101 prototype.
11102 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
11103 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
11104 * math/auto-libm-test-in: Add tests of sub.
11105 * math/auto-libm-test-out-narrow-sub: New generated file.
11106 * math/libm-test-narrow-sub.inc: New file.
11107 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
11108 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
11109 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
11110 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
11111 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
11112 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
11113 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
11114 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
11115 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
11116 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
11117 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
11118 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
11119 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
11120 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
11121 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
11122 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
11123 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
11124 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
11125 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11126 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11127 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11128 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11129 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11130 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11131 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11132 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11133 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11134 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11135 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11136 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11137 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11138 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11139 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11140 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
11141 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11142 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11143 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11144 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11145 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11146 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11147 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11148 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11149 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
11150 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
11151 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11152 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11153
11154 2018-03-19 Joseph Myers <joseph@codesourcery.com>
11155
11156 [BZ #20079]
11157 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
11158
11159 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
11160
11161 * benchtests/bench-timing.h (attribute_hidden): Undefine.
11162
11163 2018-03-18 Richard Braun <rbraun@sceen.net>
11164
11165 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
11166 thread reference.
11167
11168 2018-03-18 Agustina Arzille <avarzille@riseup.net>
11169
11170 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
11171 (__libc_cleanup_fct): Define function.
11172 (__libc_cleanup_region_start, __libc_cleanup_region_end,
11173 __libc_cleanup_end): Rewrite implementation using
11174 __attribute__ ((__cleanup__)).
11175 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
11176 * hurd/Makefile (routines): Add hurdlock.
11177 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
11178 interface.
11179 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
11180 * hurd/hurdpid.c: Include <lowlevellock.h>
11181 (_S_msg_proc_newids): Use lll_wait to synchronize.
11182 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
11183 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
11184 * mach/Makefile (lock-headers): Remove machine-lock.h.
11185 * mach/lock-intern.h: Include <lowlevellock.h> instead of
11186 <machine-lock.h>.
11187 (__spin_lock_t): New type.
11188 (__SPIN_LOCK_INITIALIZER): New macro.
11189 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
11190 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
11191 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
11192 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
11193 (__mutex_init): Initialize with lll.
11194 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
11195 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
11196 needing lll.
11197 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
11198 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
11199 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
11200 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
11201 (__setpgid): Use lll for synchronization.
11202 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
11203 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
11204 instead of <cthreads.h>.
11205 (_IO_lock_inexpensive): New macro
11206 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
11207 (__libc_lock_self0): New declaration.
11208 (__libc_lock_owner_self): New macro.
11209 (__libc_key_t): Remove type.
11210 (_LIBC_LOCK_INITIALIZER): New macro.
11211 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
11212 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
11213 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
11214 __libc_lock_define_initialized_recursive,
11215 __rtld_lock_define_initialized_recursive,
11216 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
11217 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
11218 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
11219 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
11220 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
11221 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
11222 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
11223 New macros.
11224 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
11225 * hurd/hurdlock.c: New file.
11226 * hurd/hurdlock.h: New file.
11227 * mach/lowlevellock.h: New file
11228
11229 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
11230
11231 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
11232 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
11233 when opening a symlink with O_NOFOLLOW.
11234 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
11235 path when flags contains O_NOFOLLOW.
11236 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
11237 if flags contains O_DIRECTORY and the result is a directory.
11238 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
11239 oneself when the pointer given in D is nul (as set by ext2fs).
11240 * sysdeps/mach/hurd/mlockall.c: New file.
11241 * sysdeps/mach/hurd/munlockall.c: New file.
11242
11243 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
11244
11245 * hurd/hurdsig.c: Include <pthread.h>.
11246 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
11247 get the signal thread stack layout.
11248 * hurd/Makefile (headers): Remove threadvar.h.
11249 (inline-headers): Remove threadvar.h.
11250 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
11251 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
11252 __hurd_threadvar_max, __hurd_errno_location.
11253 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
11254 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
11255 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
11256 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
11257 unless TLS is not initialized yet, in which case we do not need a
11258 critical section yet anyway.
11259 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
11260 <machine-sp.h>.
11261 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
11262 declarations.
11263 (__hurd_threadvar_index): Remove enum.
11264 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
11265 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
11266 inlines.
11267 (__hurd_reply_port0): New variable declaration.
11268 (__hurd_local_reply_port): New macro.
11269 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
11270 (interrupted_reply_port_location): Add thread_t parameter. Use it
11271 with THREAD_TCB to access thread-local variables.
11272 (_hurdsig_abort_rpcs): Pass ss->thread to
11273 interrupted_reply_port_location.
11274 (_hurd_internal_post_signal): Likewise.
11275 (_hurdsig_init): Use presence of cthread_fork instead of
11276 __hurd_threadvar_stack_mask to start signal thread by hand.
11277 Remove signal thread threadvar initialization.
11278 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
11279 * hurd/sigunwind.c: Include <hurd/threadvar.h>
11280 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
11281 of threadvar.
11282 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
11283 __libc_lock_self0.
11284 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
11285 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
11286 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
11287 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
11288 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
11289 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
11290 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
11291 define variables.
11292 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
11293 <hurd/threadvar.h>.
11294 [IS_IN(rtld)] (rtld_errno): New variable.
11295 [IS_IN(rtld)] (__errno_location): New weak function.
11296 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
11297 * sysdeps/mach/hurd/errno.c: Remove file.
11298 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
11299 (__fork): Remove THREADVAR_SPACE macro and its use.
11300 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
11301 variable.
11302 (init): Do not initialize threadvar.
11303 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
11304 symbol.
11305 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
11306 __hurd_local_reply_port instead of threadvar.
11307 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
11308 _hurd_sigstate fields.
11309 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
11310 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
11311 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
11312 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
11313 instead of threadvar.
11314 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
11315 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
11316 (use_threadvar, global_reply_port): Remove variables.
11317 (__hurd_reply_port0): New variable.
11318 (__mig_get_reply_port): Use __hurd_local_reply_port and
11319 __hurd_reply_port0 instead of threadvar.
11320 (__mig_dealloc_reply_port): Likewise.
11321 (__mig_init): Do not initialize threadvar.
11322 * sysdeps/mach/hurd/profil.c: Fix comment.
11323 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
11324 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
11325 cthread_keycreate, cthread_getspecific, cthread_setspecific to
11326 __cthread_fork, __cthread_detach, __pthread_getattr_np,
11327 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
11328 __cthread_setspecific.
11329 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
11330 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
11331 __cthread_t instead of cthread_fork, cthread_detach,
11332 pthread_getattr_np, pthread_attr_getstack.
11333 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
11334 __cthread_keycreate.
11335 (cthread_getspecific): Rename to __cthread_getspecific.
11336 (cthread_setspecific): Rename to __cthread_setspecific.
11337 (__libc_getspecific): Use __cthread_getspecific instead of
11338 cthread_getspecific.
11339 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
11340 __cthread_keycreate instead of cthread_keycreate.
11341 (__libc_setspecific): Use __cthread_setspecific instead of
11342 cthread_setspecific.
11343 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
11344 Likewise.
11345 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
11346 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
11347 testing whether it is defined.
11348
11349 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
11350
11351 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
11352 Define macro.
11353 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
11354 * sysdeps/mach/i386/thread_state.h
11355 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
11356 i386_THREAD_STATE.
11357 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
11358 i386_THREAD_STATE.
11359 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
11360
11361 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
11362 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
11363
11364 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
11365 macros.
11366 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
11367 descriptor instead of creating a new one.
11368 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
11369
11370 * mach/setup-thread.c: Include <ldsodefs.h>.
11371 (__mach_setup_thread): Call _dl_allocate_tls, pass
11372 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
11373 MACHINE_THREAD_STATE_FLAVOR, before getting
11374 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
11375 MACHINE_THREAD_STATE_FLAVOR with the result.
11376 * hurd/hurdfault.c (_hurdsig_fault_init): Call
11377 MACHINE_THREAD_STATE_FIX_NEW.
11378 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
11379 too. Add original thread parameter.
11380
11381 2018-03-16 Joseph Myers <joseph@codesourcery.com>
11382
11383 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
11384 Remove inline function.
11385
11386 * sysdeps/i386/fpu/libm-test-ulps: Update.
11387 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
11388
11389 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
11390
11391 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
11392 commit.
11393
11394 2018-03-15 Joseph Myers <joseph@codesourcery.com>
11395
11396 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
11397 (__sincos_code): Remove define and undefine.
11398 [__FAST_MATH__] (__sincos): Remove inline function.
11399 [__FAST_MATH__] (__sincosf): Remove inline function.
11400 [__FAST_MATH__] (__sincosl): Remove inline function.
11401 (__atan2l): Remove inline functions.
11402 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
11403 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
11404 function.
11405 (floor): Remove inline function.
11406 (ceil): Likewise.
11407 [__FAST_MATH__] (__ldexp_code): Remove macro.
11408 [__FAST_MATH__] (ldexp): Remove inline function.
11409 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
11410 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
11411 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
11412 [__USE_ISOC99] (__lrint_code): Remove macro.
11413 [__USE_ISOC99] (__llrint_code): Likewise.
11414 [__USE_ISOC99] (lrintf): Remove inline function.
11415 [__USE_ISOC99] (lrint): Likewise.
11416 [__USE_ISOC99] (lrintl): Likewise.
11417 [__USE_ISOC99] (llrint): Likewise.
11418 [__USE_ISOC99] (llrintf): Likewise.
11419 [__USE_ISOC99] (llrintl): Likewise.
11420
11421 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
11422
11423 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
11424 (__ieee754_sqrtf): Remove.
11425 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
11426 (__ieee754_sqrtf): Remove.
11427 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
11428 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
11429 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
11430 (__ieee754_sqrtf): Remove.
11431 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
11432 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
11433 (sqrtf): Remove.
11434 (sqrtl): Remove.
11435 (__ieee754_sqrt): Remove.
11436 (__ieee754_sqrtf): Remove.
11437 (__ieee754_sqrtl): Remove.
11438 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
11439 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
11440 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
11441 (__ieee754_sqrtf): Remove.
11442 (__ieee754_sqrtl): Remove.
11443
11444 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
11445
11446 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
11447 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
11448 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
11449 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
11450 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
11451 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
11452 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
11453 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
11454 Likewise.
11455 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
11456 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
11457 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
11458 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
11459 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
11460 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
11461 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
11462 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
11463 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
11464 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
11465 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
11466 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
11467 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
11468 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
11469 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
11470 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
11471 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
11472 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
11473 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
11474 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
11475 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
11476 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
11477 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
11478 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
11479 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
11480 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
11481 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
11482 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
11483 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
11484 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
11485 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
11486 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
11487 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
11488 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
11489 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
11490 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
11491 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
11492 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
11493 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
11494 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
11495
11496 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
11497
11498 * include/math.h (sqrt): Declare with asm redirect.
11499 (sqrtf): Likewise.
11500 (sqrtl): Likewise.
11501 (sqrtf128): Likewise.
11502 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
11503 nonlib and libnldbl with -fmath-errno.
11504 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
11505 * math/w_sqrt_template.c: Likewise.
11506 * math/w_sqrtf_compat.c: Likewise.
11507 * math/w_sqrtl_compat.c: Likewise.
11508 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
11509 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
11510 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
11511 complex.h.
11512
11513 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
11514
11515 * benchtests/Makefile: Define _ISOMAC.
11516 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
11517 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
11518 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
11519 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
11520 * benchtests/bench-timing.h: Define attribute_hidden.
11521
11522 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
11523
11524 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
11525 mov + lsr.
11526
11527 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
11528
11529 [BZ #22963]
11530 * localedata/locales/cs_CZ (mon): Rename to...
11531 (alt_mon): This.
11532 (mon): Import from CLDR (genitive case).
11533
11534 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
11535
11536 [BZ #22937]
11537 * localedata/locales/el_CY (abmon): Rename to...
11538 (ab_alt_mon): This.
11539 (abmon): Import from CLDR (abbreviated genitive case).
11540 * localedata/locales/el_GR (abmon): Rename to...
11541 (ab_alt_mon): This.
11542 (abmon): Import from CLDR (abbreviated genitive case).
11543
11544 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
11545
11546 [BZ #22932]
11547 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
11548
11549 2018-03-15 Robert Buj <robert.buj@gmail.com>
11550
11551 [BZ #22848]
11552 * localedata/locales/ca_ES (abmon): Rename to...
11553 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
11554 (mon): Rename to...
11555 (alt_mon): This.
11556 (abmon): Import from CLDR (genitive case, month names preceded by
11557 "de" or "d’").
11558 (mon): Likewise.
11559 (abday): Synchronize with CLDR.
11560 (d_t_fmt): Likewise.
11561 (d_fmt): Likewise.
11562 (am_pm): Likewise.
11563
11564 (LC_TIME): Improve indentation.
11565 (LC_TELEPHONE): Likewise.
11566 (LC_NAME): Likewise.
11567 (LC_ADDRESS): Likewise.
11568
11569 2018-03-14 Joseph Myers <joseph@codesourcery.com>
11570
11571 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
11572 (lrintf): Remove definitions used only with old GCC.
11573 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
11574 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
11575 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
11576 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
11577 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
11578 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
11579 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
11580 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
11581 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
11582 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
11583 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
11584 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
11585 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
11586 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
11587 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
11588 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
11589 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
11590 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
11591 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
11592 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
11593 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
11594 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
11595 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
11596 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
11597 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
11598 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
11599 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
11600 [__FAST_MATH__] (__M_SQRT2): Remove macro.
11601
11602 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
11603
11604 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
11605 instruction to unbreak builds with binutils 2.26 and older.
11606
11607 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
11608
11609 * sysdeps/aarch64/strncmp.S (count): New macro.
11610 (strncmp): Store misaligned length in SRC1 in COUNT.
11611 (mutual_align): Adjust.
11612 (misaligned8): Load dword at a time when it is safe.
11613
11614 2018-03-12 Zack Weinberg <zackw@panix.com>
11615
11616 [BZ #1190]
11617 [BZ #19476]
11618 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
11619 if the _IO_EOF_SEEN bit is already set; update commentary.
11620 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
11621 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
11622
11623 * support/support_openpty.c, support/tty.h: New files.
11624 * support/Makefile (libsupport-routines): Add support_openpty.
11625
11626 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
11627 New test cases.
11628 * libio/Makefile (tests): Add tst-fgetc-after-eof.
11629 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
11630
11631 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
11632
11633 * po/pt_BR.po: Update translations.
11634
11635 2018-03-12 David Michael <fedora.dm0@gmail.com>
11636
11637 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
11638 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
11639 get a port to the startup server.
11640
11641 2018-03-11 Zack Weinberg <zackw@panix.com>
11642
11643 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
11644 before nldbl-compat.h.
11645
11646 2018-03-10 Zack Weinberg <zackw@panix.com>
11647
11648 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
11649 math.h or math_private.h.
11650
11651 * sysdeps/alpha/fpu/s_isnan.c
11652 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
11653 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
11654 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
11655 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
11656 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
11657 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
11658 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
11659 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
11660 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
11661 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
11662 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
11663 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
11664 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
11665 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
11666 Include math_private.h.
11667
11668 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
11669 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
11670 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
11671 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
11672 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
11673 * sysdeps/powerpc/power7/fpu/s_logb.c:
11674 Include math.h and math_private.h.
11675
11676 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
11677 uses of $at in .set noat / .set at.
11678
11679 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
11680
11681 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
11682 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
11683 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
11684 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
11685 Likewise.
11686
11687 2018-03-09 Florian Weimer <fweimer@redhat.com>
11688
11689 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
11690 in comment.
11691
11692 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
11693
11694 [BZ #22919]
11695 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
11696 Add nop before __startcontext, add explaining comments.
11697
11698 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11699
11700 [BZ #22926]
11701 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
11702 empty for __SPE__.
11703 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
11704 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
11705 Do not build hardware transactional code for __SPE__.
11706 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
11707 (__lll_trylock_elision): Likewise.
11708 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
11709 (__lll_unlock_elision): Likewise.
11710
11711 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
11712 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
11713 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
11714 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
11715 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
11716 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
11717 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
11718 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
11719 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
11720 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
11721 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
11722 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
11723 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
11724 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
11725 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
11726 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
11727 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
11728 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
11729 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
11730 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
11731 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
11732 * sysdeps/unix/sysv/linux/arm/kernel-features.h
11733 (__ASSUME_CLONE_BACKWARDS): Define.
11734 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
11735 __clone2 if __NR_clone2 is defined.
11736 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
11737 (__ASSUME_CLONE_BACKWARDS): Likewise.
11738 * sysdeps/unix/sysv/linux/i386/kernel-features.h
11739 (__ASSUME_CLONE_BACKWARDS): Likewise.
11740 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
11741 (__ASSUME_CLONE2): Likewise.
11742 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
11743 (__ASSUME_CLONE_BACKWARDS3): Likewise.
11744 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
11745 variants and the define architecture can use.
11746 (__ASSUME_CLONE_DEFAULT): Define as default.
11747 * sysdeps/unix/sysv/linux/mips/kernel-features.h
11748 (__ASSUME_CLONE_BACKWARDS): Likewise.
11749 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
11750 (__ASSUME_CLONE_BACKWARDS): Likewise.
11751 * sysdeps/unix/sysv/linux/s390/kernel-features.h
11752 (__ASSUME_CLONE_BACKWARDS2): Likewise.
11753
11754 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
11755
11756 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
11757
11758 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
11759 time.
11760
11761 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
11762 (do_test_limit): Likewise.
11763
11764 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
11765 for every implementation.
11766 (do_test): Likewise.
11767
11768 * benchtests/bench-strncmp.c: Convert output to json.
11769
11770 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
11771
11772 * io/futimens.c: Add missing start-of-file descriptive comment.
11773 * io/utime.c: Likewise.
11774 * misc/futimesat.c: Likewise.
11775 * misc/utimes.c: Likewise.
11776 * sysdeps/mach/hurd/futimesat.c: Likewise.
11777 * sysdeps/mach/hurd/utimes.c: Likewise.
11778 * sysdeps/posix/utime.c: Likewise.
11779 * sysdeps/posix/utimes.c: Likewise.
11780 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
11781 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
11782 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
11783 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
11784
11785 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
11786
11787 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
11788 hurd_futimes.
11789 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
11790 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
11791 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
11792 (__futimens): Move implementation to...
11793 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
11794 utime_tvalue_from_tspec): ... new helper functions.
11795 (hurd_futimens): New function.
11796 * sysdeps/mach/hurd/futimesat.c: New file.
11797 * sysdeps/mach/hurd/utimensat.c: New file.
11798
11799 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
11800
11801 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
11802 UTIME_OMIT): New macros.
11803 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
11804 before reverting to converting time spec to time value and calling
11805 __file_utimes.
11806 * sysdeps/mach/hurd/utime-helper.c: New file.
11807 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
11808 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
11809 reverting to utime_tvalue_from_tval and __file_utimes.
11810 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
11811 (__lutimes): Just call hurd_futimens after lookup.
11812 * sysdeps/mach/hurd/utimes.c: Likewise.
11813
11814 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
11815
11816 * bits/sigaction.h: Add include guard.
11817 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
11818 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
11819 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
11820 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
11821 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
11822 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
11823 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
11824 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
11825 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
11826
11827 2018-03-05 Joseph Myers <joseph@codesourcery.com>
11828
11829 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
11830 -Wmaybe-uninitialized for -Os.
11831 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
11832 this disabling.
11833
11834 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11835
11836 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
11837 __INO_T_MATCHES_INO64_T is defined.
11838 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
11839 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
11840 of definition.
11841 * dirent/alphasort64.c: Likewise.
11842 * dirent/scandir.c: Likewise.
11843 * dirent/scandir64-tail.c: Likewise.
11844 * dirent/scandir64.c: Likewise.
11845 * dirent/scandirat.c: Likewise.
11846 * dirent/scandirat64.c: Likewise.
11847 * dirent/versionsort.c: Likewise.
11848 * dirent/versionsort64.c: Likewise.
11849 * include/dirent.h: Likewise.
11850
11851 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
11852 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
11853 for socketpair endpoint.
11854 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
11855 WRITE_BUFFER_SIZE as buffer size for sending socket.
11856 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
11857 issue on system where send is implemented with sendto syscall.
11858 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
11859 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
11860 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
11861 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
11862
11863 [BZ #21269]
11864 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
11865 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
11866 sa_restorer for vDSO case.
11867 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
11868
11869 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
11870
11871 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
11872 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
11873 * hurd/hurd/ioctl.h: Include <mach/port.h>
11874 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
11875 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
11876 <mach/mach_types.h> and <mach/message.h>.
11877 (headers): Move mach/param.h to bits/mach/param.h.
11878 * sysdeps/mach/i386/mach/param.h: Move file to ...
11879 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
11880 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
11881 of <mach/param.h>.
11882 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
11883 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
11884 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
11885 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
11886 trivial, for C++ conformity.
11887 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
11888 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
11889 Process mig output through $(migheadersed).
11890 * hurd/Makefile (migheadersed): Define variable.
11891 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
11892 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
11893 headers.
11894 * hurd/hurd.h: Include <bits/types/sigset_t.h>
11895 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
11896 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
11897 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
11898 <bits/types/sigset_t.h>.
11899 [!defined __USE_GNU]: Do not #error out.
11900 (struct hurd_sigstate): Use _NSIG instead of NSIG.
11901 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
11902 Include <stddef.h> and <bits/types/sigset_t.h>
11903 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
11904 instead of sighandler_t.
11905 * stdlib/errno.h (error_t): Move definition to...
11906 * bits/types/error_t.h: ... new header.
11907 * stdlib/Makefile (headers): Add bits/types/error_t.h.
11908 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
11909 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
11910 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
11911 * hurd/hurd.h: Include <bits/types/error_t.h>
11912 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
11913 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
11914 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
11915 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
11916 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
11917 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
11918 * sysdeps/mach/hurd/futimens.c: New file.
11919
11920 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
11921
11922 [BZ #22918]
11923 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
11924 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
11925 * nscd/gai.c (__nss_hosts_database): Readd definition.
11926 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
11927 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
11928 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
11929
11930 2018-03-02 Joseph Myers <joseph@codesourcery.com>
11931
11932 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
11933 (ifunc_one): Likewise.
11934
11935 2018-03-01 DJ Delorie <dj@delorie.com>
11936
11937 [BZ #22342]
11938 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
11939 key value.
11940
11941 2018-03-01 Maciej W. Rozycki <macro@mips.com>
11942
11943 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
11944 `match_pid' parameter.
11945 (td_ta_thr_iter): Update accordingly.
11946
11947 2018-03-01 Florian Weimer <fweimer@redhat.com>
11948
11949 * nptl/Makefile (install-lib-ldscripts): Remove.
11950 (install): Remove rule.
11951 ($(inst_libdir)/libpthread.so): Likewise.
11952
11953 2018-03-01 Mike FABIAN <mfabian@redhat.com>
11954
11955 [BZ #22896]
11956 * localedata/locales/an_ES: update month and day names,
11957 improve d_fmt, improve postal_fmt, add country_post,
11958 add country_isbn
11959
11960 2018-03-01 Mike FABIAN <mfabian@redhat.com>
11961
11962 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
11963 Ukrainian instead of Bulgarian.
11964
11965 2018-03-01 Florian Weimer <fweimer@redhat.com>
11966
11967 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
11968 reference.
11969
11970 2018-03-01 Florian Weimer <fweimer@redhat.com>
11971
11972 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
11973 * nptl/Makefile (routines): Add pthread_atfork.
11974 (static-only-routines): Set to pthread_atfork.
11975 (libpthread-routines): Remove pthread_atfork.
11976 (libpthread-static-only-routines): Remove.
11977 (install): Update comment.
11978 (libpthread.so): Do not install libpthread_nonshared.a.
11979 (tests): Do not link with libpthread_nonshared.a.
11980 (generated): Remove libpthread_nonshared.a.
11981 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
11982 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
11983 with libpthread_nonshared.a.
11984
11985 2018-02-28 Joseph Myers <joseph@codesourcery.com>
11986
11987 [BZ #22902]
11988 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
11989 (libc_feholdexcept_setroundf128): New macro.
11990 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
11991
11992 [BZ #15105]
11993 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
11994 libc_hidden_def.
11995 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
11996 * include/inttypes.h: New file.
11997
11998 2018-02-27 Joseph Myers <joseph@codesourcery.com>
11999
12000 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
12001 -Os in two more places.
12002
12003 2018-02-27 Mike FABIAN <mfabian@redhat.com>
12004
12005 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
12006 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
12007 be sorted correctly at the moment because of a bug.
12008
12009 2018-02-27 Mike FABIAN <mfabian@redhat.com>
12010
12011 [BZ #22550] - es_ES locale (and other es_* locales): collation should
12012 treat ñ as a primary different character, sync the collation
12013 for Spanish with CLDR.
12014 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
12015 * localedata/Makefile: Add new test files.
12016 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
12017 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
12018 collation order.
12019 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
12020 * localedata/am_ET.UTF-8.in: New test file.
12021 * localedata/az_AZ.UTF-8.in: Likewise.
12022 * localedata/be_BY.UTF-8.in: Likewise.
12023 * localedata/ber_DZ.UTF-8.in: Likewise.
12024 * localedata/ber_MA.UTF-8.in: Likewise.
12025 * localedata/bg_BG.UTF-8.in: Likewise.
12026 * localedata/br_FR.UTF-8.in: Likewise.
12027 * localedata/cmn_TW.UTF-8.in: Likewise.
12028 * localedata/crh_UA.UTF-8.in: Likewise.
12029 * localedata/csb_PL.UTF-8.in: Likewise.
12030 * localedata/cv_RU.UTF-8.in: Likewise.
12031 * localedata/cy_GB.UTF-8.in: Likewise.
12032 * localedata/dz_BT.UTF-8.in: Likewise.
12033 * localedata/eo.UTF-8.in: Likewise.
12034 * localedata/es_ES.UTF-8.in: Likewise.
12035 * localedata/fa_IR.UTF-8.in: Likewise.
12036 * localedata/fi_FI.UTF-8.in: Likewise.
12037 * localedata/fil_PH.UTF-8.in: Likewise.
12038 * localedata/fur_IT.UTF-8.in: Likewise.
12039 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
12040 * localedata/ha_NG.UTF-8.in: Likewise.
12041 * localedata/ig_NG.UTF-8.in: Likewise.
12042 * localedata/ik_CA.UTF-8.in: Likewise.
12043 * localedata/kk_KZ.UTF-8.in: Likewise.
12044 * localedata/ku_TR.UTF-8.in: Likewise.
12045 * localedata/ky_KG.UTF-8.in: Likewise.
12046 * localedata/ln_CD.UTF-8.in: Likewise.
12047 * localedata/mi_NZ.UTF-8.in: Likewise.
12048 * localedata/ml_IN.UTF-8.in: Likewise.
12049 * localedata/mn_MN.UTF-8.in: Likewise.
12050 * localedata/mr_IN.UTF-8.in: Likewise.
12051 * localedata/mt_MT.UTF-8.in: Likewise.
12052 * localedata/nb_NO.UTF-8.in: Likewise.
12053 * localedata/om_KE.UTF-8.in: Likewise.
12054 * localedata/os_RU.UTF-8.in: Likewise.
12055 * localedata/ps_AF.UTF-8.in: Likewise.
12056 * localedata/ro_RO.UTF-8.in: Likewise.
12057 * localedata/ru_RU.UTF-8.in: Likewise.
12058 * localedata/sc_IT.UTF-8.in: Likewise.
12059 * localedata/se_NO.UTF-8.in: Likewise.
12060 * localedata/sq_AL.UTF-8.in: Likewise.
12061 * localedata/sv_SE.UTF-8.in: Likewise.
12062 * localedata/szl_PL.UTF-8.in: Likewise.
12063 * localedata/tg_TJ.UTF-8.in: Likewise.
12064 * localedata/tk_TM.UTF-8.in: Likewise.
12065 * localedata/tt_RU.UTF-8.in: Likewise.
12066 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
12067 * localedata/ug_CN.UTF-8.in: Likewise.
12068 * localedata/uz_UZ.UTF-8.in: Likewise.
12069 * localedata/vi_VN.UTF-8.in: Likewise.
12070 * localedata/yi_US.UTF-8.in: Likewise.
12071 * localedata/yo_NG.UTF-8.in: Likewise.
12072 * localedata/zh_CN.UTF-8.in: Likewise.
12073 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
12074 file and fix bugs in the collation.
12075 * localedata/locales/az_AZ: Likewise.
12076 * localedata/locales/be_BY: Likewise.
12077 * localedata/locales/ber_DZ: Likewise.
12078 * localedata/locales/ber_MA: Likewise.
12079 * localedata/locales/bg_BG: Likewise.
12080 * localedata/locales/br_FR: Likewise.
12081 * localedata/locales/br_FR@euro: Likewise.
12082 * localedata/locales/ca_ES: Likewise.
12083 * localedata/locales/cns11643_stroke: Likewise.
12084 * localedata/locales/crh_UA: Likewise.
12085 * localedata/locales/cs_CZ: Likewise.
12086 * localedata/locales/csb_PL: Likewise.
12087 * localedata/locales/cv_RU: Likewise.
12088 * localedata/locales/cy_GB: Likewise.
12089 * localedata/locales/da_DK: Likewise.
12090 * localedata/locales/dz_BT: Likewise.
12091 * localedata/locales/en_CA: Likewise.
12092 * localedata/locales/eo: Likewise.
12093 * localedata/locales/es_CU: Likewise.
12094 * localedata/locales/es_EC: Likewise.
12095 * localedata/locales/es_ES: Likewise.
12096 * localedata/locales/es_US: Likewise.
12097 * localedata/locales/et_EE: Likewise.
12098 * localedata/locales/fa_IR: Likewise.
12099 * localedata/locales/fi_FI: Likewise.
12100 * localedata/locales/fil_PH: Likewise.
12101 * localedata/locales/fur_IT: Likewise.
12102 * localedata/locales/gez_ER@abegede: Likewise.
12103 * localedata/locales/ha_NG: Likewise.
12104 * localedata/locales/hr_HR: Likewise.
12105 * localedata/locales/hsb_DE: Likewise.
12106 * localedata/locales/hu_HU: Likewise.
12107 * localedata/locales/ig_NG: Likewise.
12108 * localedata/locales/ik_CA: Likewise.
12109 * localedata/locales/is_IS: Likewise.
12110 * localedata/locales/iso14651_t1_pinyin: Likewise.
12111 * localedata/locales/kk_KZ: Likewise.
12112 * localedata/locales/ku_TR: Likewise.
12113 * localedata/locales/ky_KG: Likewise.
12114 * localedata/locales/ln_CD: Likewise.
12115 * localedata/locales/lt_LT: Likewise.
12116 * localedata/locales/lv_LV: Likewise.
12117 * localedata/locales/mi_NZ: Likewise.
12118 * localedata/locales/ml_IN: Likewise.
12119 * localedata/locales/mn_MN: Likewise.
12120 * localedata/locales/mr_IN: Likewise.
12121 * localedata/locales/mt_MT: Likewise.
12122 * localedata/locales/nb_NO: Likewise.
12123 * localedata/locales/om_KE: Likewise.
12124 * localedata/locales/os_RU: Likewise.
12125 * localedata/locales/pl_PL: Likewise.
12126 * localedata/locales/ps_AF: Likewise.
12127 * localedata/locales/ro_RO: Likewise.
12128 * localedata/locales/ru_RU: Likewise.
12129 * localedata/locales/ru_UA: Likewise.
12130 * localedata/locales/sc_IT: Likewise.
12131 * localedata/locales/se_NO: Likewise.
12132 * localedata/locales/si_LK: Likewise.
12133 * localedata/locales/sq_AL: Likewise.
12134 * localedata/locales/sv_FI: Likewise.
12135 * localedata/locales/sv_FI@euro: Likewise.
12136 * localedata/locales/sv_SE: Likewise.
12137 * localedata/locales/szl_PL: Likewise.
12138 * localedata/locales/tg_TJ: Likewise.
12139 * localedata/locales/ti_ER: Likewise.
12140 * localedata/locales/tk_TM: Likewise.
12141 * localedata/locales/tl_PH: Likewise.
12142 * localedata/locales/tr_TR: Likewise.
12143 * localedata/locales/tt_RU: Likewise.
12144 * localedata/locales/tt_RU@iqtelif: Likewise.
12145 * localedata/locales/ug_CN: Likewise.
12146 * localedata/locales/uk_UA: Likewise.
12147 * localedata/locales/uz_UZ: Likewise.
12148 * localedata/locales/uz_UZ@cyrillic: Likewise.
12149 * localedata/locales/vi_VN: Likewise.
12150 * localedata/locales/yi_US: Likewise.
12151 * localedata/locales/yo_NG: Likewise.
12152
12153 2018-02-27 Mike FABIAN <mfabian@redhat.com>
12154
12155 * gen-locales.mk: Make test files which contain @ modifiers in their
12156 name work.
12157 * localedata/gen-locale.sh: Likewise.
12158
12159 2018-02-27 Mike FABIAN <mfabian@redhat.com>
12160
12161 * posix/tst-fnmatch.input: Fix results for range expressions
12162 for non C locales.
12163 * posix/tst-regexloc.c: Do not use a range expression for
12164 de_DE.ISO-8859-1 locale.
12165
12166 2018-02-27 Mike FABIAN <mfabian@redhat.com>
12167
12168 * posix/bug-regex5.c: Fix test case because with the new
12169 iso14651_t1_common file, the da_DK locale now has 6 collating elements
12170 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
12171 file.
12172
12173 2018-02-27 Mike FABIAN <mfabian@redhat.com>
12174
12175 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
12176 downloaded from ISO, the collation order of @-. and space has changed.
12177 Therefore, this test file needed to be adapted.
12178 * localedata/fr_CA.UTF-8.in: Likewise.
12179 * localedata/fr_FR.UTF-8.in: Likewise.
12180 * localedata/uk_UA.UTF-8.in: Likewise.
12181
12182 2018-02-27 Mike FABIAN <mfabian@redhat.com>
12183
12184 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
12185 order of ȥ in the new iso14651_t1_common file.
12186 * localedata/pl_PL.UTF-8.in: Likewise.
12187
12188 2018-02-27 Mike FABIAN <mfabian@redhat.com>
12189
12190 * localedata/locales/iso14651_t1_common: Add sections for various
12191 scripts to the iso14651_t1_common file.
12192
12193 2018-02-27 Mike FABIAN <mfabian@redhat.com>
12194
12195 * localedata/locales/iso14651_t1_common: Use the code point of a
12196 character in the fourth collation level instead of IGNORE for all
12197 entries which have IGNORE on all 4 levels.
12198
12199 2018-02-27 Mike FABIAN <mfabian@redhat.com>
12200
12201 * localedata/locales/iso14651_t1_common: Add some convenient collation
12202 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
12203 rules similar to those in CLDR.
12204
12205 2018-02-27 Mike FABIAN <mfabian@redhat.com>
12206
12207 * localedata/locales/iso14651_t1_common: The new version of this
12208 file downloaded from ISO contained several syntax errors which
12209 are fixed by this patch.
12210
12211 2018-02-27 Mike FABIAN <mfabian@redhat.com>
12212
12213 * localedata/locales/iso14651_t1_common: replace all <U.....>
12214 with <U000.....> because glibc understands only 4 digit or 8 digit
12215
12216 2018-02-27 Mike FABIAN <mfabian@redhat.com>
12217
12218 * localedata/locales/iso14651_t1_common: Necessary changes
12219 to make the file downloaded from ISO usable by glibc.
12220
12221 2018-02-27 Mike FABIAN <mfabian@redhat.com>
12222
12223 [BZ #14095]
12224 * localedata/locales/iso14651_t1_common: Update file to
12225 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
12226
12227 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
12228
12229 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
12230 of <nptl/pthreadP.h>
12231 (thread_attr_compare): Move function to...
12232 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
12233 * sysdeps/nptl/timer_routines.h: ... new header.
12234 * sysdeps/mach/hurd/gai_misc.h: New file.
12235
12236 2018-02-26 Joseph Myers <joseph@codesourcery.com>
12237
12238 * string/strcoll_l.c: Include <libc-diag.h>.
12239 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
12240 declarations of seq1 and seq2.
12241
12242 [BZ #15105]
12243 * stdlib/atoi.c (atoi): Use libc_hidden_def.
12244 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
12245
12246 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
12247
12248 [BZ #22433]
12249 [BZ #22807]
12250 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
12251 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
12252 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
12253 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
12254 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
12255 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
12256
12257 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
12258
12259 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
12260 macros used in __ptrace_request.
12261
12262 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
12263
12264 [BZ #22792]
12265 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
12266 to $(CC).
12267 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
12268 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
12269 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
12270 <tcb-offsets.h>.
12271
12272 2018-02-23 Joseph Myers <joseph@codesourcery.com>
12273
12274 [BZ #15105]
12275 * ctype/ctype.c (tolower): Use libc_hidden_def.
12276 (toupper): Likewise.
12277 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
12278 [!_ISOMAC] (toupper): Likewise.
12279
12280 2018-02-23 Mike FABIAN <mfabian@redhat.com>
12281
12282 * localedata/Makefile: Remove --quiet argument when
12283 installing locales
12284
12285 2018-02-23 Mike FABIAN <mfabian@redhat.com>
12286
12287 [BZ #17438]
12288 * localedata/locales/pt_BR (LC_TIME): use / instead of -
12289 in d_fmt.
12290 * localedata/locales/pt_PT (LC_TIME): likewise
12291
12292 2018-02-23 Mike FABIAN <mfabian@redhat.com>
12293
12294 [BZ #22646]
12295 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
12296 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
12297 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
12298
12299 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12300
12301 * sysdeps/sparc/fpu/libm-test-ulps: Update.
12302
12303 * nptl/Makefile (routines): Remove unregister-atfork.
12304 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
12305 (fork_handler_alloc): Remove function.
12306 (fork_handlers, fork_handler_init): New variables.
12307 (__fork_lock): Rename to atfork_lock.
12308 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
12309 to use a dynamic array to add/remove atfork handlers.
12310 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
12311 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
12312 Remove declaration.
12313 (fork_handler): Remove next, refcntr, and need_signal member.
12314 (__run_fork_handler_type): New enum.
12315 (__run_fork_handlers): New prototype.
12316 * nptl/register-atfork.c: Remove file.
12317 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
12318
12319 * sysdeps/nptl/nptl-signals.h: Move to ...
12320 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
12321 comments.
12322 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
12323 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
12324 unnecessary check for SIGTIMER.
12325 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
12326 remove unnecessary removal of SIGTIMER.
12327 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
12328 include-signals.h rename.
12329 * nptl/pthreadP.h: Likewise.
12330 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
12331 __is_internal_signal instead of __nptl_is_internal_signal.
12332
12333 2018-02-22 Andrew Waterman <andrew@sifive.com>
12334
12335 [BZ # 22884]
12336 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
12337 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
12338 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
12339 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
12340
12341 2018-02-22 DJ Delorie <dj@delorie.com>
12342
12343 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
12344
12345 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
12346
12347 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
12348 do_misaligned, not misaligned8.
12349
12350 2018-02-22 Steve Ellcey <sellcey@cavium.com>
12351
12352 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
12353 Add memcpy_thunderx2.
12354 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
12355 Increment to 4.
12356 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
12357 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
12358 and IS_THUNDERX2PA checks.
12359 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
12360 Use macro to set name appropriately.
12361 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
12362 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
12363 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
12364 New macro.
12365 (IS_THUNDERX2): New macro.
12366
12367 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
12368
12369 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
12370
12371 2018-02-21 Zack Weinberg <zackw@panix.com>
12372
12373 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
12374 Define here, unconditionally.
12375 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
12376 * libio/libioP.h: Remove #if 0 blocks.
12377 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
12378 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
12379 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
12380
12381 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
12382 Assume weak_alias is always defined.
12383
12384 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
12385 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
12386 Remove #if 0 and #ifdef TODO blocks.
12387 Assume text_set_element is always defined.
12388
12389 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
12390 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
12391 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
12392
12393 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
12394 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
12395 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
12396 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
12397 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
12398 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
12399 Reformat bit flags for _flags field to make occupancy clearer.
12400 Update commentary.
12401 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
12402 Keep definitions consistent with those in libio/libio.h.
12403
12404 * libio/libio.h (_IO_file_flags): Remove macro.
12405 All uses changed to _flags.
12406
12407 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
12408 (__HAVE_COLUMN, _IO_BE): Don't define.
12409 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
12410 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
12411 * libio/libioP.h (EOF): Don't define.
12412 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
12413 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
12414 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
12415 testing _IO_UNIFIED_JUMPTABLES.
12416
12417 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
12418 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
12419 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
12420 (_IO_size_t): Delete; all uses changed to size_t.
12421 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
12422 (_IO_off_t): Delete; all uses changed to off_t.
12423 (_IO_off64_t): Delete; all uses changed to off64_t.
12424 (_IO_pid_t): Delete; all uses changed to pid_t.
12425 (_IO_uid_t): Delete; all uses changed to uid_t.
12426 (_IO_wint_t): Delete; all uses changed to wint_t.
12427 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
12428 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
12429 (_IO_cookie_io_functions_t): Delete; all uses changed to
12430 cookie_io_functions_t.
12431 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
12432 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
12433 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
12434 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
12435
12436 * libio/iofopncook.c: Remove unnecessary forward declarations.
12437 * libio/iolibio.h: Correct outdated commentary.
12438 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
12439 * stdio-common/fxprintf.c (__fxprintf_nocancel):
12440 Remove unnecessary casts.
12441 * stdio-common/getline.c: Use _IO_getdelim directly.
12442 Don't redefine ssize_t.
12443 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
12444 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
12445 Remove outdated comments.
12446 * stdio-common/vfscanf.c: Don't redefine va_list.
12447
12448 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
12449 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
12450 Remove preprocessor conditionals on _LIBC and __USE_GNU,
12451 which are always true, and __cplusplus, which is always false.
12452
12453 2018-02-21 Joseph Myers <joseph@codesourcery.com>
12454
12455 [BZ #15105]
12456 [BZ #19463]
12457 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
12458 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
12459 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
12460 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
12461 libc_hidden_proto.
12462 [!_ISOMAC] (putc_unlocked): Likewise.
12463 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
12464 define inline if [__USE_EXTERN_INLINES].
12465 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
12466 putc_unlocked.
12467
12468 [BZ #15105]
12469 [BZ #19463]
12470 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
12471 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
12472 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
12473 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
12474 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
12475 getc_unlocked.
12476 * time/tzfile.c (__tzfile_read): Likewise.
12477
12478 2018-02-21 Mike FABIAN <mfabian@redhat.com>
12479
12480 [BZ #22517]
12481 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
12482
12483 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
12484
12485 * io/fcntl.h: Fix a typo in a comment.
12486
12487 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
12488
12489 [BZ #22862]
12490 * include/features.h: Add _ISOC11_SOURCE to test for whether to
12491 define _DEFAULT_SOURCE.
12492 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
12493
12494 2018-02-21 Florian Weimer <fweimer@redhat.com>
12495
12496 [BZ #20890]
12497 * elf/cache.c (save_cache): Call fsync on temporary file before
12498 renaming it.
12499 (save_aux_cache): Call fdatasync on temporary file before renaming
12500 it.
12501
12502 2018-02-21 Florian Weimer <fweimer@redhat.com>
12503
12504 [BZ #22787]
12505 * include/caller.h: Remove file.
12506 * elf/dl-caller.c: Likewise.
12507 * elf/Makefile (dl-routines): Remove dl-caller.
12508 (shared-only-routines): Do not add dl-caller.
12509 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
12510 __check_caller.
12511 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
12512 member.
12513 (dl_open_worker): Do not call __check_caller.
12514 (_dl_open): Do not set caller_dl_open member.
12515 * elf/rtld.c (_rtld_global_ro): Do not initialize
12516 _dl_check_caller member.
12517 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
12518 _dl_check_caller member.
12519 (_dl_check_caller): Remove declaration.
12520 * sysdeps/unix/sysv/linux/dl-execstack.c
12521 (_dl_make_stack_executable): Do not call __check_caller.
12522
12523 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
12524
12525 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
12526 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
12527
12528 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
12529
12530 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
12531 description.
12532
12533 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
12534
12535 [BZ #16335]
12536 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
12537 of 199606L, 200112L, and 200809L.
12538 (_XOPEN_SOURCE): Document special values of 600 and 700.
12539 (_ISOC11_SOURCE): Document macro.
12540 (_ATFILE_SOURCE): Likewise.
12541 (_FORTIFY_SOURCE): Likewise.
12542
12543 2018-02-19 Joseph Myers <joseph@codesourcery.com>
12544
12545 [BZ #15105]
12546 [BZ #19463]
12547 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
12548 and define as weak alias of __ferror_unlocked. Use
12549 libc_hidden_weak.
12550 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
12551 libc_hidden_proto.
12552 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
12553 function if [__USE_EXTERN_INLINES].
12554 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
12555 ferror_unlocked.
12556
12557 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
12558
12559 [BZ #6889]
12560 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
12561
12562 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
12563
12564 [BZ #22818]
12565 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
12566 the GLIBC_2.1 version.
12567
12568 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
12569
12570 [BZ #21508]
12571 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
12572 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
12573 intl/tst-gettext-de.po from po/de.po by removing the
12574 POT-Creation-Date line.
12575 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
12576 ../po/de.po.
12577 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
12578 ../po/de.po.
12579
12580 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
12581
12582 * mach/Makefile (headers): Add mach/param.h.
12583 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
12584 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
12585 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
12586 (__ptsname_r): Move implementation to...
12587 (__ptsname_internal): ... new function. Add filling the STP
12588 structure.
12589
12590 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
12591
12592 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
12593 idouble to 1 ULP.
12594
12595 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
12596
12597 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
12598 syntax.
12599
12600 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
12601
12602 * nptl/Makefile (tst-mutex8-ENV): Delete.
12603 * nptl/tst-mutex8.c (check_type):
12604 Add runtime check if mutex will be elided.
12605
12606 2018-02-15 Joseph Myers <joseph@codesourcery.com>
12607
12608 [BZ #20980]
12609 [BZ #21234]
12610 * manual/install.texi (Configuring and compiling): Describe
12611 passing CC and CFLAGS on configure command line, not as
12612 environment variables. Use @code markup on those variables.
12613 Specify what options go in CC and what go in CFLAGS. Note the
12614 requirement to compile with optimization.
12615 * INSTALL: Regenerated.
12616
12617 [BZ #18124]
12618 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
12619 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
12620 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
12621 __sigprocmask instead of sigprocmask.
12622 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
12623 Likewise.
12624 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
12625 __sigsetjmp and sigprocmask.
12626
12627 [BZ #15105]
12628 * include/argz.h (argz_next): Use libc_hidden_proto.
12629 (__argz_next): Likewise.
12630 * string-argz-next.c (__argz_next): Use libc_hidden_def.
12631 (argz_next): Use libc_hidden_weak.
12632
12633 [BZ #15105]
12634 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
12635 libc_hidden_proto.
12636 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
12637 libc_hidden_def.
12638
12639 [BZ #15105]
12640 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
12641 libc_hidden_proto.
12642 * libio/iofputs.c (fputs): Use libc_hidden_weak.
12643
12644 [BZ #15105]
12645 [BZ #19463]
12646 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
12647 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
12648 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
12649 (__feof_unlocked): New declaration, and inline function if
12650 [__USE_EXTERN_INLINES].
12651 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
12652 instead of feof_unlocked.
12653 * intl/localealias.c [_LIBC] (FEOF): Likewise.
12654 * nss/nsswitch.c (nss_parse_file): Likewise.
12655 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
12656 Likewise.
12657 * time/getdate.c (__getdate_r): Likewise.
12658 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
12659 Define as macro to call __feof_unlocked.
12660
12661 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
12662
12663 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
12664
12665 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
12666
12667 * math/Makefile: Remove mpexp.c and mplog.c
12668 * sysdeps/i386/fpu/mpexp.c: Delete file.
12669 * sysdeps/i386/fpu/mplog.c: Likewise.
12670 * sysdeps/ia64/fpu/mpexp.c: Likewise.
12671 * sysdeps/ia64/fpu/mplog.c: Likewise.
12672 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
12673 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
12674 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
12675 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
12676 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
12677 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
12678 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
12679 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
12680 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
12681 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
12682 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
12683 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
12684 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
12685 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
12686 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
12687 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
12688
12689 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
12690
12691 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
12692
12693 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12694
12695 * sysdeps/sh/libm-test-ulps: Update.
12696
12697 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
12698
12699 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
12700 idouble to 1 ULP.
12701
12702 2018-02-12 Zack Weinberg <zackw@panix.com>
12703
12704 [BZ #19239]
12705 * posix/sys/types.h: Don't include sys/sysmacros.h.
12706 * misc/sys/sysmacros.h: Remove the conditional deprecation
12707 warnings for the macros defined by this header.
12708
12709 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
12710
12711 * manual/probes.texi: Remove slowexp probes.
12712 * math/Makefile: Remove slowexp.
12713 * sysdeps/generic/math_private.h (__slowexp): Remove.
12714 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
12715 document error bounds.
12716 * sysdeps/i386/fpu/slowexp.c: Remove.
12717 * sysdeps/ia64/fpu/slowexp.c: Remove.
12718 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
12719 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
12720 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
12721 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
12722 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
12723 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
12724 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
12725 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
12726 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
12727 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
12728 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
12729
12730 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
12731
12732 [BZ #13932]
12733 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
12734 * benchtests/pow-inputs: Update comment for slow path cases.
12735 * manual/probes.texi (slowpow_p10): Delete removed probe.
12736 (slowpow_p10): Likewise.
12737 * math/Makefile: Remove halfulp.c and slowpow.c.
12738 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
12739 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
12740 (__halfulp): Remove.
12741 (__slowpow): Remove.
12742 * sysdeps/i386/fpu/halfulp.c: Delete file.
12743 * sysdeps/i386/fpu/slowpow.c: Likewise.
12744 * sysdeps/ia64/fpu/halfulp.c: Likewise.
12745 * sysdeps/ia64/fpu/slowpow.c: Likewise.
12746 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
12747 improve comments and add error analysis.
12748 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
12749 (power1): Remove function:
12750 (log1): Remove error argument, add error analysis.
12751 (my_log2): Remove function.
12752 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
12753 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
12754 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
12755 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
12756 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
12757 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
12758 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
12759 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
12760 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
12761 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
12762 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
12763 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
12764 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
12765 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
12766
12767 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
12768
12769 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
12770 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
12771
12772 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
12773
12774 [BZ #22433]
12775 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
12776 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
12777 and PTRACE_SETHBPREGS.
12778
12779 2018-02-10 Zack Weinberg <zackw@panix.com>
12780
12781 [BZ #22830]
12782 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
12783 correctly.
12784 * malloc/tst-malloc-stats-cancellation.c: New test case.
12785 * malloc/Makefile: Add new test case.
12786
12787 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
12788
12789 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
12790
12791 2018-02-10 Joseph Myers <joseph@codesourcery.com>
12792
12793 * math/Makefile (libm-narrow-fns): Add add.
12794 (libm-test-funcs-narrow): Likewise.
12795 * math/Versions (GLIBC_2.28): Add narrowing add functions.
12796 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
12797 * math/gen-auto-libm-tests.c (test_functions): Add add.
12798 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
12799 (NARROW_ADD_ROUND_TO_ODD): Likewise.
12800 (NARROW_ADD_TRIVIAL): Likewise.
12801 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
12802 macro.
12803 (__daddl): Likewise.
12804 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
12805 dadd.
12806 (CFLAGS-nldbl-dadd.c): New variable.
12807 (CFLAGS-nldbl-fadd.c): Likewise.
12808 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
12809 __nldbl_daddl.
12810 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
12811 prototype.
12812 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
12813 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
12814 * math/auto-libm-test-in: Add tests of add.
12815 * math/auto-libm-test-out-narrow-add: New generated file.
12816 * math/libm-test-narrow-add.inc: New file.
12817 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
12818 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
12819 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
12820 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
12821 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
12822 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
12823 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
12824 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
12825 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
12826 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
12827 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
12828 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
12829 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
12830 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
12831 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
12832 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
12833 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
12834 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
12835 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12836 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
12837 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
12838 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
12839 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
12840 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
12841 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12842 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12843 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12844 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12845 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12846 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12847 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12848 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12849 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
12850 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
12851 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
12852 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
12853 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
12854 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12855 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12856 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12857 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
12858 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
12859 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
12860 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
12861 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
12862 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
12863
12864 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
12865 (f128-pairs): New variable.
12866 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
12867 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
12868 to CFLAGS.
12869 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
12870 Also make tests add $(f128-loader-link) to gnulib-tests.
12871
12872 2018-02-09 DJ Delorie <dj@redhat.com>
12873
12874 [BZ #22827]
12875 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
12876 64-bit ELF type for 64-bit ELF objects.
12877
12878 2018-02-09 Joseph Myers <joseph@codesourcery.com>
12879
12880 * math/libm-test-driver.c (snan_tests_arg): New variable.
12881 * math/libm-test-support.h (snan_tests_arg): New declaration.
12882 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
12883
12884 * math/Makefile (test-type-pairs): New variable.
12885 (test-type-pairs-f64xf128-yes): Likewise.
12886 (tests): Add test-narrow-macros.
12887 (libm-test-funcs-narrow): New variable.
12888 (libm-test-c-narrow): Likewise.
12889 (generated): Add $(libm-test-c-narrow).
12890 (libm-tests-base-narrow): New variable.
12891 (libm-tests-narrow): Likewise.
12892 (libm-tests): Add $(libm-tests-narrow).
12893 (libm-tests-for-type): Handle $(libm-tests-narrow).
12894 (libm-test-c-narrow-obj): New variable.
12895 ($(libm-test-c-narrow-obj)): New rule.
12896 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
12897 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
12898 $(o-iterator) to set dependencies and CFLAGS.
12899 * math/gen-auto-libm-tests.c: Document use for narrowing
12900 functions.
12901 (output_for_one_input_case): Take argument NARROW.
12902 (generate_output): Likewise. Update call to
12903 output_for_one_input_case.
12904 (main): Take --narrow option. Update call to generate_output.
12905 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
12906 (apply_lit): Update call to _apply_lit.
12907 (apply_arglit): New function.
12908 (parse_args): Handle "a" arguments.
12909 (parse_auto_input): Handle format names using ":".
12910 * math/README.libm-test: Document "a" parameter type.
12911 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
12912 (ARG_TYPE_TRUE_MIN): Likewise.
12913 (ARG_TYPE_MAX): Likwise.
12914 (ARG_MIN_EXP): Likewise.
12915 (ARG_MAX_EXP): Likewise.
12916 (ARG_MANT_DIG): Likewise.
12917 (TEST_COND_arg_ibm128): Likewise.
12918 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
12919 (TEST_COND_arg_fmt): New macro.
12920 (init_max_error): Update prototype.
12921 * math/libm-test-support.c (test_ibm128): New variable.
12922 (init_max_error): Take argument testing_ibm128 and set test_ibm128
12923 instead of using [TEST_COND_ibm128] conditional.
12924 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
12925 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
12926 [TEST_NARROW] (TEST_MSG): New definition.
12927 (arg_plus_zero): New macro.
12928 (arg_minus_zero): Likewise.
12929 (arg_plus_infty): Likewise.
12930 (arg_minus_infty): Likewise.
12931 (arg_qnan_value_pl): Likewise.
12932 (arg_qnan_value): Likewise.
12933 (arg_snan_value_pl): Likewise.
12934 (arg_snan_value): Likewise.
12935 (arg_max_value): Likewise.
12936 (arg_min_value): Likewise.
12937 (arg_min_subnorm_value): Likewise.
12938 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
12939 (RUN_TEST_LOOP_aa_f): New macro.
12940 (TEST_SUFF): New macro.
12941 (TEST_SUFF_STR): Likewise.
12942 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
12943 (TEST_COND_any_ibm128): New macro.
12944 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
12945 this_func. Update call to init_max_error.
12946 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
12947 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
12948 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
12949 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
12950 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
12951 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
12952 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
12953 * math/test-math-scalar.h (TEST_NARROW): Likewise.
12954 * math/test-math-vector.h (TEST_NARROW): Likewise.
12955 * math/test-arg-double.h: New file.
12956 * math/test-arg-float128.h: Likewise.
12957 * math/test-arg-float32x.h: Likewise.
12958 * math/test-arg-float64.h: Likewise.
12959 * math/test-arg-float64x.h: Likewise.
12960 * math/test-arg-ldouble.h: Likewise.
12961 * math/test-math-narrow.h: Likewise.
12962 * math/test-narrow-macros.c: Likewise.
12963 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
12964 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
12965 test-narrow-macros-ldbl-64.
12966 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
12967
12968 * math/bits/mathcalls-narrow.h: New file.
12969 * include/bits/mathcalls-narrow.h: Likewise.
12970 * math/math-narrow.h: Likewise.
12971 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
12972 (__MATHCALL_NARROW_ARGS_2): Likewise.
12973 (__MATHCALL_NARROW_ARGS_3): Likewise.
12974 (__MATHCALL_NARROW_NORMAL): Likewise.
12975 (__MATHCALL_NARROW_REDIR): Likewise.
12976 (__MATHCALL_NARROW): Likewise.
12977 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
12978 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
12979 defined.
12980 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
12981 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
12982 (libm-narrow-fns): New variable.
12983 (libm-narrow-types-basic): Likewise.
12984 (libm-narrow-types-ldouble-yes): Likewise.
12985 (libm-narrow-types-float128-yes): Likewise.
12986 (libm-narrow-types-float128-alias-yes): Likewise.
12987 (libm-narrow-types): Likewise.
12988 (libm-routines): Add narrowing functions.
12989 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
12990 (libc_feholdexcept_setroundf128): New macro.
12991 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
12992 * sysdeps/ieee754/float128/float128_private.h: Include
12993 <math/math-narrow.h>.
12994 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
12995 Undefine and redefine.
12996 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
12997 (libm_alias_float_ldouble): Undefine and redefine.
12998 (libm_alias_double_ldouble): Likewise.
12999
13000 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
13001
13002 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
13003
13004 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
13005 FPCR/FPSR.
13006
13007 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
13008
13009 * manual/creature.texi: Convert references to gcc.info to gcc.
13010 * manual/stdio.texi: Likewise.
13011 * manual/string.texi: Likewise.
13012
13013 2018-02-07 Joseph Myers <joseph@codesourcery.com>
13014
13015 [BZ #17979]
13016 * posix/bits/types.h (__int_least8_t): New typedef.
13017 (__uint_least8_t): Likewise.
13018 (__int_least16_t): Likewise.
13019 (__uint_least16_t): Likewise.
13020 (__int_least32_t): Likewise.
13021 (__uint_least32_t): Likewise.
13022 (__int_least64_t): Likewise.
13023 (__uint_least64_t): Likewise.
13024 * sysdeps/generic/stdint.h (int_least8_t): Define using
13025 __int_least8_t.
13026 (int_least16_t): Define using __int_least16_t.
13027 (int_least32_t): Define using __int_least32_t.
13028 (int_least64_t): Define using __int_least64_t.
13029 (uint_least8_t): Define using __uint_least8_t.
13030 (uint_least16_t): Define using __uint_least16_t.
13031 (uint_least32_t): Define using __uint_least32_t.
13032 (uint_least64_t): Define using __uint_least64_t.
13033 * wcsmbs/uchar.h: Include <bits/types.h>.
13034 (char16_t): Define using __uint_least16_t conditional only on
13035 [!__USE_ISOCXX11].
13036 (char32_t): Define using __uint_least32_t conditional only on
13037 [!__USE_ISOCXX11].
13038 * wcsmbs/test-char-types.c: New file.
13039 * wcsmbs/Makefile (tests): Add test-char-types.
13040
13041 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
13042 version to 4.0.1.
13043
13044 2018-02-07 Zack Weinberg <zackw@panix.com>
13045
13046 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
13047 Delete all contents except for definitions of _G_HAVE_MMAP and
13048 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
13049 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
13050 sysdeps/unix/sysv/linux/_G_config.h. Make same content
13051 change as above.
13052
13053 * libio/libio.h: Don't include bits/_G_config.h here.
13054 Include stddef.h with __need_wchar_t defined. Include
13055 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
13056 Define _IO_iconv_t here, directly.
13057 Don't define _IO_HAVE_ST_BLKSIZE.
13058 * libio/libioP.h: Include _G_config.h here. Move include of
13059 shlib-compat.h up with rest of includes. Simplify conditionals
13060 controlling definition of _IO_JUMPS_OFFSET.
13061
13062 * csu/init.c: Remove always-true #if around entire file.
13063 Don't include stdio.h. Set _IO_stdin_used to hardwired
13064 constant 0x20001, and update commentary.
13065 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
13066 Replace all uses of _G_va_list with __gnuc_va_list.
13067 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
13068 instead of #if _IO_HAVE_ST_BLKSIZE.
13069 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
13070 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
13071 not #ifdef.
13072
13073 * libio/bits/libio.h: Move back to libio/libio.h and adjust
13074 multiple-include guard to match.
13075 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
13076 into this file.
13077 Remove preprocessor conditionals that are always true and/or
13078 redundant to other preprocessor conditionals in the same nest.
13079 Include shlib-compat.h unconditionally.
13080 Error out if _LIBC is not defined, or if _ISOMAC is defined,
13081 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
13082 defined after including stdio.h.
13083 Use __BEGIN_DECLS/__END_DECLS.
13084
13085 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
13086 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
13087 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
13088
13089 2018-02-07 Zack Weinberg <zackw@panix.com>
13090
13091 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
13092 New single-type headers split from _G_config.h.
13093 * libio/bits/types/cookie_io_functions_t.h
13094 * libio/bits/types/struct_FILE.h
13095 New single-type headers split from libio.h.
13096
13097 * libio/Makefile: Install the above new headers. Don't install
13098 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
13099 bits/libio-ldbl.h.
13100 * libio/_G_config.h, libio/libio.h: Delete file.
13101
13102 * libio/bits/libio.h: Remove improper-inclusion guard.
13103 Include stdio.h and don't repeat anything that it does.
13104 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
13105 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
13106 __io_read_fn as cookie_read_function_t,
13107 __io_write_fn as cookie_write_function_t,
13108 __io_seek_fn as cookie_seek_function_t,
13109 __io_close_fn as cookie_close_function_t,
13110 and _IO_cookie_io_functions_t as cookie_io_functions_t.
13111 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
13112 here, in the "compatibility defines" section. Remove an #if 0
13113 block. Use the "body" macros from bits/types/struct_FILE.h to
13114 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
13115 and _IO_ferror_unlocked.
13116 Move prototypes of __uflow and __overflow...
13117
13118 * libio/stdio.h: ...here. Don't include bits/libio.h.
13119 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
13120 directly from stdarg.h. Include bits/types/__fpos_t.h,
13121 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
13122 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
13123 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
13124 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
13125 cookie_io_functions_t, not _IO_cookie_io_functions_t;
13126 __ssize_t, not _IO_ssize_t. Unconditionally define
13127 BUFSIZ as 8192 and EOF as (-1).
13128
13129 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
13130 macros from bits/types/struct_FILE.h instead of _IO_* macros
13131 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
13132 instead of _IO_ssize_t.
13133 * libio/bits/stdio2.h: Similarly.
13134
13135 * libio/iolibio.h: Add multiple-include guard.
13136 Include bits/libio.h after stdio.h.
13137 * libio/libioP.h: Add multiple-include guard.
13138 Include stdio.h and bits/libio.h before iolibio.h.
13139
13140 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
13141 * include/bits/types/cookie_io_functions_t.h
13142 * include/bits/types/struct_FILE.h: New wrappers.
13143
13144 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
13145 Get definitions of _G_fpos_t and _G_fpos64_t from
13146 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
13147 respectively. Remove improper-inclusion guards.
13148
13149 * conform/data/stdio.h-data: Update expectations of va_list.
13150 * scripts/check-installed-headers.sh: Remove special case for
13151 libio.h and _G_config.h.
13152
13153 2018-02-07 Joseph Myers <joseph@codesourcery.com>
13154
13155 [BZ #15105]
13156 [BZ #19463]
13157 * include/sys/sysmacros.h [!_ISOMAC]
13158 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
13159 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
13160 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
13161 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
13162 libc_hidden_proto.
13163 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
13164 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
13165 Likewise.
13166 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
13167 Undefine and redefine to add use __gnu_dev_ prefix.
13168 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
13169 Likewise.
13170 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
13171 and define as hidden inline function.
13172 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
13173 Likewise.
13174 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
13175 Likewise.
13176 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
13177 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
13178 (gnu_dev_minor): Likewise.
13179 (gnu_dev_makedev): Likewise.
13180 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
13181 makedev.
13182 * posix/wordexp.c (exec_comm_child): Likewise.
13183 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
13184 instead of minor and __gnu_dev_major instead of major.
13185 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
13186 __gnu_dev_major instead of major.
13187 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
13188 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
13189 instead of gnu_dev_minor.
13190 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
13191 (SLAVE_P): Likewise.
13192 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
13193 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
13194 instead of major.
13195
13196 [BZ #21313]
13197 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
13198 in another place.
13199 * locale/weightwc.h (findidx): Likewise.
13200
13201 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
13202
13203 * manual/probes.texi (slowlog): Delete documentation of removed probe.
13204 (slowlog_inexact): Likewise
13205 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
13206 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
13207
13208 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
13209
13210 [BZ #22797]
13211 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
13212 missing second underscore to parameter name.
13213
13214 2018-02-06 Joseph Myers <joseph@codesourcery.com>
13215
13216 [BZ #14508]
13217 [BZ #15512]
13218 [BZ #17082]
13219 [BZ #20530]
13220 * bits/byteswap.h: Update file comment. Do not include
13221 <bits/byteswap-16.h>.
13222 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
13223 constant.
13224 (__bswap_16): Define as inline function.
13225 (__bswap_constant_32): Reformat definition.
13226 (__bswap_32): Always define as inline function, not macro, using
13227 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
13228 otherwise __bswap_constant_32.
13229 (__bswap_constant_64): Reformat definition. Do not use
13230 __extension__ here.
13231 (__bswap_64): Always define as inline function, not macro. Use
13232 __extension__ on function definition. Use __builtin_bswap64 if
13233 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
13234 * string/test-endian-file-scope.c: New file.
13235 * string/test-endian-sign-conversion.c: Likewise.
13236 * string/Makefile (headers): Remove bits/byteswap-16.h.
13237 (tests): Add test-endian-file-scope and
13238 test-endian-sign-conversion.
13239 (CFLAGS-test-endian-sign-conversion.c): New variable.
13240 * bits/byteswap-16.h: Remove file.
13241 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
13242 * sysdeps/ia64/bits/byteswap.h: Likewise.
13243 * sysdeps/m68k/bits/byteswap.h: Likewise.
13244 * sysdeps/s390/bits/byteswap-16.h: Likewise.
13245 * sysdeps/s390/bits/byteswap.h: Likewise.
13246 * sysdeps/tile/bits/byteswap.h: Likewise.
13247 * sysdeps/x86/bits/byteswap-16.h: Likewise.
13248 * sysdeps/x86/bits/byteswap.h: Likewise.
13249
13250 [BZ #17721]
13251 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
13252 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
13253 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
13254 199901L] (__restrict): Define to restrict.
13255
13256 [BZ #19667]
13257 * string/testcopy.c: Include <support/support.h>. Do not include
13258 <malloc.h>. Use <support/test-driver.c>.
13259 (main): Rename to do_test. Make static. Use xmalloc instead of
13260 malloc.
13261
13262 [BZ #13575]
13263 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
13264 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
13265 (SSIZE_MAX): Define to INT_MAX.
13266 * posix/test-ssize-max.c: New file.
13267 * posix/Makefile (tests): Add test-ssize-max.
13268
13269 [BZ #19668]
13270 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
13271 <support/support.h>. Do not include <malloc.h>.
13272 (query_auxv): Use xmalloc instead of malloc.
13273
13274 [BZ #14553]
13275 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
13276 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
13277 instead of loff_t.
13278
13279 2018-02-06 Florian Weimer <fweimer@redhat.com>
13280
13281 [BZ #18023]
13282 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
13283 Use scratch_buffer instead of extend_alloca.
13284
13285 2018-02-06 Zack Weinberg <zackw@panix.com>
13286
13287 * libio/stdio.h: Don't define getc or putc as macros.
13288 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
13289 not _IO_getc and _IO_putc.
13290
13291 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
13292 * stdio-common/tstgetln.c: Don't redefine ssize_t.
13293
13294 2018-02-06 Joseph Myers <joseph@codesourcery.com>
13295
13296 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
13297 (TCP_FASTOPEN_NO_COOKIE): Likewise.
13298
13299 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
13300
13301 [BZ #14890]
13302 * elf/elf.h (NT_PRFPREG): New macro.
13303 (NT_S390_VXRS_LOW): Likewise.
13304 (NT_S390_VXRS_HIGH): Likewise.
13305 (NT_S390_GS_CB): Likewise.
13306 (NT_S390_GS_BC): Likewise.
13307 (NT_S390_RI_CB): Likewise.
13308
13309 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
13310 (MAP_SYNC): New macro.
13311 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
13312 Likewise.
13313 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
13314 (MAP_SYNC): Likewise.
13315 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
13316 (MAP_SYNC): Likewise.
13317 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
13318 (MAP_SYNC): Likewise.
13319 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
13320 (MAP_SYNC): Likewise.
13321 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
13322 (MAP_SYNC): Likewise.
13323 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
13324 (MAP_SYNC): Likewise.
13325 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
13326 Likewise.
13327 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
13328 Likewise.
13329
13330 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
13331 (MAP_SHARED_VALIDATE): New macro.
13332 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
13333 (MAP_SHARED_VALIDATE): Likewise.
13334
13335 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
13336
13337 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
13338 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
13339 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
13340
13341 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
13342
13343 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
13344 (DT_NUM): Updated to 35.
13345
13346 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
13347
13348 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
13349 __builtin_expect with __glibc_likely and __glibc_unlikely.
13350 (elf_machine_rela): Likewise.
13351 (elf_machine_lazy_rel): Likewise.
13352
13353 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
13354
13355 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
13356 __builtin_expect with __glibc_likely and __glibc_unlikely.
13357 (elf_machine_lazy_rel): Likewise.
13358
13359 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
13360
13361 [BZ #22638]
13362 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
13363 SHARED.
13364 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
13365
13366 2018-02-05 Andreas Schwab <schwab@suse.de>
13367
13368 [BZ #22761]
13369 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
13370 string.
13371
13372 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
13373
13374 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
13375 not check against PTHREAD_STACK_MIN.
13376
13377 2018-02-02 Sean McKean <smckean83@gmail.com>
13378
13379 [BZ #22735]
13380 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
13381
13382 2018-02-02 Florian Weimer <fweimer@redhat.com>
13383
13384 [BZ #22753]
13385 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
13386 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
13387 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
13388 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
13389 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
13390 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
13391 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
13392 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
13393 * manual/llio.texi (Scatter-Gather): Mention offset -1.
13394 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
13395 * misc/tst-preadvwritev2.c (do_test): Call it.
13396 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
13397
13398 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
13399
13400 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
13401
13402 * benchtests/bench-memcmp.c: Print json instead of plain text.
13403
13404 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
13405 every test run.
13406
13407 2018-02-01 Joseph Myers <joseph@codesourcery.com>
13408
13409 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
13410 version to 4.15.
13411 (s390_sthyi): New syscall.
13412
13413 * sysdeps/generic/ldbl-classify-compat.h: New file.
13414 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
13415 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
13416 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
13417 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
13418 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
13419 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
13420 * sysdeps/ieee754/dbl-64/s_finite.c: Include
13421 <ldbl-classify-compat.h>.
13422 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
13423 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
13424 <ldbl-classify-compat.h>.
13425 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
13426 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
13427 <ldbl-classify-compat.h>.
13428 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
13429 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
13430 <ldbl-classify-compat.h>.
13431 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
13432 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
13433 <ldbl-classify-compat.h>.
13434 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
13435 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
13436 <ldbl-classify-compat.h>.
13437 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
13438 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
13439 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
13440 * sysdeps/m68k/coldfire/math_private.h: Remove file.
13441 * sysdeps/microblaze/math_private.h: Likewise.
13442 * sysdeps/nios2/math_private.h: Likewise.
13443 * sysdeps/sh/math_private.h: Likewise.
13444
13445 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
13446 * sysdeps/m68k/coldfire/math_private.h: ... here.
13447 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
13448 * sysdeps/tile/math_private.h: Likewise.
13449 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
13450 Remove macro.
13451 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
13452 Likewise.
13453
13454 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
13455 Remove macro.
13456 (libc_fetestexcept): Likewise.
13457 (libc_feupdateenv_test): Likewise.
13458 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
13459 (libc_fetestexcept): Likewise.
13460 (libc_feupdateenv_test): Likewise.
13461 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
13462 (libc_fetestexcept): Likewise.
13463 (libc_feupdateenv_test): Likewise.
13464 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
13465 (libc_fetestexcept): Likewise.
13466 (libc_feupdateenv_test): Likewise.
13467
13468 * sysdeps/generic/math_private.h
13469 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
13470 New inline function.
13471 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
13472 Likewise.
13473
13474 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
13475 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
13476 * sysdeps/generic/math_private.h
13477 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
13478 inline function.
13479 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
13480 Likewise.
13481 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
13482 Likewise.
13483 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
13484 Likewise.
13485 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
13486 Likewise.
13487 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
13488 Likewise.
13489 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
13490 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
13491 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
13492 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
13493 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
13494 (__fegetenv): Likewise.
13495 (fesetenv): Likewise.
13496 (__fesetenv): Likewise.
13497 (feupdateenv): Likewise.
13498 (__feupdateenv): Likewise.
13499 (fegetround): Likewise.
13500 (__fegetround): Likewise.
13501 (fesetround): Likewise.
13502 (__fesetround): Likewise.
13503
13504 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
13505 (feraiseexcept): New macro.
13506 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
13507 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
13508 Remove macro.
13509 (__feraiseexcept): Likewise.
13510 (feclearexcept): Likewise.
13511 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
13512 (__feraiseexcept): Likewise.
13513 (feclearexcept): Likewise.
13514 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
13515 (__feraiseexcept): Likewise.
13516 (feclearexcept): Likewise.
13517 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
13518 (__feraiseexcept): Likewise.
13519 (feclearexcept): Likewise.
13520 (fetestexcept): Likewise.
13521
13522 * sysdeps/m68k/coldfire/math-tests.h: New file.
13523
13524 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
13525 * sysdeps/m68k/bits/fenv.h: ... here.
13526 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
13527 not define.
13528 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
13529 Likewise.
13530 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
13531 Likewise.
13532 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
13533 Likewise.
13534 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
13535 Likewise.
13536 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
13537 Define to 0.
13538 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
13539 (__FE_UNDEFINED): New enum constant.
13540 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
13541 Do not define.
13542 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
13543 Likewise.
13544 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
13545 Likewise.
13546 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
13547 to match generic bits/fenv.h.
13548 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
13549 Do not define.
13550
13551 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
13552 packed on bits.
13553 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
13554 * soft-fp/half.h (union _FP_UNION_H): Likewise.
13555 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
13556 * soft-fp/single.h (union _FP_UNION_S): Likewise.
13557
13558 2018-02-01 Carlos O'Donell <carlos@redhat.com>
13559 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
13560 Joseph Myers <joseph@codesourcery.com>
13561
13562 [BZ #21314]
13563 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
13564 (__log1p): Disable -Wmaybe-uninitialized for -Os around
13565 computation using c.
13566 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
13567 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
13568 computation using c.
13569
13570 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
13571
13572 * version.h (RELEASE): Set to "development".
13573 (VERSION): Set to "2.27.9000".
13574 * NEWS (2.28): New section.
13575
13576 * version.h (RELEASE): Set to "stable".
13577 (VERSION): Set to "2.27".
13578 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
13579
13580 * NEWS: Add the list of bugs fixed in 2.27.
13581
13582 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13583
13584 * stdlib/test-atexit-race-common.c (do_test): Check stack size
13585 against PTHREAD_STACK_MIN.
13586
13587 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
13588
13589 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
13590 New entries.
13591 (Rafal Luzynski, Andreas Schwab): Update.
13592
13593 2018-02-01 Rafal Luzynski <digitalfreak@lingonborough.com>
13594
13595 [BZ #10871]
13596 * NEWS: List the languages which actually use the alternative
13597 months feature in this release. Also explain that "alt_mon" and
13598 "ab_alt_mon" are optional.
13599
13600 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
13601
13602 [BZ #22765]
13603 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
13604
13605 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
13606
13607 * manual/install.texi (Tools for Compilation): Update the newest
13608 versions of gcc, binutils, texinfo, gawk, bison, and sed.
13609 * INSTALL: Regenerated.
13610
13611 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
13612
13613 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
13614 instead of __builtin_expect.
13615
13616 2018-01-30 Florian Weimer <fweimer@redhat.com>
13617
13618 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
13619 data.
13620 * nss/tst-nss-getpwent.c (do_test): Likewise.
13621
13622 2018-01-30 Rafal Luzynski <digitalfreak@lingonborough.com>
13623
13624 [BZ #10871]
13625 * localedata/locales/hr_HR (mon): Rename to...
13626 (alt_mon): This.
13627 (mon): Import from CLDR (genitive case).
13628 (d_t_fmt): Update the comment.
13629
13630 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
13631
13632 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
13633 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
13634 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
13635
13636 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
13637
13638 * mach/Versions: Fix version when __mach_host_self_ was added.
13639 * hurd/Versions: Fix version when _hurd_exec_paths was added.
13640 * sysdeps/mach/hurd/i386/ld.abilist: New file.
13641 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
13642 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
13643 * sysdeps/mach/hurd/i386/libc.abilist: New file.
13644 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
13645 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
13646 * sysdeps/mach/hurd/i386/libm.abilist: New file.
13647 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
13648 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
13649 * sysdeps/mach/hurd/i386/librt.abilist: New file.
13650 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
13651 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
13652 || to respect codestyle.
13653 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
13654 (do_test_bz20181): Rename accordingly.
13655 * malloc/malloc.c: Include <assert.h>.
13656 (assert): Do not define.
13657 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
13658 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
13659 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
13660 * sysdeps/mach/hurd/hp-timing.h: New file.
13661 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
13662
13663 2018-01-29 Darius Rad <darius@bluespec.com>
13664
13665 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
13666
13667 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
13668
13669 * sysdeps/init_array/crti.S (.section .init_array): Add
13670 PREINIT_FUNCTION when defined.
13671 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
13672 * config.h.in: Regenerate.
13673 * manual/platform.texi: Add RISC-V documenation for
13674 __riscv_flush_icache.
13675 * sysdeps/riscv/__longjmp.S: New file.
13676 * sysdeps/riscv/backtrace.c: Likewise.
13677 * sysdeps/riscv/bits/endian.h: Likewise.
13678 * sysdeps/riscv/bits/setjmp.h: Likewise.
13679 * sysdeps/riscv/bits/wordsize.h: Likewise.
13680 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
13681 * sysdeps/riscv/bsd-setjmp.c: Likewise.
13682 * sysdeps/riscv/dl-trampoline.S: Likewise.
13683 * sysdeps/riscv/gccframe.h: Likewise.
13684 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
13685 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
13686 * sysdeps/riscv/machine-gmon.h: Likewise.
13687 * sysdeps/riscv/memusage.h: Likewise.
13688 * sysdeps/riscv/setjmp.S: Likewise.
13689 * sysdeps/riscv/sys/asm.h: Likewise.
13690 * sysdeps/riscv/tls-macros.h: Likewise.
13691 * sysdeps/riscv/dl-tls.h: New file.
13692 * sysdeps/riscv/libc-tls.c: Likewise.
13693 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
13694 * sysdeps/riscv/nptl/tls.h: Likewise.
13695 * sysdeps/riscv/stackinfo.h: Likewise.
13696 * sysdeps/riscv/bits/fenv.h: New file.
13697 * sysdeps/riscv/e_sqrtl.c: Likewise.
13698 * sysdeps/riscv/fpu_control.h: Likewise.
13699 * sysdeps/riscv/math-tests.h: Likewise.
13700 * sysdeps/riscv/nofpu/Implies: Likewise.
13701 * sysdeps/riscv/sfp-machine.h: Likewise.
13702 * sysdeps/riscv/tininess.h: Likewise.
13703 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
13704 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
13705 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
13706 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
13707 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
13708 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
13709 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
13710 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
13711 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
13712 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
13713 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
13714 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
13715 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
13716 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
13717 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
13718 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
13719 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
13720 * sysdeps/riscv/rvd/s_finite.c: Likewise.
13721 * sysdeps/riscv/rvd/s_fma.c: Likewise.
13722 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
13723 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
13724 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
13725 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
13726 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
13727 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
13728 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
13729 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
13730 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
13731 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
13732 * sysdeps/riscv/rvf/fegetround.c: Likewise.
13733 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
13734 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
13735 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
13736 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
13737 * sysdeps/riscv/rvf/fesetround.c: Likewise.
13738 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
13739 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
13740 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
13741 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
13742 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
13743 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
13744 * sysdeps/riscv/rvf/math_private.h: Likewise.
13745 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
13746 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
13747 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
13748 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
13749 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
13750 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
13751 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
13752 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
13753 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
13754 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
13755 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
13756 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
13757 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
13758 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
13759 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
13760 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
13761 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
13762 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
13763 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
13764 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
13765 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
13766 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
13767 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
13768 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
13769 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
13770 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
13771 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
13772 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
13773 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
13774 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
13775 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
13776 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
13777 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
13778 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
13779 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
13780 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
13781 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
13782 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
13783 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
13784 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
13785 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
13786 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
13787 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
13788 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
13789 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
13790 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
13791 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
13792 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
13793 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
13794 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
13795 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
13796 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
13797 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
13798 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
13799 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
13800 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
13801 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
13802 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
13803 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
13804 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
13805 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
13806 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
13807 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
13808 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
13809 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
13810 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
13811 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
13812 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
13813 * sysdeps/riscv/Implies: New file.
13814 * sysdeps/riscv/Makefile: Likewise.
13815 * sysdeps/riscv/configure: Likewise.
13816 * sysdeps/riscv/configure.ac: Likewise.
13817 * sysdeps/riscv/nptl/Makefile: Likewise.
13818 * sysdeps/riscv/preconfigure: Likewise.
13819 * sysdeps/riscv/rv64/Implies-after: Likewise.
13820 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
13821 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
13822 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
13823 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
13824 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
13825 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
13826 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
13827 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
13828 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
13829 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
13830 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
13831 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
13832 (Config): Likewise.
13833
13834 2018-01-29 Florian Weimer <fweimer@redhat.com>
13835
13836 [BZ #22701]
13837 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
13838 libnsl_hidden_proto.
13839 * include/rpcsvc/yp.h (yp_xdrall): Declare with
13840 libnsl_hidden_proto.
13841 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
13842 * nis/Makefile (libnsl-routines): Add nss-default only for
13843 build-obsolete-nsl.
13844 * nis/nis_defaults.c (__nis_default_ttl): Add
13845 libnsl_hidden_nolink_def.
13846 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
13847 declaration.
13848 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
13849 * nis/ypclnt.c (yp_maplist): Likewise.
13850
13851 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
13852
13853 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
13854 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
13855
13856 2018-01-29 Joseph Myers <joseph@codesourcery.com>
13857
13858 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
13859 clean -dxfq for git updates when replacing sources.
13860
13861 * scripts/build-many-glibcs.py (Config.build_gcc): Use
13862 --disable-libcilkrts unconditionally, not just for the final GCC
13863 build for Hurd.
13864
13865 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
13866 version to 4.15.
13867
13868 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
13869
13870 [BZ #10871]
13871 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
13872 case).
13873
13874 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
13875
13876 [BZ #10871]
13877 * localedata/locales/be_BY (mon): Rename to...
13878 (alt_mon): This, then synchronize with CLDR (nominative case).
13879 (abmon): Rename to...
13880 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
13881 (mon): Import from CLDR (genitive case).
13882 (abmon): Likewise.
13883 * localedata/locales/be_BY@latin (mon): Rename to...
13884 (alt_mon): This.
13885 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
13886
13887 * localedata/locales/be_BY@latin (lang_name): Reworded to
13888 "biełaruskaja mova".
13889
13890 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
13891
13892 [BZ #10871]
13893 * localedata/locales/el_CY (mon): Renamed to...
13894 (alt_mon): This.
13895 (mon): Import from CLDR (genitive case).
13896 * localedata/locales/el_GR: Likewise.
13897
13898 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
13899
13900 [BZ #10871]
13901 * localedata/locales/ru_RU (mon): Rename to...
13902 (alt_mon): This.
13903 (abmon): Rename to...
13904 (ab_alt_mon): This.
13905 (mon): Import from CLDR (genitive case).
13906 (abmon): Copy from the old content except the 5th month which is
13907 now in the genitive case, even when abbreviated.
13908 * localedata/locales/ru_UA: Likewise.
13909 * time/tst-strptime.c (day_tests): Add an actual example of
13910 a difference between %b and %Ob in Russian.
13911
13912 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
13913
13914 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
13915 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
13916 a `c' variable.
13917 * resolv/res-close.c: Include <stdlib.h>.
13918 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
13919 <sys/wait.h>, <time.h>, <sys/uio.h>.
13920 (NOT_CANCEL_H): Add inclusion guard.
13921 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
13922 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
13923 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
13924 return 0.
13925 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
13926 vm_address_t * to ElfW(Addr) * for dl_main parameter.
13927 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
13928 instead of void *.
13929 * sysdeps/pthread/timer_create.c (timer_create): Do not use
13930 timer_ptr2id to cast struct timer_node * to void *.
13931 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
13932 --disable-libcilkrts to gcc configure.
13933 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
13934 and make them the default for now.
13935 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
13936 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
13937 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
13938 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
13939 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
13940 MACH_IPC_COMPAT.
13941 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
13942 __task_terminate would ever return successfully.
13943 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
13944 to global scope.
13945 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
13946 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
13947 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
13948 critical section to make code simpler and avoid warning.
13949 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
13950 critical section to make code simpler and avoid warning.
13951 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
13952 const char * instead of char *.
13953 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
13954 __hurd_file_name_split, hurd_file_name_split,
13955 __hurd_directory_name_split, hurd_directory_name_split,
13956 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
13957 hurd_file_name_path_lookup): Make lookup function parameter take a
13958 const char *name instead of char *name.
13959 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
13960 __hurd_directory_name_split): Likewise.
13961 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
13962 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
13963 * sysdeps/mach/hurd/check_native.c: New file.
13964 * sysdeps/mach/hurd/check_pf.c: New file.
13965 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
13966 (__freeifaddrs): Define macro to freeifaddrs.
13967 * sysdeps/mach/hurd/libhurduser.abilist: New file.
13968 * sysdeps/mach/libmachuser.abilist: New file.
13969 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
13970 (do_test_bz20181): Rename accordingly.
13971 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
13972 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
13973 <sys/mount.h>.
13974 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
13975 version only if __USE_EXTERN_INLINES is defined.
13976 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
13977 __hurd_sockfail): Likewise.
13978 (_hurd_fd_get): Always declare functions, and provide inline versions
13979 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
13980 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
13981 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
13982 _hurd_port_set): Always declare functions, and provide inline versions
13983 only if __USE_EXTERN_INLINES and _LIBC are defined and
13984 IS_IN(libc).
13985 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
13986 _hurd_critical_section_unlock): Likewise.
13987 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
13988 * __hurd_threadvar_location): Likewise.
13989 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
13990 _hurd_userlink_clear): Likewise.
13991 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
13992 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
13993 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
13994 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
13995 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
13996 __spin_lock_locked): Likewise.
13997 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
13998 __spin_lock_locked): Likewise.
13999 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
14000 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
14001 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
14002 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
14003 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
14004 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
14005 _POSIX_NO_TRUNC): Define to 0.
14006 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
14007 check size against PTHREAD_STACK_MIN.
14008 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
14009 IS_IN(libpthread)]: Include <sigsetops.h>.
14010 * mach/Makefile (user-interfaces): Add mach/gnumach.
14011 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
14012 * sysdeps/mach/configure (mach_interface_list): Regenerate.
14013 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
14014 instead of invalid -1.
14015 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
14016 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
14017 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
14018 <net/ppp_defs.h>.
14019
14020 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
14021
14022 * hurd/fcntl-internal.h: New file.
14023
14024 2018-01-27 James Clarke <jrtc27@jrtc27.com>
14025
14026 * sysdeps/hppa/fpu/libm-test-ulps: Update.
14027
14028 * sysdeps/alpha/fpu/libm-test-ulps: Update.
14029
14030 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
14031
14032 [BZ #22701]
14033 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
14034 Build only shared objects.
14035
14036 2018-01-26 Carlos O'Donell <carlos@redhat.com>
14037
14038 * README: Update for hppa.
14039
14040 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
14041
14042 * sysdeps/sparc/fpu/libm-test-ulps: Update
14043 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
14044
14045 2018-01-26 Carlos O'Donell <carlos@redhat.com>
14046
14047 Revert:
14048
14049 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
14050
14051 [BZ #22563]
14052 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
14053 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
14054 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
14055 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
14056 to feature_1.
14057
14058 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
14059
14060 [BZ #22563]
14061 * bits/types/__cancel_jmp_buf_tag.h: New file.
14062 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
14063 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
14064 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
14065 * nptl/Makefile (headers): Add
14066 bits/types/__cancel_jmp_buf_tag.h.
14067 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
14068 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
14069 * sysdeps/nptl/pthread.h: Include
14070 <bits/types/__cancel_jmp_buf_tag.h>.
14071 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
14072 __cancel_jmp_buf.
14073 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
14074
14075 2018-01-25 Rafal Luzynski <digitalfreak@lingonborough.com>
14076
14077 [BZ #10871]
14078 * localedata/locales/uk_UA (mon): Renamed to...
14079 (alt_mon): This.
14080 (alt_digits): "0" removed and then renamed to...
14081 (mon): This.
14082 (date_fmt): Definition changed not to use the alternative
14083 digits hack.
14084
14085 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
14086
14087 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
14088 FLAG_RISCV_FLOAT_ABI_DOUBLE.
14089 * elf/elf.h (EF_RISCV_RVC): New define.
14090 (EF_RISCV_FLOAT_ABI): Likewise.
14091 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
14092 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
14093 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
14094 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
14095 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
14096 define.
14097 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
14098
14099 2018-01-25 Andreas Schwab <schwab@suse.de>
14100
14101 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
14102 single quotes.
14103 * sysdeps/gnu/configure: Regenerate.
14104 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
14105 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
14106 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
14107 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
14108 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
14109 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
14110 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
14111 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
14112
14113 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
14114
14115 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
14116 URL, and run autoconf, make it the default for now.
14117
14118 2018-01-24 Joseph Myers <joseph@codesourcery.com>
14119
14120 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
14121 soft-float ColdFire configuration.
14122
14123 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
14124 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
14125 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
14126
14127 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
14128 MicroBlaze file.
14129
14130 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
14131 ....
14132 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
14133 ... here.
14134 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
14135 New file.
14136
14137 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
14138 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
14139 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
14140 file.
14141
14142 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
14143
14144 [BZ #22742]
14145 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
14146 Rename to __reserved and add comment.
14147 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
14148 Rename to __reserved.
14149
14150 2018-01-24 Joseph Myers <joseph@codesourcery.com>
14151
14152 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
14153 i686-gnu configurations.
14154 (Context.run_builds): Include mig, gnumach and hurd in components
14155 considered.
14156 (Context.checkout): Add mig, gnumach and hurd to components.
14157 (Context.checkout_tar): Add URL mappings for mig, gnumach and
14158 hurd.
14159 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
14160 (Config.build): Install gnumach headers, build mig and install
14161 hurd headers for 'gnu' OS.
14162 (Config.install_gnumach_headers): New function.
14163 (Config.install_hurd_headers): Likewise.
14164 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
14165 when building for 'gnu' OS.
14166
14167 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
14168
14169 * manual/tunables.texi (Hardware Capability Tunables): Fix
14170 spelling.
14171
14172 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
14173
14174 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
14175 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
14176 (ALTMON_11, ALTMON_12): Improve documentation.
14177 * manual/time.texi (strftime): Likewise.
14178
14179 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
14180
14181 [BZ #10871]
14182 * localedata/locales/pl_PL: Alternative month names added,
14183 primary month names are genitive now.
14184 * time/tst-strptime.c (day_tests): Actually use a genitive case
14185 of a month name in Polish language.
14186
14187 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
14188
14189 [BZ #10871]
14190 * manual/locale.texi: Document ALTMON_1..12 constants for
14191 nl_langinfo. Specify when to use ALTMON instead of MON.
14192 * manual/time.texi (strftime, strptime): Document GNU extension
14193 permitting O modifier with %B and %b. Specify when to use
14194 %OB instead of %B.
14195
14196 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
14197
14198 [BZ #10871]
14199 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
14200 names, define them as the same as abbreviated month names explicitly.
14201 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
14202 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
14203 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
14204 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
14205 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
14206 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
14207 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
14208 _NL_WABALTMON_12): New enum constants.
14209 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
14210 wab_alt_mon, and ab_alt_mon_defined members.
14211 (time_output): Output ab_alt_mon and wab_alt_mon members.
14212 (time_read): Read them, initialize them as copies of abmon and wabmon
14213 respectively if they are missing, initialize ab_alt_mon_defined.
14214 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
14215 * locale/programs/locfile-kw.h: Regenerate.
14216 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
14217 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
14218 and ru_RU.UTF-8.
14219 * time/strftime_l.c (a_altmonth, aam_len): New macros.
14220 [!COMPILE_WIDE] (ABALTMON_1): New macro.
14221 (__strftime_internal): Handle %Ob and %Oh formats.
14222 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
14223 (__strptime_internal): Handle %Ob and %Oh formats.
14224 * time/tst-strptime.c (day_tests): Add more tests to parse different
14225 forms of month names including the new %Ob format specifier.
14226
14227 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
14228
14229 [BZ #10871]
14230 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
14231 define them as the same as primary full month names explicitly.
14232 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
14233 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
14234 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
14235 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
14236 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
14237 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
14238 _NL_WALTMON_12): New enum constants.
14239 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
14240 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
14241 macros.
14242 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
14243 walt_mon, and alt_mon_defined members.
14244 (time_output): Output alt_mon and walt_mon members.
14245 (time_read): Read them, initialize them as copies of mon and wmon
14246 respectively if they are missing, initialize alt_mon_defined.
14247 * locale/programs/locfile-kw.gperf (alt_mon): Define.
14248 * locale/programs/locfile-kw.h: Regenerate.
14249 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
14250 * localedata/tst-langinfo.c (map): Add tests for the new constants
14251 ALTMON_1 .. ALTMON_12.
14252 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
14253 and pl_PL.UTF-8.
14254 * time/strftime_l.c (f_altmonth): New macro.
14255 (__strftime_internal): Handle %OB format.
14256 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
14257 (__strptime_internal): Handle %OB format.
14258 * time/tst-strptime.c (day_tests): Add tests to parse different forms
14259 of month names including the new %OB format specifier.
14260
14261 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
14262
14263 [BZ #22685]
14264 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
14265 from ABORT_TRANSACTION.
14266 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
14267 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
14268 ABORT_TRANSACTION_IMPL): Likewise.
14269 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
14270 Linux code, but remove the code that aborts transactions.
14271
14272 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
14273
14274 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
14275
14276 2018-01-19 Rafal Luzynski <digitalfreak@lingonborough.com>
14277
14278 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
14279 in date: "2004-14-09" should be "2004-09-14".
14280 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
14281 "2003-15-09" should be "2003-09-15".
14282
14283 2018-01-18 Arjun Shankar <arjun@redhat.com>
14284
14285 [BZ #22343]
14286 [BZ #22774]
14287 CVE-2018-6485
14288 CVE-2018-6551
14289 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
14290 after padding.
14291 (_int_memalign): check for integer overflow before calling
14292 _int_malloc.
14293 * malloc/tst-malloc-too-large.c: New test.
14294 * malloc/Makefile: Add tst-malloc-too-large.
14295
14296 2018-01-18 Rafal Luzynski <digitalfreak@lingonborough.com>
14297
14298 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
14299 in date: "2017-24-07" should be "2017-07-24".
14300 * localedata/locales/mai_IN: Likewise.
14301 * localedata/locales/mai_NP: Likewise.
14302
14303 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
14304
14305 * po/ru.po: Update translations.
14306
14307 2018-01-17 Joseph Myers <joseph@codesourcery.com>
14308
14309 [BZ #22719]
14310 * sysdeps/hppa/backtrace.c: New file.
14311
14312 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
14313
14314 [BZ #22715]
14315 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
14316 align La_x86_64_retval to VEC_SIZE.
14317
14318 2018-01-16 Joseph Myers <joseph@codesourcery.com>
14319
14320 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
14321 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
14322
14323 2018-01-16 Florian Weimer <fweimer@redhat.com>
14324
14325 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
14326 Move tst-thread-exit-clobber ...
14327 [$(CXX)] (tests-unsupported): ... to here.
14328
14329 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
14330
14331 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
14332 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
14333 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
14334 (_dl_aarch64_cap_flags): Update.
14335 (_DL_HWCAP_COUNT): Update.
14336
14337 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
14338
14339 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
14340 (_DL_HWCAP_LAST): Remove.
14341 (_DL_HWCAP_COUNT): Move to ...
14342 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
14343 (_DL_HWCAP_COUNT): ... here.
14344
14345 2018-01-16 Florian Weimer <fweimer@redhat.com>
14346
14347 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
14348 mode with GNU extensions.
14349
14350 2018-01-15 Alan Hayward <alan.hayward@arm.com>
14351
14352 * elf/elf.h (NT_ARM_SVE): Define.
14353
14354 2018-01-15 Florian Weimer <fweimer@redhat.com>
14355
14356 [BZ #22636]
14357 * nptl/tst-minstack-throw.cc: New file.
14358 * nptl/Makefile (tests): Add tst-minstack-throw.
14359 (LDLIBS-tst-minstack-throw): Link with libstdc++.
14360 [!CXX] (tests-unsupported): Add tst-minstack-throw.
14361
14362 2018-01-15 Joseph Myers <joseph@codesourcery.com>
14363
14364 * scripts/build-many-glibcs.py (Context.checkout): Default
14365 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
14366 version to 1.1.0.
14367
14368 2018-01-13 Carlos O'Donell <carlos@redhat.com>
14369
14370 [BZ #22707]
14371 * elf/elf.h (DF_1_STUB): Define.
14372 (DF_1_PIE): Define.
14373
14374 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
14375
14376 [BZ #22697]
14377 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
14378 Do not add 0.5 to integer or out-of-range arguments.
14379
14380 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
14381
14382 * po/bg.po: Update translations.
14383 * po/cs.po: Likewise.
14384 * po/de.po: Likewise.
14385 * po/ko.po: Likewise.
14386 * po/pl.po: Likewise.
14387 * po/sv.po: Likewise.
14388 * po/uk.po: Likewise.
14389 * po/vi.po: Likewise.
14390
14391 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
14392
14393 * aarch64/start.S (_start): Use __wrap_main.
14394 (__wrap_main): New local symbol.
14395
14396 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
14397
14398 [BZ #22679]
14399 CVE-2018-1000001
14400 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
14401 generic_getcwd if the path returned by getcwd syscall is not absolute.
14402 * io/tst-getcwd-abspath.c: New test.
14403 * io/Makefile (tests): Add tst-getcwd-abspath.
14404
14405 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
14406
14407 * malloc/malloc.c (malloc_consolidate): Add size check.
14408
14409 2018-01-12 Florian Weimer <fweimer@redhat.com>
14410
14411 * support/write_message.c (write_message): Preserve errno.
14412 * support/check.c (print_failure): Likewise.
14413 * support/support_test_verify_impl.c (support_test_verify_impl):
14414 Likewise.
14415 * support/support_test_compare_failure.c
14416 (support_test_compare_failure): Likewise.
14417
14418 2018-01-12 Florian Weimer <fweimer@redhat.com>
14419
14420 [BZ #22701]
14421 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
14422 Prevent installation of libnsl.so.
14423 (libnsl-inhibit-o): Do not build (or install) static libraries.
14424
14425 2018-01-12 Egmont Koblinger <egmont@gmail.com>
14426
14427 [BZ #22657]
14428 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
14429 before the day number which may produce a double space.
14430 (date_fmt): Likewise.
14431
14432 2018-01-12 Joseph Myers <joseph@codesourcery.com>
14433
14434 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
14435 instead of fegetenv.
14436
14437 2018-01-11 Joseph Myers <joseph@codesourcery.com>
14438
14439 [BZ #22702]
14440 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
14441 comment to say exceptions are discarded.
14442 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
14443 __fegetenv.
14444 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
14445 be enabled.
14446
14447 2018-01-11 Florian Weimer <fweimer@redhat.com>
14448
14449 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
14450 and error message.
14451
14452 2018-01-11 Florian Weimer <fweimer@redhat.com>
14453
14454 [BZ #22636]
14455 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
14456 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
14457
14458 2018-01-10 Joseph Myers <joseph@codesourcery.com>
14459
14460 [BZ #22693]
14461 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
14462 negative arguments in test for NaN or infinity argument.
14463
14464 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
14465
14466 * po/libc.pot: Regenerate.
14467
14468 2018-01-10 Florian Weimer <fweimer@redhat.com>
14469
14470 [BZ #22636]
14471 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
14472 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
14473
14474 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
14475
14476 * hurd/hurd/fd.h: Include <fcntl.h>
14477 (__hurd_at_flags): New function.
14478 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
14479 with call to __hurd_at_flags.
14480 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
14481 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
14482 __faccessat
14483 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
14484 (__access_noerrno): Use __faccessat_common instead of access_common.
14485 (__access): Likewise.
14486 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
14487 with a call to __faccessat.
14488 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
14489 (__faccessat_common): ... this. Move implementation of __access into it when
14490 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
14491 reauthenticate_cwdir_at helper to implement AT mechanism.
14492 (__faccessat_noerrno): New function, just calls __faccessat_common.
14493 (__faccessat): New function, just calls __faccessat_common.
14494 (faccessat): Define weak alias.
14495
14496 2018-01-10 Joseph Myers <joseph@codesourcery.com>
14497
14498 [BZ #22691]
14499 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
14500 (CFLAGS-s_fmaxmagl.c): New variable.
14501 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
14502
14503 [BZ #22690]
14504 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
14505 long int for arguments of possibly overflowing addition or
14506 subtraction.
14507 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
14508
14509 2018-01-09 Joseph Myers <joseph@codesourcery.com>
14510
14511 [BZ #22688]
14512 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
14513 (CFLAGS-e_remainderl.c): New variable.
14514
14515 [BZ #22687]
14516 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
14517 variable.
14518 (CFLAGS-s_cacoshl.c): Likewise.
14519 (CFLAGS-s_casinhl.c): Likewise.
14520 (CFLAGS-s_catanl.c): Likewise.
14521 (CFLAGS-s_catanhl.c): Likewise.
14522 (CFLAGS-s_cexpl.c): Likewise.
14523 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
14524 (CFLAGS-s_csinhl.c): Likewise.
14525 (CFLAGS-s_clogl.c): Likewise.
14526 (CFLAGS-s_clog10l.c): Likewise.
14527 (CFLAGS-s_csinl.c): Likewise.
14528 (CFLAGS-s_csqrtl.c): Likewise.
14529
14530 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
14531 2017-01-09 Svante Signell <svante.signell@gmail.com>
14532
14533 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
14534 (_hurd_exec_paths): New function.
14535 * hurd/hurd.h (_hurd_exec): Deprecate function.
14536 (_hurd_exec_paths): Declare function.
14537 * hurd/Versions: Export _hurd_exec_paths.
14538 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
14539 (__execve): Use __getcwd to build absolute path, and use
14540 _hurd_exec_paths instead of _hurd_exec.
14541 * sysdeps/mach/hurd/spawni.c: Likewise.
14542 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
14543 _hurd_exec.
14544
14545 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
14546
14547 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
14548 test instead of failing in case of ENOENT returned by posix_openpt.
14549
14550 2018-01-08 Florian Weimer <fweimer@redhat.com>
14551
14552 resolv: Support binary labels in test framework.
14553 * support/resolv_test.c (struct to_be_freed): Remove.
14554 (struct compressed_name): New.
14555 (allocate_compressed_name, ascii_tolower)
14556 (compare_compressed_name): New functions.
14557 (struct resolv_response_builder): Update type of
14558 compression_offsets for use with tsearch. Rempve to_be_freed.
14559 (response_push_pointer_to_free): Remove function.
14560 (resolv_response_add_name): Rewrite using struct compressed_name
14561 and tsearch instead of hsearch_r.
14562 (response_builder_allocate): Remove initialization of
14563 compression_offsets.
14564 (response_builder_free): Update for removal of to_be_freed. Use
14565 tdestroy instead of hdestroy_r.
14566 * resolv/Makefile (tests): Add tst-resolv-binary.
14567 (tst-resolv-binary): Link with -lresolv -lpthread.
14568
14569 2018-01-08 Florian Weimer <fweimer@redhat.com>
14570
14571 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
14572 time. Pass positive flag instead of negative flag to
14573 support_test_compare_failure.
14574 (support_test_compare_failure): Change negative parameter to
14575 positive.
14576 * support/support_test_compare_failure.c (report)
14577 (support_test_compare_failure): Likewise.
14578 * support/tst-test_compare.c (return_ssize_t, return_int): New.
14579 (do_test): Check int/size_t, ssize_t/size_t comparisons.
14580
14581 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
14582
14583 [BZ #22637]
14584 * nptl/descr.h (stackblock, stackblock_size): Update comments.
14585 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
14586 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
14587 stacksize.
14588 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
14589
14590 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
14591
14592 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
14593 Add s_sincosf-sse2 and s_sincosf-fma.
14594 (CFLAGS-s_sincosf-fma.c): New.
14595 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
14596 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
14597 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
14598 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
14599 __sincosf is defined.
14600
14601 2018-01-08 Florian Weimer <fweimer@redhat.com>
14602
14603 * nptl/tst-thread-exit-clobber.cc: New file.
14604 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
14605 C++11 mode.
14606 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
14607 (tests): Add tst-thread-exit-clobber.
14608 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
14609
14610 2018-01-08 Florian Weimer <fweimer@redhat.com>
14611
14612 * support/check.h (support_static_assert): Define.
14613 (TEST_COMPARE): Use it.
14614
14615 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
14616
14617 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
14618 [!__RLIM_T_MATCHES_RLIM64_T]
14619 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
14620 __getrlimit64. Add libc_hidden_weak.
14621
14622 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
14623
14624 * elf/elf.h (R_RISCV_NONE): New define.
14625 (R_RISCV_32): Likewise.
14626 (R_RISCV_64): Likewise.
14627 (R_RISCV_RELATIVE): Likewise.
14628 (R_RISCV_COPY): Likewise.
14629 (R_RISCV_JUMP_SLOT): Likewise.
14630 (R_RISCV_TLS_DTPMOD32): Likewise.
14631 (R_RISCV_TLS_DTPMOD64): Likewise.
14632 (R_RISCV_TLS_DTPREL32): Likewise.
14633 (R_RISCV_TLS_DTPREL64): Likewise.
14634 (R_RISCV_TLS_TPREL32): Likewise.
14635 (R_RISCV_TLS_TPREL64): Likewise.
14636 * Makerules (make-link-multidir): Make directories before linking into
14637 them.
14638 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
14639 define.
14640 (VDSO_HASH_LINUX_4_15): Likewise.
14641 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
14642 in subdirectories of lib.
14643 * nptl/Makefile (/librt.so): Always depend on
14644 "$(shared-thread-library)".
14645
14646 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
14647
14648 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
14649 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
14650 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
14651 (___tls_get_addr).
14652 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
14653 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
14654 "-O2 -march=i686".
14655 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
14656 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
14657 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
14658 * sysdeps/gnu/glob-lstat-compat.c: New file.
14659 * sysdeps/gnu/glob64-lstat-compat.c: New file.
14660 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
14661
14662 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
14663
14664 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
14665 Reserve 16 chars to reloc_addr before calling _itoa_word.
14666
14667 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
14668
14669 [BZ #22678]
14670 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
14671 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
14672
14673 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
14674 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
14675
14676 * resource/tst-getrlimit.c: Add copyright header.
14677
14678 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
14679 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14680
14681 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
14682 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
14683 Define __GI_getrlimit64 as weak alias of __getrlimit64.
14684 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
14685 instead.
14686 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
14687 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
14688 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
14689 RLIM64_INFINITY): Fix values to match the kernel ones.
14690 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
14691 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
14692 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
14693 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
14694 getrlimit64@@GLIBC_2_27.
14695 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
14696 and setrlimit64.
14697 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
14698 getrlimit, setrlimit, getrlimit64 and setrlimit64.
14699 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
14700 setrlimit, getrlimit64 and setrlimit64.
14701
14702 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
14703
14704 [BZ #22648]
14705 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
14706 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
14707
14708 2018-01-04 Joseph Myers <joseph@codesourcery.com>
14709
14710 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
14711 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
14712 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
14713
14714 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14715
14716 [BZ #15479]
14717 [BZ #22666]
14718 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
14719 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
14720
14721 [BZ #15479]
14722 [BZ #22665]
14723 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
14724 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
14725 * sysdeps/alpha/fpu/s_floor.c: Likewise.
14726 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
14727
14728 2018-01-04 Florian Weimer <fweimer@redhat.com>
14729
14730 [BZ #22667]
14731 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
14732 Align the stack before calling exit.
14733 * stdlib/tst-makecontext-align.c: New file.
14734 * stdlib/Makefile (tests): Add tst-makecontext-align.
14735
14736 2018-01-04 Florian Weimer <fweimer@redhat.com>
14737
14738 Add support for calling dlvsym from libc.so.
14739 * include/dlfcn.h (__libc_dlvsym): Declare.
14740 * elf/Makefile (tests-static-internal): Add
14741 tst-libc_dlvsym-static.
14742 (tests-internal): Add tst-libc_dlvsym.
14743 (modules-names): Add tst-libc_dlvsym-dso.
14744 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
14745 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
14746 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
14747 object tst-libc_dlvsym-dso.so needs to be built before running
14748 these tests.
14749 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
14750 * elf/Versions: Export __libc_dlvsym.
14751 * elf/dl-libc.c (struct do_dlvsym_args): New.
14752 (do_dlvsym, __libc_dlvsym): New functions.
14753 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
14754 (_dl_open_hook2): New variable.
14755 (__libc_register_dl_open_hook): Set it.
14756 * elf/tst-libc_dlvsym-dso.c: New file.
14757 * elf/tst-libc_dlvsym-static.c: Likewise.
14758 * elf/tst-libc_dlvsym.c: Likewise.
14759 * elf/tst-libc_dlvsym.h: Likewise.
14760
14761 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
14762
14763 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
14764 include <sys/mount.h>.
14765
14766 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
14767
14768 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
14769 Add __NO_MATH_ERRNO__ check.
14770
14771 2018-01-02 Joseph Myers <joseph@codesourcery.com>
14772
14773 * sysdeps/mips/mips32/libm-test-ulps: Update.
14774 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
14775
14776 2018-01-02 Florian Weimer <fweimer@redhat.com>
14777
14778 * misc/tst-pselect.c: Add copyright header.
14779
14780 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
14781
14782 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
14783 comment.
14784 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
14785 comment.
14786 (settrlimit): Rename into setrlimit.
14787 (__sttrlimit): Rename into __setrlimit.
14788
14789 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
14790 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
14791 never defined in that case.
14792
14793 2018-01-02 Joseph Myers <joseph@codesourcery.com>
14794
14795 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
14796
14797 * sysdeps/arm/libm-test-ulps: Update.
14798
14799 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
14800 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
14801
14802 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
14803
14804 * NEWS: Add cosf and sincosf to list of optimized functions.
14805
14806 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
14807
14808 [BZ #22660]
14809 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
14810 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
14811 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
14812 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
14813
14814 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
14815
14816 [BZ #22433]
14817 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
14818
14819 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
14820 making a copy of it.
14821
14822 2018-01-01 Joseph Myers <joseph@codesourcery.com>
14823
14824 * manual/texinfo.tex: Update to version 2017-12-26.21 with
14825 trailing whitespace removed.
14826 * scripts/config.guess: Update to version 2018-01-01.
14827 * scripts/config.sub: Update to version 2018-01-01.
14828 * scripts/move-if-change: Update from gnulib.
14829
14830 * NEWS: Update copyright dates.
14831 * catgets/gencat.c (print_version): Likewise.
14832 * csu/version.c (banner): Likewise.
14833 * debug/catchsegv.sh: Likewise.
14834 * debug/pcprofiledump.c (print_version): Likewise.
14835 * debug/xtrace.sh (do_version): Likewise.
14836 * elf/ldconfig.c (print_version): Likewise.
14837 * elf/ldd.bash.in: Likewise.
14838 * elf/pldd.c (print_version): Likewise.
14839 * elf/sotruss.sh: Likewise.
14840 * elf/sprof.c (print_version): Likewise.
14841 * iconv/iconv_prog.c (print_version): Likewise.
14842 * iconv/iconvconfig.c (print_version): Likewise.
14843 * locale/programs/locale.c (print_version): Likewise.
14844 * locale/programs/localedef.c (print_version): Likewise.
14845 * login/programs/pt_chown.c (print_version): Likewise.
14846 * malloc/memusage.sh (do_version): Likewise.
14847 * malloc/memusagestat.c (print_version): Likewise.
14848 * malloc/mtrace.pl: Likewise.
14849 * manual/libc.texinfo: Likewise.
14850 * nptl/version.c (banner): Likewise.
14851 * nscd/nscd.c (print_version): Likewise.
14852 * nss/getent.c (print_version): Likewise.
14853 * nss/makedb.c (print_version): Likewise.
14854 * posix/getconf.c (main): Likewise.
14855 * scripts/test-installation.pl: Likewise.
14856 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
14857
14858 * All files with FSF copyright notices: Update copyright dates
14859 using scripts/update-copyrights.
14860 * locale/programs/charmap-kw.h: Regenerated.
14861 * locale/programs/locfile-kw.h: Likewise.
14862
14863 2017-12-31 Zack Weinberg <zackw@panix.com>
14864
14865 * libio/bits/libio-ldbl.h: Correct check for improper
14866 inclusion. Add own multiple include guard.
14867
14868 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
14869 Dmitry V. Levin <ldv@altlinux.org>
14870
14871 [BZ #22625]
14872 CVE-2017-16997
14873 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
14874 string token expansion. Check for NULL pointer or empty string possibly
14875 returned by expand_dynamic_string_token.
14876 (decompose_rpath): Check for empty path after dynamic string
14877 token expansion.
14878
14879 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
14880
14881 [BZ #22433]
14882 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
14883
14884 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
14885 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
14886 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
14887 and PTRACE_SYSCALL.
14888 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
14889 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
14890 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
14891 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
14892 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
14893 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
14894
14895 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
14896 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
14897 __ptrace_peeksiginfo_flags, ptrace): Move to ...
14898 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
14899 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14900 bits/ptrace-shared.h.
14901 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
14902 <bits/ptrace-shared.h>.
14903 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
14904 __ptrace_peeksiginfo_flags, ptrace): Remove.
14905 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
14906 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
14907 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
14908 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
14909 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
14910
14911 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
14912
14913 [BZ #17804]
14914 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
14915 end of the loop. Improve comments.
14916
14917 2017-12-29 Zack Weinberg <zackw@panix.com>
14918
14919 [BZ #22615]
14920 * manual/errno.texi (Checking for Errors): Explicitly say that errno
14921 might be set on success.
14922
14923 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
14924
14925 [BZ #22611]
14926 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
14927 is unchanged on success.
14928
14929 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
14930
14931 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
14932 updated.
14933 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
14934 expand_dynamic_string_token): Likewise.
14935 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
14936 is_path argument.
14937
14938 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
14939 contains ':'.
14940
14941 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
14942 is set and name contains ':', and all code depending on these checks.
14943
14944 2017-12-24 Zack Weinberg <zackw@panix.com>
14945
14946 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
14947 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
14948 respectively.
14949 * libio/libio.h: Rename the original version of this file to
14950 libio/bits/libio.h. Error out if not included by stdio.h or the
14951 stub libio.h.
14952 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
14953 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
14954 if not included by bits/libio.h or the stub _G_config.h.
14955 * sysdeps/unix/sysv/linux/_G_config.h: Move to
14956 sysdeps/unix/sysv/linux/bits. Error out if not included by
14957 bits/libio.h or the stub _G_config.h.
14958 * libio/stdio.h: Include bits/libio.h, not libio.h.
14959 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
14960 well as libio.h and _G_config.h.
14961
14962 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
14963 * libio/strfile.h, stdio-common/vfscanf.c
14964 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
14965 Include stdio.h, not _G_config.h nor libio.h.
14966 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
14967 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
14968
14969 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
14970
14971 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
14972
14973 [BZ #22347]
14974 * stdlib/getrandom.c (getrandom): Fix comment.
14975 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
14976
14977 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
14978
14979 [BZ #21161]
14980 * manual/arith.texi (strtoul): Fix a typo.
14981
14982 [BZ #22596]
14983 * manual/arith.texi (finite): Fix the description of the return
14984 value.
14985
14986 2017-12-22 Eric Blake <ebb9@byu.net>
14987
14988 Avoid gcc warnings on cygwin
14989 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
14990 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
14991 Avoid unused variable.
14992
14993 2017-12-22 Florian Weimer <fweimer@redhat.com>
14994
14995 * io/Makefile (routines): Add copy_file_range.
14996 (tests): Add tst-copy_file_range.
14997 (tests-static, tests-internal): Add tst-copy_file_range-compat.
14998 * io/Versions (GLIBC_2.27): Export copy_file_range.
14999 * io/copy_file_range-compat.c: New file.
15000 * io/copy_file_range.c: Likewise.
15001 * io/tst-copy_file_range-compat.c: Likewise.
15002 * io/tst-copy_file_range.c: Likewise.
15003 * manual/llio.texi (Copying File Data): New section.
15004 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
15005 * support/Makefile (libsupport-routines): Add support-xfstat,
15006 xftruncate, xlseek.
15007 * support/support-xfstat.c: New file.
15008 * support/xftruncate.c: Likewise.
15009 * support/xlseek.c: Likewise.
15010 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
15011 * sysdeps/unix/sysv/linux/**.abilist: Update.
15012 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
15013
15014 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
15015
15016 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
15017 disable-multi-arch variant to aarch64-linux-gnu.
15018
15019 2017-12-20 Joseph Myers <joseph@codesourcery.com>
15020
15021 * manual/texinfo.tex: Update to version 2017-12-18.20 with
15022 trailing whitespace removed.
15023 * scripts/config.guess: Update to version 2017-12-17.
15024 * scripts/config.sub: Update to version 2017-11-23.
15025 * scripts/install-sh: Update to version 2017-09-23.17.
15026 * scripts/move-if-change: Update to version 2017-09-13 06:45.
15027
15028 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15029
15030 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
15031 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
15032 * sysdeps/tile/_mcount.S (__mcount): Likewise.
15033 * sysdeps/tile/crti.S (_init, _fini): Likewise.
15034 * sysdeps/tile/crtn.S: Likewise.
15035 * sysdeps/tile/dl-start.S (_start): Likewise.
15036 * sysdeps/tile/dl-trampoline.S: Likewise.
15037 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
15038 * sysdeps/tile/start.S (_start): Likewise.
15039 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
15040 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
15041 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
15042 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
15043 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
15044 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
15045 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
15046
15047 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
15048 comment.
15049 * sysdeps/tile/preconfigure: Remove tilegx folder.
15050 * sysdeps/tile/tilegx/Implies: Move definitions to ...
15051 * sysdeps/tile/Implies: ... here.
15052 * sysdeps/tile/tilegx/Makefile: Move rules to ...
15053 * sysdeps/tile/Makefile: ... here.
15054 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
15055 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
15056 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
15057 * sysdeps/tile/bits/wordsize.h: ... here.
15058 * sysdeps/tile/tilegx/*: Move to ...
15059 * sysdeps/tile/*: ... here.
15060 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
15061 * sysdeps/tile/tilegx32/Implies: ... here.
15062 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
15063 * sysdeps/tile/tilegx64/Implies: ... here.
15064 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
15065 to ...
15066 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
15067 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
15068 * sysdeps/unix/sysv/linux/tile/*: ... here.
15069 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
15070 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
15071 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
15072 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
15073
15074 * README: Remove tilepro-*-linux-gnu from supported architecture.
15075 * scripts/build-many-glibcs.py: Likewise.
15076 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
15077 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
15078 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
15079 elf_machine_matches_host, elf_machine_dynamic,
15080 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
15081 howto, elf_machine_rela): Likewise.
15082 * sysdeps/tile/dl-start.S (_start): Likewise.
15083 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
15084 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
15085 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
15086 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
15087 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
15088 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
15089 Likewise.
15090 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
15091 * sysdeps/tile/preconfigure: Likewise.
15092 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
15093 POINTER_CHK_GUARD): Likewise.
15094 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
15095 * sysdeps/tile/start.S (_start): Likewise.
15096 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
15097 Likewise.
15098 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
15099 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
15100 CMOVNEZ): Remove.
15101 * sysdeps/unix/sysv/linux/tile/bits/environments.h
15102 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
15103 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
15104 Likewise.
15105 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
15106 * sysdeps/tile/tilepro/Implies: Remove file.
15107 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
15108 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
15109 * sysdeps/tile/tilepro/memchr.c: Likewise.
15110 * sysdeps/tile/tilepro/memcpy.S: Likewise.
15111 * sysdeps/tile/tilepro/memset.c: Likewise.
15112 * sysdeps/tile/tilepro/memusage.h: Likewise.
15113 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
15114 * sysdeps/tile/tilepro/strchr.c: Likewise.
15115 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
15116 * sysdeps/tile/tilepro/strlen.c: Likewise.
15117 * sysdeps/tile/tilepro/strrchr.c: Likewise.
15118 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
15119 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
15120 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
15121 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
15122 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
15123 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
15124 Likewise.
15125 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
15126 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
15127 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
15128 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
15129 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
15130 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
15131 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
15132 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
15133 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
15134 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
15135 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
15136 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
15137 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
15138 tilepro mention in comment.
15139
15140 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
15141 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
15142 * nptl/pthread_join_common.c: New file: common function used on
15143 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
15144 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
15145 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
15146 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
15147 (cleanup): Move definition to pthread_join_common.c.
15148 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
15149 Remove superflous checks.
15150 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
15151 Likewise.
15152
15153 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
15154
15155 * sysdeps/aarch64/libm-test-ulps: Update.
15156
15157 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15158
15159 * sysdeps/aarch64/memset.S (MEMSET): Define.
15160
15161 2017-12-20 Florian Weimer <fweimer@redhat.com>
15162
15163 [BZ #22635]
15164 nptl: Provide full implementation of pthread_self in libc.so.
15165 * nptl/Makefile (routines): Add pthread_self.
15166 (libpthread-routines): Replace pthread_self with
15167 compat-pthread_self.
15168 * nptl/forward.c (pthread_self): Remove.
15169 * nptl/nptl-init.c (pthread_functions): Do not initialize
15170 ptr_pthread_self.
15171 * nptl/pthread_self.c (pthread_self): Remove weak alias.
15172 * nptl/compat-pthread_self.c: New file.
15173 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
15174 Remove ptr_pthread_self.
15175
15176 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
15177
15178 * posix/regcomp.c: Fix spelling in comments.
15179 * posix/regex.h: Likewise.
15180 * posix/regex_internal.c: Likewise.
15181 * posix/regexec.c: Likewise.
15182
15183 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
15184
15185 [BZ #22377]
15186 * math/Makefile [C++] (tests): Add test for iseqsig.
15187 * math/math.h [C++] (iseqsig): New implementation, which does
15188 not rely on __MATH_TG/__builtin_types_compatible_p.
15189 * math/test-math-iseqsig.cc: New file.
15190 * sysdeps/powerpc/powerpc64le/Makefile
15191 (CFLAGS-test-math-iseqsig.cc): New variable.
15192
15193 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
15194
15195 * elf/dl-load.c (is_trusted_path): Remove.
15196 (fillin_rpath): Remove check_trusted argument and its use,
15197 all callers changed.
15198
15199 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
15200
15201 [BZ #22630]
15202 * Makeconfig (link-pie-before-libc): Replace -pie with
15203 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
15204 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
15205 (tst-dlopen-aout-no-pie): New.
15206 (LDFLAGS-tst-prelink): Removed.
15207 (tst-prelink-no-pie): New.
15208 (LDFLAGS-tst-main1): Removed.
15209 (tst-main1-no-pie): New.
15210 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
15211 (tst-gmon-no-pie): New.
15212
15213 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
15214
15215 * manual/install.texi: Document that --enable-static-pie
15216 implies PIE.
15217 * INSTALL: Regenerated.
15218
15219 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
15220
15221 [BZ #21309]
15222 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
15223 unsigned.
15224
15225 2017-12-19 Joseph Myers <joseph@codesourcery.com>
15226
15227 Revert:
15228
15229 2017-12-19 Joseph Myers <joseph@codesourcery.com>
15230
15231 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15232
15233 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
15234
15235 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
15236 <errno.h>. Include "eexp.tbl".
15237 (half): New constant.
15238 (one): Likewise.
15239 (__ieee754_exp): Rewrite.
15240 (__slowexp): Remove prototype.
15241 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
15242 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
15243 * sysdeps/i386/fpu/slowexp.c: Likewise.
15244 * sysdeps/ia64/fpu/slowexp.c: Likewise.
15245 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
15246 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
15247 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
15248 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
15249 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
15250 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
15251 comment.
15252 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
15253 (CPPFLAGS-slowexp.c): Remove variable.
15254 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
15255 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
15256 (CFLAGS-slowexp-fma.c): Remove variable.
15257 (CFLAGS-slowexp-fma4.c): Likewise.
15258 (CFLAGS-slowexp-avx.c): Likewise.
15259 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
15260 define as macro.
15261 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
15262 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
15263 * math/Makefile (type-double-routines): Remove slowexp.
15264 * manual/probes.texi (slowexp_p6): Remove.
15265 (slowexp_p32): Likewise.
15266
15267 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15268
15269 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
15270 arithmetic.
15271
15272 * lib/glob.c (glob): Do not pass NULL to mempcpy.
15273
15274 2017-12-19 Joseph Myers <joseph@codesourcery.com>
15275
15276 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15277
15278 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
15279
15280 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
15281 <errno.h>. Include "eexp.tbl".
15282 (half): New constant.
15283 (one): Likewise.
15284 (__ieee754_exp): Rewrite.
15285 (__slowexp): Remove prototype.
15286 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
15287 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
15288 * sysdeps/i386/fpu/slowexp.c: Likewise.
15289 * sysdeps/ia64/fpu/slowexp.c: Likewise.
15290 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
15291 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
15292 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
15293 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
15294 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
15295 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
15296 comment.
15297 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
15298 (CPPFLAGS-slowexp.c): Remove variable.
15299 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
15300 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
15301 (CFLAGS-slowexp-fma.c): Remove variable.
15302 (CFLAGS-slowexp-fma4.c): Likewise.
15303 (CFLAGS-slowexp-avx.c): Likewise.
15304 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
15305 define as macro.
15306 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
15307 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
15308 * math/Makefile (type-double-routines): Remove slowexp.
15309 * manual/probes.texi (slowexp_p6): Remove.
15310 (slowexp_p32): Likewise.
15311
15312 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15313 James Clarke <jrtc27@jrtc27.com>
15314
15315 [BZ #22603]
15316 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
15317 addition.
15318
15319 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15320
15321 [BZ #22605]
15322 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
15323 code.
15324
15325 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
15326
15327 [BZ #22563]
15328 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
15329 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
15330 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
15331 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
15332 to feature_1.
15333
15334 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
15335
15336 [BZ #22563]
15337 * bits/types/__cancel_jmp_buf_tag.h: New file.
15338 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
15339 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
15340 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
15341 * nptl/Makefile (headers): Add
15342 bits/types/__cancel_jmp_buf_tag.h.
15343 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
15344 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
15345 * sysdeps/nptl/pthread.h: Include
15346 <bits/types/__cancel_jmp_buf_tag.h>.
15347 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
15348 __cancel_jmp_buf.
15349 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
15350
15351 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
15352
15353 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
15354 --enable-static-pie variants to x86_64, x32 and i686.
15355
15356 2017-12-19 Joseph Myers <joseph@codesourcery.com>
15357
15358 [BZ #22631]
15359 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
15360 argument for attrubutes. All callers changed.
15361 (__inline_mathop1): Likewise. All callers changed.
15362 (__inline_mathop): Likewise. All callers changed.
15363 [__USE_MISC] (scalbn): Use __inline_forward instead of
15364 __inline_forward_c.
15365 [__USE_ISOC99] (scalbln): Likewise.
15366 [__USE_ISOC99] (nearbyint): Likewise.
15367 [__USE_ISOC99] (lrint): Likewise.
15368 [__USE_MISC] (scalbnf): Likewise.
15369 [__USE_ISOC99] (scalblnf): Likewise.
15370 [__USE_ISOC99] (nearbyintf): Likewise.
15371 [__USE_ISOC99] (lrintf): Likewise.
15372 [__USE_MISC] (scalbnl): Likewise.
15373 [__USE_ISOC99] (scalblnl): Likewise.
15374 [__USE_ISOC99] (nearbyintl): Likewise.
15375 [__USE_ISOC99] (lrintl): Likewise.
15376 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
15377 __inline_mathop and __m81_defun changed.
15378
15379 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
15380 CPU or FPU for ARM hard-float configurations.
15381
15382 2017-12-18 Joseph Myers <joseph@codesourcery.com>
15383
15384 * nptl/tst-attr3.c: Include <libc-diag.h>.
15385 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
15386
15387 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
15388
15389 * string/tester.c (test_strncat): Also disable -Warray-bounds
15390 warnings for two tests.
15391
15392 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
15393
15394 [BZ #22614]
15395 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
15396 $(cc-pie-default) == yes.
15397 * config.make.in (cc-pie-default): New.
15398 * configure.ac (libc_cv_pie_default): Renamed to ...
15399 (libc_cv_cc_pie_default): This.
15400 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
15401 * configure: Regenerated.
15402
15403 2017-12-18 Florian Weimer <fweimer@redhat.com>
15404
15405 [BZ #20204]
15406 ld.so: Harden dl-libc/libdl hooks.
15407 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
15408 (rtld_active): New function.
15409 * dlfcn/dladdr.c (__dladdr): Call it.
15410 * dlfcn/dladdr1.c (__dladdr1): Likewise.
15411 * dlfcn/dlclose.c (__dlcose): Likewise.
15412 * dlfcn/dlerror.c (__dlerror): Likewise.
15413 * dlfcn/dlinfo.c (__dlinfo): Likewise.
15414 * dlfcn/dlmopen.c (__dlmopen): Likewise.
15415 * dlfcn/dlopen.c (__dlopen): Likewise.
15416 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
15417 * dlfcn/dlsym.c (__dlsym): Likewise.
15418 * dlfcn/dlvsym.c (__dlvsym): Likewise.
15419 * libio/vtables.c (_IO_vtable_check): Likewise.
15420 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
15421 (__libc_dlclose): Likewise.
15422 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
15423 assignment.
15424
15425 2017-12-18 Joseph Myers <joseph@codesourcery.com>
15426
15427 [BZ #22446]
15428 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
15429 buffers for readlink input and output.
15430
15431 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
15432
15433 [BZ #22624]
15434 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
15435 inhibit_stack_protector.
15436
15437 [BZ #22624]
15438 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
15439 inhibit_stack_protector.
15440
15441 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
15442
15443 [BZ #22627]
15444 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
15445 code and invocation.
15446
15447 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
15448
15449 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
15450
15451 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
15452
15453 [BZ #22505]
15454 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
15455
15456 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
15457
15458 * sysdeps/s390/fpu/libm-test-ulps: Update.
15459
15460 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
15461
15462 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15463
15464 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
15465
15466 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
15467 constants to s_sincosf.h file.
15468 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
15469 * sysdeps/ieee754/flt-32/s_sincosf.c: New
15470 implementation.
15471 * sysdeps/ieee754/flt-32/s_sincosf.h:
15472 New file.
15473
15474 2017-12-12 Carlos O'Donell <carlos@redhat.com>
15475
15476 [BZ #14681]
15477 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
15478 before mtrace.
15479
15480 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
15481
15482 [BZ #19574]
15483 * INSTALL: Regenerated.
15484 * Makeconfig (real-static-start-installed-name): New.
15485 (pic-default): Updated for --enable-static-pie.
15486 (pie-default): New for --enable-static-pie.
15487 (default-pie-ldflag): Likewise.
15488 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
15489 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
15490 Replace $(static-start-installed-name) with
15491 $(real-static-start-installed-name).
15492 (+prectorT): Updated for --enable-static-pie.
15493 (+postctorT): Likewise.
15494 (CFLAGS-.o): Add $(pie-default).
15495 (CFLAGS-.op): Likewise.
15496 * NEWS: Mention --enable-static-pie.
15497 * config.h.in (ENABLE_STATIC_PIE): New.
15498 * configure.ac (--enable-static-pie): New configure option.
15499 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
15500 (have-static-pie): Likewise.
15501 Enable static PIE if linker supports --no-dynamic-linker.
15502 (ENABLE_STATIC_PIE): New AC_DEFINE.
15503 (enable-static-pie): New LIBC_CONFIG_VAR.
15504 * configure: Regenerated.
15505 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
15506 gr$(start-installed-name) for --enable-static-pie.
15507 (extra-objs): Likewise.
15508 (install-lib): Likewise.
15509 (extra-objs): Add static-reloc.o and static-reloc.os
15510 ($(objpfx)$(start-installed-name)): Also depend on
15511 $(objpfx)static-reloc.o.
15512 ($(objpfx)r$(start-installed-name)): New.
15513 ($(objpfx)g$(start-installed-name)): Also depend on
15514 $(objpfx)static-reloc.os.
15515 ($(objpfx)gr$(start-installed-name)): New.
15516 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
15517 in libc.a.
15518 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
15519 initimage.
15520 * csu/static-reloc.c: New file.
15521 * elf/Makefile (routines): Add dl-reloc-static-pie.
15522 (elide-routines.os): Likewise.
15523 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
15524 (tst-tls1-static-non-pie-no-pie): New.
15525 * elf/dl-reloc-static-pie.c: New file.
15526 * elf/dl-support.c (_dl_get_dl_main_map): New function.
15527 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
15528 STATIC_PIE_BOOTSTRAP.
15529 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
15530 * gmon/Makefile (tests): Add tst-gmon-static-pie.
15531 (tests-static): Likewise.
15532 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
15533 (tst-gmon-static-no-pie): New.
15534 (CFLAGS-tst-gmon-static-pie.c): Likewise.
15535 (CRT-tst-gmon-static-pie): Likewise.
15536 (tst-gmon-static-pie-ENV): Likewise.
15537 (tests-special): Likewise.
15538 ($(objpfx)tst-gmon-static-pie.out): Likewise.
15539 (clean-tst-gmon-static-pie-data): Likewise.
15540 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
15541 * gmon/tst-gmon-static-pie.c: New file.
15542 * manual/install.texi: Document --enable-static-pie.
15543 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
15544 (_dl_get_dl_main_map): Likewise.
15545 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
15546 * sysdeps/x86_64/configure.ac: Likewise.
15547 * sysdeps/i386/configure: Regenerated.
15548 * sysdeps/x86_64/configure: Likewise.
15549 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
15550 (ASFLAGS-.op): Likewise.
15551
15552 2017-12-15 Joseph Myers <joseph@codesourcery.com>
15553
15554 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
15555 * posix/tst-mmap-offset.c (fname): Use /tmp.
15556 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
15557
15558 2017-12-15 Steve Ellcey <sellcey@cavium.com>
15559
15560 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
15561
15562 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
15563
15564 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
15565 errno.
15566
15567 2017-12-15 Joseph Myers <joseph@codesourcery.com>
15568
15569 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
15570 --with-float=hard for arm-linux-gnueabihf configurations.
15571
15572 [BZ #14121]
15573 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
15574 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
15575 ($(mo-installed)): Use $(objpfx)%.mo.
15576 (realclean): Remove rule.
15577
15578 * po/Makefile (linguas): Remove rule and dependencies.
15579 (linguas.mo): Likewise.
15580 (.PHONY): Do not depend on linguas and linguas.mo.
15581 (podir): Remove variable.
15582 (pofiles): Likewise.
15583 [$(pofiles)] (%.po): Remove rule.
15584
15585 * sysdeps/sparc/sparc32/Makefile
15586 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
15587 start-of-line whitespace in argument of echo.
15588 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
15589 with whitespace. Generate __wrap_.udiv alias.
15590 * sysdeps/sparc/sparc32/rem.S: Regenerated.
15591 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
15592 * sysdeps/sparc/sparc32/udiv.S: Likewise.
15593 * sysdeps/sparc/sparc32/urem.S: Likewise.
15594
15595 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
15596
15597 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
15598 for aligned inputs.
15599
15600 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
15601
15602 * benchtests/bench-strcmp.c: Print output in JSON format.
15603
15604 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
15605
15606 2017-12-14 Florian Weimer <fweimer@redhat.com>
15607
15608 [BZ #22607]
15609 CVE-2017-1000409
15610 * elf/dl-load.c (_dl_init_paths): Compute number of components in
15611 the expanded path string.
15612
15613 2017-12-14 Florian Weimer <fweimer@redhat.com>
15614
15615 [BZ #22606]
15616 CVE-2017-1000408
15617 * elf/dl-load.c (system_dirs): Update comment.
15618 (nsystem_dirs_len): Use array_length.
15619 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
15620
15621 2017-12-14 Florian Weimer <fweimer@redhat.com>
15622
15623 Simplify compiling most of support/ outside of glibc.
15624 * support/check_addrinfo.c: Include <string.h>.
15625 * support/check_dns_packet.c: Likewise.
15626 * support/check_hostent.c: Likewise.
15627 * support/support_can_chroot.c: Include <support/xunistd.h>.
15628 * support/support_format_addrinfo.c: Include <stdlib.h>
15629 * support/support_format_dns_packet.c: Include <stdbool.h>.
15630 * support/support_format_hostent.c: Include <stdlib.h>.
15631 * support/support_format_netent.c: Likewise.
15632 * support/support_write_string.c: Include <support/xunistd.h>.
15633 * support/xdlfcn.c: Include <stddef.h>.
15634
15635 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
15636
15637 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
15638
15639 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
15640 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15641
15642 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
15643 (sysdeps_routines): Add memset-niagara7.
15644 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
15645 Likewise.
15646 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
15647 file.
15648 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
15649 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
15650 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
15651 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
15652 Add niagara7 option.
15653 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
15654 memset.
15655
15656 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
15657 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
15658 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
15659 Likewise.
15660 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
15661 New file.
15662 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
15663 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
15664 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
15665 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
15666 and __memmove_niagara7.
15667 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
15668 Add niagara7 option.
15669 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
15670 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
15671 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
15672 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
15673 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
15674
15675 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
15676
15677 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
15678 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
15679 * sysdeps/sparc/sparc64/memmove.S: Likewise.
15680 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
15681
15682 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
15683 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
15684 _dl_sparc_cap_flags array.
15685 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
15686
15687 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
15688
15689 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
15690 time whenever possible.
15691
15692 2017-12-12 Carlos O'Donell <carlos@redhat.com>
15693
15694 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
15695 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
15696
15697 2017-12-12 Joseph Myers <joseph@codesourcery.com>
15698
15699 * soft-fp/fmadf4.c: Move to ....
15700 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
15701 * soft-fp/fmasf4.c: Move to ....
15702 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
15703 * soft-fp/fmatf4.c: Move to ....
15704 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
15705 * sysdeps/ieee754/soft-fp/Makefile: New file.
15706 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
15707 * sysdeps/arm/preconfigure: Regenerated.
15708 * sysdeps/arm/nofpu/Implies: New file.
15709 * sysdeps/arm/s_fma.c: Remove file.
15710 * sysdeps/arm/s_fmaf.c: Likewise.
15711 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
15712 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
15713 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
15714 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
15715 * sysdeps/microblaze/s_fma.c: Remove file.
15716 * sysdeps/microblaze/s_fmaf.c: Likewise.
15717 * sysdeps/mips/mips32/nofpu/Implies: New file.
15718 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
15719 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
15720 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
15721 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
15722 * sysdeps/mips/ieee754/s_fma.c: Remove file.
15723 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
15724 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
15725 implementation.
15726 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
15727 * sysdeps/nios2/s_fma.c: Remove file.
15728 * sysdeps/nios2/s_fmaf.c: Likewise.
15729 * sysdeps/sh/nofpu/Implies: New file.
15730 * sysdeps/sh/s_fma.c: Remove file.
15731 * sysdeps/sh/s_fmaf.c: Likewise.
15732 * sysdeps/tile/Implies: Add ieee754/soft-fp.
15733 * sysdeps/tile/s_fma.c: Remove file.
15734 * sysdeps/tile/s_fmaf.c: Likewise.
15735
15736 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
15737
15738 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
15739 Add s_cosf-sse2 and s_cosf-fma.
15740 (CFLAGS-s_cosf-fma.c): New.
15741 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
15742 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
15743 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
15744
15745 2017-12-12 Steve Ellcey <sellcey@cavium.com>
15746
15747 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
15748
15749 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15750
15751 * libio/Makefile (tests): Add tst-bz22415.
15752 (tst-bz22415-ENV): New rule.
15753 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
15754 (tests-special): Add tst-bz22415-mem.out.
15755 ($(objpfx)tst-bz22415-mem.out): New rule.
15756 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
15757 in case of a successful seek operation.
15758 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
15759 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
15760 buffer is required.
15761 * libio/tst-bz22415.c: New test.
15762
15763 * sysdeps/ia64/fpu/libm-test-ulps: Update.
15764
15765 2017-12-12 James Clarke <jrtc27@jrtc27.com>
15766
15767 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
15768 __IPC_64 to 0 to avoid IPC_64 being set.
15769
15770 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
15771
15772 [BZ #22593]
15773 * math/bits/mathcalls.h (nextafter): Remove const.
15774 (nexttoward): Likewise.
15775
15776 2017-12-12 Joseph Myers <joseph@codesourcery.com>
15777
15778 * configure.ac (--with-fp): Remove configure option.
15779 (with_fp_cond): New variable.
15780 (libc_cv_with_fp): New configure test. Use this variable instead
15781 of with_fp.
15782 * configure: Regenerated.
15783 * config.make.in (with-fp): Use @libc_cv_with_fp@.
15784 * manual/install.texi (Configuring and compiling): Remove
15785 --without-fp.
15786 * INSTALL: Regenerated.
15787 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
15788 * sysdeps/mips/preconfigure (with_fp_cond): Define.
15789 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
15790 * sysdeps/sh/preconfigure (with_fp_cond): Define.
15791 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
15792 use --without-fp to configure glibc.
15793
15794 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
15795
15796 * manual/locale.texi (nl_langinfo): Fix a typo.
15797
15798 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
15799
15800 [BZ #22588]
15801 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
15802
15803 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
15804
15805 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
15806 (CFLAGS-argp-parse.c): Likewise.
15807 (CFLAGS-argp-fmtstream.c): Likewise.
15808 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
15809 (CPPFLAGS-sha512-crypt.c): Likewise.
15810 (CPPFLAGS-md5-crypt.c): Likewise.
15811 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
15812 (CFLAGS-stack_chk_fail_local.c): Likewise.
15813 (CFLAGS-backtrace.c): Likewise.
15814 (CFLAGS-sprintf_chk.c): Likewise.
15815 (CFLAGS-snprintf_chk.c): Likewise.
15816 (CFLAGS-vsprintf_chk.c): Likewise.
15817 (CFLAGS-vsnprintf_chk.c): Likewise.
15818 (CFLAGS-asprintf_chk.c): Likewise.
15819 (CFLAGS-vasprintf_chk.c): Likewise.
15820 (CFLAGS-obprintf_chk.c): Likewise.
15821 (CFLAGS-dprintf_chk.c): Likewise.
15822 (CFLAGS-vdprintf_chk.c): Likewise.
15823 (CFLAGS-printf_chk.c): Likewise.
15824 (CFLAGS-fprintf_chk.c): Likewise.
15825 (CFLAGS-vprintf_chk.c): Likewise.
15826 (CFLAGS-vfprintf_chk.c): Likewise.
15827 (CFLAGS-gets_chk.c): Likewise.
15828 (CFLAGS-fgets_chk.c): Likewise.
15829 (CFLAGS-fgets_u_chk.c): Likewise.
15830 (CFLAGS-fread_chk.c): Likewise.
15831 (CFLAGS-fread_u_chk.c): Likewise.
15832 (CFLAGS-swprintf_chk.c): Likewise.
15833 (CFLAGS-vswprintf_chk.c): Likewise.
15834 (CFLAGS-wprintf_chk.c): Likewise.
15835 (CFLAGS-fwprintf_chk.c): Likewise.
15836 (CFLAGS-vwprintf_chk.c): Likewise.
15837 (CFLAGS-vfwprintf_chk.c): Likewise.
15838 (CFLAGS-fgetws_chk.c): Likewise.
15839 (CFLAGS-fgetws_u_chk.c): Likewise.
15840 (CFLAGS-read_chk.c): Likewise.
15841 (CFLAGS-pread_chk.c): Likewise.
15842 (CFLAGS-pread64_chk.c): Likewise.
15843 (CFLAGS-recv_chk.c): Likewise.
15844 (CFLAGS-recvfrom_chk.c): Likewise.
15845 (CFLAGS-tst-longjmp_chk.c): Likewise.
15846 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
15847 (CFLAGS-tst-longjmp_chk2.c): Likewise.
15848 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
15849 (CFLAGS-tst-longjmp_chk3.c): Likewise.
15850 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
15851 (CFLAGS-tst-chk1.c): Likewise.
15852 (CFLAGS-tst-chk2.c): Likewise.
15853 (CFLAGS-tst-chk3.c): Likewise.
15854 (CFLAGS-tst-chk4.cc): Likewise.
15855 (CFLAGS-tst-chk5.cc): Likewise.
15856 (CFLAGS-tst-chk6.cc): Likewise.
15857 (CFLAGS-tst-lfschk1.c): Likewise.
15858 (CFLAGS-tst-lfschk2.c): Likewise.
15859 (CFLAGS-tst-lfschk3.c): Likewise.
15860 (CFLAGS-tst-lfschk4.cc): Likewise.
15861 (CFLAGS-tst-lfschk5.cc): Likewise.
15862 (CFLAGS-tst-lfschk6.cc): Likewise.
15863 (CFLAGS-tst-ssp-1.c): Likewise.
15864 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
15865 (CFLAGS-scandir64.c): Likewise.
15866 (CFLAGS-scandir-tail.c): Likewise.
15867 (CFLAGS-scandir64-tail.c): Likewise.
15868 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
15869 (CFLAGS-dl-tunables.c): Likewise.
15870 (CFLAGS-dl-runtime.c): Likewise.
15871 (CFLAGS-dl-lookup.c): Likewise.
15872 (CFLAGS-dl-iterate-phdr.c): Likewise.
15873 (CFLAGS-vismain.c): Likewise.
15874 (CFLAGS-tst-linkall-static.c): Likewise.
15875 (CFLAGS-tst-linkall-static.c): Likewise.
15876 (CPPFLAGS-dl-load.c): Likewise.
15877 (CFLAGS-ldconfig.c): Likewise.
15878 (CFLAGS-dl-cache.c): Likewise.
15879 (CFLAGS-cache.c): Likewise.
15880 (CFLAGS-rtld.c): Likewise.
15881 (CFLAGS-multiload.c): Likewise.
15882 (CFLAGS-filtmod1.c): Likewise.
15883 (CFLAGS-tst-align.c): Likewise.
15884 (CFLAGS-tst-align2.c): Likewise.
15885 (CFLAGS-tst-alignmod.c): Likewise.
15886 (CFLAGS-tst-alignmod2.c): Likewise.
15887 (CPPFLAGS-tst-execstack.c): Likewise.
15888 (CFLAGS-tst-ptrguard1-static.c): Likewise.
15889 (CFLAGS-tst-latepthreadmod.c): Likewise.
15890 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
15891 (CFLAGS-getgrnam_r.c): Likewise.
15892 (CFLAGS-getgrent_r.c): Likewise.
15893 (CFLAGS-getgrent.c): Likewise.
15894 (CFLAGS-fgetgrent.c): Likewise.
15895 (CFLAGS-fgetgrent_r.c): Likewise.
15896 (CFLAGS-putgrent.c): Likewise.
15897 (CFLAGS-initgroups.c): Likewise.
15898 (CFLAGS-getgrgid.c): Likewise.
15899 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
15900 (CFLAGS-getsgent.c): Likewise.
15901 (CFLAGS-fgetsgent.c): Likewise.
15902 (CFLAGS-fgetsgent_r.c): Likewise.
15903 (CFLAGS-putsgent.c): Likewise.
15904 (CFLAGS-getsgnam.c): Likewise.
15905 (CFLAGS-getsgnam_r.c): Likewise.
15906 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
15907 (CFLAGS-iconv_charmap.c): Likewise.
15908 (CFLAGS-dummy-repertoire.c): Likewise.
15909 (CFLAGS-charmap.c): Likewise.
15910 (CFLAGS-linereader.c): Likewise.
15911 (CFLAGS-simple-hash.c): Likewise.
15912 (CFLAGS-gconv_conf.c): Likewise.
15913 (CFLAGS-iconvconfig.c): Likewise.
15914 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
15915 (CFLAGS-gethstbyad.c): Likewise.
15916 (CFLAGS-gethstbynm_r.c): Likewise.
15917 (CFLAGS-gethstbynm.c): Likewise.
15918 (CFLAGS-gethstbynm2_r.c): Likewise.
15919 (CFLAGS-gethstbynm2.c): Likewise.
15920 (CFLAGS-gethstent_r.c): Likewise.
15921 (CFLAGS-gethstent.c): Likewise.
15922 (CFLAGS-rcmd.c): Likewise.
15923 (CFLAGS-getnetbynm_r.c): Likewise.
15924 (CFLAGS-getnetbynm.c): Likewise.
15925 (CFLAGS-getnetbyad_r.c): Likewise.
15926 (CFLAGS-getnetbyad.c): Likewise.
15927 (CFLAGS-getnetent_r.c): Likewise.
15928 (CFLAGS-getnetent.c): Likewise.
15929 (CFLAGS-getaliasent_r.c): Likewise.
15930 (CFLAGS-getaliasent.c): Likewise.
15931 (CFLAGS-getrpcent_r.c): Likewise.
15932 (CFLAGS-getrpcent.c): Likewise.
15933 (CFLAGS-getservent_r.c): Likewise.
15934 (CFLAGS-getservent.c): Likewise.
15935 (CFLAGS-getprtent_r.c): Likewise.
15936 (CFLAGS-getprtent.c): Likewise.
15937 (CFLAGS-either_ntoh.c): Likewise.
15938 (CFLAGS-either_hton.c): Likewise.
15939 (CFLAGS-getnetgrent.c): Likewise.
15940 (CFLAGS-getnetgrent_r.c): Likewise.
15941 (CFLAGS-tst-checks-posix.c): Likewise.
15942 (CFLAGS-tst-sockaddr.c): Likewise.
15943 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
15944 (CFLAGS-tst-translit.c): Likewise.
15945 (CFLAGS-tst-gettext2.c): Likewise.
15946 (CFLAGS-tst-codeset.c): Likewise.
15947 (CFLAGS-tst-gettext3.c): Likewise.
15948 (CFLAGS-tst-gettext4.c): Likewise.
15949 (CFLAGS-tst-gettext5.c): Likewise.
15950 (CFLAGS-tst-gettext6.c): Likewise.
15951 * io/Makefile (CFLAGS-open.c): Likewise.
15952 (CFLAGS-open64.c): Likewise.
15953 (CFLAGS-creat.c): Likewise.
15954 (CFLAGS-creat64.c): Likewise.
15955 (CFLAGS-fcntl.c): Likewise.
15956 (CFLAGS-poll.c): Likewise.
15957 (CFLAGS-ppoll.c): Likewise.
15958 (CFLAGS-lockf.c): Likewise.
15959 (CFLAGS-statfs.c): Likewise.
15960 (CFLAGS-fstatfs.c): Likewise.
15961 (CFLAGS-statvfs.c): Likewise.
15962 (CFLAGS-fstatvfs.c): Likewise.
15963 (CFLAGS-fts.c): Likewise.
15964 (CFLAGS-fts64.c): Likewise.
15965 (CFLAGS-ftw.c): Likewise.
15966 (CFLAGS-ftw64.c): Likewise.
15967 (CFLAGS-lockf.c): Likewise.
15968 (CFLAGS-posix_fallocate.c): Likewise.
15969 (CFLAGS-posix_fallocate64.c): Likewise.
15970 (CFLAGS-fallocate.c): Likewise.
15971 (CFLAGS-fallocate64.c): Likewise.
15972 (CFLAGS-read.c): Likewise.
15973 (CFLAGS-write.c): Likewise.
15974 (CFLAGS-test-stat.c): Likewise.
15975 (CFLAGS-test-lfs.c): Likewise.
15976 * libio/Makefile (CFLAGS-fileops.c): Likewise.
15977 (CFLAGS-fputc.c): Likewise.
15978 (CFLAGS-fputwc.c): Likewise.
15979 (CFLAGS-freopen64.c): Likewise.
15980 (CFLAGS-freopen.c): Likewise.
15981 (CFLAGS-fseek.c): Likewise.
15982 (CFLAGS-fseeko64.c): Likewise.
15983 (CFLAGS-fseeko.c): Likewise.
15984 (CFLAGS-ftello64.c): Likewise.
15985 (CFLAGS-ftello.c): Likewise.
15986 (CFLAGS-fwide.c): Likewise.
15987 (CFLAGS-genops.c): Likewise.
15988 (CFLAGS-getc.c): Likewise.
15989 (CFLAGS-getchar.c): Likewise.
15990 (CFLAGS-getwc.c): Likewise.
15991 (CFLAGS-getwchar.c): Likewise.
15992 (CFLAGS-iofclose.c): Likewise.
15993 (CFLAGS-iofflush.c): Likewise.
15994 (CFLAGS-iofgetpos64.c): Likewise.
15995 (CFLAGS-iofgetpos.c): Likewise.
15996 (CFLAGS-iofgets.c): Likewise.
15997 (CFLAGS-iofgetws.c): Likewise.
15998 (CFLAGS-iofputs.c): Likewise.
15999 (CFLAGS-iofputws.c): Likewise.
16000 (CFLAGS-iofread.c): Likewise.
16001 (CFLAGS-iofsetpos64.c): Likewise.
16002 (CFLAGS-iofsetpos.c): Likewise.
16003 (CFLAGS-ioftell.c): Likewise.
16004 (CFLAGS-iofwrite.c): Likewise.
16005 (CFLAGS-iogetdelim.c): Likewise.
16006 (CFLAGS-iogetline.c): Likewise.
16007 (CFLAGS-iogets.c): Likewise.
16008 (CFLAGS-iogetwline.c): Likewise.
16009 (CFLAGS-ioputs.c): Likewise.
16010 (CFLAGS-ioseekoff.c): Likewise.
16011 (CFLAGS-ioseekpos.c): Likewise.
16012 (CFLAGS-iosetbuffer.c): Likewise.
16013 (CFLAGS-iosetvbuf.c): Likewise.
16014 (CFLAGS-ioungetc.c): Likewise.
16015 (CFLAGS-ioungetwc.c): Likewise.
16016 (CFLAGS-oldfileops.c): Likewise.
16017 (CFLAGS-oldiofclose.c): Likewise.
16018 (CFLAGS-oldiofgetpos64.c): Likewise.
16019 (CFLAGS-oldiofgetpos.c): Likewise.
16020 (CFLAGS-oldiofsetpos64.c): Likewise.
16021 (CFLAGS-oldiofsetpos.c): Likewise.
16022 (CFLAGS-peekc.c): Likewise.
16023 (CFLAGS-putc.c): Likewise.
16024 (CFLAGS-putchar.c): Likewise.
16025 (CFLAGS-putwc.c): Likewise.
16026 (CFLAGS-putwchar.c): Likewise.
16027 (CFLAGS-rewind.c): Likewise.
16028 (CFLAGS-wfileops.c): Likewise.
16029 (CFLAGS-wgenops.c): Likewise.
16030 (CFLAGS-oldiofopen.c): Likewise.
16031 (CFLAGS-iofopen.c): Likewise.
16032 (CFLAGS-iofopen64.c): Likewise.
16033 (CFLAGS-oldtmpfile.c): Likewise.
16034 (CFLAGS-tst_putwc.c): Likewise.
16035 * locale/Makefile (CFLAGS-md5.c): Likewise.
16036 (CFLAGS-charmap.c): Likewise.
16037 (CFLAGS-locfile.c): Likewise.
16038 (CFLAGS-charmap-dir.c): Likewise.
16039 * login/Makefile (CFLAGS-grantpt.c): Likewise.
16040 (CFLAGS-getpt.c): Likewise.
16041 (CFLAGS-pt_chown.c): Likewise.
16042 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
16043 (CFLAGS-obstack.c): Likewise.
16044 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
16045 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
16046 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
16047 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
16048 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
16049 (CFLAGS-test-tgmath.c): Likewise.
16050 (CFLAGS-test-tgmath2.c): Likewise.
16051 (CFLAGS-test-tgmath-ret.c): Likewise.
16052 (CFLAGS-test-powl.c): Likewise.
16053 (CFLAGS-test-snan.c): Likewise.
16054 (CFLAGS-test-signgam-finite.c): Likewise.
16055 (CFLAGS-test-signgam-finite-c99.c): Likewise.
16056 (CFLAGS-test-signgam-finite-c11.c): Likewise.
16057 (CFLAGS-test-signgam-uchar.c): Likewise.
16058 (CFLAGS-test-signgam-uchar-init.c): Likewise.
16059 (CFLAGS-test-signgam-uchar-static.c): Likewise.
16060 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
16061 (CFLAGS-test-signgam-uint.c): Likewise.
16062 (CFLAGS-test-signgam-uint-init.c): Likewise.
16063 (CFLAGS-test-signgam-uint-static.c): Likewise.
16064 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
16065 (CFLAGS-test-signgam-ullong.c): Likewise.
16066 (CFLAGS-test-signgam-ullong-init.c): Likewise.
16067 (CFLAGS-test-signgam-ullong-static.c): Likewise.
16068 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
16069 (CFLAGS-test-math-cxx11.cc): Likewise.
16070 (CFLAGS-test-math-isinff.cc): Likewise.
16071 (CFLAGS-test-math-iszero.cc): Likewise.
16072 (CFLAGS-test-math-issignaling.cc): Likewise.
16073 (CFLAGS-test-math-iscanonical.cc): Likewise.
16074 (CFLAGS-test-iszero-excess-precision.c): Likewise.
16075 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
16076 (CFLAGS-test-flt-eval-method.c): Likewise.
16077 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
16078 (CFLAGS-test-finite-macros.c): Likewise.
16079 * misc/Makefile (CFLAGS-select.c): Likewise.
16080 (CFLAGS-tsearch.c): Likewise.
16081 (CFLAGS-lsearch.c): Likewise.
16082 (CFLAGS-pselect.c): Likewise.
16083 (CFLAGS-readv.c): Likewise.
16084 (CFLAGS-writev.c): Likewise.
16085 (CFLAGS-preadv.c): Likewise.
16086 (CFLAGS-preadv64.c): Likewise.
16087 (CFLAGS-pwritev.c): Likewise.
16088 (CFLAGS-pwritev64.c): Likewise.
16089 (CFLAGS-preadv2.c): Likewise.
16090 (CFLAGS-preadv64v2.c): Likewise.
16091 (CFLAGS-pwritev2.c): Likewise.
16092 (CFLAGS-pwritev64v2.c): Likewise.
16093 (CFLAGS-usleep.c): Likewise.
16094 (CFLAGS-syslog.c): Likewise.
16095 (CFLAGS-error.c): Likewise.
16096 (CFLAGS-getpass.c): Likewise.
16097 (CFLAGS-mkstemp.c): Likewise.
16098 (CFLAGS-mkstemp64.c): Likewise.
16099 (CFLAGS-getsysstats.c): Likewise.
16100 (CFLAGS-getusershell.c): Likewise.
16101 (CFLAGS-err.c): Likewise.
16102 (CFLAGS-tst-tsearch.c): Likewise.
16103 (CFLAGS-msync.c): Likewise.
16104 (CFLAGS-fdatasync.c): Likewise.
16105 (CFLAGS-fsync.c): Likewise.
16106 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
16107 (CFLAGS-unwind.c): Likewise.
16108 (CFLAGS-unwind-forcedunwind.c): Likewise.
16109 (CFLAGS-pthread_cancel.c): Likewise.
16110 (CFLAGS-pthread_setcancelstate.c): Likewise.
16111 (CFLAGS-pthread_setcanceltype.c): Likewise.
16112 (CFLAGS-cancellation.c): Likewise.
16113 (CFLAGS-libc-cancellation.c): Likewise.
16114 (CFLAGS-pthread_exit.c): Likewise.
16115 (CFLAGS-forward.c): Likewise.
16116 (CFLAGS-pthread_testcancel.c): Likewise.
16117 (CFLAGS-pthread_join.c): Likewise.
16118 (CFLAGS-pthread_timedjoin.c): Likewise.
16119 (CFLAGS-pthread_once.c): Likewise.
16120 (CFLAGS-pthread_cond_wait.c): Likewise.
16121 (CFLAGS-sem_wait.c): Likewise.
16122 (CFLAGS-sem_timedwait.c): Likewise.
16123 (CFLAGS-fcntl.c): Likewise.
16124 (CFLAGS-lockf.c): Likewise.
16125 (CFLAGS-pread.c): Likewise.
16126 (CFLAGS-pread64.c): Likewise.
16127 (CFLAGS-pwrite.c): Likewise.
16128 (CFLAGS-pwrite64.c): Likewise.
16129 (CFLAGS-wait.c): Likewise.
16130 (CFLAGS-waitpid.c): Likewise.
16131 (CFLAGS-sigwait.c): Likewise.
16132 (CFLAGS-msgrcv.c): Likewise.
16133 (CFLAGS-msgsnd.c): Likewise.
16134 (CFLAGS-tcdrain.c): Likewise.
16135 (CFLAGS-open.c): Likewise.
16136 (CFLAGS-open64.c): Likewise.
16137 (CFLAGS-pause.c): Likewise.
16138 (CFLAGS-recv.c): Likewise.
16139 (CFLAGS-send.c): Likewise.
16140 (CFLAGS-accept.c): Likewise.
16141 (CFLAGS-sendto.c): Likewise.
16142 (CFLAGS-connect.c): Likewise.
16143 (CFLAGS-recvfrom.c): Likewise.
16144 (CFLAGS-recvmsg.c): Likewise.
16145 (CFLAGS-sendmsg.c): Likewise.
16146 (CFLAGS-close.c): Likewise.
16147 (CFLAGS-read.c): Likewise.
16148 (CFLAGS-write.c): Likewise.
16149 (CFLAGS-nanosleep.c): Likewise.
16150 (CFLAGS-sigsuspend.c): Likewise.
16151 (CFLAGS-msync.c): Likewise.
16152 (CFLAGS-fdatasync.c): Likewise.
16153 (CFLAGS-fsync.c): Likewise.
16154 (CFLAGS-pt-system.c): Likewise.
16155 (CFLAGS-tst-cleanup2.c): Likewise.
16156 (CFLAGS-tst-cleanupx2.c): Likewise.
16157 (CFLAGS-flockfile.c): Likewise.
16158 (CFLAGS-ftrylockfile.c): Likewise.
16159 (CFLAGS-funlockfile.c): Likewise.
16160 (CFLAGS-tst-initializers1.c): Likewise.
16161 (CFLAGS-tst-initializers1-c89.c): Likewise.
16162 (CFLAGS-tst-initializers1-c99.c): Likewise.
16163 (CFLAGS-tst-initializers1-c11.c): Likewise.
16164 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
16165 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
16166 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
16167 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
16168 (CFLAGS-nscd_getgr_r.c): Likewise.
16169 (CFLAGS-nscd_gethst_r.c): Likewise.
16170 (CFLAGS-nscd_getai.c): Likewise.
16171 (CFLAGS-nscd_initgroups.c): Likewise.
16172 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
16173 (CFLAGS-pause.c): Likewise.
16174 (CFLAGS-pread.c): Likewise.
16175 (CFLAGS-pread64.c): Likewise.
16176 (CFLAGS-pwrite.c): Likewise.
16177 (CFLAGS-pwrite64.c): Likewise.
16178 (CFLAGS-sleep.c): Likewise.
16179 (CFLAGS-wait.c): Likewise.
16180 (CFLAGS-waitid.c): Likewise.
16181 (CFLAGS-waitpid.c): Likewise.
16182 (CFLAGS-getopt.c): Likewise.
16183 (CFLAGS-wordexp.c): Likewise.
16184 (CFLAGS-sysconf.c): Likewise.
16185 (CFLAGS-pathconf.c): Likewise.
16186 (CFLAGS-fpathconf.c): Likewise.
16187 (CFLAGS-spawn.c): Likewise.
16188 (CFLAGS-spawnp.c): Likewise.
16189 (CFLAGS-spawni.c): Likewise.
16190 (CFLAGS-glob.c): Likewise.
16191 (CFLAGS-glob64.c): Likewise.
16192 (CFLAGS-getconf.c): Likewise.
16193 (CFLAGS-nanosleep.c): Likewise.
16194 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
16195 (CFLAGS-getpwent.c): Likewise.
16196 (CFLAGS-getpw.c): Likewise.
16197 (CFLAGS-fgetpwent_r.c): Likewise.
16198 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
16199 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
16200 (CFLAGS-mq_timedreceive.c): Likewise.
16201 (CFLAGS-mq_timedsend.c): Likewise.
16202 (CFLAGS-clock_nanosleep.c): Likewise.
16203 (CFLAGS-librt-cancellation.c): Likewise.
16204 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
16205 (CFLAGS-getspent.c): Likewise.
16206 (CFLAGS-fgetspent.c): Likewise.
16207 (CFLAGS-fgetspent_r.c): Likewise.
16208 (CFLAGS-putspent.c): Likewise.
16209 (CFLAGS-getspnam.c): Likewise.
16210 (CFLAGS-getspnam_r.c): Likewise.
16211 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
16212 (CFLAGS-sigsuspend.c): Likewise.
16213 (CFLAGS-sigtimedwait.c): Likewise.
16214 (CFLAGS-sigwait.c): Likewise.
16215 (CFLAGS-sigwaitinfo.c): Likewise.
16216 (CFLAGS-sigreturn.c): Likewise.
16217 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
16218 (CFLAGS-vfwprintf.c): Likewise.
16219 (CFLAGS-tmpfile.c): Likewise.
16220 (CFLAGS-tmpfile64.c): Likewise.
16221 (CFLAGS-tempname.c): Likewise.
16222 (CFLAGS-psignal.c): Likewise.
16223 (CFLAGS-vprintf.c): Likewise.
16224 (CFLAGS-cuserid.c): Likewise.
16225 (CFLAGS-errlist.c): Likewise.
16226 (CFLAGS-siglist.c): Likewise.
16227 (CFLAGS-scanf15.c): Likewise.
16228 (CFLAGS-scanf17.c): Likewise.
16229 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
16230 (CFLAGS-msort.c): Likewise.
16231 (CFLAGS-qsort.c): Likewise.
16232 (CFLAGS-system.c): Likewise.
16233 (CFLAGS-fmtmsg.c): Likewise.
16234 (CFLAGS-strfmon.c): Likewise.
16235 (CFLAGS-strfmon_l.c): Likewise.
16236 (CFLAGS-strfromd.c): Likewise.
16237 (CFLAGS-strfromf.c): Likewise.
16238 (CFLAGS-strfroml.c): Likewise.
16239 (CFLAGS-tst-bsearch.c): Likewise.
16240 (CFLAGS-tst-qsort.c): Likewise.
16241 (CFLAGS-tst-makecontext2.c): Likewise.
16242 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
16243 (CFLAGS-xnlm_prot.c): Likewise.
16244 (CFLAGS-xrstat.c): Likewise.
16245 (CFLAGS-xyppasswd.c): Likewise.
16246 (CFLAGS-xklm_prot.c): Likewise.
16247 (CFLAGS-xrex.c): Likewise.
16248 (CFLAGS-xsm_inter.c): Likewise.
16249 (CFLAGS-xmount.c): Likewise.
16250 (CFLAGS-xrusers.c): Likewise.
16251 (CFLAGS-xspray.c): Likewise.
16252 (CFLAGS-xnfs_prot.c): Likewise.
16253 (CFLAGS-xrquota.c): Likewise.
16254 (CFLAGS-xkey_prot.c): Likewise.
16255 (CFLAGS-auth_unix.c): Likewise.
16256 (CFLAGS-key_call.c): Likewise.
16257 (CFLAGS-pmap_rmt.c): Likewise.
16258 (CFLAGS-clnt_perr.c): Likewise.
16259 (CFLAGS-openchild.c): Likewise.
16260 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
16261 (CFLAGS-msgsnd.c): Likewise.
16262 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
16263 * time/Makefile (CFLAGS-tzfile.c): Likewise.
16264 (CFLAGS-tzset.c): Likewise.
16265 (CFLAGS-getdate.c): Likewise.
16266 (CFLAGS-test_time.c): Likewise.
16267 (CPPFLAGS-tst-tzname.c): Likewise.
16268 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
16269 (CFLAGS-zic.c): Likewise.
16270 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
16271 (CFLAGS-wcswidth.c): Likewise.
16272 (CFLAGS-wcstol.c): Likewise.
16273 (CFLAGS-wcstoul.c): Likewise.
16274 (CFLAGS-wcstoll.c): Likewise.
16275 (CFLAGS-wcstoull.c): Likewise.
16276 (CFLAGS-wcstod.c): Likewise.
16277 (CFLAGS-wcstold.c): Likewise.
16278 (CFLAGS-wcstof128.c): Likewise.
16279 (CFLAGS-wcstof.c): Likewise.
16280 (CFLAGS-wcstol_l.c): Likewise.
16281 (CFLAGS-wcstoul_l.c): Likewise.
16282 (CFLAGS-wcstoll_l.c): Likewise.
16283 (CFLAGS-wcstoull_l.c): Likewise.
16284 (CFLAGS-wcstod_l.c): Likewise.
16285 (CFLAGS-wcstold_l.c): Likewise.
16286 (CFLAGS-wcstof128_l.c): Likewise.
16287 (CFLAGS-wcstof_l.c): Likewise.
16288 (CPPFLAGS-tst-wchar-h.c): Likewise.
16289 (CPPFLAGS-wcstold_l.c): Likewise.
16290 ---
16291 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
16292
16293 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
16294
16295 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
16296 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
16297
16298 * manual/tunables.texi (Hardware Capability Tunables): Document
16299 glibc.tune.cached_memopt.
16300 * sysdeps/powerpc/cpu-features.c: New file.
16301 * sysdeps/powerpc/cpu-features.h: New file.
16302 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
16303 _dl_powerpc_cpu_features.
16304 * sysdeps/powerpc/dl-tunables.list: New file.
16305 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
16306 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
16307 (INIT_ARCH): Initialize use_aligned_memopt.
16308 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
16309 IS_IN(rtld))]: Restrict dl_platform_init availability and
16310 initialize CPU features used by tunables.
16311 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
16312 Add memcpy-power8-cached.
16313 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
16314 __memcpy_power8_cached.
16315 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
16316 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
16317 New file.
16318
16319 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
16320
16321 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
16322 (CFLAGS-noinl-tester.c): Likewise.
16323 (CFLAGS-tst-strlen.c): Likewise.
16324 (CFLAGS-stratcliff.c): Likewise.
16325 (CFLAGS-test-ffs.c): Likewise.
16326 (CFLAGS-tst-inlcall.c): Likewise.
16327 (CFLAGS-tst-xbzero-opt.c): Likewise.
16328 (CFLAGS-memcpy.c): Likewise.
16329 (CFLAGS-wordcopy.c): Likewise.
16330
16331 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
16332
16333 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
16334 Store r15 on stack and add cfi rule.
16335 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
16336 Likewise.
16337
16338 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
16339
16340 [BZ #22577]
16341 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
16342 call.
16343
16344 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
16345
16346 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
16347 Add s_sinf-sse2 and s_sinf-fma.
16348 (CFLAGS-s_sinf-fma.c): New.
16349 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
16350 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
16351 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
16352
16353 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
16354
16355 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
16356
16357 2017-12-07 Joseph Myers <joseph@codesourcery.com>
16358
16359 [BZ #22568]
16360 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
16361 part of result to imaginary part of argument if it is zero and the
16362 real part of the argument is not finite.
16363 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
16364 of result to real part of argument if it is zero and the imaginary
16365 part of the argument is not finite.
16366
16367 2017-12-07 Mike FABIAN <mfabian@redhat.com>
16368
16369 [BZ #22524]
16370 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
16371 and to the list of locales to be built for testing.
16372 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
16373 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
16374 and build the collation rules upon that.
16375
16376 2017-12-07 Joseph Myers <joseph@codesourcery.com>
16377
16378 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
16379 * manual/math.texi (Mathematics): Document support for _Float32.
16380 * math/Makefile (test-types): Add float32.
16381 * math/Versions (GLIBC_2.27): Add _Float32 functions.
16382 * stdlib/Versions (GLIBC_2.27): Likewise.
16383 * wcsmbs/Versions (GLIBC_2.27): Likewise.
16384 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
16385 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
16386 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
16387 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
16388 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
16389 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
16390 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
16391 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
16392 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
16393 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
16394 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
16395 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
16396 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
16397 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
16398 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
16399 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
16400 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
16401 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
16402 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
16403 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
16404 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
16405 Likewise.
16406 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
16407 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
16408 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
16409 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
16410 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
16411 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
16412 Likewise.
16413 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
16414 Likewise.
16415 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
16416 Likewise.
16417 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
16418 Likewise.
16419
16420 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
16421 Likewise.
16422 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
16423 Likewise.
16424 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
16425 Likewise.
16426 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
16427 Likewise.
16428 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
16429 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
16430 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
16431 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
16432 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
16433 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
16434 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
16435 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
16436 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
16437 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
16438 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
16439 Likewise.
16440 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
16441 Likewise.
16442 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
16443 Likewise.
16444 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
16445 Likewise.
16446 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
16447 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
16448 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
16449 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
16450 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
16451 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
16452 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
16453 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
16454
16455 2017-12-06 Joseph Myers <joseph@codesourcery.com>
16456
16457 * stdlib/strtof.c: Include <bits/floatn.h>
16458 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
16459 and later undefine as macro. Define as weak alias if
16460 [!USE_WIDE_CHAR].
16461 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
16462 and later undefine as macro. Define as weak alias if
16463 [USE_WIDE_CHAR].
16464 * stdlib/strtof_l.c: Include <bits/floatn.h>
16465 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
16466 and later undefine as macro. Define as weak alias if
16467 [!USE_WIDE_CHAR].
16468 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
16469 and later undefine as macro. Define as weak alias if
16470 [USE_WIDE_CHAR].
16471
16472 * stdlib/strfromf.c: Include <bits/floatn.h>.
16473 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
16474 and later undefine as macro and define as weak alias.
16475
16476 * math/test-float32.h: New file.
16477
16478 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
16479 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
16480 (libm_alias_float_other_r): Create f32 alias.
16481 (libm_alias_float_r): Use semicolon before call to
16482 libm_alias_float_other_r.
16483
16484 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
16485 second argument to libm_alias_float_other.
16486 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
16487 second argument to libm_alias_float_other.
16488 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
16489 argument to libm_alias_float_other.
16490
16491 [BZ #22561]
16492 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
16493 real part of result for argument 0 + i * NaN.
16494 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
16495 results for tests of 0 + i * NaN.
16496
16497 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16498
16499 * sysdeps/alpha/fpu/libm-test-ulps: Update.
16500
16501 2017-12-06 David S. Miller <davem@davemloft.net>
16502
16503 * sysdeps/sparc/fpu/libm-test-ulps: Update
16504 exp_{downward,towardzero,upward} ulps.
16505
16506 2017-12-06 Joseph Myers <joseph@codesourcery.com>
16507
16508 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
16509 variables static.
16510
16511 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
16512 (Y0_2D): Likewise.
16513 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
16514 (Y0_2D): Likewise.
16515 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
16516 (Y0_2D): Likewise.
16517 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
16518 (Y0_2D): Likewise.
16519
16520 2017-12-06 Mike FABIAN <mfabian@redhat.com>
16521
16522 [BZ #22515]
16523 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
16524 and to the list of locales to be built for testing.
16525 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
16526 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
16527 and build the collation rules upon that.
16528
16529 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
16530
16531 * NEWS: Add sinf to list of optimized functions.
16532
16533 2017-12-06 Joseph Myers <joseph@codesourcery.com>
16534
16535 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
16536 (__HAVE_FLOAT32X): Likewise.
16537 * manual/math.texi (Mathematics): Document support for _Float64
16538 and _Float32x.
16539 * math/Makefile (test-types): Add float64 and float32x.
16540 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
16541 functions.
16542 * stdlib/Versions (GLIBC_2.27): Likewise.
16543 * wcsmbs/Versions (GLIBC_2.27): Likewise.
16544 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
16545 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
16546 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
16547 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
16548 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
16549 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
16550 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
16551 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
16552 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
16553 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
16554 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
16555 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
16556 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
16557 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
16558 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
16559 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
16560 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
16561 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
16562 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
16563 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
16564 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
16565 Likewise.
16566 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
16567 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
16568 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
16569 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
16570 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
16571 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
16572 Likewise.
16573 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
16574 Likewise.
16575 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
16576 Likewise.
16577 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
16578 Likewise.
16579 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
16580 Likewise.
16581 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
16582 Likewise.
16583 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
16584 Likewise.
16585 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
16586 Likewise.
16587 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
16588 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
16589 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
16590 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
16591 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
16592 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
16593 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
16594 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
16595 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
16596 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
16597 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
16598 Likewise.
16599 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
16600 Likewise.
16601 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
16602 Likewise.
16603 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
16604 Likewise.
16605 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
16606 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
16607 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
16608 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
16609 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
16610 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
16611 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
16612 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
16613
16614 2017-12-05 Joseph Myers <joseph@codesourcery.com>
16615
16616 * bits/floatn-common.h: Include <bits/long-double.h>.
16617 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
16618 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
16619 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
16620 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
16621 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
16622 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
16623 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
16624 (__builtin_huge_valf64): Use __builtin_huge_vall.
16625 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
16626 (__builtin_inff64): Use __builtin_infl.
16627 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
16628 (__builtin_nanf64): Use __builtin_nanl.
16629 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
16630 (__builtin_nansf64): Use __builtin_nansl.
16631
16632 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
16633 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
16634 Carlos O'Donnell <carlos@redhat.com>
16635
16636 * elf/dl-tunables.list: Add elision parameters.
16637 * manual/tunables.texi: Add entries about elision tunable.
16638 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
16639 Add callback functions to dynamically enable/disable elision.
16640 Add multiple callbacks functions to set elision parameters.
16641 Deleted __libc_enable_secure check.
16642 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
16643 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
16644 * configure: Regenerated.
16645 * configure.ac: Option enable_lock_elision was deleted.
16646 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
16647 * config.make.in: Remove references to enable_lock_elision.
16648 * manual/install.texi: Elision configure option was removed.
16649 * INSTALL: Regenerated to remove enable_lock_elision.
16650 * nptl/Makefile:
16651 Disable elision so it can verify error case for destroying a mutex.
16652 * sysdeps/powerpc/nptl/elide.h:
16653 Cleanup ENABLE_LOCK_ELISION check.
16654 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
16655 * sysdeps/s390/configure: Regenerated.
16656 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
16657 * nptl/tst-mutex8.c:
16658 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
16659 * sysdeps/powerpc/powerpc32/sysdep.h:
16660 Deleted all ENABLE_LOCK_ELISION checks.
16661 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
16662 * sysdeps/powerpc/sysdep.h: Likewise.
16663 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
16664 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
16665 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
16666 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
16667 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
16668 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
16669 enable-lock-elision.
16670
16671 2017-12-05 Joseph Myers <joseph@codesourcery.com>
16672
16673 * stdlib/strtod.c: Include <bits/floatn.h>.
16674 (BUILD_DOUBLE): New macro.
16675 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
16676 (strtof64): Define and later undefine as macro. Define as weak
16677 alias if [!USE_WIDE_CHAR].
16678 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
16679 (wcstof64): Define and later undefine as macro. Define as weak
16680 alias if [USE_WIDE_CHAR].
16681 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
16682 (strtof32x): Define and later undefine as macro. Define as weak
16683 alias if [!USE_WIDE_CHAR].
16684 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
16685 (wcstof32x): Define and later undefine as macro. Define as weak
16686 alias if [USE_WIDE_CHAR].
16687 * stdlib/strtod_l.c: Include <bits/floatn.h>.
16688 (BUILD_DOUBLE): New macro.
16689 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
16690 (strtof64_l): Define and later undefine as macro. Define as weak
16691 alias if [!USE_WIDE_CHAR].
16692 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
16693 (wcstof64_l): Define and later undefine as macro. Define as weak
16694 alias if [USE_WIDE_CHAR].
16695 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
16696 (strtof32x_l): Define and later undefine as macro. Define as weak
16697 alias if [!USE_WIDE_CHAR].
16698 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
16699 (wcstof32x_l): Define and later undefine as macro. Define as weak
16700 alias if [USE_WIDE_CHAR].
16701
16702 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16703
16704 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
16705 (reduced): Use ones as double instead of integer.
16706
16707 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
16708
16709 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
16710
16711 2017-12-05 Joseph Myers <joseph@codesourcery.com>
16712
16713 * stdlib/strfromd.c: Include <bits/floatn.h>.
16714 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
16715 and later undefine as macro and define as weak alias.
16716 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
16717 Likewise.
16718
16719 * math/test-float32x.h: New file.
16720 * math/test-float64.h: Likewise.
16721
16722 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
16723 (libm_alias_double_other_r_f64): New macro.
16724 (libm_alias_double_other_r_f32x): Likewise.
16725 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
16726 libm_alias_double_other_r_f32x.
16727 (libm_alias_double_r): Use semicolon before call to
16728 libm_alias_double_other_r.
16729 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
16730 <bits/floatn.h>.
16731 (libm_alias_double_other_r_f64): New macro.
16732 (libm_alias_double_other_r_f32x): Likewise.
16733 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
16734 libm_alias_double_other_r_f32x.
16735
16736 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
16737
16738 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
16739 int.
16740 (SINF_FUNC): Likewise. Replace floor with simple casts.
16741
16742 2017-12-05 Mike FABIAN <mfabian@redhat.com>
16743
16744 [BZ #22517]
16745 * localedata/Makefile: Add et_EE.UTF-8 to test-input
16746 and to the list of locales to be built for testing.
16747 * localedata/et_EE.UTF-8.in: New file for testing the collation.
16748 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
16749 and build the collation rules upon that.
16750
16751 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
16752
16753 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
16754 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
16755 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
16756 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
16757 instead of __insn__xxx.
16758 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
16759 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
16760 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
16761 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
16762 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
16763 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
16764
16765 2017-12-05 Florian Weimer <fweimer@redhat.com>
16766
16767 Linux: Implement interfaces for memory protection keys
16768 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
16769 xsignal, xsysconf.
16770 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
16771 * support/xunistd.h (xsysconf): Declare.
16772 * support/xraise.c: New file.
16773 * support/xsigaction.c: Likewise.
16774 * support/xsignal.c: Likewise.
16775 * support/xsysconf.c: Likewise.
16776 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
16777 pkey_set, pkey_get, pkey_mprotect.
16778 [misc] (tests): Add tst-pkey.
16779 (tst-pkey): Link with -lpthread.
16780 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
16781 pkey_free, pkey_set, pkey_get, pkey_mprotect.
16782 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
16783 (PKEY_DISABLE_WRITE): Define.
16784 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
16785 Declare.
16786 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
16787 (SEGV_PKUERR): Add.
16788 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
16789 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
16790 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
16791 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
16792 Add.
16793 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
16794 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
16795 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
16796 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
16797 * sysdeps/unix/sysv/linux/**.abilist: Update.
16798
16799 2017-12-05 Florian Weimer <fweimer@redhat.com>
16800
16801 * support/tst-test_compare.c (subprocess): Use long long instead
16802 of long argument for consistent type width across 32-bit and
16803 64-bit architectures.
16804 (do_test): Adjust expected output.
16805
16806 2017-12-05 Joseph Myers <joseph@codesourcery.com>
16807
16808 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
16809 (cosf): Define using libm_alias_float.
16810 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
16811 (fabsf): Define using libm_alias_float.
16812 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
16813 (fmaf): Define using libm_alias_float.
16814 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
16815 (rintf): Define using libm_alias_float.
16816 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
16817 (sinf): Define using libm_alias_float.
16818 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
16819 <libm-alias-float.h>.
16820 (modff): Define using libm_alias_float.
16821 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
16822 <libm-alias-float.h>.
16823 (logbf): Define using libm_alias_float.
16824 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
16825 <libm-alias-float.h>.
16826 (ceilf): Define using libm_alias_float.
16827 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
16828 <libm-alias-float.h>.
16829 (copysignf): Define using libm_alias_float.
16830 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
16831 <libm-alias-float.h>.
16832 (floorf): Define using libm_alias_float.
16833 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
16834 <libm-alias-float.h>.
16835 (llrintf): Define using libm_alias_float.
16836 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
16837 <libm-alias-float.h>.
16838 (llroundf): Define using libm_alias_float.
16839 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
16840 <libm-alias-float.h>.
16841 (lrintf): Define using libm_alias_float.
16842 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
16843 <libm-alias-float.h>.
16844 (lroundf): Define using libm_alias_float.
16845 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
16846 <libm-alias-float.h>.
16847 (nearbyintf): Define using libm_alias_float.
16848 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
16849 <libm-alias-float.h>.
16850 (rintf): Define using libm_alias_float.
16851 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
16852 <libm-alias-float.h>.
16853 (roundf): Define using libm_alias_float.
16854 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
16855 <libm-alias-float.h>.
16856 (truncf): Define using libm_alias_float.
16857 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
16858 Include <libm-alias-float.h>.
16859 (ceilf): Define using libm_alias_float.
16860 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
16861 Include <libm-alias-float.h>.
16862 (copysignf): Define using libm_alias_float.
16863 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
16864 Include <libm-alias-float.h>.
16865 (floorf): Define using libm_alias_float.
16866 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
16867 Include <libm-alias-float.h>.
16868 (llrintf): Define using libm_alias_float.
16869 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
16870 Include <libm-alias-float.h>.
16871 (llroundf): Define using libm_alias_float.
16872 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
16873 Include <libm-alias-float.h>.
16874 (logbf): Define using libm_alias_float.
16875 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
16876 Include <libm-alias-float.h>.
16877 (lrintf): Define using libm_alias_float.
16878 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
16879 Include <libm-alias-float.h>.
16880 (lroundf): Define using libm_alias_float.
16881 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
16882 Include <libm-alias-float.h>.
16883 (modff): Define using libm_alias_float.
16884 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
16885 Include <libm-alias-float.h>.
16886 (roundf): Define using libm_alias_float.
16887 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
16888 Include <libm-alias-float.h>.
16889 (truncf): Define using libm_alias_float.
16890 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
16891 <libm-alias-float.h>.
16892 (llrintf): Define using libm_alias_float.
16893 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
16894 <libm-alias-float.h>.
16895 (llroundf): Define using libm_alias_float.
16896 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
16897 <libm-alias-float.h>.
16898 (ceilf): Define using libm_alias_float.
16899 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
16900 <libm-alias-float.h>.
16901 (floorf): Define using libm_alias_float.
16902 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
16903 <libm-alias-float.h>.
16904 (llroundf): Define using libm_alias_float.
16905 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
16906 <libm-alias-float.h>.
16907 (lroundf): Define using libm_alias_float.
16908 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
16909 <libm-alias-float.h>.
16910 (roundf): Define using libm_alias_float.
16911 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
16912 <libm-alias-float.h>.
16913 (truncf): Define using libm_alias_float.
16914 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
16915 <libm-alias-float.h>.
16916 (copysignf): Define using libm_alias_float.
16917 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
16918 <libm-alias-float.h>.
16919 (llrintf): Define using libm_alias_float.
16920 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
16921 <libm-alias-float.h>.
16922 (llroundf): Define using libm_alias_float.
16923 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
16924 <libm-alias-float.h>.
16925 (lrintf): Define using libm_alias_float.
16926 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
16927 <libm-alias-float.h>.
16928 (lroundf): Define using libm_alias_float.
16929 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
16930 <libm-alias-float.h>.
16931 (ceilf): Define using libm_alias_float.
16932 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
16933 <libm-alias-float.h>.
16934 (copysignf): Define using libm_alias_float.
16935 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
16936 <libm-alias-float.h>.
16937 (cosf): Define using libm_alias_float.
16938 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
16939 <libm-alias-float.h>.
16940 (floorf): Define using libm_alias_float.
16941 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
16942 <libm-alias-float.h>.
16943 (llrintf): Define using libm_alias_float.
16944 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
16945 <libm-alias-float.h>.
16946 (llroundf): Define using libm_alias_float.
16947 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
16948 <libm-alias-float.h>.
16949 (logbf): Define using libm_alias_float.
16950 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
16951 <libm-alias-float.h>.
16952 (modff): Define using libm_alias_float.
16953 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
16954 <libm-alias-float.h>.
16955 (roundf): Define using libm_alias_float.
16956 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
16957 <libm-alias-float.h>.
16958 (sinf): Define using libm_alias_float.
16959 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
16960 <libm-alias-float.h>.
16961 (truncf): Define using libm_alias_float.
16962 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
16963 <libm-alias-float.h>.
16964 (ceilf): Define using libm_alias_float.
16965 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
16966 <libm-alias-float.h>.
16967 (copysignf): Define using libm_alias_float.
16968 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
16969 <libm-alias-float.h>.
16970 (floorf): Define using libm_alias_float.
16971 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
16972 <libm-alias-float.h>.
16973 (llrintf): Define using libm_alias_float.
16974 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
16975 <libm-alias-float.h>.
16976 (llroundf): Define using libm_alias_float.
16977 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
16978 <libm-alias-float.h>.
16979 (nearbyintf): Define using libm_alias_float.
16980 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
16981 <libm-alias-float.h>.
16982 (rintf): Define using libm_alias_float.
16983 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
16984 <libm-alias-float.h>.
16985 (roundf): Define using libm_alias_float.
16986 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
16987 <libm-alias-float.h>.
16988 (truncf): Define using libm_alias_float.
16989 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
16990 <libm-alias-float.h>.
16991 (ceilf): Define using libm_alias_float.
16992 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
16993 <libm-alias-float.h>.
16994 (floorf): Define using libm_alias_float.
16995 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
16996 <libm-alias-float.h>.
16997 (llroundf): Define using libm_alias_float.
16998 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
16999 <libm-alias-float.h>.
17000 (roundf): Define using libm_alias_float.
17001 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
17002 <libm-alias-float.h>.
17003 (truncf): Define using libm_alias_float.
17004 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
17005 <libm-alias-float.h>.
17006 (copysignf): Define using libm_alias_float.
17007 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
17008 <libm-alias-float.h>.
17009 (llrintf): Define using libm_alias_float.
17010 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
17011 <libm-alias-float.h>.
17012 (llroundf): Define using libm_alias_float.
17013 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
17014 <libm-alias-float.h>.
17015 (cosf): Define using libm_alias_float.
17016 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
17017 <libm-alias-float.h>.
17018 (llrintf): Define using libm_alias_float.
17019 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
17020 <libm-alias-float.h>.
17021 (llroundf): Define using libm_alias_float.
17022 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
17023 <libm-alias-float.h>.
17024 (sinf): Define using libm_alias_float.
17025
17026 2017-12-04 Florian Weimer <fweimer@redhat.com>
17027
17028 * support/check.h (TEST_COMPARE): Define.
17029 (support_test_compare_failure): Declare.
17030 * support/Makefile (libsupport-routines): Add
17031 support_test_compare_failure.
17032 (tests): Add tst-test_compare.
17033 * support /support_test_compare_failure.c: New file.
17034 * support/tst-test_compare.c: Likewise.
17035
17036 2017-12-04 Mike FABIAN <mfabian@redhat.com>
17037
17038 [BZ #22527]
17039 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
17040 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
17041 available, this rewrite of the collation rules does reproduce
17042 the test file in the same order.
17043
17044 2017-12-04 Mike FABIAN <mfabian@redhat.com>
17045
17046 [BZ #10580]
17047 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
17048 digraphs in the month and day names. Using single code points for
17049 digraphs is deprecated. While there are dedicated Unicode
17050 codepoints, for the digraphs, these are included for backwards
17051 compatibility and modern texts use a sequence of Basic Latin
17052 characters. See: https://www.unicode.org/faq/ligature_digraph.html
17053 This makes the month and day names agree exactly with CLDR now,
17054 CLDR does not use the single code points for the digraphs either.
17055
17056 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
17057
17058 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
17059
17060 2017-12-04 Joseph Myers <joseph@codesourcery.com>
17061
17062 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
17063 of floor.
17064
17065 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
17066
17067 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
17068 Define only for libc.so.
17069
17070 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
17071
17072 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
17073 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
17074 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
17075 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
17076 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
17077
17078 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17079
17080 [BZ #5997]
17081 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
17082
17083 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
17084
17085 [BZ libc/19170]
17086 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
17087 PREINIT_FUNCTION_WEAK is nonzero.
17088 (gmon_initializer): New function. Put procedure label for it in
17089 .init_array section.
17090 (_init): Don't call PREINIT_FUNCTION.
17091 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
17092 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
17093 value when map argument is null.
17094
17095 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
17096 depi instruction from PIC pc-relative sequence.
17097 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
17098 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
17099 (elf_machine_load_address): Likewise.
17100 (elf_machine_runtime_setup): Likewise.
17101
17102 2017-12-02 Joseph Myers <joseph@codesourcery.com>
17103
17104 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
17105 <libm-alias-double.h>.
17106 (logb): Define using libm_alias_double.
17107 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
17108 <libm-alias-double.h>.
17109 (copysign): Define using libm_alias_double.
17110 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
17111 <libm-alias-double.h>.
17112 (llrint): Define using libm_alias_double.
17113 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
17114 <libm-alias-double.h>.
17115 (llround): Define using libm_alias_double.
17116 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
17117 <libm-alias-double.h>.
17118 (lrint): Define using libm_alias_double.
17119 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
17120 <libm-alias-double.h>.
17121 (lround): Define using libm_alias_double.
17122 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
17123 Include <libm-alias-double.h>.
17124 (copysign): Define using libm_alias_double.
17125 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
17126 Include <libm-alias-double.h>.
17127 (llrint): Define using libm_alias_double.
17128 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
17129 Include <libm-alias-double.h>.
17130 (llround): Define using libm_alias_double.
17131 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
17132 <libm-alias-double.h>.
17133 (logb): Define using libm_alias_double.
17134 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
17135 Include <libm-alias-double.h>.
17136 (lrint): Define using libm_alias_double.
17137 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
17138 Include <libm-alias-double.h>.
17139 (lround): Define using libm_alias_double.
17140 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
17141 <libm-alias-double.h>.
17142 (llrint): Define using libm_alias_double.
17143 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
17144 <libm-alias-double.h>.
17145 (llround): Define using libm_alias_double.
17146 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
17147 <libm-alias-double.h>.
17148 (llround): Define using libm_alias_double.
17149 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
17150 <libm-alias-double.h>.
17151 (lround): Define using libm_alias_double.
17152 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
17153 <libm-alias-double.h>.
17154 (copysign): Define using libm_alias_double.
17155 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
17156 <libm-alias-double.h>.
17157 (llrint): Define using libm_alias_double.
17158 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
17159 <libm-alias-double.h>.
17160 (llround): Define using libm_alias_double.
17161 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
17162 <libm-alias-double.h>.
17163 (lrint): Define using libm_alias_double.
17164 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
17165 <libm-alias-double.h>.
17166 (lround): Define using libm_alias_double.
17167 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
17168 <libm-alias-double.h>.
17169 (copysign): Define using libm_alias_double.
17170 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
17171 <libm-alias-double.h>.
17172 (llrint): Define using libm_alias_double.
17173 (lrint): Likewise.
17174 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
17175 <libm-alias-double.h>.
17176 (llround): Define using libm_alias_double.
17177 (lround): Likewise.
17178 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
17179 <libm-alias-double.h>.
17180 (logb): Define using libm_alias_double.
17181 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
17182 <libm-alias-double.h>.
17183 (copysign): Define using libm_alias_double.
17184 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
17185 <libm-alias-double.h>.
17186 (llrint): Define using libm_alias_double.
17187 (lrint): Likewise.
17188 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
17189 <libm-alias-double.h>.
17190 (llround): Define using libm_alias_double.
17191 (lround): Likewise.
17192 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
17193 <libm-alias-double.h>.
17194 (llround): Define using libm_alias_double.
17195 (lround): Likewise.
17196 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
17197 <libm-alias-double.h>.
17198 (copysign): Define using libm_alias_double.
17199 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
17200 <libm-alias-double.h>.
17201 (llrint): Define using libm_alias_double.
17202 (lrint): Likewise.
17203 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
17204 <libm-alias-double.h>.
17205 (llround): Define using libm_alias_double.
17206 (lround): Likewise.
17207 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
17208 <libm-alias-double.h>.
17209 (llrint): Define using libm_alias_double.
17210 (lrint): Likewise.
17211 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
17212 <libm-alias-double.h>.
17213 (llround): Define using libm_alias_double.
17214 (lround): Likewise.
17215
17216 2017-12-01 Joseph Myers <joseph@codesourcery.com>
17217
17218 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
17219 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
17220 compat symbol based on llround.
17221
17222 * sysdeps/powerpc/power7/fpu/s_logb.c
17223 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
17224 symbol based on __logb, not on logb.
17225 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
17226 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
17227 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
17228 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
17229
17230 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
17231 (rint): Define using libm_alias_double.
17232 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
17233 <libm-alias-double.h>.
17234 (modf): Define using libm_alias_double.
17235 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
17236 <libm-alias-double.h>.
17237 (ceil): Define using libm_alias_double.
17238 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
17239 <libm-alias-double.h>.
17240 (floor): Define using libm_alias_double.
17241 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
17242 <libm-alias-double.h>.
17243 (nearbyint): Define using libm_alias_double.
17244 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
17245 <libm-alias-double.h>.
17246 (rint): Define using libm_alias_double.
17247 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
17248 <libm-alias-double.h>.
17249 (round): Define using libm_alias_double.
17250 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
17251 <libm-alias-double.h>.
17252 (trunc): Define using libm_alias_double.
17253 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
17254 <libm-alias-double.h>.
17255 (ceil): Define using libm_alias_double.
17256 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
17257 Include <libm-alias-double.h>.
17258 (floor): Define using libm_alias_double.
17259 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
17260 <libm-alias-double.h>.
17261 (modf): Define using libm_alias_double.
17262 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
17263 Include <libm-alias-double.h>.
17264 (round): Define using libm_alias_double.
17265 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
17266 Include <libm-alias-double.h>.
17267 (trunc): Define using libm_alias_double.
17268 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
17269 <libm-alias-double.h>.
17270 (ceil): Define using libm_alias_double.
17271 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
17272 <libm-alias-double.h>.
17273 (floor): Define using libm_alias_double.
17274 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
17275 <libm-alias-double.h>.
17276 (round): Define using libm_alias_double.
17277 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
17278 <libm-alias-double.h>.
17279 (trunc): Define using libm_alias_double.
17280 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
17281 <libm-alias-double.h>.
17282 (ceil): Define using libm_alias_double.
17283 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
17284 <libm-alias-double.h>.
17285 (floor): Define using libm_alias_double.
17286 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
17287 <libm-alias-double.h>.
17288 (modf): Define using libm_alias_double.
17289 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
17290 <libm-alias-double.h>.
17291 (round): Define using libm_alias_double.
17292 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
17293 <libm-alias-double.h>.
17294 (trunc): Define using libm_alias_double.
17295 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
17296 <libm-alias-double.h>.
17297 (ceil): Define using libm_alias_double.
17298 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
17299 <libm-alias-double.h>.
17300 (floor): Define using libm_alias_double.
17301 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
17302 <libm-alias-double.h>.
17303 (nearbyint): Define using libm_alias_double.
17304 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
17305 <libm-alias-double.h>.
17306 (rint): Define using libm_alias_double.
17307 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
17308 <libm-alias-double.h>.
17309 (round): Define using libm_alias_double.
17310 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
17311 <libm-alias-double.h>.
17312 (trunc): Define using libm_alias_double.
17313 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
17314 <libm-alias-double.h>.
17315 (ceil): Define using libm_alias_double.
17316 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
17317 <libm-alias-double.h>.
17318 (floor): Define using libm_alias_double.
17319 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
17320 <libm-alias-double.h>.
17321 (round): Define using libm_alias_double.
17322 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
17323 <libm-alias-double.h>.
17324 (trunc): Define using libm_alias_double.
17325
17326 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
17327 (fabs): Define using libm_alias_double.
17328 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
17329 (fma): Define using libm_alias_double.
17330 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
17331 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
17332 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
17333 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
17334
17335 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17336
17337 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
17338
17339 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
17340 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
17341 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
17342
17343 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
17344 due redirect macro.
17345
17346 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
17347
17348 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
17349
17350 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17351
17352 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
17353 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
17354 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
17355 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
17356
17357 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
17358 (libm-sysdep_routines): Add s_nearbyintf-generic and
17359 s_nearbyint-generic.
17360 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
17361 New file.
17362 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
17363 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
17364 Likewise.
17365 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
17366 Likewise.
17367 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
17368 file.
17369 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
17370 Likewise.
17371
17372 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
17373 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
17374 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
17375 file.
17376 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
17377 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
17378 Likewise.
17379 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
17380 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
17381 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
17382
17383 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
17384 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
17385 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
17386 file.
17387 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
17388 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
17389 Likewise.
17390 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
17391 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
17392 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
17393
17394 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
17395 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
17396 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
17397 file.
17398 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
17399 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
17400 Likewise.
17401 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
17402 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
17403 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
17404
17405 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
17406 (sysdep_calls): New rule.
17407 (sysdep_routines): Use sysdep_calls as base.
17408 (libm-sysdep_routines): Add generic rule for symbols shared with
17409 libc. Add s_copysign-generic and s_copysign-generic objects.
17410 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
17411 New file.
17412 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
17413 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
17414 Likewise.
17415 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
17416 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
17417 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
17418
17419 2017-12-01 Mike FABIAN <mfabian@redhat.com>
17420
17421 [BZ #22519]
17422 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
17423 the list of locales to be built for testing.
17424 * localedata/is_IS.UTF-8.in: New file.
17425 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
17426 on iso14651_t1.
17427
17428 2017-12-01 Joseph Myers <joseph@codesourcery.com>
17429
17430 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
17431 <libm-alias-float.h>.
17432 (fabsf): Define using libm_alias_float.
17433
17434 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
17435
17436 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
17437
17438 2017-11-30 Joseph Myers <joseph@codesourcery.com>
17439
17440 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
17441 <libm-alias-float.h>.
17442 (fabsf): Define using libm_alias_float.
17443 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
17444 <libm-alias-float.h>.
17445 (lrintf): Define using libm_alias_float.
17446 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
17447 <libm-alias-float.h>.
17448 (rintf): Define using libm_alias_float.
17449
17450 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
17451 <libm-alias-double.h>.
17452 (fabs): Define using libm_alias_double.
17453 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
17454 <libm-alias-double.h>.
17455 (lrint): Define using libm_alias_double.
17456 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
17457 <libm-alias-double.h>.
17458 (rint): Define using libm_alias_double.
17459
17460 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
17461 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
17462 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
17463 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
17464 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
17465 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
17466 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
17467 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
17468 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
17469 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
17470 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
17471 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
17472 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
17473 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
17474 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
17475 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
17476 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
17477 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
17478 s_atan_template.c.
17479 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
17480 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
17481 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
17482 s_ceil_template.c.
17483 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
17484 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
17485 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
17486 s_cos_template.c.
17487 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
17488 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
17489 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
17490 s_expm1_template.c.
17491 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
17492 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
17493 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
17494 s_fabs_template.c.
17495 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
17496 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
17497 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
17498 s_floor_template.c.
17499 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
17500 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
17501 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
17502 s_frexp_template.c.
17503 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
17504 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
17505 s_lrint_template.c.
17506 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
17507 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
17508 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
17509 s_modf_template.c.
17510 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
17511 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
17512 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
17513 s_nearbyint_template.c.
17514 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
17515 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
17516 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
17517 s_remquo_template.c.
17518 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
17519 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
17520 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
17521 s_rint_template.c.
17522 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
17523 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
17524 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
17525 s_sin_template.c.
17526 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
17527 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
17528 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
17529 s_sincos_template.c.
17530 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
17531 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
17532 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
17533 s_tan_template.c.
17534 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
17535 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
17536 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
17537 s_tanh_template.c.
17538 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
17539 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
17540 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
17541 s_trunc_template.c.
17542 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
17543 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
17544 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
17545 s_atan.c instead of including s_atan.c.
17546 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
17547 s_atanf.c instead of including s_atanf.c.
17548 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
17549 s_atanl.c instead of including s_atanl.c.
17550 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
17551 instead of s_atan.c.
17552 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
17553 instead of s_atanf.c.
17554 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
17555 instead of s_atanl.c.
17556
17557 * scripts/update-copyrights: Do not handle intl/plural.c
17558 specially.
17559
17560 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
17561
17562 [BZ #22432]
17563 * configure.ac (BISON): Require to be present.
17564 * configure: Regenerated.
17565 * intl/Makefile (generated): Add plural.c.
17566 [$(BISON) != no]: Make code unconditional.
17567 (plural.c): Change rule to $(objpfx)plural.c.
17568 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
17569 * intl/plural.c: Remove.
17570 * manual/install.texi (Tools for Compilation): Document bison as
17571 required.
17572 * INSTALL: Regenerated.
17573
17574 2017-11-30 Joseph Myers <joseph@codesourcery.com>
17575
17576 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
17577 <libm-alias-double.h>.
17578 (llrint): Define using libm_alias_double.
17579 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
17580 <libm-alias-float.h>.
17581 (llrintf): Define using libm_alias_float.
17582 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
17583 <libm-alias-ldouble.h>.
17584 (llrintl): Define using libm_alias_ldouble.
17585
17586 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
17587 declare_mgen_alias instead of weak_alias.
17588 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
17589 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
17590 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
17591
17592 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17593
17594 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
17595 Add add_n-generic.
17596 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
17597 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
17598 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
17599
17600 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
17601 Add submul_1-generic.
17602 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
17603 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
17604 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
17605
17606 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
17607 Add addmul_1-generic.
17608 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
17609 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
17610 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
17611
17612 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
17613 Add sub_n-generic.
17614 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
17615 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
17616 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
17617
17618 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
17619 Add mul_1-generic.
17620 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
17621 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
17622 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
17623
17624 2017-11-30 Mike FABIAN <mfabian@redhat.com>
17625
17626 According to CLDR, collation rules for Serbian and Bosnian
17627 should be the same as for Croatian.
17628
17629 [BZ #22534]
17630 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
17631 and to the list of locales to be built for testing.
17632 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
17633 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
17634 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
17635 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
17636
17637 2017-11-30 Mike FABIAN <mfabian@redhat.com>
17638
17639 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
17640 to make test case pass.
17641 * localedata/hr_HR.UTF-8.in: Add more test strings.
17642
17643 2017-11-30 Mike FABIAN <mfabian@redhat.com>
17644
17645 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
17646
17647 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
17648
17649 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
17650 the list of locales to built for testing.
17651 * localedata/hr_HR.UTF-8.in: New file.
17652
17653 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
17654
17655 [BZ #10580]
17656 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
17657 iso14651_t1.
17658 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
17659 CLDR (except use ligatures for the digraphs, CLDR does not use
17660 the ligatures), add first_workday, some fixes in the date and time
17661 formats.
17662 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
17663 for Đ and đ.
17664 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
17665 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
17666 Add int_p_cs_precedes and int_n_cs_precedes.
17667 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
17668 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
17669 LC_MONETARY now).
17670 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
17671 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
17672 name_miss.
17673 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
17674 and lang_lib. Change postal_fmt.
17675
17676 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
17677
17678 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
17679 <setjmp.h>.
17680 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
17681 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
17682 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
17683 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
17684 * sysdeps/generic/setjmpP.h: New file.
17685 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
17686 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
17687 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
17688 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
17689 Add jmp_buf-ssp.sym.
17690 (tests): Add tst-saved_mask-1.
17691
17692 2017-11-30 Arjun Shankar <arjun@redhat.com>
17693
17694 [BZ #22375]
17695 CVE-2017-17426
17696 * malloc/malloc.c (__libc_malloc): Use checked_request2size
17697 instead of request2size.
17698
17699 2017-11-30 Joseph Myers <joseph@codesourcery.com>
17700
17701 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
17702 (__lllrint): Remove alias.
17703 (lllrint): Likewise.
17704 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
17705 (__lllrintf): Likewise.
17706 (lllrintf): Likewise.
17707
17708 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
17709 <libm-alias-float.h>.
17710 (copysignf): Define using libm_alias_float.
17711 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
17712 <libm-alias-float.h>.
17713 (fabsf): Define using libm_alias_float.
17714 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
17715 Include <libm-alias-float.h>.
17716 (copysignf): Define using libm_alias_float.
17717 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
17718 <libm-alias-float.h>.
17719 (fabsf): Define using libm_alias_float.
17720 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
17721 <libm-alias-float.h>.
17722 (fdimf): Define using libm_alias_float.
17723 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
17724 <libm-alias-float.h>.
17725 (fmaf): Define using libm_alias_float.
17726 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
17727 <libm-alias-float.h>.
17728 (llrintf): Define using libm_alias_float.
17729 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
17730 Include <libm-alias-float.h>.
17731 (nearbyintf): Define using libm_alias_float.
17732 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
17733 <libm-alias-float.h>.
17734 (rintf): Define using libm_alias_float.
17735 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
17736 <libm-alias-float.h>.
17737 (llrintf): Define using libm_alias_float.
17738 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
17739 <libm-alias-float.h>.
17740 (lrintf): Define using libm_alias_float.
17741 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
17742 <libm-alias-float.h>.
17743 (nearbyintf): Define using libm_alias_float.
17744 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
17745 <libm-alias-float.h>.
17746 (rintf): Define using libm_alias_float.
17747 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
17748 <libm-alias-float.h>.
17749 (ceilf): Define using libm_alias_float.
17750 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
17751 <libm-alias-float.h>.
17752 (floorf): Define using libm_alias_float.
17753 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
17754 <libm-alias-float.h>.
17755 (fmaf): Define using libm_alias_float.
17756 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
17757 <libm-alias-float.h>.
17758 (lrintf): Define using libm_alias_float.
17759 (llrintf): Likewise.
17760 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
17761 <libm-alias-float.h>.
17762 (nearbyintf): Define using libm_alias_float.
17763 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
17764 <libm-alias-float.h>.
17765 (rintf): Define using libm_alias_float.
17766 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
17767 <libm-alias-float.h>.
17768 (truncf): Define using libm_alias_float.
17769 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
17770 <libm-alias-float.h>.
17771 (copysignf): Define using libm_alias_float.
17772 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
17773 <libm-alias-float.h>.
17774 (fabsf): Define using libm_alias_float.
17775 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
17776 <libm-alias-float.h>.
17777 (lrintf): Define using libm_alias_float.
17778 (llrintf): Likewise.
17779 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
17780 <libm-alias-float.h>.
17781 (nearbyintf): Define using libm_alias_float.
17782 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
17783 <libm-alias-float.h>.
17784 (rintf): Define using libm_alias_float.
17785
17786 2017-11-29 Joseph Myers <joseph@codesourcery.com>
17787
17788 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
17789 <libm-alias-double.h>.
17790 (copysign): Define using libm_alias_double.
17791 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
17792 <libm-alias-double.h>.
17793 (fabs): Define using libm_alias_double.
17794 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
17795 Include <libm-alias-double.h>.
17796 (copysign): Define using libm_alias_double.
17797 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
17798 <libm-alias-double.h>.
17799 (fabs): Define using libm_alias_double.
17800 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
17801 <libm-alias-double.h>.
17802 (fdim): Define using libm_alias_double.
17803 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
17804 <libm-alias-double.h>.
17805 (fma): Define using libm_alias_double.
17806 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
17807 <libm-alias-double.h>.
17808 (llrint): Define using libm_alias_double.
17809 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
17810 Include <libm-alias-double.h>.
17811 (nearbyint): Define using libm_alias_double.
17812 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
17813 <libm-alias-double.h>.
17814 (rint): Define using libm_alias_double.
17815 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
17816 <libm-alias-double.h>.
17817 (fabs): Define using libm_alias_double.
17818 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
17819 <libm-alias-double.h>.
17820 (llrint): Define using libm_alias_double.
17821 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
17822 <libm-alias-double.h>.
17823 (nearbyint): Define using libm_alias_double.
17824 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
17825 <libm-alias-double.h>.
17826 (rint): Define using libm_alias_double.
17827 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
17828 <libm-alias-double.h>.
17829 (ceil): Define using libm_alias_double.
17830 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
17831 <libm-alias-double.h>.
17832 (floor): Define using libm_alias_double.
17833 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
17834 <libm-alias-double.h>.
17835 (fma): Define using libm_alias_double.
17836 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
17837 <libm-alias-double.h>.
17838 (lrint): Define using libm_alias_double.
17839 (llrint): Likewise.
17840 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
17841 <libm-alias-double.h>.
17842 (nearbyint): Define using libm_alias_double.
17843 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
17844 <libm-alias-double.h>.
17845 (rint): Define using libm_alias_double.
17846 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
17847 <libm-alias-double.h>.
17848 (trunc): Define using libm_alias_double.
17849 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
17850 <libm-alias-double.h>.
17851 (copysign): Define using libm_alias_double.
17852 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
17853 <libm-alias-double.h>.
17854 (fabs): Define using libm_alias_double.
17855 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
17856 <libm-alias-double.h>.
17857 (lrint): Define using libm_alias_double.
17858 (llrint): Likewise.
17859 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
17860 <libm-alias-double.h>.
17861 (nearbyint): Define using libm_alias_double.
17862 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
17863 <libm-alias-double.h>.
17864 (rint): Define using libm_alias_double.
17865
17866 [BZ #22229]
17867 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
17868 <math_ldbl_opt.h>.
17869 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
17870
17871 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17872 SPARC --disable-multi-arch glibc variants.
17873
17874 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
17875 <libm-alias-float.h>.
17876 (exp2f): Define using libm_alias_float, or libm_alias_float_other
17877 if [SHARED].
17878 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
17879 <libm-alias-float.h>.
17880 (exp2f): Define using libm_alias_float, or libm_alias_float_other
17881 if [SHARED].
17882 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
17883 <libm-alias-float.h>.
17884 (exp2f): Define using libm_alias_float, or libm_alias_float_other
17885 if [SHARED].
17886 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
17887 <libm-alias-float.h>.
17888 (exp2f): Define using libm_alias_float, or libm_alias_float_other
17889 if [SHARED].
17890 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
17891 <libm-alias-float.h>.
17892 (exp2f): Define using libm_alias_float, or libm_alias_float_other
17893 if [SHARED].
17894 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
17895 <libm-alias-float.h>.
17896 (ceilf): Define using libm_alias_float.
17897 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
17898 <libm-alias-float.h>.
17899 (floorf): Define using libm_alias_float.
17900 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
17901 <libm-alias-float.h>.
17902 (fmaf): Define using libm_alias_float.
17903 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
17904 <libm-alias-float.h>.
17905 (nearbyintf): Define using libm_alias_float.
17906 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
17907 <libm-alias-float.h>.
17908 (rintf): Define using libm_alias_float.
17909 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
17910 <libm-alias-float.h>.
17911 (truncf): Define using libm_alias_float.
17912 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
17913 (copysignf): Define using libm_alias_float.
17914 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
17915 (cosf): Define using libm_alias_float.
17916 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
17917 (fabsf): Define using libm_alias_float.
17918 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
17919 (fmaxf): Define using libm_alias_float.
17920 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
17921 (fminf): Define using libm_alias_float.
17922 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
17923 (llrintf): Define using libm_alias_float.
17924 [!__ILP32__] (lrintf): Likewise.
17925 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
17926 (sincosf): Define using libm_alias_float.
17927 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
17928 (sinf): Define using libm_alias_float.
17929 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
17930 (lrintf): Define using libm_alias_float.
17931
17932 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
17933 <libm-alias-double.h>.
17934 (atan): Define using libm_alias_double.
17935 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
17936 <libm-alias-double.h>.
17937 (ceil): Define using libm_alias_double.
17938 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
17939 <libm-alias-double.h>.
17940 (floor): Define using libm_alias_double.
17941 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
17942 <libm-alias-double.h>.
17943 (fma): Define using libm_alias_double.
17944 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
17945 <libm-alias-double.h>.
17946 (nearbyint): Define using libm_alias_double.
17947 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
17948 <libm-alias-double.h>.
17949 (rint): Define using libm_alias_double.
17950 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
17951 <libm-alias-double.h>.
17952 (sin): Define using libm_alias_double.
17953 (cos): Likewise.
17954 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
17955 <libm-alias-double.h>.
17956 (tan): Define using libm_alias_double.
17957 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
17958 <libm-alias-double.h>.
17959 (trunc): Define using libm_alias_double.
17960 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
17961 (copysign): Define using libm_alias_double.
17962 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
17963 (fabs): Define using libm_alias_double.
17964 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
17965 (fmax): Define using libm_alias_double.
17966 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
17967 (fmin): Define using libm_alias_double.
17968 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
17969 (llrint): Define using libm_alias_double.
17970 [!__ILP32__] (lrint): Likewise.
17971 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
17972 (lrint): Define using libm_alias_double.
17973
17974 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17975
17976 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
17977 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
17978 objects.
17979 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
17980 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
17981 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
17982 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
17983 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
17984 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
17985
17986 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
17987 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
17988 objects.
17989 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
17990 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
17991 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
17992 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
17993 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
17994 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
17995
17996 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
17997 (libm-sysdep_routines): Add s_nearbyint-generic and
17998 s_nearbyintf-generic objects.
17999 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
18000 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
18001 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
18002 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
18003 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
18004 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
18005
18006 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
18007 Add s_finitef-generic and s_finite-generic objects.
18008 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
18009 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
18010 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
18011 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
18012 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
18013 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
18014
18015 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
18016 Add s_isinff-generic and s_isinf-generic objects.
18017 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
18018 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
18019 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
18020 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
18021 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
18022 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
18023
18024 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
18025 Add s_isnanf-generic and s_isnan-generic objects.
18026 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
18027 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
18028 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
18029 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
18030 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
18031 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
18032
18033 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
18034 macro.
18035 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
18036 rule.
18037 (sysdep_routines): Use sysdep_calls as base.
18038 (libm-sysdep_routines): Add generic rule for symbols shared with
18039 libc. Add s_signbit-generic and s_signbitf-generic objects.
18040 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
18041 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
18042 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
18043 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
18044 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
18045 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
18046
18047 2017-11-29 Joseph Myers <joseph@codesourcery.com>
18048
18049 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
18050 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
18051 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
18052 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
18053 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
18054 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
18055 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
18056 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
18057 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
18058 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
18059 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
18060 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
18061 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
18062 libm_alias_float_r.
18063 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
18064 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
18065 (logf): Likewise.
18066 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
18067 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
18068 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
18069 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
18070 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
18071 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
18072 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
18073 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
18074 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
18075 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
18076 libm_alias_float.
18077 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
18078 (cosf): Likewise.
18079 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
18080 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
18081 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
18082 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
18083 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
18084 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
18085 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
18086 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
18087 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
18088 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
18089 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
18090 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
18091 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
18092 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
18093 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
18094 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
18095 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
18096 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
18097 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
18098 libm_alias_float.
18099 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
18100 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
18101 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
18102 * sysdeps/ia64/fpu/w_lgammaf_main.c
18103 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
18104 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
18105
18106 2017-11-28 Mike FABIAN <mfabian@redhat.com>
18107 Alexandre Oliva <aoliva@redhat.com>
18108
18109 [BZ #17750]
18110 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
18111 * localedata/fr_CA.UTF-8.in: New file with test data for backward
18112 accents sorting.
18113 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
18114 sorting.
18115 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
18116 * localedata/locales/de_DE (LC_COLLATE): Likewise.
18117 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
18118 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
18119 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
18120 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
18121 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
18122 instead of “ifdef DIACRIT_BACKWARD”.
18123
18124 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18125
18126 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
18127 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
18128 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
18129 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
18130 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
18131 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
18132 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
18133 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
18134 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
18135 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
18136 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
18137 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
18138 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
18139 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
18140 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
18141 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
18142 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
18143 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
18144 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
18145 ($(have-as-vis3) == yes): Remove conditional.
18146 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
18147 Likewise.
18148 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
18149 file.
18150 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
18151 file.
18152 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
18153 file.
18154 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
18155 file.
18156 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
18157 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
18158 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
18159 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
18160 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
18161 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
18162 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
18163 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
18164
18165 2017-11-29 Joseph Myers <joseph@codesourcery.com>
18166
18167 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
18168 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
18169 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
18170 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
18171 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
18172 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
18173 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
18174 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
18175 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
18176 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
18177 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
18178 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
18179 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
18180 libm_alias_double_r.
18181 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
18182 (log): Likewise.
18183 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
18184 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
18185 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
18186 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
18187 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
18188 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
18189 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
18190 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
18191 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
18192 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
18193 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
18194 libm_alias_double.
18195 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
18196 (cos): Likewise.
18197 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
18198 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
18199 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
18200 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
18201 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
18202 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
18203 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
18204 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
18205 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
18206 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
18207 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
18208 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
18209 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
18210 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
18211 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
18212 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
18213 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
18214 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
18215 libm_alias_double.
18216 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
18217 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
18218 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
18219 * sysdeps/ia64/fpu/w_lgamma_main.c
18220 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
18221 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
18222
18223 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
18224
18225 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
18226 address of $global$ into %dp register earlier. Use pc-relative
18227 instruction sequence for PIC case.
18228
18229 2017-11-28 Joseph Myers <joseph@codesourcery.com>
18230
18231 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
18232 (asinhf): Define using libm_alias_float.
18233 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
18234 (atanf): Define using libm_alias_float.
18235 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
18236 (cbrtf): Define using libm_alias_float.
18237 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
18238 (ceilf): Define using libm_alias_float.
18239 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
18240 (copysignf): Define using libm_alias_float.
18241 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
18242 (expm1f): Define using libm_alias_float.
18243 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
18244 (fabsf): Define using libm_alias_float.
18245 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
18246 (floorf): Define using libm_alias_float.
18247 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
18248 (fmaxf): Define using libm_alias_float.
18249 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
18250 (fminf): Define using libm_alias_float.
18251 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
18252 (frexpf): Define using libm_alias_float.
18253 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
18254 (llrintf): Define using libm_alias_float.
18255 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
18256 (logbf): Define using libm_alias_float.
18257 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
18258 (lrintf): Define using libm_alias_float.
18259 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
18260 (nearbyintf): Define using libm_alias_float.
18261 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
18262 (remquof): Define using libm_alias_float.
18263 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
18264 (rintf): Define using libm_alias_float.
18265 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
18266 (truncf): Define using libm_alias_float.
18267 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
18268 <libm-alias-float.h>.
18269 (exp2f): Define using libm_alias_float, or libm_alias_float_other
18270 if [SHARED].
18271 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
18272 <libm-alias-float.h>.
18273 (expf): Define using libm_alias_float, or libm_alias_float_other
18274 if [SHARED].
18275 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
18276 <libm-alias-float.h>.
18277 (log2f): Define using libm_alias_float, or libm_alias_float_other
18278 if [SHARED].
18279 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
18280 <libm-alias-float.h>.
18281 (logf): Define using libm_alias_float, or libm_alias_float_other
18282 if [SHARED].
18283 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
18284 <libm-alias-float.h>.
18285 (powf): Define using libm_alias_float, or libm_alias_float_other
18286 if [SHARED].
18287 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
18288 <libm-alias-float.h>.
18289 (cosf): Define using libm_alias_float.
18290 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
18291 <libm-alias-float.h>.
18292 (sincosf): Define using libm_alias_float.
18293 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
18294 <libm-alias-float.h>.
18295 (sinf): Define using libm_alias_float.
18296 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
18297 (fmaxf): Define using libm_alias_float.
18298 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
18299 (fminf): Define using libm_alias_float.
18300 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
18301 <libm-alias-float.h>.
18302 (fmaf): Define using libm_alias_float.
18303
18304 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
18305 (asinh): Define using libm_alias_double.
18306 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
18307 (atan): Define using libm_alias_double.
18308 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
18309 (cbrt): Define using libm_alias_double.
18310 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
18311 (ceil): Define using libm_alias_double.
18312 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
18313 (copysign): Define using libm_alias_double.
18314 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
18315 (expm1): Define using libm_alias_double.
18316 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
18317 (fabs): Define using libm_alias_double.
18318 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
18319 (fdim): Define using libm_alias_double.
18320 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
18321 (floor): Define using libm_alias_double.
18322 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
18323 (fmax): Define using libm_alias_double.
18324 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
18325 (fmin): Define using libm_alias_double.
18326 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
18327 (frexp): Define using libm_alias_double.
18328 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
18329 (llrint): Define using libm_alias_double.
18330 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
18331 (logb): Define using libm_alias_double.
18332 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
18333 (lrint): Define using libm_alias_double.
18334 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
18335 (nearbyint): Define using libm_alias_double.
18336 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
18337 (remquo): Define using libm_alias_double.
18338 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
18339 (rint): Define using libm_alias_double.
18340 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
18341 (trunc): Define using libm_alias_double.
18342 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
18343 (fmax): Define using libm_alias_double.
18344 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
18345 (fmin): Define using libm_alias_double.
18346 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
18347 (fma): Define using libm_alias_double.
18348
18349 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
18350
18351 [BZ #22370]
18352 * elf/dl-hwcaps.c (ROUND): Removed.
18353 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
18354 and ELF_NOTE_NEXT_OFFSET.
18355 * elf/dl-load.c (ROUND): Removed.
18356 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
18357 * elf/readelflib.c (ROUND): Removed.
18358 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
18359 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
18360 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
18361 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
18362
18363 2017-11-28 Joseph Myers <joseph@codesourcery.com>
18364
18365 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
18366 [!__fmaf] (fmaf): Define using libm_alias_float.
18367
18368 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
18369 [!__fma] (fma): Define using libm_alias_double.
18370 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
18371
18372 2017-11-28 Mike FABIAN <mfabian@redhat.com>
18373
18374 [BZ #22336]
18375 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
18376 and implement the collation rules for cs from CLDR on top of that.
18377 * Makefile: Add cs_CZ.UTF-8 to test-input.
18378 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
18379
18380 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
18381
18382 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
18383
18384 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
18385 Icarus Sparry <icarus.w.sparry@intel.com>
18386
18387 * benchtests/Makefile:Add BENCHSET to allow subsets of
18388 benchmarks to be run.
18389 * benchtests/README: Add documentation for: Running subsets of
18390 benchmarks.
18391
18392 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
18393
18394 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
18395 range of tests names.
18396
18397 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
18398 result from property and remove "max", min" and "mean" from
18399 required properties based on benchtests/bench-skeleton.c.
18400
18401 2017-11-28 Florian Weimer <fweimer@redhat.com>
18402
18403 [BZ #20826]
18404 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
18405 due to Internet requirement.
18406 * posix/Makefile (tests): Remove tst-getaddrinfo4,
18407 tst-getaddrinfo5.
18408 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
18409
18410 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18411
18412 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
18413 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
18414 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
18415 (sysdep_routines): Add memset-ultra1.
18416 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
18417 file.
18418 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
18419 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
18420 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
18421 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
18422 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
18423 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
18424 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
18425 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
18426
18427 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
18428 file.
18429 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
18430 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
18431 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
18432 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
18433 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
18434 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
18435 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
18436 macro.
18437 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
18438 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
18439 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
18440 (sysdep_routines): Add memcpy-ultra1.
18441 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
18442 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
18443
18444 2017-11-28 Joseph Myers <joseph@codesourcery.com>
18445
18446 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
18447 (cfloat_versions): Take function argument without trailing 'f'.
18448 Call libm_alias_float_other.
18449 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
18450 * sysdeps/alpha/fpu/cargf.c: Likewise.
18451 * sysdeps/alpha/fpu/cimagf.c: Likewise.
18452 * sysdeps/alpha/fpu/conjf.c: Likewise.
18453 * sysdeps/alpha/fpu/crealf.c: Likewise.
18454 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
18455 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
18456 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
18457 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
18458 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
18459 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
18460 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
18461 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
18462 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
18463 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
18464 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
18465 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
18466 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
18467 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
18468 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
18469 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
18470 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
18471 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
18472 (clog10f): Use libm_alias_float_other.
18473 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
18474 (ceilf): Define using libm_alias_float.
18475 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
18476 (copysignf): Define using libm_alias_float.
18477 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
18478 (fabsf): Define using libm_alias_float.
18479 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
18480 (floorf): Define using libm_alias_float.
18481 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
18482 (fmaxf): Define using libm_alias_float.
18483 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
18484 (fminf): Define using libm_alias_float.
18485 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
18486 (lrintf): Define using libm_alias_float.
18487 (llrintf): Likewise.
18488 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
18489 (lroundf): Define using libm_alias_float.
18490 (llroundf): Likewise.
18491 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
18492 (rintf): Define using libm_alias_float.
18493 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
18494 (truncf): Define using libm_alias_float.
18495
18496 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
18497 (ceilf): Define using libm_alias_float.
18498 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
18499 (floorf): Define using libm_alias_float.
18500 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
18501 (fmaf): Define using libm_alias_float.
18502 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
18503 (fmaxf): Define using libm_alias_float.
18504 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
18505 (fminf): Define using libm_alias_float.
18506 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
18507 (llrintf): Define using libm_alias_float.
18508 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
18509 (llroundf): Define using libm_alias_float.
18510 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
18511 (lrintf): Define using libm_alias_float.
18512 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
18513 (lroundf): Define using libm_alias_float.
18514 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
18515 <libm-alias-float.h>.
18516 (nearbyintf): Define using libm_alias_float.
18517 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
18518 (rintf): Define using libm_alias_float.
18519 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
18520 (roundf): Define using libm_alias_float.
18521 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
18522 (truncf): Define using libm_alias_float.
18523
18524 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
18525 (ceil): Define using libm_alias_double.
18526 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
18527 (copysign): Define using libm_alias_double.
18528 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
18529 (fabs): Define using libm_alias_double.
18530 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
18531 (floor): Define using libm_alias_double.
18532 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
18533 (fmax): Define using libm_alias_double.
18534 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
18535 (fmin): Define using libm_alias_double.
18536 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
18537 (lrint): Define using libm_alias_double.
18538 (llrint): Likewise.
18539 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
18540 (lround): Define using libm_alias_double.
18541 (llround): Likewise.
18542 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
18543 (rint): Define using libm_alias_double.
18544 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
18545 (trunc): Define using libm_alias_double.
18546
18547 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
18548 (libm_alias_double_r): Add semicolon after weak_alias call.
18549
18550 2017-11-27 Joseph Myers <joseph@codesourcery.com>
18551
18552 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
18553 (ceil): Define using libm_alias_double.
18554 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
18555 (floor): Define using libm_alias_double.
18556 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
18557 (fma): Define using libm_alias_double.
18558 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
18559 (fmax): Define using libm_alias_double.
18560 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
18561 (fmin): Define using libm_alias_double.
18562 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
18563 (llrint): Define using libm_alias_double.
18564 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
18565 (llround): Define using libm_alias_double.
18566 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
18567 (lrint): Define using libm_alias_double.
18568 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
18569 (lround): Define using libm_alias_double.
18570 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
18571 (nearbyint): Define using libm_alias_double.
18572 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
18573 (rint): Define using libm_alias_double.
18574 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
18575 (round): Define using libm_alias_double.
18576 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
18577 (trunc): Define using libm_alias_double.
18578
18579 2017-11-27 Florian Weimer <fweimer@redhat.com>
18580
18581 * sysdeps/unix/sysv/linux/mlock2.c: New file.
18582 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
18583 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
18584 (tests): Add tst-mlock2.
18585 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
18586 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
18587 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
18588 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
18589 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
18590 for mlock. Document mlock2.
18591
18592 2017-11-27 Joseph Myers <joseph@codesourcery.com>
18593
18594 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
18595 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
18596 Likewise.
18597 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
18598 Likewise.
18599 * sysdeps/x86/Makeconfig: New file.
18600 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
18601 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
18602 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
18603 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
18604 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
18605 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
18606 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
18607 Likewise.
18608 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
18609 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
18610 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
18611 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
18612 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
18613 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
18614 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
18615 * manual/math.texi (Mathematics): Document support for _Float64x.
18616 * math/Versions (GLIBC_2.27): Add _Float64x functions.
18617 * stdlib/Versions (GLIBC_2.27): Likewise.
18618 * wcsmbs/Versions (GLIBC_2.27): Likewise.
18619 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
18620 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
18621 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
18622 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
18623 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
18624 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
18625 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
18626 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
18627 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
18628 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
18629 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
18630 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
18631 Likewise.
18632 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
18633 Likewise.
18634 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
18635 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
18636 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
18637 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
18638 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
18639 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
18640 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
18641 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
18642 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
18643 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
18644 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
18645 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
18646 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
18647 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
18648
18649 2017-11-27 Andreas Schwab <schwab@suse.de>
18650
18651 * elf/Makefile (dl-routines): Add dl-sort-maps.
18652 * elf/dl-sort-maps.c: New file.
18653 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
18654 (_dl_sort_maps): Declare.
18655 * elf/dl-fini.c (_dl_sort_fini): Remove.
18656 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
18657 * elf/dl-close.c (_dl_close_worker): Likewise.
18658 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
18659 open-coding it.
18660 * elf/dl-open.c (dl_open_worker): Likewise.
18661
18662 2017-11-24 Joseph Myers <joseph@codesourcery.com>
18663
18664 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
18665 using libm_alias_float128.
18666 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
18667 Likewise.
18668 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
18669 Likewise.
18670 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
18671 (setpayloadsigf128): Likewise.
18672 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
18673 Likewise.
18674 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
18675 Likewise.
18676
18677 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
18678 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
18679 -mfloat128 to CFLAGS.
18680 ($(foreach
18681 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
18682 Likewise.
18683 (CFLAGS-libm-test-support-float64x.c): New variable.
18684 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
18685 $(f128-loader-link) to gnulib-tests.
18686
18687 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
18688 (libm_alias_float128_other_r): If
18689 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
18690 alias.
18691 (libm_alias_float128_r): Add semicolon after weak_alias call.
18692 * sysdeps/generic/libm-alias-ldouble.h
18693 (libm_alias_ldouble_other_r_f128): New macro.
18694 (libm_alias_ldouble_other_r_f64x): Likewise.
18695 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
18696 and libm_alias_ldouble_other_r_f64x.
18697 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
18698 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
18699 (libm_alias_ldouble_other_r_f128): New macro.
18700 (libm_alias_ldouble_other_r_f64x): Likewise.
18701 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
18702 and libm_alias_ldouble_other_r_f64x.
18703
18704 * stdlib/strfroml.c: Always include <stdlib.h>.
18705 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
18706 undefine as macro and define as weak alias.
18707 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
18708 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
18709 <stdlib.h>.
18710 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
18711 Define and later undefine as macro and define as weak alias.
18712
18713 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
18714 Define and later undefine as macro. Define as weak alias if
18715 [!USE_WIDE_CHAR].
18716 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
18717 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
18718 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
18719 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
18720 Define and later undefine as macro. Define as weak alias if
18721 [!USE_WIDE_CHAR].
18722 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
18723 Define and later undefine as macro. Define as weak alias if
18724 [USE_WIDE_CHAR].
18725 * sysdeps/ieee754/float128/strtof128_l.c
18726 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
18727 Define and later undefine as macro. Define as weak alias if
18728 [!USE_WIDE_CHAR].
18729 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
18730 Define and later undefine as macro. Define as weak alias if
18731 [USE_WIDE_CHAR].
18732 * sysdeps/ieee754/ldbl-128/strtold_l.c
18733 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
18734 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
18735 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
18736 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
18737 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
18738 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
18739 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
18740 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
18741 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
18742 * sysdeps/ieee754/ldbl-96/strtold_l.c
18743 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
18744 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
18745 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
18746 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
18747
18748 * math/test-float64x.h: New file.
18749 * math/Makefile (type-float64x-yes): New variable.
18750 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
18751
18752 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
18753 function-like macro.
18754 (min_of_type_): Likewise.
18755 (min_of_type_l): Likewise.
18756 (min_of_type_f128): Likewise.
18757 (min_of_type): Pass () as last argument of __MATH_TG.
18758
18759 * stdlib/tst-strtod-round-skeleton.c
18760 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
18761 headers.
18762
18763 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
18764 for combinations of long double with _Float64 and _Float64x.
18765
18766 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
18767 (__DECL_SIMD_cosf32): Likewise.
18768 (__DECL_SIMD_cosf64): Likewise.
18769 (__DECL_SIMD_cosf32x): Likewise.
18770 (__DECL_SIMD_cosf64x): Likewise.
18771 (__DECL_SIMD_cosf128x): Likewise.
18772 (__DECL_SIMD_sinf16): Likewise.
18773 (__DECL_SIMD_sinf32): Likewise.
18774 (__DECL_SIMD_sinf64): Likewise.
18775 (__DECL_SIMD_sinf32x): Likewise.
18776 (__DECL_SIMD_sinf64x): Likewise.
18777 (__DECL_SIMD_sinf128x): Likewise.
18778 (__DECL_SIMD_sincosf16): Likewise.
18779 (__DECL_SIMD_sincosf32): Likewise.
18780 (__DECL_SIMD_sincosf64): Likewise.
18781 (__DECL_SIMD_sincosf32x): Likewise.
18782 (__DECL_SIMD_sincosf64x): Likewise.
18783 (__DECL_SIMD_sincosf128x): Likewise.
18784 (__DECL_SIMD_logf16): Likewise.
18785 (__DECL_SIMD_logf32): Likewise.
18786 (__DECL_SIMD_logf64): Likewise.
18787 (__DECL_SIMD_logf32x): Likewise.
18788 (__DECL_SIMD_logf64x): Likewise.
18789 (__DECL_SIMD_logf128x): Likewise.
18790 (__DECL_SIMD_expf16): Likewise.
18791 (__DECL_SIMD_expf32): Likewise.
18792 (__DECL_SIMD_expf64): Likewise.
18793 (__DECL_SIMD_expf32x): Likewise.
18794 (__DECL_SIMD_expf64x): Likewise.
18795 (__DECL_SIMD_expf128x): Likewise.
18796 (__DECL_SIMD_powf16): Likewise.
18797 (__DECL_SIMD_powf32): Likewise.
18798 (__DECL_SIMD_powf64): Likewise.
18799 (__DECL_SIMD_powf32x): Likewise.
18800 (__DECL_SIMD_powf64x): Likewise.
18801 (__DECL_SIMD_powf128x): Likewise.
18802
18803 * stdlib/Versions (libc): Move entries for wcstof128 and
18804 wcstof128_l to ....
18805 * wcsmbs/Versions (libc): ... here.
18806 Include <float128-abi.h>.
18807
18808 2017-11-24 Florian Weimer <fweimer@redhat.com>
18809
18810 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18811 bits/mman-shared.h.
18812 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
18813 <bits/mman-shared.h>.
18814 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
18815 to ...
18816 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
18817 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
18818 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
18819 <bits/mman-shared.h>.
18820
18821 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18822
18823 [BZ #22457]
18824 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
18825 posix_memalign/free.
18826 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
18827
18828 2017-11-22 Mike FABIAN <mfabian@redhat.com>
18829
18830 [BZ #22469]
18831 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
18832 and implement the collation rules for pl from CLDR on top of that.
18833 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
18834 of locales to be built for testing.
18835 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
18836
18837 2017-11-23 Joseph Myers <joseph@codesourcery.com>
18838
18839 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
18840 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
18841 libm_alias_ldouble_other.
18842 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
18843 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
18844 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
18845 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
18846 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
18847 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
18848 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
18849 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
18850 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
18851 libm_alias_ldouble_r.
18852 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
18853 libm_alias_ldouble_other.
18854 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
18855 (log10l): Likewise.
18856 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
18857 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
18858 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
18859 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
18860 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
18861 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
18862 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
18863 (atan2l): Likewise.
18864 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
18865 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
18866 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
18867 libm_alias_ldouble.
18868 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
18869 (cosl): Likewise.
18870 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
18871 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
18872 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
18873 (expl): Likewise.
18874 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
18875 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
18876 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
18877 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
18878 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
18879 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
18880 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
18881 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
18882 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
18883 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
18884 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
18885 libm_alias_ldouble.
18886 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
18887 libm_alias_ldouble_other.
18888 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
18889 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
18890 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
18891 libm_alias_ldouble.
18892 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
18893 libm_alias_ldouble_other.
18894 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
18895 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
18896 * sysdeps/ia64/fpu/w_lgammal_main.c
18897 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
18898 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
18899
18900 2017-11-23 Florian Weimer <fweimer@redhat.com>
18901
18902 * malloc/malloc.c (tcache_thread_shutdown): Rename from
18903 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
18904 alike. Remove freeres marker.
18905 * malloc/arena.c (arena_thread_freeres): Call
18906 tcache_thread_shutdown.
18907
18908 2017-11-23 Florian Weimer <fweimer@redhat.com>
18909
18910 [BZ #22459]
18911 Export nscd hash function as __nss_hash.
18912 * include/nss.h (__nss_hash): Declare.
18913 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
18914 symbol.
18915 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
18916 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
18917 of __nscd_hash.
18918 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
18919 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
18920 * nss/Makefiles (routines): Add nss_hash.
18921 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
18922 * nss/nss_hash.c: Rename from nis/nis_hash.c.
18923 (__nss_hash): Rename from __nis_hash. Define hidden alias.
18924 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
18925
18926 2017-11-23 Florian Weimer <fweimer@redhat.com>
18927
18928 [BZ #22478]
18929 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
18930 Return error code, not -1.
18931 * signal/tst-sigwait-eintr.c: New file.
18932 * signal/Makefile (tests): Add tst-sigwait-eintr.
18933
18934 2017-11-23 Florian Weimer <fweimer@redhat.com>
18935
18936 Linux: Add memfd_create system call wrapper
18937 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
18938 tst-memfd_create.
18939 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
18940 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
18941 [__USE_GNU] (memfd_create): Declare.
18942 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
18943 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
18944 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
18945 * sysdeps/unix/sysv/linux/**.abilist: Update.
18946 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
18947
18948 2017-11-22 Joseph Myers <joseph@codesourcery.com>
18949
18950 * localedata/gen-locale.sh: Fix typo in variable name.
18951
18952 * resolv/res_debug.c (p_secstodate): Condition definition on
18953 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
18954 directly as __p_secstodate, and as a compat symbol. Do not use
18955 libresolv_hidden_def.
18956 * resolv/resolv.h (p_secstodate): Remove macro and function
18957 declaration.
18958 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
18959 using p_secstodate.
18960 * include/resolv.h (__p_secstodate): Do not use
18961 libresolv_hidden_proto.
18962 * resolv/Makefile (tests): Move tst-p_secstodate to ....
18963 (tests-internal): ... here.
18964 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
18965 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
18966 and declare and use __p_secstodate and use compat_symbol_reference
18967 in that case.
18968 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
18969 implementation returning 77.
18970
18971 [BZ #22463]
18972 * resolv/res_debug.c: Include <libc-diag.h>.
18973 (p_secstodate): Assert time_t at least as wide as u_long. On
18974 overflow, use integer seconds since the epoch as output, or use
18975 "<overflow>" as output and set errno to EOVERFLOW if integer
18976 seconds since the epoch would be 14 or more characters.
18977 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
18978 for sprintf call.
18979 * resolv/tst-p_secstodate.c: New file.
18980 * resolv/Makefile (tests): Add tst-p_secstodate.
18981 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
18982
18983 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
18984 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
18985 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
18986
18987 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
18988
18989 * posix/regcomp.c (init_word_char): Add comments.
18990
18991 2017-11-22 Joseph Myers <joseph@codesourcery.com>
18992
18993 [BZ #22447]
18994 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
18995 strlen to compute length of ut_user and set trailing NUL byte of
18996 result explicitly.
18997
18998 2017-11-21 Mike FABIAN <mfabian@redhat.com>
18999
19000 [BZ #15537]
19001 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
19002 using “copy "iso14651_t1"” and then implementing the
19003 collation rules for lv from CLDR on top of that.
19004 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
19005 of locales to be built for testing.
19006 * lv_LV.UTF-8.in: New file with test data to test the Latvian
19007 sorting.
19008
19009 2017-11-21 Joseph Myers <joseph@codesourcery.com>
19010
19011 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
19012 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
19013 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
19014 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
19015 [__USE_MISC] (MADV_HWPOISON): New macro.
19016 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
19017
19018 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19019
19020 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
19021 -Wmissing-braces on GCC 4.9.
19022
19023 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
19024
19025 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
19026 * sysdeps/s390/s390-32/start.S (_start): Likewise
19027 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
19028 (thread_start): Likewise.
19029 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
19030 (thread_start): Likewise.
19031 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
19032 (__makecontext_ret): Likewise.
19033 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
19034 (__makecontext_ret): Likewise.
19035
19036 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
19037
19038 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
19039 __wcschrnul): Remove attribute_hidden.
19040
19041 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
19042
19043 regex: don't assume uint64_t or uint32_t
19044 This avoids -Werror=overflow errors for 32-bit systems in
19045 the 64-bit case. Problem reported by Joseph Myers in:
19046 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
19047 Also, when this code is used in Gnulib it ports to platforms
19048 that lack uint64_t and uint32_t. The C standard doesn't guarantee
19049 them, and on some 32-bit compilers there is no uint64_t.
19050 Problem reported by Gianluigi Tiesi in:
19051 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
19052 * posix/regcomp.c (init_word_char): Don't assume that the types
19053 uint64_t and uint32_t exist. Adapted from Gnulib patch
19054 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
19055 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
19056
19057 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
19058
19059 * sysdeps/aarch64/memset-reg.h: New file.
19060 * sysdeps/aarch64/memset.S: Use it.
19061 (__memset): Rename to MEMSET macro.
19062 [ZVA_MACRO]: Use zva_macro.
19063 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
19064 Add memset_generic and memset_falkor.
19065 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
19066 (__libc_ifunc_impl_list): Add memset ifuncs.
19067 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
19068 local variable zva_size.
19069 * sysdeps/aarch64/multiarch/memset.c: New file.
19070 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
19071 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
19072 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
19073 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
19074 (DCZID_DZP_MASK): New macro.
19075 (DCZID_BS_MASK): Likewise.
19076 (init_cpu_features): Read and set zva_size.
19077 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
19078 (struct cpu_features): New member zva_size.
19079
19080 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
19081 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
19082 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
19083
19084 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
19085 backwards. Fix timing computation.
19086 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
19087 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
19088 on memset by N at a time. Fix timing computation.
19089
19090 2017-11-20 Florian Weimer <fweimer@redhat.com>
19091
19092 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
19093 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
19094
19095 2017-11-19 Florian Weimer <fweimer@redhat.com>
19096
19097 manual: Document mprotect
19098 * manual/memory.texi (Memory Protection): New section.
19099 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
19100 documentation of PROT_* flags and reference the Memory Protection
19101 section instead.
19102
19103 2017-11-19 Florian Weimer <fweimer@redhat.com>
19104
19105 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
19106 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
19107 (Scatter-Gather): ... to here. Remove misleading comment.
19108
19109 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
19110
19111 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
19112 style.
19113
19114 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
19115 when /proc/<pid>/setgroups does not exist.
19116
19117 2017-11-18 Florian Weimer <fweimer@redhat.com>
19118
19119 * sysdeps/unix/sysv/linux/tst-ttyname.c
19120 (become_root_in_mount_ns): Remove.
19121 (do_in_chroot_1): Call support_enter_mount_namespace.
19122 (do_in_chroot_2): Likewise.
19123 (do_test): Call support_become_root early.
19124
19125 2017-11-18 Florian Weimer <fweimer@redhat.com>
19126
19127 * support/namespace.h (support_enter_mount_namespace): Declare.
19128 * support/support_enter_mount_namespace.c: New file.
19129 * support/Makefile (libsupport-routines): Add
19130 support_enter_mount_namespace.
19131
19132 2017-11-18 Florian Weimer <fweimer@redhat.com>
19133
19134 * support/temp_file.c (support_create_temp_directory): Use
19135 test_dir and do not rely on the presence of the XXXXXX suffix.
19136 * support/temp_file.h (support_create_temp_directory): Update
19137 comment.
19138 * support/tst-xreadlink.c (do_test): Adjust.
19139 * support/support_chroot.c (support_chroot_create): Likewise.
19140
19141 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
19142
19143 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
19144 macro.
19145 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
19146 htm-no-suspend.
19147
19148 2017-11-17 Joseph Myers <joseph@codesourcery.com>
19149
19150 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
19151 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
19152 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
19153 (ceill): Define using libm_alias_ldouble.
19154 * sysdeps/x86_64/fpu/s_copysignl.S: Include
19155 <libm-alias-ldouble.h>.
19156 (copysignl): Define using libm_alias_ldouble.
19157 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
19158 (fabsl): Define using libm_alias_ldouble.
19159 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
19160 (floorl): Define using libm_alias_ldouble.
19161 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
19162 (fmaxl): Define using libm_alias_ldouble.
19163 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
19164 (fminl): Define using libm_alias_ldouble.
19165 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
19166 (llrintl): Define using libm_alias_ldouble.
19167 (lrintl): Likewise.
19168 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
19169 <libm-alias-ldouble.h>.
19170 (nearbyintl): Define using libm_alias_ldouble.
19171 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
19172 (truncl): Define using libm_alias_ldouble.
19173 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
19174 <libm-alias-ldouble.h>.
19175 (lrintl): Define using libm_alias_ldouble.
19176
19177 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
19178 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
19179 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
19180 (asinhl): Define using libm_alias_ldouble.
19181 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
19182 (atanl): Define using libm_alias_ldouble.
19183 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
19184 (cbrtl): Define using libm_alias_ldouble.
19185 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
19186 (ceill): Define using libm_alias_ldouble.
19187 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
19188 (copysignl): Define using libm_alias_ldouble.
19189 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
19190 (fabsl): Define using libm_alias_ldouble.
19191 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
19192 (floorl): Define using libm_alias_ldouble.
19193 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
19194 (fmaxl): Define using libm_alias_ldouble.
19195 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
19196 (fminl): Define using libm_alias_ldouble.
19197 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
19198 (frexpl): Define using libm_alias_ldouble.
19199 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
19200 (llrintl): Define using libm_alias_ldouble.
19201 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
19202 (logbl): Define using libm_alias_ldouble.
19203 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
19204 (lrintl): Define using libm_alias_ldouble.
19205 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
19206 (nearbyintl): Define using libm_alias_ldouble.
19207 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
19208 (nextafterl): Define using libm_alias_ldouble.
19209 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
19210 (remquol): Define using libm_alias_ldouble.
19211 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
19212 (rintl): Define using libm_alias_ldouble.
19213 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
19214 (truncl): Define using libm_alias_ldouble.
19215 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
19216 (fmaxl): Define using libm_alias_ldouble.
19217 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
19218 (fminl): Define using libm_alias_ldouble.
19219
19220 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
19221 to C syntax instead of availability and properties of types.
19222 * bits/floatn.h [!__ASSEMBLER]: Likewise.
19223 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
19224 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
19225 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
19226 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
19227 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
19228
19229 2017-11-17 Florian Weimer <fweimer@redhat.com>
19230
19231 support_become_root: Enable file creation in namespaces.
19232 * support/support_become_root.c (setup_mapping): New function.
19233 (support_become_root): Call it.
19234
19235 2017-11-17 Joseph Myers <joseph@codesourcery.com>
19236
19237 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
19238 macro.
19239
19240 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19241
19242 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
19243 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
19244
19245 2017-11-16 Joseph Myers <joseph@codesourcery.com>
19246
19247 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
19248
19249 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
19250 version to 4.14.
19251
19252 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
19253
19254 * INSTALL: Fix botched up regeneration.
19255
19256 * NEWS: Update sourceare link to https.
19257 * configure.ac: Likewise.
19258 * crypt/md5test-giant.c: Likewise.
19259 * dlfcn/bug-atexit1.c: Likewise.
19260 * dlfcn/bug-atexit2.c: Likewise.
19261 * localedata/README: Likewise.
19262 * malloc/tst-mallocfork.c: Likewise.
19263 * manual/install.texi: Likewise.
19264 * nptl/tst-pthread-getattr.c: Likewise.
19265 * stdio-common/tst-fgets.c: Likewise.
19266 * stdio-common/tst-fwrite.c: Likewise.
19267 * sunrpc/Makefile: Likewise.
19268 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
19269 * wcsmbs/tst-mbrtowc2.c: Likewise.
19270 * configure: Regenerate.
19271 * INSTALL: Regenerate.
19272
19273 2017-11-15 Martin Sebor <msebor@redhat.com>
19274
19275 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
19276 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
19277 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
19278
19279 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
19280
19281 [BZ #22145]
19282 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
19283 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
19284
19285 [BZ #22145]
19286 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
19287 Defer is_pty check until end of the function.
19288 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
19289
19290 [BZ #22145]
19291 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
19292 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
19293 (ttyname): Likewise.
19294 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
19295 (__ttyname_r): Likewise.
19296
19297 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
19298 int to bool.
19299
19300 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
19301
19302 * manual/terminal.texi (Is It a Terminal):
19303 Mention ENODEV for ttyname and ttyname_r.
19304
19305 2017-11-15 Joseph Myers <joseph@codesourcery.com>
19306
19307 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
19308 constant and macro.
19309
19310 * sysdeps/unix/sysv/linux/bits/mman-linux.h
19311 [__USE_MISC] (MADV_WIPEONFORK): New macro.
19312 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
19313 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
19314 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
19315 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
19316
19317 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19318
19319 * signal/sigrelse.c (sigrelse): Optimize implementation.
19320
19321 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
19322 (__sigpause): Rely on __sigsuspend to implement single thread
19323 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
19324
19325 2017-11-15 Joseph Myers <joseph@codesourcery.com>
19326
19327 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
19328 kernel version to 4.14.
19329
19330 2017-11-15 Steve Ellcey <sellcey@cavium.com>
19331
19332 [BZ #22442]
19333 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
19334 Check if ifname is too long.
19335
19336 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
19337
19338 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
19339
19340 2017-11-15 Mike FABIAN <mfabian@redhat.com>
19341
19342 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
19343 was accidentally lost.
19344
19345 2017-11-15 Mike FABIAN <mfabian@redhat.com>
19346
19347 * localedata/locales/az_IR: Add standard copyright header.
19348
19349 2017-11-15 Florian Weimer <fweimer@redhat.com>
19350
19351 [BZ #22439]
19352 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
19353 not just the top one. Output a new "subheaps" statistic.
19354
19355 2017-11-15 Florian Weimer <fweimer@redhat.com>
19356
19357 [BZ #22408]
19358 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
19359 under the per-arena lock.
19360 * malloc/Makefile (tests): Add tst-malloc_info.
19361 (tst-malloc_info): Link with libpthread.
19362 * malloc/tst-malloc_info.c: New file.
19363
19364 2017-11-15 Joseph Myers <joseph@codesourcery.com>
19365
19366 [BZ #21660]
19367 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
19368 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
19369 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
19370 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
19371 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
19372 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
19373 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
19374 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
19375 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
19376 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
19377 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
19378 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
19379 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
19380 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
19381 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
19382 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
19383 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
19384 (__floating_type): Likewise.
19385 (__real_integer_type): Likewise.
19386 (__complex_integer_type): Likewise.
19387 (__expr_is_real): Likewise.
19388 (__tgmath_real_type_sub): Likewise.
19389 (__tgmath_real_type): Likewise.
19390 (__tgmath_complex_type_sub): Likewise.
19391 (__tgmath_complex_type): Likewise.
19392 (__TGMATH_F128): Likewise.
19393 (__TGMATH_CF128): Likewise.
19394 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
19395 new macros.
19396 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
19397 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
19398 Likewise.
19399 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
19400 Likewise.
19401 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
19402 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
19403 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
19404 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
19405 Likewise.
19406 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
19407 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
19408 Likewise.
19409 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
19410 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
19411 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
19412 Likewise.
19413 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
19414 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
19415 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
19416 (cimag): Likewise.
19417 (creal): Likewise.
19418
19419 2017-11-14 Joseph Myers <joseph@codesourcery.com>
19420
19421 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
19422 for stpncpy calls for GCC 8.
19423 (test_strncat): Disable -Wstringop-truncation warning for strncat
19424 calls for GCC 8. Disable -Wstringop-overflow= warning for one
19425 strncat call for GCC 7.
19426 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
19427 calls for GCC 8.
19428 (test_memcmp): Use memcpy instead of strncpy for calls not copying
19429 trailing NUL.
19430
19431 * string/bug-strncat1.c: Include <libc-diag.h>.
19432 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
19433
19434 2017-11-13 Claude Paroz <claude@2xlibre.net>
19435
19436 [BZ #22387]
19437 * localedata/locales/aa_DJ: Improved readibility by replacing
19438 <Uxxxx> sequences in the ASCII printable range by their ASCII
19439 character equivalents.
19440 * localedata/locales/aa_ER: Likewise.
19441 * localedata/locales/aa_ER@saaho: Likewise.
19442 * localedata/locales/aa_ET: Likewise.
19443 * localedata/locales/af_ZA: Likewise.
19444 * localedata/locales/agr_PE: Likewise.
19445 * localedata/locales/ak_GH: Likewise.
19446 * localedata/locales/am_ET: Likewise.
19447 * localedata/locales/anp_IN: Likewise.
19448 * localedata/locales/ar_AE: Likewise.
19449 * localedata/locales/ar_BH: Likewise.
19450 * localedata/locales/ar_DZ: Likewise.
19451 * localedata/locales/ar_EG: Likewise.
19452 * localedata/locales/ar_IN: Likewise.
19453 * localedata/locales/ar_IQ: Likewise.
19454 * localedata/locales/ar_JO: Likewise.
19455 * localedata/locales/ar_KW: Likewise.
19456 * localedata/locales/ar_LB: Likewise.
19457 * localedata/locales/ar_LY: Likewise.
19458 * localedata/locales/ar_MA: Likewise.
19459 * localedata/locales/ar_OM: Likewise.
19460 * localedata/locales/ar_QA: Likewise.
19461 * localedata/locales/ar_SA: Likewise.
19462 * localedata/locales/ar_SD: Likewise.
19463 * localedata/locales/ar_SS: Likewise.
19464 * localedata/locales/ar_SY: Likewise.
19465 * localedata/locales/ar_TN: Likewise.
19466 * localedata/locales/ar_YE: Likewise.
19467 * localedata/locales/as_IN: Likewise.
19468 * localedata/locales/ast_ES: Likewise.
19469 * localedata/locales/ayc_PE: Likewise.
19470 * localedata/locales/az_AZ: Likewise.
19471 * localedata/locales/az_IR: Likewise.
19472 * localedata/locales/be_BY: Likewise.
19473 * localedata/locales/be_BY@latin: Likewise.
19474 * localedata/locales/bem_ZM: Likewise.
19475 * localedata/locales/ber_DZ: Likewise.
19476 * localedata/locales/ber_MA: Likewise.
19477 * localedata/locales/bg_BG: Likewise.
19478 * localedata/locales/bhb_IN: Likewise.
19479 * localedata/locales/bho_IN: Likewise.
19480 * localedata/locales/bi_VU: Likewise.
19481 * localedata/locales/bn_BD: Likewise.
19482 * localedata/locales/bn_IN: Likewise.
19483 * localedata/locales/bo_CN: Likewise.
19484 * localedata/locales/bo_IN: Likewise.
19485 * localedata/locales/br_FR: Likewise.
19486 * localedata/locales/brx_IN: Likewise.
19487 * localedata/locales/bs_BA: Likewise.
19488 * localedata/locales/byn_ER: Likewise.
19489 * localedata/locales/ca_AD: Likewise.
19490 * localedata/locales/ca_ES: Likewise.
19491 * localedata/locales/ca_FR: Likewise.
19492 * localedata/locales/ca_IT: Likewise.
19493 * localedata/locales/ce_RU: Likewise.
19494 * localedata/locales/chr_US: Likewise.
19495 * localedata/locales/cmn_TW: Likewise.
19496 * localedata/locales/crh_UA: Likewise.
19497 * localedata/locales/cs_CZ: Likewise.
19498 * localedata/locales/csb_PL: Likewise.
19499 * localedata/locales/cv_RU: Likewise.
19500 * localedata/locales/cy_GB: Likewise.
19501 * localedata/locales/da_DK: Likewise.
19502 * localedata/locales/de_AT: Likewise.
19503 * localedata/locales/de_BE: Likewise.
19504 * localedata/locales/de_CH: Likewise.
19505 * localedata/locales/de_DE: Likewise.
19506 * localedata/locales/de_IT: Likewise.
19507 * localedata/locales/de_LI: Likewise.
19508 * localedata/locales/de_LU: Likewise.
19509 * localedata/locales/doi_IN: Likewise.
19510 * localedata/locales/dv_MV: Likewise.
19511 * localedata/locales/dz_BT: Likewise.
19512 * localedata/locales/el_CY: Likewise.
19513 * localedata/locales/el_GR: Likewise.
19514 * localedata/locales/en_AG: Likewise.
19515 * localedata/locales/en_AU: Likewise.
19516 * localedata/locales/en_BW: Likewise.
19517 * localedata/locales/en_CA: Likewise.
19518 * localedata/locales/en_DK: Likewise.
19519 * localedata/locales/en_GB: Likewise.
19520 * localedata/locales/en_HK: Likewise.
19521 * localedata/locales/en_IE: Likewise.
19522 * localedata/locales/en_IL: Likewise.
19523 * localedata/locales/en_IN: Likewise.
19524 * localedata/locales/en_NG: Likewise.
19525 * localedata/locales/en_NZ: Likewise.
19526 * localedata/locales/en_PH: Likewise.
19527 * localedata/locales/en_SG: Likewise.
19528 * localedata/locales/en_US: Likewise.
19529 * localedata/locales/en_ZA: Likewise.
19530 * localedata/locales/en_ZM: Likewise.
19531 * localedata/locales/en_ZW: Likewise.
19532 * localedata/locales/eo: Likewise.
19533 * localedata/locales/es_AR: Likewise.
19534 * localedata/locales/es_BO: Likewise.
19535 * localedata/locales/es_CL: Likewise.
19536 * localedata/locales/es_CO: Likewise.
19537 * localedata/locales/es_CR: Likewise.
19538 * localedata/locales/es_CU: Likewise.
19539 * localedata/locales/es_DO: Likewise.
19540 * localedata/locales/es_EC: Likewise.
19541 * localedata/locales/es_ES: Likewise.
19542 * localedata/locales/es_GT: Likewise.
19543 * localedata/locales/es_HN: Likewise.
19544 * localedata/locales/es_MX: Likewise.
19545 * localedata/locales/es_NI: Likewise.
19546 * localedata/locales/es_PA: Likewise.
19547 * localedata/locales/es_PE: Likewise.
19548 * localedata/locales/es_PR: Likewise.
19549 * localedata/locales/es_PY: Likewise.
19550 * localedata/locales/es_SV: Likewise.
19551 * localedata/locales/es_US: Likewise.
19552 * localedata/locales/es_UY: Likewise.
19553 * localedata/locales/es_VE: Likewise.
19554 * localedata/locales/et_EE: Likewise.
19555 * localedata/locales/eu_ES: Likewise.
19556 * localedata/locales/eu_ES@euro: Likewise.
19557 * localedata/locales/fa_IR: Likewise.
19558 * localedata/locales/ff_SN: Likewise.
19559 * localedata/locales/fi_FI: Likewise.
19560 * localedata/locales/fil_PH: Likewise.
19561 * localedata/locales/fo_FO: Likewise.
19562 * localedata/locales/fr_BE: Likewise.
19563 * localedata/locales/fr_CA: Likewise.
19564 * localedata/locales/fr_CH: Likewise.
19565 * localedata/locales/fr_FR: Likewise.
19566 * localedata/locales/fr_LU: Likewise.
19567 * localedata/locales/fur_IT: Likewise.
19568 * localedata/locales/fy_DE: Likewise.
19569 * localedata/locales/fy_NL: Likewise.
19570 * localedata/locales/ga_IE: Likewise.
19571 * localedata/locales/gd_GB: Likewise.
19572 * localedata/locales/gez_ER: Likewise.
19573 * localedata/locales/gez_ET: Likewise.
19574 * localedata/locales/gl_ES: Likewise.
19575 * localedata/locales/gu_IN: Likewise.
19576 * localedata/locales/gv_GB: Likewise.
19577 * localedata/locales/ha_NG: Likewise.
19578 * localedata/locales/hak_TW: Likewise.
19579 * localedata/locales/he_IL: Likewise.
19580 * localedata/locales/hi_IN: Likewise.
19581 * localedata/locales/hif_FJ: Likewise.
19582 * localedata/locales/hne_IN: Likewise.
19583 * localedata/locales/hr_HR: Likewise.
19584 * localedata/locales/hsb_DE: Likewise.
19585 * localedata/locales/ht_HT: Likewise.
19586 * localedata/locales/hu_HU: Likewise.
19587 * localedata/locales/hy_AM: Likewise.
19588 * localedata/locales/i18n: Likewise.
19589 * localedata/locales/ia_FR: Likewise.
19590 * localedata/locales/id_ID: Likewise.
19591 * localedata/locales/ig_NG: Likewise.
19592 * localedata/locales/ik_CA: Likewise.
19593 * localedata/locales/is_IS: Likewise.
19594 * localedata/locales/it_CH: Likewise.
19595 * localedata/locales/it_IT: Likewise.
19596 * localedata/locales/iu_CA: Likewise.
19597 * localedata/locales/ja_JP: Likewise.
19598 * localedata/locales/ka_GE: Likewise.
19599 * localedata/locales/kk_KZ: Likewise.
19600 * localedata/locales/kl_GL: Likewise.
19601 * localedata/locales/kn_IN: Likewise.
19602 * localedata/locales/ko_KR: Likewise.
19603 * localedata/locales/kok_IN: Likewise.
19604 * localedata/locales/ks_IN: Likewise.
19605 * localedata/locales/ks_IN@devanagari: Likewise.
19606 * localedata/locales/ku_TR: Likewise.
19607 * localedata/locales/kw_GB: Likewise.
19608 * localedata/locales/ky_KG: Likewise.
19609 * localedata/locales/lb_LU: Likewise.
19610 * localedata/locales/lg_UG: Likewise.
19611 * localedata/locales/li_BE: Likewise.
19612 * localedata/locales/li_NL: Likewise.
19613 * localedata/locales/lij_IT: Likewise.
19614 * localedata/locales/ln_CD: Likewise.
19615 * localedata/locales/lo_LA: Likewise.
19616 * localedata/locales/lt_LT: Likewise.
19617 * localedata/locales/lv_LV: Likewise.
19618 * localedata/locales/lzh_TW: Likewise.
19619 * localedata/locales/mag_IN: Likewise.
19620 * localedata/locales/mai_IN: Likewise.
19621 * localedata/locales/mg_MG: Likewise.
19622 * localedata/locales/mhr_RU: Likewise.
19623 * localedata/locales/mi_NZ: Likewise.
19624 * localedata/locales/mk_MK: Likewise.
19625 * localedata/locales/ml_IN: Likewise.
19626 * localedata/locales/mn_MN: Likewise.
19627 * localedata/locales/mni_IN: Likewise.
19628 * localedata/locales/mr_IN: Likewise.
19629 * localedata/locales/ms_MY: Likewise.
19630 * localedata/locales/mt_MT: Likewise.
19631 * localedata/locales/my_MM: Likewise.
19632 * localedata/locales/nan_TW: Likewise.
19633 * localedata/locales/nan_TW@latin: Likewise.
19634 * localedata/locales/nb_NO: Likewise.
19635 * localedata/locales/nds_DE: Likewise.
19636 * localedata/locales/nds_NL: Likewise.
19637 * localedata/locales/ne_NP: Likewise.
19638 * localedata/locales/nhn_MX: Likewise.
19639 * localedata/locales/niu_NU: Likewise.
19640 * localedata/locales/niu_NZ: Likewise.
19641 * localedata/locales/nl_AW: Likewise.
19642 * localedata/locales/nl_BE: Likewise.
19643 * localedata/locales/nl_NL: Likewise.
19644 * localedata/locales/nn_NO: Likewise.
19645 * localedata/locales/nr_ZA: Likewise.
19646 * localedata/locales/nso_ZA: Likewise.
19647 * localedata/locales/oc_FR: Likewise.
19648 * localedata/locales/om_ET: Likewise.
19649 * localedata/locales/om_KE: Likewise.
19650 * localedata/locales/or_IN: Likewise.
19651 * localedata/locales/os_RU: Likewise.
19652 * localedata/locales/pa_IN: Likewise.
19653 * localedata/locales/pa_PK: Likewise.
19654 * localedata/locales/pap_AW: Likewise.
19655 * localedata/locales/pap_CW: Likewise.
19656 * localedata/locales/pl_PL: Likewise.
19657 * localedata/locales/ps_AF: Likewise.
19658 * localedata/locales/pt_BR: Likewise.
19659 * localedata/locales/pt_PT: Likewise.
19660 * localedata/locales/quz_PE: Likewise.
19661 * localedata/locales/raj_IN: Likewise.
19662 * localedata/locales/ro_RO: Likewise.
19663 * localedata/locales/ru_RU: Likewise.
19664 * localedata/locales/ru_UA: Likewise.
19665 * localedata/locales/rw_RW: Likewise.
19666 * localedata/locales/sa_IN: Likewise.
19667 * localedata/locales/sat_IN: Likewise.
19668 * localedata/locales/sc_IT: Likewise.
19669 * localedata/locales/sd_IN: Likewise.
19670 * localedata/locales/sd_IN@devanagari: Likewise.
19671 * localedata/locales/se_NO: Likewise.
19672 * localedata/locales/sgs_LT: Likewise.
19673 * localedata/locales/shs_CA: Likewise.
19674 * localedata/locales/si_LK: Likewise.
19675 * localedata/locales/sid_ET: Likewise.
19676 * localedata/locales/sk_SK: Likewise.
19677 * localedata/locales/sl_SI: Likewise.
19678 * localedata/locales/sm_WS: Likewise.
19679 * localedata/locales/so_DJ: Likewise.
19680 * localedata/locales/so_ET: Likewise.
19681 * localedata/locales/so_KE: Likewise.
19682 * localedata/locales/so_SO: Likewise.
19683 * localedata/locales/sq_AL: Likewise.
19684 * localedata/locales/sq_MK: Likewise.
19685 * localedata/locales/sr_ME: Likewise.
19686 * localedata/locales/sr_RS: Likewise.
19687 * localedata/locales/sr_RS@latin: Likewise.
19688 * localedata/locales/ss_ZA: Likewise.
19689 * localedata/locales/st_ZA: Likewise.
19690 * localedata/locales/sv_FI: Likewise.
19691 * localedata/locales/sv_SE: Likewise.
19692 * localedata/locales/sw_KE: Likewise.
19693 * localedata/locales/sw_TZ: Likewise.
19694 * localedata/locales/szl_PL: Likewise.
19695 * localedata/locales/ta_IN: Likewise.
19696 * localedata/locales/ta_LK: Likewise.
19697 * localedata/locales/tcy_IN: Likewise.
19698 * localedata/locales/te_IN: Likewise.
19699 * localedata/locales/tg_TJ: Likewise.
19700 * localedata/locales/th_TH: Likewise.
19701 * localedata/locales/the_NP: Likewise.
19702 * localedata/locales/ti_ER: Likewise.
19703 * localedata/locales/ti_ET: Likewise.
19704 * localedata/locales/tig_ER: Likewise.
19705 * localedata/locales/tk_TM: Likewise.
19706 * localedata/locales/tl_PH: Likewise.
19707 * localedata/locales/tn_ZA: Likewise.
19708 * localedata/locales/to_TO: Likewise.
19709 * localedata/locales/tpi_PG: Likewise.
19710 * localedata/locales/tr_CY: Likewise.
19711 * localedata/locales/tr_TR: Likewise.
19712 * localedata/locales/ts_ZA: Likewise.
19713 * localedata/locales/tt_RU: Likewise.
19714 * localedata/locales/tt_RU@iqtelif: Likewise.
19715 * localedata/locales/ug_CN: Likewise.
19716 * localedata/locales/uk_UA: Likewise.
19717 * localedata/locales/unm_US: Likewise.
19718 * localedata/locales/ur_IN: Likewise.
19719 * localedata/locales/ur_PK: Likewise.
19720 * localedata/locales/uz_UZ: Likewise.
19721 * localedata/locales/uz_UZ@cyrillic: Likewise.
19722 * localedata/locales/ve_ZA: Likewise.
19723 * localedata/locales/vi_VN: Likewise.
19724 * localedata/locales/wa_BE: Likewise.
19725 * localedata/locales/wae_CH: Likewise.
19726 * localedata/locales/wal_ET: Likewise.
19727 * localedata/locales/wo_SN: Likewise.
19728 * localedata/locales/xh_ZA: Likewise.
19729 * localedata/locales/yi_US: Likewise.
19730 * localedata/locales/yo_NG: Likewise.
19731 * localedata/locales/yue_HK: Likewise.
19732 * localedata/locales/yuw_PG: Likewise.
19733 * localedata/locales/zh_CN: Likewise.
19734 * localedata/locales/zh_HK: Likewise.
19735 * localedata/locales/zh_SG: Likewise.
19736 * localedata/locales/zh_TW: Likewise.
19737 * localedata/locales/zu_ZA: Likewise.
19738
19739 2017-11-13 Florian Weimer <fweimer@redhat.com>
19740
19741 * support/next_to_fault.h, support/next_to_fault.c: New files.
19742 * support/Makefile (libsupport-routines): Add next_to_fault.
19743 * resolv/tst-inet_pton.c (struct next_to_fault)
19744 (next_to_fault_allocate, next_to_fault_free): Remove.
19745 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
19746
19747 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
19748
19749 * elf/dl-support.c: Include <dl-procruntime.c>.
19750 * include/link.h: Include <link_map.h>.
19751 * sysdeps/generic/dl-procruntime.c: New file.
19752 * sysdeps/generic/link_map.h: Likewise.
19753 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
19754 the writable ld.so namespace.
19755
19756 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
19757
19758 timezone: pacify GCC -Wstringop-truncation
19759 Problem reported by Martin Sebor in:
19760 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
19761 * timezone/zic.c (writezone): Use memcpy, not strncpy.
19762
19763 2017-11-12 Florian Weimer <fweimer@redhat.com>
19764
19765 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
19766 tst-xreadlink.
19767 (tests): Add tst-xreadlink.
19768 * support/support.h (xstrndup): Declare.
19769 * support/xunistd.h (xunlink, xreadlink): Declare.
19770 * support/temp_file.h (support_create_temp_directory): Declare.
19771 * support/temp_file.c (support_create_temp_directory): New function.
19772 * support/support_chroot.c (support_chroot_create): Use it.
19773 * support/xreadlink.c: New file.
19774 * support/xstrndup.c: Likewise.
19775 * support/xunlink.c: Likewise.
19776 * support/tst-xreadlink.c: Likewise.
19777
19778 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
19779
19780 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
19781
19782 2017-11-11 Florian Weimer <fweimer@redhat.com>
19783
19784 [BZ #22409]
19785 [BZ #22412]
19786 * resolv/res_comp.c (printable_string, binary_hnok)
19787 (binary_leading_dash): New functions.
19788 (res_hnok): Reimplement using these functions and ns_name_pton.
19789 (res_ownok): Likewise.
19790 (res_mailok): Reimplement using printable_string, ns_name_pton and
19791 binary_hnok.
19792 (res_dnok): Reimplement using printable_string and ns_name_pton.
19793 * resolv/tst-res_hnok.c (tests): Add additional tests.
19794 (LETTERDIGITS, PRINTABLE): Define.
19795 (do_test): Adjust one_char results.
19796
19797 2017-11-11 Florian Weimer <fweimer@redhat.com>
19798
19799 [BZ #22413]
19800 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
19801 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
19802
19803 2017-11-11 Florian Weimer <fweimer@redhat.com>
19804
19805 * resolv/tst-ns_name_pton.c: New file.
19806 * resolv/Makefile (tests): Add tst-ns_name_pton.
19807 (tst-ns_name_pton): Link against libresolv.
19808
19809 2017-11-11 Florian Weimer <fweimer@redhat.com>
19810
19811 * resolv/tst-res_hnok.c: New file.
19812 * resolv/Makefile (tests): Add tst-res_hnok.
19813 (tst-res_hnok): Link against libresolv.
19814
19815 2017-11-11 Florian Weimer <fweimer@redhat.com>
19816
19817 * resolv/tst-resolv-network.c: Use test framework instead explicit
19818 main function.
19819
19820 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
19821
19822 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
19823 <jmp_buf-macros.h>.
19824 [!_ISOMAC] (STR_HELPER): New.
19825 [!_ISOMAC] (STR): Likewise.
19826 [!_ISOMAC] (TEST_SIZE): Likewise.
19827 [!_ISOMAC] (TEST_ALIGN): Likewise.
19828 [!_ISOMAC] (TEST_OFFSET): Likewise.
19829 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
19830 field offsets of jmp_buf as well as sigjmp_buf.
19831 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
19832 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
19833 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
19834 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
19835 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
19836 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
19837 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
19838 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
19839 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
19840 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
19841 Likewise.
19842 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
19843 Likewise.
19844 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
19845 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
19846 Likewise.
19847 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
19848 Likewise.
19849 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
19850 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
19851 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
19852 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
19853 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
19854 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
19855 Likewise.
19856 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
19857 Likewise.
19858 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
19859 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
19860 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
19861
19862 2017-11-07 Joseph Myers <joseph@codesourcery.com>
19863
19864 * include/float.h
19865 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19866 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
19867 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19868 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
19869 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19870 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
19871 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19872 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
19873 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19874 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
19875 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19876 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
19877 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19878 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
19879 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19880 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
19881 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19882 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
19883 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19884 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
19885 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19886 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
19887 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19888 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
19889 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19890 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
19891 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19892 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
19893 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19894 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
19895 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19896 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
19897 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19898 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
19899 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19900 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
19901 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19902 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
19903 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19904 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
19905 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19906 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
19907 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19908 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
19909 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19910 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
19911 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19912 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
19913 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19914 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
19915 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19916 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
19917 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19918 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
19919 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19920 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
19921 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19922 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
19923 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19924 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
19925 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19926 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
19927 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19928 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
19929 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19930 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
19931 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19932 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
19933 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19934 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
19935 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19936 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
19937 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19938 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
19939 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19940 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
19941 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19942 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
19943 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19944 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
19945 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19946 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
19947 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19948 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
19949 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19950 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
19951 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
19952 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
19953
19954 * stdlib/tst-strtod.h (F16): New macro.
19955 (F32): Likewise.
19956 (F64): Likewise.
19957 (F32X): Likewise.
19958 (F64X): Likewise.
19959 (F128X): Likewise.
19960 (IF_FLOAT16): Likewise.
19961 (IF_FLOAT32): Likewise.
19962 (IF_FLOAT64): Likewise.
19963 (IF_FLOAT32X): Likewise.
19964 (IF_FLOAT64X): Likewise.
19965 (IF_FLOAT128X): Likewise.
19966 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
19967 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
19968 (STRTOD_TEST_FOREACH): Likewise.
19969 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
19970 (CHOOSE_f64): Likewise.
19971 (CHOOSE_f32x): Likewise.
19972 (CHOOSE_f64x): Likewise.
19973
19974 2017-11-07 Andreas Schwab <schwab@suse.de>
19975
19976 * nptl/Makefile (tests-internal): Remove tst-typesizes.
19977
19978 2017-11-07 Mike FABIAN <mfabian@redhat.com>
19979
19980 [BZ #22403]
19981 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
19982 to be escaped.
19983 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
19984 to be escaped.
19985
19986 2017-11-07 Claude Paroz <claude@2xlibre.net>
19987
19988 [BZ #22403]
19989 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
19990 to be escaped.
19991 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
19992 to be escaped.
19993 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
19994 to be escaped.
19995
19996 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19997
19998 [BZ #22298]
19999 * nptl/allocatestack.c (allocate_stack): Check if
20000 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
20001 __PTHREAD_MUTEX_HAVE_PREV is defined.
20002 * nptl/descr.h (pthread): Likewise.
20003 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
20004 Likewise.
20005 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
20006 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
20007 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
20008 * sysdeps/nptl/bits/thread-shared-types.h
20009 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
20010 defines.
20011 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
20012 of __WORDSIZE for internal layout.
20013 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
20014 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
20015 instead of __WORDSIZE whether to use an union for __spins and __list
20016 fields.
20017 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
20018 case.
20019 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
20020 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
20021 defines.
20022 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
20023 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
20024 Likewise.
20025 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
20026 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
20027 Likewise.
20028 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
20029 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
20030 Likewise.
20031 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
20032 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
20033 Likewise.
20034 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
20035 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
20036 Likewise.
20037 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
20038 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
20039 Likewise.
20040 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
20041 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
20042 Likewise.
20043 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
20044 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
20045 Likewise.
20046 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
20047 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
20048 Likewise.
20049 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
20050 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
20051 Likewise.
20052 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
20053 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
20054 Likewise.
20055 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
20056 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
20057 Likewise.
20058 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
20059 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
20060 Likewise.
20061 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
20062 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
20063 Likewise.
20064
20065 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
20066 New macros.
20067 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
20068 checks for expected input type size.
20069 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
20070 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
20071 Likewise.
20072 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
20073 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
20074 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
20075 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
20076 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
20077 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
20078 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
20079 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
20080 superflous runtime assert check.
20081 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
20082 Likewise.
20083 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
20084 Likewise.
20085 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
20086 Likewise.
20087 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
20088 Likewise.
20089 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
20090 Likewise.
20091 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
20092 Likewise.
20093 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
20094 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
20095 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
20096 Likewise.
20097 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
20098 Likewise.
20099 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
20100 Likewise.
20101 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
20102 Likewise.
20103 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
20104 Likewise.
20105 * nptl/pthread_attr_setinheritsched.c
20106 (__pthread_attr_setinheritsched): Likewise.
20107 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
20108 Likewise.
20109 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
20110 Likewise.
20111 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
20112 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
20113 __old_pthread_attr_setstack): Likewise.
20114 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
20115 Likewise.
20116 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
20117 Likewise.
20118 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
20119 Likewise.
20120 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
20121 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
20122 Likewise.
20123 * nptl/tst-typesizes.c: Remove file.
20124
20125 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
20126 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
20127 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
20128 checks for internal pthread_mutex_t offsets.
20129 * sysdeps/aarch64/nptl/pthread-offsets.h
20130 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
20131 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
20132 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
20133 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
20134 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
20135 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
20136 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
20137 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
20138 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
20139 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
20140 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
20141 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
20142 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
20143 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
20144 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
20145 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
20146 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
20147 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
20148
20149 2017-11-07 Florian Weimer <fweimer@redhat.com>
20150
20151 * bits/mman-linux.h: Move ...
20152 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
20153 comment.
20154 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
20155 outdated comment.
20156
20157 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20158
20159 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
20160 Redefine STRNLEN as __strnlen_power8.
20161
20162 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20163
20164 * signal/sighold.c (sighold): Optimize implementation.
20165
20166 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
20167 __NR_rt_sigqueueinfo.
20168
20169 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
20170 __sigtimedwait.
20171 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
20172 assume __NR_rt_sigtimedwait.
20173 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
20174 and add LIBC_CANCEL_HANDLED for cancellation marking.
20175 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
20176
20177 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
20178 (sysdeps_routines): Add memchr_noneon.
20179 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
20180 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
20181 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
20182 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
20183 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
20184 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
20185 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
20186
20187 * sysdeps/arm/arm-ifunc.h: New file.
20188 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
20189 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
20190 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
20191 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
20192 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
20193 (__memcpy_neon): Avoid create hidden alias.
20194 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
20195 (__memcpy_vfp): Likewise.
20196 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
20197 (sysdep_routines): Add memcpy_arm.
20198 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
20199
20200 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
20201
20202 [BZ #22362]
20203 * Makerules (make-link-multidir): New.
20204 * config.make.in (multidir): New.
20205 * configure.ac (libc_cv_multidir): New. AC_SUBST.
20206 * configure: Regenerated.
20207 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
20208 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
20209 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
20210 New target.
20211
20212 2017-11-06 Joseph Myers <joseph@codesourcery.com>
20213
20214 [BZ #22402]
20215 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
20216 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
20217
20218 2017-11-04 Mike FABIAN <mfabian@redhat.com>
20219
20220 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
20221 to be escaped.
20222
20223 2017-11-04 Florian Weimer <fweimer@redhat.com>
20224
20225 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
20226
20227 2017-11-03 Joseph Myers <joseph@codesourcery.com>
20228
20229 * math/math.h [__HAVE_DISTINCT_FLOAT16
20230 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
20231 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
20232 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
20233 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
20234 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
20235 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
20236 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
20237 (__MATH_TG_F32): New macro.
20238 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
20239 (__MATH_TG_F64X): Likewise.
20240 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
20241 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
20242
20243 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
20244
20245 * po/de.po: Update translations.
20246 * po/ru.po: Likewise.
20247
20248 2017-11-03 Florian Weimer <fweimer@redhat.com>
20249
20250 * manual/filesys.texi (Hard Links): Document linkat.
20251
20252 2017-11-03 Joseph Myers <joseph@codesourcery.com>
20253
20254 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
20255 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
20256 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
20257 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
20258 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
20259 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
20260 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
20261 the same as _Float128.
20262 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
20263 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
20264 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
20265
20266 * stdlib/stdlib.h
20267 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
20268 Declare.
20269 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
20270 Likewise.
20271 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
20272 Likewise.
20273 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
20274 (strtof32x): Likewise.
20275 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
20276 (strtof64x): Likewise.
20277 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
20278 (strtof128x): Likewise.
20279 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
20280 (strfromf16): Likewise.
20281 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
20282 (strfromf32): Likewise.
20283 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
20284 (strfromf64): Likewise.
20285 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
20286 (strfromf32x): Likewise.
20287 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
20288 (strfromf64x): Likewise.
20289 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
20290 (strfromf128x): Likewise.
20291 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
20292 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
20293 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
20294 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
20295 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
20296 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
20297
20298 2017-11-03 Richard Henderson <rth@twiddle.net>
20299
20300 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
20301
20302 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
20303
20304 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
20305
20306 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
20307
20308 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
20309 DT_TLSDESC_GOT initialization.
20310 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
20311 (_dl_tlsdesc_resolve_hold): Likewise.
20312 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
20313 (_dl_tlsdesc_resolve_hold): Likewise.
20314 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
20315 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
20316
20317 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
20318
20319 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
20320
20321 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
20322
20323 [BZ #18572]
20324 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
20325 non-lazily for R_ARM_TLS_DESC.
20326
20327 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
20328
20329 [BZ #17078]
20330 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
20331 R_ARM_TLS_DESC case.
20332 (elf_machine_lazy_rel): Remove the prelink check.
20333
20334 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
20335
20336 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
20337 DT_TLSDESC_GOT initialization.
20338 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
20339 (_dl_tlsdesc_resolve_rela): Likewise.
20340 (_dl_tlsdesc_resolve_hold): Likewise.
20341 (_dl_tlsdesc_undefweak): Remove ldar.
20342 (_dl_tlsdesc_dynamic): Likewise.
20343 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
20344 (_dl_tlsdesc_resolve_rela): Likewise.
20345 (_dl_tlsdesc_resolve_hold): Likewise.
20346 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
20347 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
20348 (_dl_tlsdesc_resolve_rela): Likewise.
20349 (_dl_tlsdesc_resolve_hold): Likewise.
20350
20351 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
20352
20353 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
20354 binding and initialization non-lazily for R_AARCH64_TLSDESC.
20355
20356 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
20357
20358 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
20359 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
20360
20361 2017-11-02 Joseph Myers <joseph@codesourcery.com>
20362
20363 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
20364 Declare.
20365 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
20366 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
20367 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
20368 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
20369 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
20370 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
20371 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
20372 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
20373 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
20374 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
20375 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
20376
20377 2017-11-02 Mike FABIAN <mfabian@redhat.com>
20378
20379 [BZ #22382]
20380 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
20381 * localedata/locales/tpi_PG: Add standard header.
20382
20383 2017-11-02 Florian Weimer <fweimer@redhat.com>
20384
20385 test-errno-linux: quotactl can fail with EPERM in containers.
20386 * sysdeps/unix/sysv/linux/test-errno-linux.c
20387 (LIST, LIST_FORWARD): New macros.
20388 (check_error_in_list): New function.
20389 (test_wrp_rv): Accept list of permitted error codes.
20390 (test_wrp_rv2): Remove.
20391 (test_wrp): Call test_wrp_rv with list of error codes.
20392 (test_wrp2): Accept list of error codes.
20393 (do_test): Adjust. Allow EPERM for quotactl.
20394
20395 2017-11-02 Florian Weimer <fweimer@redhat.com>
20396
20397 * stdio-common/bug16.c (do_test): Use array_length.
20398 * stdio-common/errlist.c (_sys_nerr): Likewise.
20399 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
20400 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
20401 * stdio-common/psiginfo.c (psiginfo): Use array_length.
20402 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
20403 (do_test): Use array_length.
20404 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
20405 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
20406 * stdio-common/tst-printf-round.c (do_test): Likewise.
20407 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
20408 (CHECK): Use array_length.
20409 * stdio-common/tstdiomisc.c (t3, F): Likewise.
20410 * stdio-common/tstscanf.c (main): Likewise.
20411 * stdio-common/vfprintf.c (process_string_arg): Likewise.
20412
20413 2017-11-02 Florian Weimer <fweimer@redhat.com>
20414
20415 Add array_length and array_end macros.
20416 * include/array_length.h: New file.
20417
20418 2017-11-02 Florian Weimer <fweimer@redhat.com>
20419
20420 [BZ #22332]
20421 * posix/tst-glob-tilde.c (do_noescape): New variable.
20422 (one_test): Process it.
20423 (do_test): Set do_noescape. Add unescaping test case.
20424
20425 2017-11-01 Joseph Myers <joseph@codesourcery.com>
20426
20427 * math/complex.h
20428 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
20429 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
20430 with appropriate macros defined and undefined.
20431 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
20432 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
20433 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
20434 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
20435 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
20436 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
20437 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
20438 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
20439 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
20440 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
20441
20442 * math/complex.h
20443 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
20444 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
20445 that for long double. Do not condition define and undefine of
20446 _Mdouble_complex_ on [__CFLOAT128].
20447
20448 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
20449
20450 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
20451 of <sysdeps/generic/sysdep.h>.
20452 (ALIGNARG): Removed.
20453 (ASM_SIZE_DIRECTIVE): Likewise.
20454 (ENTRY): Likewise.
20455 (END): Likewise.
20456 (ENTRY_CHK): Likewise.
20457 (END_CHK): Likewise.
20458 (syscall_error): Likewise.
20459 (mcount): Likewise.
20460 (PSEUDO_END): Likewise.
20461 (L): Likewise.
20462 (atom_text_section): Likewise.
20463 * sysdeps/x86/sysdep.h: New file.
20464 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
20465 of <sysdeps/generic/sysdep.h>.
20466 (ALIGNARG): Removed.
20467 (ASM_SIZE_DIRECTIVE): Likewise.
20468 (ENTRY): Likewise.
20469 (END): Likewise.
20470 (ENTRY_CHK): Likewise.
20471 (END_CHK): Likewise.
20472 (syscall_error): Likewise.
20473 (mcount): Likewise.
20474 (PSEUDO_END): Likewise.
20475 (L): Likewise.
20476 (atom_text_section): Likewise.
20477
20478 2017-10-31 Rafal Luzynski <digitalfreak@lingonborough.com>
20479
20480 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
20481 category of LC_CTYPE set to "i18n:2012".
20482 * localedata/locales/i18n_ctype: Regenerate.
20483
20484 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
20485
20486 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
20487 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
20488 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
20489 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
20490
20491 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
20492 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
20493 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
20494 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
20495
20496 2017-10-31 Joseph Myers <joseph@codesourcery.com>
20497
20498 * math/complex.h
20499 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
20500 New macro.
20501 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
20502 Likewise.
20503 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
20504 Likewise.
20505 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
20506 (CMPLXF32X): Likewise.
20507 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
20508 (CMPLXF64X): Likewise.
20509 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
20510 (CMPLXF128X): Likewise.
20511
20512 * math/math.h
20513 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
20514 (__MATH_EVAL_FMT2): Define to add 0.0f.
20515
20516 2017-10-31 Alan Modra <amodra@gmail.com>
20517
20518 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
20519 include sysdep.h.
20520 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
20521 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
20522 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
20523 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
20524 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
20525 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
20526 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
20527 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
20528 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
20529 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
20530 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
20531 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
20532 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
20533 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
20534 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
20535 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
20536 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
20537 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
20538 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
20539 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
20540 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
20541 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
20542 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
20543 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
20544 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
20545 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
20546 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
20547 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
20548 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
20549 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
20550 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
20551 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
20552 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
20553 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
20554 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
20555 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
20556 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
20557 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
20558 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
20559 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
20560 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
20561 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
20562 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
20563 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
20564 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
20565 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
20566 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
20567 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
20568 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
20569 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
20570 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
20571 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
20572 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
20573 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
20574 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
20575 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
20576 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
20577 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
20578 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
20579 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
20580 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
20581 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
20582 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
20583 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
20584 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
20585 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
20586 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
20587 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
20588 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
20589
20590 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
20591 include sysdep.h and math_ldbl_opt.h.
20592
20593 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
20594 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
20595 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
20596 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
20597 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
20598 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
20599 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
20600 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
20601 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
20602 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
20603 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
20604 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
20605 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
20606 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
20607 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
20608 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
20609 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
20610 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
20611 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
20612 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
20613 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
20614 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
20615 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
20616 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
20617 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
20618 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
20619
20620 2017-10-31 Alan Modra <amodra@gmail.com>
20621
20622 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
20623 string/strncase_l.c, not string/strncase.c.
20624 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
20625 (libc_hidden_def): Redefine.
20626
20627 2017-10-31 Alan Modra <amodra@gmail.com>
20628
20629 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
20630 (__STRCMP, STRCMP, __strcasecmp_l): Define.
20631 (__strcasecmp): Don't define.
20632
20633 2017-10-31 Alan Modra <amodra@gmail.com>
20634
20635 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
20636 IS_IN (libc).
20637 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
20638 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
20639 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
20640
20641 2017-10-31 Alan Modra <amodra@gmail.com>
20642
20643 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
20644 USE_AS_STPNCPY.
20645
20646 2017-10-31 Alan Modra <amodra@gmail.com>
20647
20648 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
20649 Redefine only when SHARED.
20650
20651 2017-10-30 Joseph Myers <joseph@codesourcery.com>
20652
20653 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
20654 Include <bits/math-finite.h> with appropriate macros defined and
20655 undefined.
20656 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
20657 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
20658 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
20659 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
20660 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
20661
20662 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
20663 [!_Mlong_double_] (_Mlong_double_): Likewise.
20664 [!_Mfloat16_] (_Mfloat16_): Likewise.
20665 [!_Mfloat32_] (_Mfloat32_): Likewise.
20666 [!_Mfloat64_] (_Mfloat64_): Likewise.
20667 [!_Mfloat128_] (_Mfloat128_): Likewise.
20668 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
20669 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
20670 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
20671 (_Mdouble_): Define without indirection through those macros.
20672 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
20673 [!_Mfloat128_] (_Mfloat128_): Likewise.
20674 [_Mlong_double_] (_Mlong_double_): Likewise.
20675 (_Mdouble_): Define without indirection through those macros.
20676 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
20677 not add -D_Mlong_double_=double.
20678 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
20679 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
20680
20681 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
20682
20683 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
20684
20685 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
20686
20687 * sysdeps/x86/libc-start.c: Reformat.
20688
20689 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
20690
20691 [BZ #22353]
20692 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
20693 (1): Renamed to ...
20694 (L(Src0)): This.
20695 (L(Src1)): New.
20696 (L(Src2)): Likewise.
20697 (L(1)): Renamed to ...
20698 (L(Src3)): This.
20699
20700 2017-10-30 Joseph Myers <joseph@codesourcery.com>
20701
20702 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
20703 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
20704 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
20705 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
20706 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
20707 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
20708 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
20709 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
20710 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
20711 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
20712 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
20713 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
20714 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
20715 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
20716 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
20717 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
20718 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
20719 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
20720 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
20721 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
20722 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
20723 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
20724 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
20725 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
20726 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
20727 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
20728 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
20729 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
20730 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
20731 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
20732 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
20733 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
20734 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
20735 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
20736 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
20737 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
20738 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
20739 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
20740 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
20741 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
20742 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
20743 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
20744 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
20745 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
20746 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
20747 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
20748 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
20749 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
20750 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
20751 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
20752 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
20753 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
20754 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
20755 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
20756 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
20757 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
20758 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
20759 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
20760 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
20761 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
20762 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
20763 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
20764 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
20765 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
20766 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
20767 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
20768
20769 2017-10-30 Florian Weimer <fweimer@redhat.com>
20770
20771 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
20772 always defined.
20773 * io/tst-mkdirat.c (do_test): Likewise.
20774 * io/tst-mkfifoat.c (do_test): Likewise.
20775 * io/tst-mknodat.c (do_test): Likewise.
20776 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
20777 * locale/programs/locale.c (select_dirs): Likewise.
20778 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
20779 * posix/bug-glob2.c (my_readdir): Likewise.
20780 * posix/tst-dir.c (main): Likewise.
20781 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
20782 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
20783
20784 2017-10-30 Florian Weimer <fweimer@redhat.com>
20785
20786 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
20787 just __USE_GNU.
20788
20789 2017-10-30 Florian Weimer <fweimer@redhat.com>
20790
20791 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
20792 Convert to support/test-driver.c.
20793 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
20794 New macro parameters.
20795 (PRINTF): Remove macro. Use test_verbose conditionals instead.
20796 * posix/tst-gnuglob.c: New file.
20797 * posix/tst-gnuglob64.c: Likewise.
20798 * posix/Makefile (tests): Add tst-gnuglob64.
20799
20800 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
20801
20802 [BZ #19485]
20803 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
20804 and use a better translation for March in “mon”.
20805 * localedata/locales/csb_PL: Use more ASCII to improve the
20806 readability of the source.
20807
20808 2017-10-30 Mike FABIAN <mfabian@redhat.com>
20809
20810 [BZ #13953]
20811 * localedata/locales/km_KH: Use ASCII as much
20812 as possible for better readability of the source and
20813 remove useless comments.
20814 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
20815 was commented out and apparently wrong anyway because it was
20816 using Lao characters. If Buddhist era should be used
20817 for km_KH, a native speaker should write the correct formaat
20818 for Khmer.
20819 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
20820 (According to CLDR, the first weekday for Cambodia is Sunday).
20821 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
20822 (These were using Lao characters which must be wrong. If we get
20823 the correct data from a native speaker, we could add it back, until
20824 then it is better not to have name_mr and name_mrs at all than
20825 having it wrong).
20826
20827 2017-10-27 Rafal Luzynski <digitalfreak@lingonborough.com>
20828
20829 * locale/loadlocale.c: Correct size of
20830 _nl_value_type_LC_<category> arrays.
20831
20832 2017-10-27 Joseph Myers <joseph@codesourcery.com>
20833
20834 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
20835 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
20836 with appropriate macros defined and undefined.
20837 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
20838 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
20839 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
20840 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
20841 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
20842
20843 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
20844
20845 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
20846 "-O2 -march=i586".
20847
20848 2017-10-27 Mike FABIAN <mfabian@redhat.com>
20849
20850 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
20851 with lowercase letters to make it agree with CLDR.
20852
20853 2017-10-27 Mike FABIAN <mfabian@redhat.com>
20854
20855 [BZ #15260]
20856 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
20857 first letters of yesstr and nostr in yesexpr and noexpr,
20858 not for the full words.
20859 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
20860 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
20861 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
20862 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
20863 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
20864 first letters of yesstr and nostr in yesexpr and noexpr,
20865 until now only English was matched in yesexpr and noexpr.
20866 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
20867 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
20868 fil but not for tl. As tl and fil are very similar, using fil
20869 is probably better than using English.
20870
20871 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
20872
20873 [BZ #21706]
20874 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
20875 in yesstr and nostr.
20876
20877 2017-10-26 Joseph Myers <joseph@codesourcery.com>
20878
20879 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
20880 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
20881 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
20882 Likewise.
20883 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
20884 Likewise.
20885 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
20886 Likewise.
20887 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
20888 Likewise.
20889 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
20890 (SNANF128X): Likewise.
20891
20892 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
20893 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
20894 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
20895 (HUGE_VAL_F32): Likewise.
20896 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
20897 (HUGE_VAL_F64): Likewise.
20898 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
20899 (HUGE_VAL_F32X): Likewise.
20900 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
20901 (HUGE_VAL_F64X): Likewise.
20902 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
20903 (HUGE_VAL_F128X): Likewise.
20904
20905 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
20906
20907 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
20908 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
20909 for the br_FR locale.
20910
20911 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
20912
20913 [BZ #21706]
20914 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
20915
20916 2017-10-25 Carlos O'Donell <carlos@redhat.com>
20917
20918 * locale/programs/record-status.h: Define globals, and function
20919 prototypes. Move function bodies...
20920 * locale/programs/record-status.c: ... to here. New file.
20921 * iconv/Makefile (iconv_prog-modules): Add record-status.
20922 * locale/Makefile (lib-modules): Likewise.
20923 * iconv/iconv_prog.c: Remove verbose.
20924 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
20925 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
20926 record a warning about ASCII compatibility.
20927 * locale/programs/ld-monetary.c (monetary_finish): If
20928 warn_int_curr_symbol is true then record a warning about the symbol
20929 not being in our ISO 4217 list.
20930 * locale/programs/locale.c: Include record-status.h. Remove verbose.
20931 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
20932 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
20933 (OPT_NO_WARN): Define.
20934 (OPT_WARN): Define.
20935 (options): Add entry for --no-warnings, and --warnings.
20936 (set_warnings): New function to enable/disable warnings.
20937 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
20938 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
20939 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
20940 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
20941 Pass flags to generate_locale.
20942 (generate_locale): Accept new flag argument and pass it to localedef
20943 invocation.
20944 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
20945 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
20946
20947 * localedata/Makefile (test-input-data): Use full file name.
20948 * localedata/da_DK.in: Rename to...
20949 * localedata/da_DK.ISO-8859-1.in: ...this.
20950 * localedata/de_DE.in: Rename to...
20951 * localedata/de_DE.ISO-8859-1.in: ...this.
20952 * localedata/en_US.in: Rename to...
20953 * localedata/en_US.ISO-8859-1.in: ...this.
20954 * localedata/fr_FR.in: Rename to...
20955 * localedata/fr_FR.UTF-8.in: ... this.
20956 * localedata/hr_HR.in: Rename to...
20957 * localedata/hr_HR.ISO-8859-2.in: ...this.
20958 * localedata/hu_HU.in: Rename to...
20959 * localedata/hu_HU.UTF-8.in: ...this.
20960 * localedata/si_LK.in: Rename to...
20961 * localedata/si_LK.UTF-8.in: ...this.
20962 * localedata/sv_SE.in: Rename to...
20963 * localedata/sv_SE.ISO-8859-1.in: ...this.
20964 * localedata/tr_TR.in: Rename to...
20965 * localedata/tr_TR.UTF-8.in: ...this.
20966 * localedata/uk_UA.in: Rename to...
20967 * localedata/uk_UA.UTF-8.in: ...this.
20968 * localedata/sort-test.sh: Test file is locale name with the
20969 suffix.
20970
20971 * localedata/unicode-gen/Makefile (check_i18n): Rename to
20972 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
20973 file.
20974 * localedata/locales/i18n_ctype: Regenerate.
20975 * localedata/locales/tr_TR: Likewise.
20976 * localedata/locales/translit_circle: Likewise.
20977 * localedata/locales/translit_cjk_compat: Likewise.
20978 * localedata/locales/translit_combining: Likewise.
20979 * localedata/locales/translit_compat: Likewise.
20980 * localedata/locales/translit_font: Likewise.
20981 * localedata/locales/translit_fraction: Likewise.
20982
20983 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20984
20985 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
20986 lxvd2x/stxvd2x with lvx/stvx.
20987 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
20988
20989 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
20990
20991 * include/alloc_buffer.h: Replace "if if " with "if " in
20992 comments.
20993 * sysdeps/mips/memcpy.S: Likkewise.
20994 * sysdeps/mips/memset.S: Likewise.
20995 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
20996 Likewise.
20997 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
20998 Likewise.
20999 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
21000 Likewise.
21001
21002 2017-10-25 Mike FABIAN <mfabian@redhat.com>
21003
21004 [BZ #15261]
21005 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
21006 yesexpr and noexpr.
21007 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
21008 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
21009 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
21010 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
21011 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
21012 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
21013 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
21014
21015 2017-10-25 Mike FABIAN <mfabian@redhat.com>
21016
21017 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
21018 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
21019 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
21020 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
21021 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
21022 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
21023 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
21024 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
21025 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
21026 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
21027 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
21028 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
21029
21030 2017-10-25 Mike FABIAN <mfabian@redhat.com>
21031
21032 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
21033 as possible for better readability of the source.
21034 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
21035 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
21036 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
21037 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
21038 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
21039 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
21040 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
21041 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
21042 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
21043 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
21044 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
21045 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
21046 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
21047 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
21048 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
21049 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
21050 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
21051 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
21052 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
21053 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
21054 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
21055 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
21056 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
21057 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
21058 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
21059 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
21060 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
21061 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
21062 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
21063 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
21064 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
21065 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
21066 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
21067 * localedata/locales/en_US (LC_MESSAGES): Likewise.
21068 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
21069 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
21070 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
21071 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
21072 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
21073 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
21074 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
21075 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
21076 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
21077 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
21078 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
21079 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
21080 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
21081 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
21082 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
21083 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
21084 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
21085 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
21086 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
21087 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
21088 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
21089 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
21090 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
21091 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
21092 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
21093 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
21094 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
21095 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
21096 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
21097 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
21098 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
21099 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
21100 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
21101 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
21102 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
21103 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
21104 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
21105 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
21106 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
21107 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
21108 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
21109 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
21110 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
21111 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
21112 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
21113 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
21114 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
21115 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
21116 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
21117 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
21118 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
21119 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
21120 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
21121 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
21122 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
21123 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
21124 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
21125 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
21126 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
21127 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
21128 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
21129 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
21130 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
21131 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
21132 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
21133 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
21134 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
21135 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
21136 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
21137 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
21138 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
21139 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
21140 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
21141 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
21142 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
21143 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
21144 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
21145 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
21146 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
21147 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
21148 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
21149 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
21150 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
21151 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
21152 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
21153 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
21154 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
21155 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
21156 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
21157 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
21158 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
21159 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
21160 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
21161 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
21162 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
21163 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
21164 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
21165 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
21166 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
21167 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
21168 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
21169 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
21170 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
21171 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
21172 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
21173 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
21174 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
21175 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
21176 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
21177 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
21178 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
21179 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
21180 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
21181 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
21182 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
21183 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
21184 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
21185 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
21186 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
21187 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
21188 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
21189 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
21190 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
21191 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
21192 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
21193 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
21194 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
21195 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
21196 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
21197 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
21198 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
21199 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
21200 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
21201 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
21202 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
21203 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
21204 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
21205 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
21206 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
21207 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
21208
21209 2017-10-25 Mike FABIAN <mfabian@redhat.com>
21210
21211 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
21212 (Use first letters of yesstr and nostr correctly instead of using
21213 full words).
21214
21215 2017-10-25 Mike FABIAN <mfabian@redhat.com>
21216
21217 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
21218 (Use first letters of yesstr and nostr correctly).
21219
21220 2017-10-25 Mike FABIAN <mfabian@redhat.com>
21221
21222 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
21223 also check for the first characters of yesstr and nostr.
21224 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
21225 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
21226
21227 2017-10-25 Mike FABIAN <mfabian@redhat.com>
21228
21229 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
21230 also check for Chinese characters.
21231
21232 2017-10-25 Mike FABIAN <mfabian@redhat.com>
21233
21234 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
21235 match also for the contents of yesstr and nostr. As the first letter
21236 of yesstr and nostr is equal, checking only for the first letter
21237 is not enough.
21238
21239 2017-10-25 Mike FABIAN <mfabian@redhat.com>
21240
21241 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
21242 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
21243
21244 2017-10-25 Mike FABIAN <mfabian@redhat.com>
21245
21246 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
21247 of main contributor.
21248
21249 2017-10-25 Mike FABIAN <mfabian@redhat.com>
21250
21251 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
21252 instead of using English.
21253
21254 2017-10-25 Mike FABIAN <mfabian@redhat.com>
21255
21256 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
21257 by including the first letters of nostr and yesexpr in the regexp.
21258 Also make it more readable by using ASCII where possible.
21259
21260 2017-10-25 Mike FABIAN <mfabian@redhat.com>
21261
21262 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
21263 the first letter of nostr in the regexp. It agrees with CLDR now.
21264 Also make it more readable by using ASCII where possible.
21265
21266 2017-10-24 Mike FABIAN <mfabian@redhat.com>
21267
21268 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
21269 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
21270 these strings contain a U+17D6 (which somewhat looks like a colon)
21271 instead of a real colon to separate the full words for “yes”
21272 and “no” from the single letter responses.
21273
21274 2017-10-24 Mike FABIAN <mfabian@redhat.com>
21275
21276 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
21277 it agree with CLDR (include the first letter of yesstr).
21278 Also make it more readable by using ASCII where possible.
21279
21280 2017-10-24 Mike FABIAN <mfabian@redhat.com>
21281
21282 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
21283 and improve yesexpr and noexpr. The yesstr and nostr apparently
21284 came from CLDR. And CLDR has a bug there: these strings contain
21285 a U+0903 (which looks like a colon) instead of a real colon
21286 to separate the full words for “yes” and “no” from the single
21287 letter responses.
21288
21289 2017-10-24 Mike FABIAN <mfabian@redhat.com>
21290
21291 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
21292 letters of the full yesstr and nostr in yesexpr and noexpr.
21293
21294 2017-10-24 Mike FABIAN <mfabian@redhat.com>
21295
21296 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
21297 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
21298 * localedata/locales/an_ES: Make source more readable by using ASCII
21299 where possible.
21300
21301 2017-10-24 Mike FABIAN <mfabian@redhat.com>
21302
21303 [BZ #20952]
21304 * localedata/locales/yuw_PG: New file.
21305 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
21306 * locale/iso-639.def: Add Yau (Uruwa).
21307
21308 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
21309
21310 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
21311
21312 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
21313
21314 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
21315 (__libc_realloc): Likewise.
21316 (_mid_memalign): Likewise.
21317 (__libc_calloc): Likewise.
21318
21319 2017-10-23 Mike FABIAN <mfabian@redhat.com>
21320
21321 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
21322 by adding the generic +1 and -0 as in all other locales.
21323 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
21324 day names and make it more readable by using ASCII where possible.
21325
21326 2017-10-24 Joseph Myers <joseph@codesourcery.com>
21327
21328 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
21329 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
21330
21331 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21332
21333 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
21334 WNOHANG in waitpid call.
21335
21336 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
21337
21338 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
21339 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
21340
21341 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
21342 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
21343 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
21344 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
21345 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
21346 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
21347 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
21348 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
21349 variables.
21350
21351 2017-10-23 Michael Collison <michael.collison@arm.com>
21352
21353 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
21354 with __builtin_sqrt.
21355 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
21356 with __builtin_sqrtf.
21357 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
21358 with __builtin_ceil.
21359 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
21360 with __builtin_ceilf.
21361 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
21362 with __builtin_floor.
21363 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
21364 with __builtin_floorf.
21365 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
21366 with __builtin_fma.
21367 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
21368 with __builtin_fmaf.
21369 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
21370 with __builtin_fmax.
21371 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
21372 with __builtin_fmaxf.
21373 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
21374 with __builtin_fmin.
21375 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
21376 with __builtin_fminf.
21377 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
21378 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
21379 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
21380 with builtin_rint and conversion to int.
21381 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
21382 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
21383 with builtin_llround.
21384 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
21385 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
21386 with builtin_rint and conversion to long int.
21387 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
21388 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
21389 with builtin_lround.
21390 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
21391 with builtin_lroundf.
21392 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
21393 statements with __builtin_nearbyint.
21394 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
21395 statements with __builtin_nearbyintf.
21396 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
21397 with __builtin_rint.
21398 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
21399 with __builtin_rintf.
21400 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
21401 with __builtin_round.
21402 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
21403 with __builtin_roundf.
21404 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
21405 with __builtin_trunc.
21406 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
21407 with __builtin_truncf.
21408 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
21409 and s_l[l]round[f].c too.
21410
21411 2017-10-23 Alan Modra <amodra@gmail.com>
21412
21413 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
21414 Adjust stack after restoring regs. Add missing LR cfi_restore.
21415
21416 2017-10-23 Alan Modra <amodra@gmail.com>
21417
21418 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
21419 Move LR save and frame setup/teardown and LR restore to
21420 immediately around memset call. Provide cfi.
21421
21422 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
21423
21424 * sysdeps/i386/fpu/e_powf.S: Removed.
21425 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
21426 * sysdeps/i386/fpu/w_powf.c: Likewise.
21427 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
21428 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
21429 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
21430 Add e_powf-sse2.
21431 (CFLAGS-e_powf-sse2.c): New.
21432 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
21433 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
21434
21435 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
21436
21437 * sysdeps/i386/fpu/e_log2f.S: Removed.
21438 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
21439 * sysdeps/i386/fpu/w_log2f.c: Likewise.
21440 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
21441 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
21442 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
21443 Add e_log2f-sse2.
21444 (CFLAGS-e_log2f-sse2.c): New.
21445 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
21446 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
21447
21448 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
21449
21450 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
21451 Add e_powf-fma.
21452 (CFLAGS-e_powf-fma.c): New.
21453 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
21454 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
21455
21456 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
21457
21458 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
21459 Add e_log2f-fma.
21460 (CFLAGS-e_log2f-fma.c): New.
21461 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
21462 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
21463
21464 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
21465
21466 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
21467 Add e_logf-fma.
21468 (CFLAGS-e_logf-fma.c): New.
21469 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
21470 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
21471
21472 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
21473
21474 * sysdeps/i386/fpu/e_logf.S: Removed.
21475 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
21476 * sysdeps/i386/fpu/w_logf.c: Likewise.
21477 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
21478 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
21479 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
21480 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
21481 Add e_logf-sse2.
21482 (CFLAGS-e_logf-sse2.c): New.
21483 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
21484 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
21485
21486 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
21487
21488 * sysdeps/i386/fpu/e_exp2f.S: Removed.
21489 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
21490 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
21491 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
21492 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
21493 Add e_exp2f-sse2.
21494 (CFLAGS-e_exp2f-sse2.c): New.
21495 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
21496 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
21497
21498 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
21499
21500 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
21501 Add e_exp2f-fma.
21502 (CFLAGS-e_exp2f-fma.c): New.
21503 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
21504 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
21505
21506 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
21507
21508 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
21509 * sysdeps/i386/fpu/e_expf.S: Likewise.
21510 * sysdeps/i386/fpu/math_errf.c: Likewise.
21511 * sysdeps/i386/fpu/w_expf.c: Likewise.
21512 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
21513 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
21514 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
21515 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
21516 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
21517 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
21518 Remove e_expf-ia32.
21519 (CFLAGS-e_expf-sse2.c): New.
21520 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
21521 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
21522
21523 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
21524
21525 * sysdeps/x86_64/fpu/e_expf.S: Removed.
21526 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
21527 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
21528 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
21529 e_expf.c.
21530 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
21531 New.
21532 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
21533 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
21534 Renamed to ...
21535 (__redirect_expf): This.
21536 (SYMBOL_NAME): Changed to expf.
21537 (__ieee754_expf): Renamed to ...
21538 (__expf): This.
21539 (__GI___expf): This.
21540 (__ieee754_expf): Add strong_alias.
21541 (__expf_finite): Likewise.
21542 (__expf): New.
21543 Include <sysdeps/ieee754/flt-32/e_expf.c>.
21544
21545 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
21546
21547 [BZ #22332]
21548 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
21549 unescaping.
21550
21551 2017-10-21 Florian Weimer <fweimer@redhat.com>
21552
21553 * posix/Makefile (tests): Add tst-glob-tilde.
21554 (tests-special): Add tst-glob-tilde-mem.out
21555 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
21556 (tst-glob-tilde-mem.out): Add mtrace check.
21557 * posix/tst-glob-tilde.c: New file.
21558
21559 2017-10-20 Joseph Myers <joseph@codesourcery.com>
21560
21561 * bits/floatn-common.h: New file.
21562 * math/Makefile (headers): Add bits/floatn-common.h.
21563 * bits/floatn.h: Include <bits/floatn-common.h>.
21564 * sysdeps/ia64/bits/floatn.h: Likewise.
21565 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
21566 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
21567 * sysdeps/powerpc/bits/floatn.h: Likewise.
21568 * sysdeps/x86/bits/floatn.h: Likewise.
21569
21570 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21571
21572 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
21573 indicates whether compiler emits an warning for alias for
21574 functions with incompatible types.
21575
21576 [BZ #22273]
21577 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
21578 the auxiliary process is terminated by a signal before calling _exit
21579 or execve.
21580
21581 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
21582
21583 [BZ #21265]
21584 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
21585 New.
21586 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
21587 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
21588 and bit_arch_XSAVEC_Usable if needed.
21589 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
21590 and bit_arch_Use_dl_runtime_resolve_opt.
21591 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
21592 Removed.
21593 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
21594 (bit_arch_Prefer_No_AVX512): Updated.
21595 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
21596 (bit_arch_XSAVEC_Usable): New.
21597 (STATE_SAVE_OFFSET): Likewise.
21598 (STATE_SAVE_MASK): Likewise.
21599 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
21600 (cpu_features): Add xsave_state_size and xsave_state_full_size.
21601 (index_arch_Use_dl_runtime_resolve_opt): Removed.
21602 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
21603 (index_arch_XSAVEC_Usable): New.
21604 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
21605 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
21606 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
21607 is enabled.
21608 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
21609 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
21610 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
21611 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
21612 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
21613 _dl_runtime_resolve_xsavec.
21614 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
21615 Removed.
21616 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
21617 instead of VEC_SIZE.
21618 (REGISTER_SAVE_BND0): Removed.
21619 (REGISTER_SAVE_BND1): Likewise.
21620 (REGISTER_SAVE_BND3): Likewise.
21621 (REGISTER_SAVE_RAX): Always defined to 0.
21622 (VMOV): Removed.
21623 (_dl_runtime_resolve_avx): Likewise.
21624 (_dl_runtime_resolve_avx_slow): Likewise.
21625 (_dl_runtime_resolve_avx_opt): Likewise.
21626 (_dl_runtime_resolve_avx512): Likewise.
21627 (_dl_runtime_resolve_avx512_opt): Likewise.
21628 (_dl_runtime_resolve_sse): Likewise.
21629 (_dl_runtime_resolve_sse_vex): Likewise.
21630 (USE_FXSAVE): New.
21631 (_dl_runtime_resolve_fxsave): Likewise.
21632 (USE_XSAVE): Likewise.
21633 (_dl_runtime_resolve_xsave): Likewise.
21634 (USE_XSAVEC): Likewise.
21635 (_dl_runtime_resolve_xsavec): Likewise.
21636 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
21637 Removed.
21638 (_dl_runtime_resolve_avx512_opt): Likewise.
21639 (_dl_runtime_resolve_avx): Likewise.
21640 (_dl_runtime_resolve_avx_opt): Likewise.
21641 (_dl_runtime_resolve_sse): Likewise.
21642 (_dl_runtime_resolve_sse_vex): Likewise.
21643 (_dl_runtime_resolve_fxsave): New.
21644 (_dl_runtime_resolve_xsave): Likewise.
21645 (_dl_runtime_resolve_xsavec): Likewise.
21646
21647 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
21648
21649 [BZ #22320]
21650 CVE-2017-15670
21651 * posix/glob.c (__glob): Fix one-byte overflow.
21652
21653 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
21654
21655 * malloc/malloc.c (sysdep-cancel.h): Add include.
21656
21657 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
21658
21659 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
21660
21661 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
21662
21663 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
21664 (tests): Remove $(objpfx)ga_test depdendency.
21665 * resolv/ga_test.c: Remove file.
21666
21667 2017-10-20 Mike FABIAN <mfabian@redhat.com>
21668
21669 [BZ #18812]
21670 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
21671 * localedata/locales/kab_DZ: New file.
21672
21673 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
21674
21675 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
21676 _dl_relocate_static_pie instead of _dl_start to compute load
21677 address in static PIE.
21678
21679 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
21680
21681 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
21682
21683 2017-10-20 Mike FABIAN <mfabian@redhat.com>
21684
21685 [BZ #13605]
21686 * localedata/SUPPORTED: Add shn_MM/UTF-8.
21687 * localedata/locales/shn_MM: New file.
21688
21689 2017-10-20 Florian Weimer <fweimer@redhat.com>
21690
21691 [BZ #22321]
21692 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
21693 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
21694 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
21695 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
21696 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
21697 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
21698
21699 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
21700
21701 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
21702
21703 2017-10-19 Joseph Myers <joseph@codesourcery.com>
21704
21705 * sysdeps/mips/ieee754/bits/floatn.h: New file.
21706
21707 [BZ #22322]
21708 * sysdeps/mips/bits/long-double.h: Move to ....
21709 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
21710
21711 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
21712
21713 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
21714
21715 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
21716 H.J. Lu <hongjiu.lu@intel.com>
21717
21718 [BZ #22299]
21719 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
21720 GLRO(dl_platform) to NULL.
21721 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
21722 (modules-names): Add tst-platformmod-1 and
21723 x86_64/tst-platformmod-2.
21724 (CFLAGS-tst-platform-1.c): New.
21725 (CFLAGS-tst-platformmod-1.c): Likewise.
21726 (CFLAGS-tst-platformmod-2.c): Likewise.
21727 (LDFLAGS-tst-platformmod-2.so): Likewise.
21728 ($(objpfx)tst-platform-1): Likewise.
21729 ($(objpfx)tst-platform-1.out): Likewise.
21730 (tst-platform-1-ENV): Likewise.
21731 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
21732 * sysdeps/x86_64/tst-platform-1.c: New file.
21733 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
21734 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
21735
21736 2017-10-19 Mike FABIAN <mfabian@redhat.com>
21737
21738 [BZ #13994]
21739 * locale/iso-639.def: Add Karbi.
21740 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
21741 * localedata/locales/mjw_IN: New file.
21742
21743 2017-10-18 Joseph Myers <joseph@codesourcery.com>
21744
21745 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
21746 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
21747 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
21748 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
21749 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
21750 (libm_alias_ldouble_other_r): Also create _Float128 alias.
21751 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
21752 <bits/floatn.h>.
21753 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
21754 (libm_alias_ldouble_other_r): Also create _Float128 alias.
21755 * manual/math.texi (Mathematics): Document additional architecture
21756 support for _Float128.
21757 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
21758 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21759 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
21760 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21761 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21762 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
21763 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
21764 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
21765 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21766 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
21767 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21768 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
21769 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21770 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
21771 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21772
21773 2017-10-18 Renlin Li <renlin.li@arm.com>
21774
21775 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
21776 _DYNAMIC symbol to calculate load address.
21777
21778 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
21779
21780 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
21781 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
21782 summary bits.
21783 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
21784 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
21785
21786 2017-10-18 Mike FABIAN <mfabian@redhat.com>
21787
21788 [BZ #16777]
21789 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
21790 and improve readability by using more ASCII.
21791 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
21792 and improve readability by using more ASCII.
21793
21794 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
21795
21796 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
21797 not all targets support atomics on bool.
21798
21799 2017-10-17 Joseph Myers <joseph@codesourcery.com>
21800
21801 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
21802 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
21803 __f128.
21804 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
21805 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
21806 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
21807 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
21808 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
21809 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
21810
21811 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21812
21813 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
21814 defines.
21815
21816 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
21817
21818 [BZ #22159]
21819 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
21820 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
21821 (do_check_remalloced_chunk): Fix build bug.
21822 (do_check_malloc_state): Add assert that checks arena->top.
21823 (malloc_consolidate): Remove initialization.
21824 (int_mallinfo): Remove call to malloc_consolidate.
21825 (__libc_mallopt): Clarify why malloc_consolidate is needed.
21826
21827 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
21828
21829 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
21830 (have_fastchunks): Remove.
21831 (clear_fastchunks): Remove.
21832 (set_fastchunks): Remove.
21833 (malloc_state): Add have_fastchunks.
21834 (malloc_init_state): Use have_fastchunks.
21835 (do_check_malloc_state): Remove incorrect invariant checks.
21836 (_int_malloc): Use have_fastchunks.
21837 (_int_free): Likewise.
21838 (malloc_consolidate): Likewise.
21839
21840 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
21841
21842 * malloc/malloc.c (tcache_put): Inline.
21843 (tcache_get): Inline.
21844
21845 2017-10-17 Jordi Mallach <jordi@gnu.org>
21846
21847 Aurelien Jarno <aurelien@aurel32.net>
21848 [BZ #2522]
21849 * localedata/locales/ca_ES@valencia: New file.
21850 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
21851
21852 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
21853
21854 [BZ #22296]
21855 * math/math.h: Let signbit use the builtin in C++ mode with gcc
21856 < 6.x
21857
21858 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21859
21860 * scripts/build-many-glibcs.py (Context.add_all_configs):
21861 Add arm-linux-gnueabihf multiarch extra_glibcs.
21862
21863 * sysdeps/generic/ifunc-init.h: New file.
21864 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
21865
21866 2017-10-17 Mike FABIAN <mfabian@redhat.com>
21867
21868 [BZ #22019]
21869 * localedata/locales/el_GR: Set n_cs_precedes to 0.
21870 * localedata/locales/el_CY: copy "el_GR" because it is identical.
21871 * stdlib/tst-strfmon_l.c: adapt test case.
21872
21873 2017-10-16 Joseph Myers <joseph@codesourcery.com>
21874
21875 * sysdeps/generic/float128-abi.h: New file.
21876 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
21877 non-__prefixed symbols to ....
21878 * math/Versions: ... here. Include <float128-abi.h>.
21879 * stdlib/Versions ... and here. Include <float128-abi.h>
21880
21881 2017-10-16 Florian Weimer <fweimer@redhat.com>
21882
21883 * version.h (VERSION): Switch to ".9000" as the development
21884 version suffix.
21885
21886 2017-10-16 Florian Weimer <fweimer@redhat.com>
21887
21888 [BZ #22050]
21889 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
21890 compat_symbol_reference to access non-default version.
21891
21892 2017-10-16 Florian Weimer <fweimer@redhat.com>
21893
21894 * malloc/Makefile (others-extras): Set to mcheck-init.o.
21895
21896 2017-10-16 Carlos O'Donell <carlos@redhat.com>
21897
21898 * include/shlib-compat.h (compat_symbol_reference): Update
21899 comment.
21900
21901 2017-10-16 Joseph Myers <joseph@codesourcery.com>
21902
21903 * math/Makefile (test-types): Add
21904 $(type-float128-$(float128-alias-fcts)).
21905 * math/test-float128.h (TYPE_STR): Define conditional on
21906 [FLT128_MANT_DIG == LDBL_MANT_DIG].
21907 (ULP_IDX): Likewise.
21908 (ULP_I_IDX): Likewise.
21909
21910 * stdlib/strtold.c: Include <bits/floatn.h>
21911 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
21912 and later undefine as macro. Define as weak alias if
21913 [!USE_WIDE_CHAR].
21914 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
21915 and later undefine as macro. Define as weak alias if
21916 [USE_WIDE_CHAR].
21917 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
21918 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
21919 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21920 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
21921 Define and later undefine as macro. Define as weak alias if
21922 [USE_WIDE_CHAR].
21923 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
21924 <bits/floatn.h>.
21925 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
21926 Define and later undefine as macro. Define as weak alias if
21927 [!USE_WIDE_CHAR].
21928 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
21929 Define and later undefine as macro. Define as weak alias if
21930 [USE_WIDE_CHAR].
21931
21932 2017-10-15 Carlos O'Donell <carlos@redhat.com>
21933
21934 * localedata/collate-test.c (allocate_arrays): Don't use \n in
21935 record_verbose messages.
21936
21937 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
21938
21939 [BZ #22052]
21940 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
21941 to silence -O3 -Wall warning with GCC 7.
21942
21943 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
21944
21945 * Makeconfig (+link-static-before-libc): Use the first of
21946 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
21947 * gmon/Makefile (tests): Add tst-gmon-static.
21948 (tests-static): Likewise.
21949 (CFLAGS-tst-gmon-static.c): New.
21950 (CRT-tst-gmon-static): Likewise.
21951 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
21952 (tst-gmon-static-ENV): Likewise.
21953 (tests-special): Likewise.
21954 ($(objpfx)tst-gmon-static.out): Likewise.
21955 (clean-tst-gmon-static-data): Likewise.
21956 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
21957 * gmon/tst-gmon-static-gprof.sh: New file.
21958 * gmon/tst-gmon-static.c: Likewise.
21959
21960 2017-10-13 Carlos O'Donell <carlos@redhat.com>
21961
21962 [BZ #22295]
21963 * locale/programs/linereader.c (get_string): Don't warn on
21964 non-symbolic character.
21965
21966 [BZ #22294]
21967 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
21968 int_curr_symbol.
21969
21970 [BZ #22292]
21971 * locale/programs/record-status.h: New file
21972 * locale/programs/locale.c: Add comment.
21973 * locale/programs/charmap-dir.c: Don't include error.h.
21974 (charmap_opendir): Use record_error.
21975 * locale/programs/charmap.c: Don't include error.h.
21976 (charmap_read): Use record_error, and record_warning.
21977 (parse_charmap): Likewise.
21978 * locale/programs/ld-address.c: Don't include error.h.
21979 (address_finish): Use record_error, and record_warning.
21980 * locale/programs/ld-collate.c: Don't include error.h.
21981 (collate_finish): Use record_error, and record_error_at_line.
21982 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
21983 (ctype_class_new): Likewise.
21984 (ctype_map_new): Likewise.
21985 (set_one_default): Likewise.
21986 (set_class_defaults): Likewise.
21987 (translit_flatten): Likewise.
21988 (allocate_arrays): Use record_error, and record_verbose.
21989 * locale/programs/ld-identification.c: Don't include error.h.
21990 (indentation_finish): Use record_error and record_warning.
21991 * locale/programs/ld-measurement.c: Don't include error.h.
21992 (measurement_finish): Use record_error.
21993 * locale/programs/ld-messages.c
21994 (message_finish): Likewise.
21995 * locale/programs/ld-monetary.c
21996 (monetary_finish): Likewise.
21997 * locale/programs/ld-name.c (name_finish): Use record_error
21998 and record_warning.
21999 * locale/programs/ld-numeric.c
22000 (numeric_finish): Use record_error.
22001 * locale/programs/ld-paper.c: Don't include error.h.
22002 (paper_finish): Use record_error.
22003 * locale/programs/ld-telephone.c: Don't include error.h.
22004 (telephone_finish): Use record_error.
22005 * locale/programs/ld-time.c (time_finish): Likewise.
22006 * locale/programs/linereader.h (lr_error): Make inline func.
22007 * locale/programs/localedef.c: Define recorded_warning_count,
22008 and recorded_error_count.
22009 (main): Use record_error. Use recorded_error_count and
22010 recorded_warning_count to issue correct error returns.
22011 (add_to_readlist): Use record_error.
22012 (find_locale): Likewise.
22013 (load_locale): Likewise.
22014 * locale/programs/localedef.h: Remove be_quiet
22015 and WITH_CUR_LOCALE.
22016 * locale/programs/locarchive.c (compare_from_file): Use
22017 record_error.
22018 * locale/programs/locfile.c (write_locale_data): Use
22019 record_error.
22020 * locale/programs/repertoire.c: Dont include error.h.
22021 (repertoire_complain): Use record_error.
22022 * localedata/tst-fmon.sh: Expect failures from localedef.
22023 * localedata/tst-locale.sh: Likewise.
22024 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
22025
22026 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
22027 (REPORTS): Likewise.
22028 (check): Likewise.
22029 (i18n): Rename to...
22030 (i18n_ctype): ...this.
22031 (i18n-report): Rename to...
22032 (i18n_ctype-report): ...this.
22033 * localedata/locales/i18n_ctype: Regenerate.
22034 * localedata/locales/i18n: copy i18n_ctype.
22035
22036 2017-10-13 Joseph Myers <joseph@codesourcery.com>
22037
22038 * stdlib/strfroml.c: Include <bits/floatn.h>.
22039 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
22040 Define before include of <stdlib.h> and undefine afterwards, then
22041 define as weak alias.
22042
22043 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
22044 Undefine and restore default definition. Use
22045 libm_alias_ldouble_other.
22046
22047 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
22048
22049 [BZ #22153]
22050 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
22051 in coredumps.
22052
22053 2017-10-13 James Clarke <jrtc27@jrtc27.com>
22054
22055 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
22056 Assign sym_map to be map for local symbols, as TLS relocations
22057 use sym_map to determine whether the symbol is defined and to
22058 extract the TLS information.
22059 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
22060 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
22061
22062 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
22063
22064 [BZ #22189]
22065 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
22066 (math_force_eval): Add powerpc version.
22067
22068 [BZ #22142]
22069 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
22070 -DBL_MAX.
22071 (do_test): Likewise.
22072 * stdio-common/tst-printf.sh: Likewise.
22073 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
22074 ifdef clause in order to set the carry bit right. Replace r0 by
22075 0 without changing the behavior.
22076
22077 2017-10-13 Joseph Myers <joseph@codesourcery.com>
22078
22079 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
22080 <libm-alias-ldouble.h>.
22081 (fabsl): Define using libm_alias_ldouble.
22082 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
22083 <libm-alias-ldouble.h>.
22084 (fabsl): Define using libm_alias_ldouble.
22085
22086 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
22087 Remove conditional code.
22088
22089 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
22090 Rename to __clog10_internal_l.
22091 (__clog10_internal_l): Define aliases using
22092 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
22093 with __clog10.
22094
22095 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
22096
22097 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
22098 * benchtests/sincosf-inputs: New file.
22099 * benchtests/cosf-inputs: New file.
22100 * benchtests/sinf-inputs: New file.
22101
22102 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
22103
22104 * posix/tst-spawn.c (do_test): Wait for both children.
22105
22106 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
22107
22108 [BZ #22284]
22109 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
22110 tests-pie): Add tst-gmon-pie.
22111 (CFLAGS-tst-gmon-pie.c): New.
22112 (CRT-tst-gmon-pie): Likewise.
22113 (tst-gmon-pie-ENV): Likewise.
22114 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
22115 ($(objpfx)tst-gmon-pie.out): Likewise.
22116 (clean-tst-gmon-pie-data): Likewise.
22117 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
22118 * gmon/gmon.c [PIC]: Include <link.h>.
22119 [PIC] (callback): New function.
22120 (write_hist): Add an argument for load address. Subtract load
22121 address from PCs.
22122 (write_call_graph): Likewise.
22123 (write_gmon): Call __dl_iterate_phdr to get load address, pass
22124 it to write_hist and write_call_graph.
22125 * gmon/tst-gmon-pie.c: New file.
22126
22127 2017-10-11 Joseph Myers <joseph@codesourcery.com>
22128
22129 * math/Makefile (test-types-basic): New variable.
22130 (test-types): Likewise.
22131 (libm-test-support): Use $(test-types) instead of $(types).
22132 (libm-tests-base-normal): Likewise.
22133 (libm-tests-base-finite): Likewise.
22134 (libm-tests-base-inline): Likewise.
22135 (generated): Likewise.
22136 ($(objpfx)libm-test-support-$(t).c): Likewise.
22137 (libm-tests-for-type iterator): Likewise.
22138 (libm-test-support iterator): Likewise.
22139 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
22140 (ulp_idx): Use ULP_IDX.
22141 * math/test-ldouble.h: Include <float.h>.
22142 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
22143 (ULP_IDX): New macro.
22144 (ULP_I_IDX): Likewise.
22145 * math/test-double.h (ULP_IDX): Likewise.
22146 (ULP_I_IDX): Likewise.
22147 * math/test-float.h (ULP_IDX): Likewise.
22148 (ULP_I_IDX): Likewise.
22149 * math/test-float128.h (ULP_IDX): Likewise.
22150 (ULP_I_IDX): Likewise.
22151
22152 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22153
22154 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
22155 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
22156 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
22157 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
22158 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
22159 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
22160 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
22161 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
22162 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
22163 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
22164 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
22165 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
22166 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
22167 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
22168 (SINGLE_THREAD_BY_GLOBAL): Define.
22169 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
22170 Likewise.
22171 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
22172 Likewise.
22173 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
22174 Likewise.
22175 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
22176 Likewise.
22177 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
22178 (SINGLE_THREAD_BY_GLOBAL): Likewise.
22179 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
22180 Likewise.
22181
22182 2017-10-11 Andreas Schwab <schwab@suse.de>
22183
22184 * nis/Makefile (aux): Remove.
22185 * nscd/Makefile (aux): Add nscd_hash.
22186 (nscd-modules): Likewise.
22187 ($(objpfx)nscd): Don't depend on libnsl.
22188 * nscd/nscd_hash.c: New file.
22189 * nscd/nscd_hash.h: Likewise.
22190 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
22191 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
22192 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
22193 instead of <nis/rpcsvc/nis.h>.
22194 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
22195
22196 2017-10-11 Florian Weimer <fweimer@redhat.com>
22197
22198 [BZ #22078]
22199 Avoid large NSS buffers with many addresses, aliases.
22200 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
22201 using dynarrays and struct alloc_buffer.
22202 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
22203 (tst-nss-files-hosts-multi): Link with -ldl.
22204 * nss/tst-nss-files-hosts-multi.c: New file.
22205
22206 2017-10-11 Florian Weimer <fweimer@redhat.com>
22207
22208 [BZ #18023]
22209 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
22210 scratch_buffer. Eliminate gotos.
22211
22212 2017-10-11 Joseph Myers <joseph@codesourcery.com>
22213
22214 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
22215 libm_alias_ldouble_other.
22216 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
22217 undefine and redefine.
22218 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
22219 (exp10l): Do not define here.
22220 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
22221 (weak_alias): Undefine and redefine.
22222 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
22223 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
22224 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
22225 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
22226
22227 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
22228 [!__fma] (fma): Define using libm_alias_double.
22229 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
22230 [!__fmaf] (fmaf): Define using libm_alias_float.
22231 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
22232 (fmal): Define using libm_alias_ldouble.
22233
22234 2017-10-10 Joseph Myers <joseph@codesourcery.com>
22235
22236 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
22237 New macro.
22238 (libm_alias_double_other): Likewise.
22239 (libm_alias_double_r): Use libm_alias_double_other_r.
22240 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
22241 New macro.
22242 (libm_alias_float_other): Likewise.
22243 (libm_alias_float_r): Use libm_alias_float_other_r.
22244 * sysdeps/generic/libm-alias-float128.h
22245 (libm_alias_float128_other_r): New macro.
22246 (libm_alias_float128_other): Likewise.
22247 (libm_alias_float128_r): Use libm_alias_float128_other_r.
22248 * sysdeps/generic/libm-alias-ldouble.h
22249 (libm_alias_ldouble_other_r): New macro.
22250 (libm_alias_ldouble_other): Likewise.
22251 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
22252 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
22253 (libm_alias_double_other_r): New macro.
22254 (libm_alias_double_other): Likewise.
22255 (libm_alias_double_r): Use libm_alias_double_other_r.
22256 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
22257 (libm_alias_ldouble_other_r): New macro.
22258 (libm_alias_ldouble_other): Likewise.
22259 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
22260 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
22261 [!USE_AS_COMPAT]: Use libm_alias_double_other.
22262 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
22263 [!USE_AS_COMPAT]: Use libm_alias_float_other.
22264 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
22265 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
22266 * math/w_exp2f.c: Use libm_alias_float_other.
22267 * math/w_expf.c: Likewise.
22268 * math/w_log2f.c: Likewise.
22269 * math/w_logf.c: Likewise.
22270 * math/w_powf.c: Likewise.
22271 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
22272 [!__exp2f]: Use libm_alias_float_other.
22273 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
22274 [!__expf]: Use libm_alias_float_other.
22275 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
22276 [!__log2f]: Use libm_alias_float_other.
22277 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
22278 [!__logf]: Use libm_alias_float_other.
22279 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
22280 [!__powf]: Use libm_alias_float_other.
22281
22282 2017-10-10 Florian Weimer <fweimer@redhat.com>
22283
22284 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
22285 function.
22286 (_nss_files_gethostbyname3_r): Call it.
22287
22288 2017-10-09 Joseph Myers <joseph@codesourcery.com>
22289
22290 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
22291 error. Remove default definition of declare_mgen_alias.
22292 [!declare_mgen_alias_r]: Likewise.
22293 * sysdeps/generic/math-type-macros-double.h
22294 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
22295 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
22296 (declare_mgen_alias_r): Likewise.
22297 * sysdeps/generic/math-type-macros-float128.h
22298 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
22299 * sysdeps/generic/math-type-macros-ldouble.h
22300 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
22301 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
22302 macro.
22303 (declare_mgen_alias_r_s): Likewise.
22304 (declare_mgen_alias_r): Likewise.
22305 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
22306 (lgamma_r): Define using libm_alias_double_r.
22307 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
22308 (lgammaf_r): Define using libm_alias_float_r.
22309 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
22310 (lgammal_r): Define using libm_alias_ldouble_r.
22311 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
22312 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
22313
22314 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22315
22316 * lib/glob.c (__glob_pattern_type): Remove now-spurious
22317 extern declaration.
22318
22319 2017-10-09 Joseph Myers <joseph@codesourcery.com>
22320
22321 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
22322
22323 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
22324
22325 [BZ #21326]
22326 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
22327 [__cplusplus >= 201103] (__USE_ISOC99): Define.
22328 * math/Makefile (test-math-cxx11): New test.
22329 * math/test-math-cxx11.cc: New file.
22330
22331 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
22332
22333 * login/openpty.c (openpty): Close slave pty file descriptor on error.
22334
22335 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
22336 call to allocate the slave pty file descriptor.
22337
22338 2017-10-06 Joseph Myers <joseph@codesourcery.com>
22339
22340 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
22341 [!__fma] (fma): Define using libm_alias_double.
22342 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
22343 [!__fma] (fma): Define using libm_alias_double.
22344
22345 * sysdeps/ieee754/float128/float128_private.h: Include
22346 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
22347 (libm_alias_ldouble_r): Undefine and redefine.
22348 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
22349 <libm-alias-ldouble.h>.
22350 (asinhl): Define using libm_alias_ldouble.
22351 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
22352 <libm-alias-ldouble.h>.
22353 (atanl): Define using libm_alias_ldouble.
22354 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
22355 <libm-alias-ldouble.h>.
22356 (cbrtl): Define using libm_alias_ldouble.
22357 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
22358 <libm-alias-ldouble.h>.
22359 (ceill): Define using libm_alias_ldouble.
22360 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
22361 <libm-alias-ldouble.h>.
22362 (copysignl): Define using libm_alias_ldouble.
22363 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
22364 <libm-alias-ldouble.h>.
22365 (cosl): Define using libm_alias_ldouble.
22366 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
22367 <libm-alias-ldouble.h>.
22368 (erfl): Define using libm_alias_ldouble.
22369 (erfcl): Likewise.
22370 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
22371 <libm-alias-ldouble.h>.
22372 (expm1l): Define using libm_alias_ldouble.
22373 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
22374 <libm-alias-ldouble.h>.
22375 (fabsl): Define using libm_alias_ldouble.
22376 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
22377 <libm-alias-ldouble.h>.
22378 (floorl): Define using libm_alias_ldouble.
22379 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
22380 <libm-alias-ldouble.h>.
22381 (fmal): Define using libm_alias_ldouble.
22382 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
22383 <libm-alias-ldouble.h>.
22384 (frexpl): Define using libm_alias_ldouble.
22385 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
22386 libm_alias_ldouble.
22387 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
22388 <libm-alias-ldouble.h>.
22389 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
22390 libm_alias_ldouble.
22391 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
22392 <libm-alias-ldouble.h>.
22393 (getpayloadl): Define using libm_alias_ldouble.
22394 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
22395 <libm-alias-ldouble.h>.
22396 (llrintl): Define using libm_alias_ldouble.
22397 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
22398 <libm-alias-ldouble.h>.
22399 (llroundl): Define using libm_alias_ldouble.
22400 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
22401 <libm-alias-ldouble.h>.
22402 (logbl): Define using libm_alias_ldouble.
22403 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
22404 <libm-alias-ldouble.h>.
22405 (lrintl): Define using libm_alias_ldouble.
22406 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
22407 <libm-alias-ldouble.h>.
22408 (lroundl): Define using libm_alias_ldouble.
22409 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
22410 <libm-alias-ldouble.h>.
22411 (modfl): Define using libm_alias_ldouble.
22412 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
22413 <libm-alias-ldouble.h>.
22414 (nearbyintl): Define using libm_alias_ldouble.
22415 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
22416 <libm-alias-ldouble.h>.
22417 (nextafterl): Define using libm_alias_ldouble.
22418 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
22419 <libm-alias-ldouble.h>.
22420 (nextupl): Define using libm_alias_ldouble.
22421 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
22422 <libm-alias-ldouble.h>.
22423 (remquol): Define using libm_alias_ldouble.
22424 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
22425 <libm-alias-ldouble.h>.
22426 (rintl): Define using libm_alias_ldouble.
22427 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
22428 <libm-alias-ldouble.h>.
22429 (roundevenl): Define using libm_alias_ldouble.
22430 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
22431 <libm-alias-ldouble.h>.
22432 (roundl): Define using libm_alias_ldouble.
22433 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
22434 using libm_alias_ldouble.
22435 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
22436 <libm-alias-ldouble.h>.
22437 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
22438 Define using libm_alias_ldouble.
22439 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
22440 <libm-alias-ldouble.h>.
22441 (sincosl): Define using libm_alias_ldouble.
22442 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
22443 <libm-alias-ldouble.h>.
22444 (sinl): Define using libm_alias_ldouble.
22445 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
22446 <libm-alias-ldouble.h>.
22447 (tanhl): Define using libm_alias_ldouble.
22448 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
22449 <libm-alias-ldouble.h>.
22450 (tanl): Define using libm_alias_ldouble.
22451 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
22452 <libm-alias-ldouble.h>.
22453 (totalorderl): Define using libm_alias_ldouble.
22454 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
22455 <libm-alias-ldouble.h>.
22456 (totalordermagl): Define using libm_alias_ldouble.
22457 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
22458 <libm-alias-ldouble.h>.
22459 (truncl): Define using libm_alias_ldouble.
22460 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
22461 libm_alias_ldouble.
22462 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
22463 libm_alias_ldouble.
22464 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
22465 <libm-alias-ldouble.h>.
22466 (weak_alias): Do not undefine and redefine.
22467 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
22468 (copysignl): Define with long_double_symbol only if [IS_IN
22469 (libc)].
22470 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
22471 <libm-alias-ldouble.h>.
22472 (weak_alias): Do not undefine and redefine.
22473 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
22474 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
22475 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
22476 <libm-alias-ldouble.h>.
22477 (weak_alias): Do not undefine and redefine.
22478 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
22479 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
22480 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
22481 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
22482 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
22483 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
22484 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
22485 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
22486 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
22487 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
22488 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
22489 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
22490 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
22491 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
22492 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
22493 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
22494 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
22495 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
22496 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
22497 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
22498 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
22499 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
22500 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
22501 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
22502 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
22503 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
22504
22505 2017-10-06 Carlos O'Donell <carlos@redhat.com>
22506
22507 [BZ #22111]
22508 * malloc/malloc.c (tcache_shutting_down): Use bool type.
22509 (tcache_thread_freeres): Set tcache_shutting_down before
22510 freeing the tcache.
22511 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
22512 * malloc/tst-malloc-tcache-leak.c: New file.
22513
22514 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
22515
22516 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
22517 back to powerpc32 file.
22518 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
22519 (memrchr): Add __memrchr_power8 to ifunc list.
22520 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
22521 extra bytes for unaligned inputs.
22522
22523 2017-10-06 Joseph Myers <joseph@codesourcery.com>
22524
22525 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
22526 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
22527 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
22528 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
22529 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
22530
22531 2017-10-05 Joseph Myers <joseph@codesourcery.com>
22532
22533 * sysdeps/arm/libm-test-ulps: Update.
22534
22535 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
22536 <libm-alias-ldouble.h>.
22537 (asinhl): Define using libm_alias_ldouble.
22538 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
22539 <libm-alias-ldouble.h>.
22540 (cbrtl): Define using libm_alias_ldouble.
22541 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
22542 <libm-alias-ldouble.h>.
22543 (copysignl): Define using libm_alias_ldouble.
22544 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
22545 <libm-alias-ldouble.h>.
22546 (cosl): Define using libm_alias_ldouble.
22547 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
22548 <libm-alias-ldouble.h>.
22549 (erfl): Define using libm_alias_ldouble.
22550 (erfcl): Likewise.
22551 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
22552 <libm-alias-ldouble.h>.
22553 (fmal): Define using libm_alias_ldouble.
22554 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
22555 <libm-alias-ldouble.h>.
22556 (frexpl): Define using libm_alias_ldouble.
22557 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
22558 libm_alias_ldouble.
22559 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
22560 <libm-alias-ldouble.h>.
22561 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
22562 libm_alias_ldouble.
22563 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
22564 <libm-alias-ldouble.h>.
22565 (getpayloadl): Define using libm_alias_ldouble.
22566 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
22567 <libm-alias-ldouble.h>.
22568 (llrintl): Define using libm_alias_ldouble.
22569 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
22570 <libm-alias-ldouble.h>.
22571 (llroundl): Define using libm_alias_ldouble.
22572 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
22573 <libm-alias-ldouble.h>.
22574 (lrintl): Define using libm_alias_ldouble.
22575 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
22576 <libm-alias-ldouble.h>.
22577 (lroundl): Define using libm_alias_ldouble.
22578 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
22579 <libm-alias-ldouble.h>.
22580 (modfl): Define using libm_alias_ldouble.
22581 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
22582 <libm-alias-ldouble.h>.
22583 (nextupl): Define using libm_alias_ldouble.
22584 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
22585 <libm-alias-ldouble.h>.
22586 (remquol): Define using libm_alias_ldouble.
22587 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
22588 <libm-alias-ldouble.h>.
22589 (roundevenl): Define using libm_alias_ldouble.
22590 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
22591 <libm-alias-ldouble.h>.
22592 (roundl): Define using libm_alias_ldouble.
22593 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
22594 using libm_alias_ldouble.
22595 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
22596 <libm-alias-ldouble.h>.
22597 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
22598 <libm-alias-ldouble.h>.
22599 (setpayloadsigl): Define using libm_alias_ldouble.
22600 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
22601 <libm-alias-ldouble.h>.
22602 (sincosl): Define using libm_alias_ldouble.
22603 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
22604 <libm-alias-ldouble.h>.
22605 (sinl): Define using libm_alias_ldouble.
22606 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
22607 <libm-alias-ldouble.h>.
22608 (tanhl): Define using libm_alias_ldouble.
22609 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
22610 <libm-alias-ldouble.h>.
22611 (tanl): Define using libm_alias_ldouble.
22612 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
22613 <libm-alias-ldouble.h>.
22614 (totalorderl): Define using libm_alias_ldouble.
22615 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
22616 <libm-alias-ldouble.h>.
22617 (totalordermagl): Define using libm_alias_ldouble.
22618 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
22619 libm_alias_ldouble.
22620 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
22621 libm_alias_ldouble.
22622
22623 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
22624
22625 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
22626 memmove_falkor.
22627 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
22628 (__libc_ifunc_impl_list): Likewise.
22629 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
22630 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
22631
22632 * benchtests/bench-memmove-walk.c: New file.
22633 * benchtests/Makefile (string-benchset): Add it.
22634
22635 * benchtests/bench-memset-walk.c: New file.
22636 * benchtests/Makefile (string-benchset): Add it.
22637
22638 * benchtests/bench-memcpy-walk.c: New file.
22639 * benchtests/Makefile (string-benchset): Add it.
22640
22641 2017-10-05 Florian Weimer <fweimer@redhat.com>
22642
22643 nscd: Eliminate compilation time dependency in the build output.
22644 * nscd/nscd_stat.c (STATDATA_VERSION)
22645 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
22646 (STATDATA_VERSION_FULL): New macro definitions.
22647 (compilation): Remove.
22648 (struct statdata): Adjust version member.
22649 (send_stats): Set version from STATDATA_VERSION_FULL.
22650 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
22651
22652 2017-10-05 Joseph Myers <joseph@codesourcery.com>
22653
22654 * configure.ac (--enable-add-ons): Remove option.
22655 (machine): Do not mention add-ons in comment.
22656 (LIBC_PRECONFIGURE): Likewise.
22657 (add_ons): Remove variable and sanity checks and logic to locate
22658 add-ons.
22659 (add_ons_automatic): Remove variable.
22660 (configured_add_ons): Likewise.
22661 (add_ons_sfx): Likewise.
22662 (add_ons_pfx): Likewise.
22663 (add_on_subdirs): Likewise.
22664 (sysnames_add_ons): Likewise. Remove loop over add-ons and
22665 consideration of add-ons in Implies handling.
22666 (sysdeps_add_ons): Likewise.
22667 * configure: Regenerated.
22668 * libidn/configure.ac: Remove.
22669 * libidn/configure: Likewise.
22670 * sysdeps/unix/inet/configure.ac: New file.
22671 * sysdeps/unix/inet/configure: New generated file.
22672 * sysdeps/unix/inet/Subdirs: Add libidn.
22673 * Makeconfig (sysdeps-srcdirs): Remove variable.
22674 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
22675 ($(common-objpfx)config.status): Do not depend on add-on files.
22676 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
22677 comment.
22678 (all-subdirs): Do not include $(add-on-subdirs).
22679 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
22680 * config.make.in (add-ons): Remove variable.
22681 (add-on-subdirs): Likewise.
22682 (sysdeps-add-ons): Likewise.
22683 * manual/Makefile (add-chapters): Remove.
22684 ($(objpfx)texis): Do not depend on $(add-chapters).
22685 (nonexamples): Do not handle $(add-chapters).
22686 (examples): Do not handle $(add-ons).
22687 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
22688 libc-texinfo.sh.
22689 * manual/install.texi (Installation): Do not mention add-ons.
22690 (--enable-add-ons): Do not document configure option.
22691 * INSTALL: Regenerated.
22692 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
22693 * manual/maint.texi (Hierarchy Conventions): Do not mention
22694 add-ons.
22695 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
22696 --enable-add-ons.
22697 * scripts/gen-sorted.awk: Do not handle Subdirs files from
22698 add-ons.
22699 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
22700 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
22701
22702 2017-10-05 Andreas Schwab <schwab@suse.de>
22703
22704 [BZ #15142]
22705 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
22706 (_IO_flush_all_lockp): Always lock list_all_lock.
22707 (_IO_flush_all_linebuffered): Likewise.
22708 (_IO_unbuffer_all): Likewise.
22709
22710 2017-10-05 Florian Weimer <fweimer@redhat.com>
22711
22712 [BZ #15436]
22713 Do not flush stdio streams on abort.
22714 * stdlib/abort.c (fflush): Remove macro definition.
22715 (abort): Remove stages related to stdio flushing.
22716
22717 2017-10-05 Florian Weimer <fweimer@redhat.com>
22718
22719 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
22720
22721 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
22722
22723 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
22724
22725 2017-10-05 Florian Weimer <fweimer@redhat.com>
22726
22727 * support/support_format_hostent.c (support_format_hostent): Add
22728 more error information for NETDB_INTERNAL.
22729
22730 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
22731
22732 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
22733 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
22734 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
22735 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
22736 AC_DEFINE if multi-arch is enabled.
22737 * sysdeps/i386/configure: Regenerated.
22738
22739 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
22740
22741 * Makeconfig (+link-static-before-libc): Use
22742 $(DEFAULT-LDFLAGS-$(@F)).
22743 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
22744 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
22745 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
22746
22747 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
22748
22749 * elf/Makefile (tests): Add tst-main1.
22750 (modules-names): Add tst-main1mod.
22751 ($(objpfx)tst-main1): New.
22752 (CRT-tst-main1): Likewise.
22753 (LDFLAGS-tst-main1): Likewise.
22754 (LDLIBS-tst-main1): Likewise.
22755 (tst-main1mod.so-no-z-defs): Likewise.
22756 * elf/tst-main1.c: New file.
22757 * elf/tst-main1mod.c: Likewise.
22758
22759 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
22760
22761 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
22762
22763 2017-10-04 Joseph Myers <joseph@codesourcery.com>
22764
22765 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
22766 (fma): Define using libm_alias_double.
22767 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
22768 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
22769 <math_ldbl_opt.h>.
22770 (fmal): Do not define as compat symbol here.
22771 * sysdeps/alpha/fpu/s_fma.c: New file.
22772
22773 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
22774
22775 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
22776
22777 2017-10-04 Joseph Myers <joseph@codesourcery.com>
22778
22779 [BZ #22229]
22780 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
22781 <math_ldbl_opt.h>
22782 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
22783 and libc.
22784 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
22785 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
22786 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
22787 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
22788 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
22789 Include <math_ldbl_opt.h>
22790 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
22791 and libc.
22792 (compat_symbol): Undefine and redefine.
22793 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
22794 <math_ldbl_opt.h>
22795 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
22796 (compat_symbol): Undefine and redefine.
22797 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
22798 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
22799 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
22800 GLIBC_2_1 for libm.
22801 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
22802 GLIBC_2.0 copysignl symbol.
22803 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
22804 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
22805
22806 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
22807
22808 2017-10-04 Florian Weimer <fweimer@redhat.com>
22809
22810 * scripts/check-local-headers.sh: Ignore nspr4 header file
22811 directory in addition to nspr.
22812
22813 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
22814
22815 [BZ #17956]
22816 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
22817 * configure: Regenerate.
22818 * crypt/Makefile (nss-cpp-flags): New variable.
22819 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
22820 (CPPFLAGS-md5-crypt.c): Use it.
22821 * scripts/check-local-headers.sh: Ignore nspr header file
22822 directory.
22823
22824 2017-10-04 Andreas Schwab <schwab@suse.de>
22825
22826 * nis/Makefile (services): Remove compat.
22827 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
22828 ($(objpfx)libnss_compat.so): Remove rule.
22829 * nis/Versions (libnss_compat): Remove.
22830 * nss/Makefile (services): Add compat.
22831 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
22832 * nss/Versions (libnss_compat): Define.
22833 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
22834 Don't include <rpc/types.h>. Replace bool_t by bool.
22835 * nss/nss_compat/compat-initgroups.c: Likewise.
22836 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
22837 instead of <rpcsrv/ypclnt.h>.
22838 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
22839 yp_get_default_domain.
22840 * nss/nss_compat/compat-pwd.c: Likewise.
22841 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
22842 yp_get_default_domain.
22843 * nss/nss_compat/nisdomain.c: New file.
22844 * nss/nss_compat/nisdomain.h: Likewise.
22845
22846 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
22847
22848 [BZ #22244]
22849 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
22850 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
22851
22852 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
22853
22854 [BZ #22243]
22855 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
22856 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
22857
22858 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
22859
22860 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
22861 "movl main@GOTOFF(%ebx), %eax".
22862
22863 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
22864
22865 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
22866 allow undefined _DYNAMIC in PIE libc.a.
22867 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
22868 Likewse.
22869
22870 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
22871
22872 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
22873 check _DYNAMIC.
22874
22875 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
22876
22877 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
22878 check _DYNAMIC.
22879
22880 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
22881
22882 * math/test-math-iscanonical.cc (error): Replace bool with int.
22883
22884 2017-10-03 Joseph Myers <joseph@codesourcery.com>
22885
22886 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
22887 (modf): Define using libm_alias_double, only if [!__modf].
22888 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
22889 <libm-alias-double.h>.
22890 (modf): Define using libm_alias_double, only if [!__modf].
22891 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
22892 compat symbol here.
22893 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
22894 (weak_alias): Do not undefine and redefine.
22895 (strong_alias): Likewise.
22896 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
22897 (weak_alias): Likewise.
22898 (strong_alias): Likewise.
22899
22900 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
22901 (logb): Define using libm_alias_double, only if [!__logb].
22902 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
22903 <libm-alias-double.h>.
22904 (logb): Define using libm_alias_double, only if [!__logb].
22905 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
22906 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
22907 (weak_alias): Do not undefine and redefine.
22908 (strong_alias): Likewise.
22909 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
22910 (weak_alias): Likewise.
22911 (strong_alias): Likewise.
22912
22913 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
22914
22915 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
22916 Check SHARED instead PIC.
22917
22918 2017-10-03 Joseph Myers <joseph@codesourcery.com>
22919
22920 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
22921 [!__fmaf] (fmaf): Define using libm_alias_float.
22922
22923 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
22924 (frexp): Define using libm_alias_double.
22925 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
22926 <libm-alias-double.h>.
22927 (frexp): Define using libm_alias_double.
22928 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
22929 compat symbol here.
22930
22931 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
22932
22933 [BZ #22235]
22934 * math/math.h: Trivial fix for unbalanced parentheses in comment.
22935 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
22936 (CFLAGS-test-math-iscanonical.cc): New variable.
22937 * math/test-math-iscanonical.cc: New file.
22938 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
22939 Provide a C++ implementation based on function overloading,
22940 rather than using __MATH_TG, which uses C-only builtins.
22941 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
22942 Likewise.
22943 * sysdeps/powerpc/powerpc64le/Makefile
22944 (CFLAGS-test-math-iscanonical.cc): New variable.
22945
22946 2017-10-03 Joseph Myers <joseph@codesourcery.com>
22947
22948 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
22949 (ceil): Define using libm_alias_double.
22950 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
22951 (floor): Define using libm_alias_double.
22952 * sysdeps/ieee754/dbl-64/s_llround.c: Include
22953 <libm-alias-double.h>.
22954 (llround): Define using libm_alias_double.
22955 * sysdeps/ieee754/dbl-64/s_lround.c: Include
22956 <libm-alias-double.h>.
22957 (lround): Define using libm_alias_double.
22958 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
22959 <libm-alias-double.h>.
22960 (nearbyint): Define using libm_alias_double.
22961 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
22962 <libm-alias-double.h>.
22963 (remquo): Define using libm_alias_double.
22964 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
22965 (rint): Define using libm_alias_double.
22966 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
22967 (round): Define using libm_alias_double.
22968 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
22969 (trunc): Define using libm_alias_double.
22970 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
22971 <libm-alias-double.h>.
22972 (ceil): Define using libm_alias_double.
22973 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
22974 <libm-alias-double.h>.
22975 (floor): Define using libm_alias_double.
22976 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
22977 <libm-alias-double.h>.
22978 (llround): Define using libm_alias_double.
22979 [_LP64] (lround): Likewise.
22980 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
22981 <libm-alias-double.h>.
22982 [!_LP64] (lround): Define using libm_alias_double.
22983 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
22984 <libm-alias-double.h>.
22985 (nearbyint): Define using libm_alias_double.
22986 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
22987 <libm-alias-double.h>.
22988 (remquo): Define using libm_alias_double.
22989 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
22990 <libm-alias-double.h>.
22991 (rint): Define using libm_alias_double.
22992 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
22993 <libm-alias-double.h>.
22994 (round): Define using libm_alias_double.
22995 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
22996 <libm-alias-double.h>.
22997 (trunc): Define using libm_alias_double.
22998 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
22999 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
23000 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
23001 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
23002 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
23003 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
23004 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
23005 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
23006 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
23007
23008 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23009
23010 * math/w_remainder.c: New file.
23011 * math/w_remainderf.c: New file.
23012 * math/w_remainderl.c: New file.
23013
23014 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
23015
23016 * elf/rtld.c (BOOTSTRAP_MAP): New.
23017 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
23018 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
23019 Likewise.
23020 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
23021 Likewise.
23022 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
23023 Likewise.
23024
23025 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
23026
23027 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
23028 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
23029 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
23030 rtld_hidden_data_ver): Define to empty.
23031 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
23032 __assert_perror_fail): Likewise.
23033 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
23034 (__rewinddir): Likewise.
23035 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
23036 (__profile_frequency): Likewise.
23037 * include/setjmp.h (__sigsetjmp): Likewise.
23038 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
23039 __libc_sigaction): Likewise.
23040 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
23041 not set hidden attribute.
23042 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
23043 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
23044 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
23045 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
23046 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
23047 __fxstatat64): Likewise.
23048 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
23049 (__uname): Likewise.
23050 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
23051 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
23052 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
23053 (NO_RTLD_HIDDEN): Set.
23054 * sysdeps/mach/hurd/configure: Refresh.
23055 * config.h.in: Refresh.
23056
23057 2017-10-02 Joseph Myers <joseph@codesourcery.com>
23058
23059 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
23060 (atan): Define using libm_alias_double.
23061 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
23062 (tan): Define using libm_alias_double.
23063 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
23064 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
23065
23066 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
23067 define as weak alias of __atan. Do not define any aliases if
23068 [__atan].
23069 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
23070 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
23071 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
23072 as weak alias of __tan. Do not define any aliases if [__tan].
23073 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
23074 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
23075 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
23076 __atan.
23077 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
23078 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
23079 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
23080 and define as weak alias of __atan.
23081 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
23082 __atan.
23083 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
23084 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
23085 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
23086 define as weak alias of __tan.
23087
23088 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
23089
23090 * math/w_lgamma.c: New file.
23091 * math/w_lgammaf.c: New file.
23092 * math/w_lgammal.c: New file.
23093
23094 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
23095
23096 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
23097 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
23098 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
23099 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
23100 * sysdeps/ieee754/flt-32/w_logf.c: New file.
23101 * sysdeps/ieee754/flt-32/w_powf.c: New file.
23102 * sysdeps/i386/fpu/w_log2f.c: New file.
23103 * sysdeps/i386/fpu/w_logf.c: New file.
23104 * sysdeps/i386/fpu/w_powf.c: New file.
23105 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
23106 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
23107 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
23108
23109 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
23110 H.J. Lu <hongjiu.lu@intel.com>
23111
23112 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
23113 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
23114 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
23115 * sysdeps/ieee754/flt-32/w_expf.c: New file.
23116 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
23117 the new expf code.
23118 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
23119 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
23120 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
23121 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
23122 * sysdeps/i386/fpu/w_exp2f.c: New file.
23123 * sysdeps/i386/fpu/w_expf.c: New file.
23124 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
23125 * sysdeps/x86_64/fpu/w_expf.c: New file.
23126
23127 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
23128
23129 * math/Versions (logf): New libm symbol at GLIBC_2.27.
23130 (log2f): Likewise.
23131 (powf): Likewise.
23132 * math/w_log2f.c: New file.
23133 * math/w_logf.c: New file.
23134 * math/w_powf.c: New file.
23135 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
23136 * math/w_logf_compat.c (__logf_compat): Likewise.
23137 * math/w_powf_compat.c (__powf_compat): Likewise.
23138 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
23139 * sysdeps/ia64/fpu/e_logf.S: Likewise.
23140 * sysdeps/ia64/fpu/e_powf.S: Likewise.
23141 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
23142 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
23143 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
23144 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
23145 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
23146 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
23147 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
23148 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
23149 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
23150 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
23151 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
23152 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
23153 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
23154 Likewise.
23155 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
23156 Likewise.
23157 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
23158 Likewise.
23159 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
23160 Likewise.
23161 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
23162 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
23163 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
23164 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
23165 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
23166 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
23167 Likewise.
23168 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
23169 Likewise.
23170 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
23171 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
23172 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
23173
23174 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23175
23176 * sysdeps/powerpc/powerpc64/multiarch/Makefile
23177 (sysdep_routines): Add memrchr_power8.
23178 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
23179 (memrchr): Add __memrchr_power8 to list of memrchr functions.
23180 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
23181 New file.
23182 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
23183 (memrchr): Add __memrchr_power8 to ifunc list.
23184 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
23185
23186 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23187
23188 [BZ #18822]
23189 * sysdeps/unix/sysv/linux/posix_fadvise64.c
23190 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
23191 libc_hidden_def.
23192 * sysdeps/unix/sysv/linux/posix_fallocate64.c
23193 (__posix_fallocate64_l64): Likewise.
23194
23195 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23196
23197 [BZ #18822]
23198 * sysdeps/unix/sysv/linux/sched_setaffinity.c
23199 (__sched_setaffinity_new): Add libc_hidden_proto and
23200 libc_hidden_def.
23201
23202 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23203
23204 [BZ #18822]
23205 * include/glob.h (__glob64): Add libc_hidden_proto.
23206 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
23207 libc_hidden_def.
23208
23209 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23210
23211 [BZ #18822]
23212 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
23213 attribute_hidden.
23214
23215 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23216
23217 [BZ #18822]
23218 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
23219
23220 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23221
23222 [BZ #18822]
23223 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
23224 libc_hidden_def.
23225
23226 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23227
23228 [BZ #18822]
23229 * csu/version.c (__libc_print_version): Add attribute_hidden.
23230
23231 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23232
23233 [BZ #18822]
23234 * include/libc-internal.h (__init_misc): Add attribute_hidden.
23235
23236 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23237
23238 [BZ #18822]
23239 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
23240
23241 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23242
23243 [BZ #18822]
23244 * nscd/nscd_helper.c (__nis_hash): New prototype.
23245
23246 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23247
23248 [BZ #18822]
23249 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
23250 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
23251 libc_hidden_def.
23252 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
23253 * termios/tcgetattr.c (__tcgetattr): Likewise.
23254
23255 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23256
23257 [BZ #18822]
23258 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
23259 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
23260 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
23261 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
23262 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
23263
23264 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23265
23266 [BZ #18822]
23267 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
23268
23269 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23270
23271 [BZ #18822]
23272 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
23273 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
23274
23275 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23276
23277 [BZ #18822]
23278 * intl/hash-string.h (__hash_string): Add attribute_hidden.
23279
23280 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23281
23282 [BZ #18822]
23283 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
23284 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
23285
23286 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23287
23288 [BZ #18822]
23289 * include/ifreq.h: New file.
23290 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
23291 (__ifreq): Likewise.
23292 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
23293 (__ifreq): Likewise.
23294
23295 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23296
23297 [BZ #18822]
23298 * include/idna.h: New file.
23299 * inet/getnameinfo.c: Include <idna.h> instead of
23300 <libidn/idna.h>.
23301 (__idna_to_unicode_lzlz): Removed.
23302 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
23303 <libidn/idna.h>.
23304 (__idna_to_ascii_lz): Removed.
23305 (__idna_to_unicode_lzlz): Likewise.
23306
23307 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23308
23309 [BZ #18822]
23310 * include/plural-exp.h: New file.
23311 * intl/plural-exp.c: Include <plural-exp.h> instead of
23312 "plural-exp.h".
23313
23314 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23315
23316 [BZ #18822]
23317 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
23318 "getsourcefilter.h".
23319 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
23320 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
23321 "getsourcefilter.h".
23322 (__get_sol): Removed.
23323
23324 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23325
23326 [BZ #18822]
23327 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
23328 to ...
23329 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
23330
23331 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23332
23333 [BZ #18822]
23334 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
23335 attribute_hidden.
23336
23337 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23338
23339 [BZ #18822]
23340 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
23341
23342 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23343
23344 [BZ #18822]
23345 * include/search.h (__tdestroy): Add libc_hidden_proto.
23346 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
23347
23348 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23349
23350 [BZ #18822]
23351 * include/assert.h (__assert_fail_base): Add attribute_hidden.
23352
23353 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23354
23355 [BZ #18822]
23356 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
23357 attribute_hidden.
23358
23359 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23360
23361 [BZ #18822]
23362 * include/signal.h (__kill): Add libc_hidden_proto.
23363 (__sigblock): Likewise.
23364 (__sigprocmask): Likewise.
23365 (__sigaltstack): Likewise.
23366 * signal/kill.c (__kill): Add libc_hidden_def.
23367 * signal/sigblock.c (__sigblock): Likewise.
23368 * signal/sigprocmask.c (__sigprocmask): Likewise.
23369 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
23370 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
23371 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
23372 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
23373 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
23374 Likewise.
23375 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
23376 Likewise.
23377 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
23378 (__sigprocmask): Likewise.
23379 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
23380 Likewise.
23381 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
23382 (__sigprocmask): Likewise.
23383 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
23384 Likewise.
23385
23386 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23387
23388 [BZ #18822]
23389 * include/string.h (__strsep): Add libc_hidden_proto.
23390 * string/strsep.c (__strsep): Add libc_hidden_def.
23391
23392 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23393
23394 [BZ #18822]
23395 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
23396 attribute_hidden.
23397 (__spawni): Likewise.
23398
23399 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23400
23401 [BZ #18822]
23402 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
23403 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
23404 libc_hidden_def.
23405
23406 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23407
23408 [BZ #18822]
23409 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
23410
23411 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23412
23413 [BZ #18822]
23414 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
23415 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
23416 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
23417 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
23418 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
23419 Likewise.
23420 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
23421 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
23422
23423 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23424
23425 [BZ #18822]
23426 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
23427 (__dcigettext): Likewise.
23428
23429 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23430
23431 [BZ #18822]
23432 * include/sys/sysinfo.h (__get_nprocs_conf): Add
23433 libc_hidden_proto.
23434 (__get_nprocs): Likewise.
23435 (__get_phys_pages): Likewise.
23436 (__get_avphys_pages): Likewise.
23437 (__get_child_max): Add attribute_hidden.
23438 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
23439 (__get_nprocs): Likewise.
23440 (__get_phys_pages): Likewise.
23441 (__get_avphys_pages): Likewise.
23442 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
23443 libc_hidden_def.
23444 (__get_nprocs): Likewise.
23445 (__get_phys_pages): Likewise.
23446 (__get_avphys_pages): Likewise.
23447 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
23448 libc_hidden_def.
23449 (__get_nprocs_conf): Likewise.
23450 (__get_phys_pages): Likewise.
23451 (__get_avphys_pages): Likewise.
23452
23453 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23454
23455 [BZ #18822]
23456 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
23457 attribute_hidden.
23458 (__netlink_close): Likewise.
23459 (__netlink_free_handle): Likewise.
23460 (__netlink_request): Likewise.
23461
23462 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23463
23464 [BZ #18822]
23465 * include/rpc/rpc.h (__rpc_thread_variables): Add
23466 attribute_hidden.
23467 (__rpc_thread_svc_cleanup): Likewise.
23468 (__rpc_thread_clnt_cleanup): Likewise.
23469 (__rpc_thread_key_cleanup): Likewise.
23470
23471 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23472
23473 [BZ #18822]
23474 * include/sys/uio.h (__readv): Add libc_hidden_proto.
23475 (__writev): Likewise.
23476 * misc/readv.c (__readv): Add libc_hidden_def.
23477 * misc/writev.c (__writev): Likewise.
23478 * sysdeps/posix/readv.c (__readv): Likewise.
23479 * sysdeps/posix/writev.c (__writev): Likewise.
23480 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
23481 (__readv): Likewise.
23482 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
23483 (__writev): Likewise.
23484
23485 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23486
23487 [BZ #18822]
23488 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
23489 (__regcomp): Add libc_hidden_proto.
23490 (__regexec): Likewise.
23491 (__regfree): Likewise.
23492 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
23493 (__regfree): Likewise.
23494 * posix/regexec.c (__regexec): Likewise.
23495
23496 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23497
23498 [BZ #18822]
23499 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
23500 (__getutent): Likewise.
23501 (__getutid): Likewise.
23502 (__getutline): Likewise.
23503 (__pututline): Likewise.
23504 (__getutent_r): Likewise.
23505 (__getutid_r): Likewise.
23506 (__getutline_r): Likewise.
23507 (__utmpname): Add attribute_hidden.
23508 (__setutent): Likewise.
23509 (__endutent): Likewise.
23510 * login/getutent.c (__getutent): Add libc_hidden_def.
23511 * login/getutent_r.c (__getutent_r): Likewise.
23512 (__pututline): Likewise.
23513 * login/getutid.c (__getutid): Likewise.
23514 * login/getutid_r.c (__getutid_r): Likewise.
23515 * login/getutline.c (__getutline): Likewise.
23516 * login/getutline_r.c (__getutline_r): Likewise.
23517 * login/updwtmp.c (__updwtmp): Likewise.
23518
23519 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23520
23521 [BZ #18822]
23522 * include/dirent.h (__opendir): Always add attribute_hidden.
23523 (__fdopendir): Likewise.
23524 (__closedir): Likewise.
23525 (__readdir): Likewise.
23526 (__readdir64): Add libc_hidden_proto.
23527 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
23528 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
23529 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
23530 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
23531 New alias.
23532
23533 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23534
23535 [BZ #18822]
23536 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
23537 * include/netdb.h (__gethostbyaddr_r): Likewise.
23538 (__gethostbyname_r): Likewise.
23539 (__gethostbyname2_r): Likewise.
23540 (__getnetbyaddr_r): Likewise.
23541 (__getnetbyname_r): Likewise.
23542 (__getservbyname_r): Likewise.
23543 (__getservbyport_r): Likewise.
23544 (__getprotobyname_r): Likewise.
23545 (__getprotobynumber_r): Likewise.
23546 (__getnetgrent_r): Likewise.
23547 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
23548 (__getrpcbynumber_r): Likewise.
23549 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
23550
23551 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23552
23553 [BZ #18822]
23554 * include/stdio.h (__fcloseall): Add attribute_hidden.
23555 (__getline): Likewise.
23556 (__path_search): Likewise.
23557 (__gen_tempname): Likewise.
23558 (__libc_message): Likewise.
23559 (__flockfile): Likewise.
23560 (__funlockfile): Likewise.
23561 (__fxprintf): Likewise.
23562 (__fxprintf_nocancel): Likewise.
23563
23564 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23565
23566 [BZ #18822]
23567 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
23568 (__sgetsgent_r): Likewise.
23569
23570 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23571
23572 [BZ #18822]
23573 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
23574 (__statfs64): Likewise.
23575 (__fstatfs64): Likewise.
23576 * include/sys/statvfs.h (__statvfs64): Likewise.
23577 (__fstatvfs64): Likewise.
23578 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
23579 (__statfs_filesize_max): Likewise.
23580 (__statfs_symlinks): Likewise.
23581 (__statfs_chown_restricted): Likewise.
23582
23583 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23584
23585 [BZ #18822]
23586 * include/time.h (__tzstring): Add attribute_hidden.
23587 (__tzfile_read): Likewise.
23588 (__tzfile_compute): Likewise.
23589 (__tzfile_default): Likewise.
23590 (__tzset_parse_tz): Likewise.
23591 (__offtime): Likewise.
23592 (__asctime_r): Likewise.
23593 (__tzset): Likewise.
23594 (__tz_convert): Likewise.
23595 (__getdate_r): Likewise.
23596 (__getclktck): Likewise.
23597
23598 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23599
23600 [BZ #18822]
23601 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
23602 (__nscd_unmap): Likewise.
23603 (__nscd_cache_search): Likewise.
23604 (__nscd_get_nl_timestamp): Likewise.
23605 (__nscd_getpwnam_r): Likewise.
23606 (__nscd_getpwuid_r): Likewise.
23607 (__nscd_getgrnam_r): Likewise.
23608 (__nscd_getgrgid_r): Likewise.
23609 (__nscd_gethostbyname_r): Likewise.
23610 (__nscd_gethostbyname2_r): Likewise.
23611 (__nscd_gethostbyaddr_r): Likewise.
23612 (__nscd_getai): Likewise.
23613 (__nscd_getgrouplist): Likewise.
23614 (__nscd_getservbyname_r): Likewise.
23615 (__nscd_getservbyport_r): Likewise.
23616 (__nscd_innetgr): Likewise.
23617 (__nscd_setnetgrent): Likewise.
23618
23619 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23620
23621 [BZ #18822]
23622 * include/gmp.h: Declare internal functions only if _ISOMAC is
23623 undefined.
23624 (__mpn_extract_double): Add attribute_hidden.
23625 (__mpn_extract_long_double): Likewise.
23626 (__mpn_extract_float128): Likewise.
23627 (__mpn_construct_float): Likewise.
23628 (__mpn_construct_double): Likewise.
23629 (__mpn_construct_long_double): Likewise.
23630 (__mpn_construct_float128): Likewise.
23631 (mpn_add_1): Likewise.
23632 (mpn_addmul_1): Likewise.
23633 (mpn_add_n): Likewise.
23634 (mpn_cmp): Likewise.
23635 (mpn_divrem): Likewise.
23636 (mpn_lshift): Likewise.
23637 (mpn_mul): Likewise.
23638 (mpn_mul_1): Likewise.
23639 (mpn_rshift): Likewise.
23640 (mpn_sub_1): Likewise.
23641 (mpn_submul_1): Likewise.
23642 (mpn_sub_n): Likewise.
23643
23644 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23645
23646 [BZ #18822]
23647 * include/wchar.h (__wcsnlen): Add attribute_hidden.
23648 (__wcscat): Likewise.
23649 (__btowc): Likewise.
23650 (__wcrtomb): Likewise.
23651 (__mbsrtowcs): Likewise.
23652 (__wcsrtombs): Likewise.
23653 (__mbsnrtowcs): Likewise.
23654 (__wcsnrtombs): Likewise.
23655 (__wcsncpy): Likewise.
23656 (__wcpncpy): Likewise.
23657 (__wmemcpy): Likewise.
23658 (__wmempcpy): Likewise.
23659 (__wmemmove): Likewise.
23660 (__wcschrnul): Likewise.
23661 (__vfwscanf): Likewise.
23662 (__vswprintf): Likewise.
23663 (__fwprintf): Likewise.
23664 (__vfwprintf): Likewise.
23665
23666 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23667
23668 [BZ #18822]
23669 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
23670 (__getgrgid_r): Likewise.
23671 (__getgrnam_r): Likewise.
23672 * include/pwd.h (__getpwuid_r): Likewise.
23673 (__getpwnam_r): Likewise.
23674 (__fgetpwent_r): Likewise.
23675 * include/shadow.h (__getspnam_r): Likewise.
23676 (__sgetspent_r): Likewise.
23677 (__fgetspent_r): Likewise.
23678
23679 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23680
23681 [BZ #18822]
23682 * include/unistd.h (__access): Add attribute_hidden.
23683 (__lseek64): Likewise.
23684 (__libc_pread64): Likewise.
23685 (__pipe2): Likewise.
23686 (__sleep): Likewise.
23687 (__chdir): Likewise.
23688 (__fchdir): Likewise.
23689 (__getcwd): Likewise.
23690 (__rmdir): Likewise.
23691 (__execvpe): Likewise.
23692 (__execve): Likewise.
23693 (__setsid): Likewise.
23694 (__getuid): Likewise.
23695 (__geteuid): Likewise.
23696 (__getgid): Likewise.
23697 (__getegid): Likewise.
23698 (__getgroups): Likewise.
23699 (__group_member): Likewise.
23700 (__ttyname_r): Likewise.
23701 (__isatty): Likewise.
23702 (__readlink): Likewise.
23703 (__unlink): Likewise.
23704 (__gethostname): Likewise.
23705 (__profil): Likewise.
23706 (__getdtablesize): Likewise.
23707 (__brk): Likewise.
23708 (__ftruncate): Likewise.
23709 (__ftruncate64): Likewise.
23710
23711 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23712
23713 [BZ #18822]
23714 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
23715 * argp/argp-fs-xinl.c: Likewise.
23716 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
23717 * argp/argp-parse.c: Include <argp.h>.
23718 * argp/argp-xinl.c: Likewise.
23719 * include/argp-fmtstream.h: New file.
23720 * include/argp.h (__argp_error): Add attribute_hidden.
23721 (__argp_failure): Likewise.
23722 (__argp_input): Likewise.
23723 (__argp_state_help): Likewise.
23724
23725 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23726
23727 [BZ #18822]
23728 * include/wchar.h (____wcstof_l_internal): New prototype.
23729 (____wcstod_l_internal): Likewise.
23730 (____wcstold_l_internal): Likewise.
23731 (____wcstol_l_internal): Likewise.
23732 (____wcstoul_l_internal): Likewise.
23733 (____wcstoll_l_internal): Likewise.
23734 (____wcstoull_l_internal): Likewise.
23735 (____wcstof128_l_internal): Likewise.
23736 * sysdeps/ieee754/float128/wcstof128.c
23737 (____wcstof128_l_internal): Removed.
23738 * sysdeps/ieee754/float128/wcstof128_l.c
23739 (____wcstof128_l_internal): Likewise.
23740 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
23741 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
23742 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
23743 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
23744 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
23745 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
23746 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
23747 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
23748 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
23749 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
23750
23751 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23752
23753 [BZ #18822]
23754 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
23755 instead of <sys/statvfs.h>.
23756 (__internal_statvfs): Removed.
23757 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
23758 instead of <sys/statvfs.h>.
23759 (__internal_statvfs64): Removed.
23760 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
23761 "internal_statvfs.h" instead of <sys/statvfs.h>.
23762 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
23763 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
23764 instead of <sys/statvfs.h>.
23765 (__internal_statvfs): Removed.
23766 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
23767 instead of <sys/statvfs.h>.
23768 (__internal_statvfs64): Removed.
23769
23770 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23771
23772 [BZ #18822]
23773 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
23774 (__gconv_close): Likewise.
23775 (__gconv): Likewise.
23776 (__gconv_find_transform): Likewise.
23777 (__gconv_lookup_cache): Likewise.
23778 (__gconv_compare_alias_cache): Likewise.
23779 (__gconv_load_cache): Likewise.
23780 (__gconv_get_path): Likewise.
23781 (__gconv_close_transform): Likewise.
23782 (__gconv_release_cache): Likewise.
23783 (__gconv_find_shlib): Likewise.
23784 (__gconv_release_shlib): Likewise.
23785 (__gconv_get_builtin_trans): Likewise.
23786 (__gconv_compare_alias): Likewise.
23787 * include/dlfcn.h (_dlerror_run): Likewise.
23788 * include/stdio.h (__fortify_fail_abort): Likewise.
23789 * include/time.h (__tz_compute): Likewise.
23790 (__strptime_internal): Likewise.
23791 * intl/gettextP.h (_nl_find_domain): Likewise.
23792 (_nl_load_domain): Likewise.
23793 (_nl_find_msg): Likewise.
23794 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
23795 (EXTRACT_PLURAL_EXPRESSION): Likewise.
23796 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
23797 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
23798 (__gai_find_request): Likewise.
23799 (__gai_remove_request): Likewise.
23800 (__gai_notify): Likewise.
23801 (__gai_notify_only): Likewise.
23802 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
23803 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
23804 (_dl_non_dynamic_init): Likewise.
23805 (_dl_aux_init): Likewise.
23806 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
23807 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
23808 Likewise.
23809 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
23810 (__wcsmbs_clone_conv): Likewise.
23811 (__wcsmbs_named_conv): Likewise.
23812
23813 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23814
23815 [BZ #18822]
23816 * include/stdlib.h (__random): Add attribute_hidden.
23817 (__random_r): Likewise.
23818 (__srandom_r): Likewise.
23819 (__initstate_r): Likewise.
23820 (__setstate_r): Likewise.
23821 (__erand48_r): Likewise.
23822 (__nrand48_r): Likewise.
23823 (__jrand48_r): Likewise.
23824 (__srand48_r): Likewise.
23825 (__seed48_r): Likewise.
23826 (__lcong48_r): Likewise.
23827 (__drand48_iterate): Likewise.
23828 (__setenv): Likewise.
23829 (__unsetenv): Likewise.
23830 (__clearenv): Likewise.
23831 (__ptsname_r): Likewise.
23832 (__posix_openpt): Likewise.
23833 (__add_to_environ): Likewise.
23834 (__realpath): Add libc_hidden_proto.
23835 (__ecvt_r): Likewise.
23836 (__fcvt_r): Likewise.
23837 (__qecvt_r): Likewise.
23838 (__qfcvt_r): Likewise.
23839 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
23840 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
23841
23842 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
23843
23844 [BZ #18822]
23845 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
23846 * include/time.h (__mktime_internal): Likewise.
23847 * libio/iolibio.h (__fopen_internal): Likewise.
23848
23849 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
23850
23851 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
23852 pointer in frame.
23853 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
23854 Correct offset used to restore PIC register.
23855
23856 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
23857
23858 [BZ libc/22165]
23859 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
23860 code to load address of __getcontext_ret when generating PIC code.
23861
23862 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
23863
23864 * elf/Makefile (tests-static-internal): Add
23865 tst-tls1-static-non-pie.
23866 (LDFLAGS-tst-tls1-static-non-pie): New.
23867 * elf/tst-tls1-static-non-pie.c: New file.
23868
23869 2017-09-29 Joseph Myers <joseph@codesourcery.com>
23870
23871 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
23872 (asinh): Define using libm_alias_double.
23873 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
23874 (cbrt): Define using libm_alias_double.
23875 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
23876 <libm-alias-double.h>.
23877 (copysign): Define using libm_alias_double.
23878 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
23879 (erf): Define using libm_alias_double.
23880 (erfc): Likewise.
23881 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
23882 (expm1): Define using libm_alias_double.
23883 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
23884 (fabs): Define using libm_alias_double.
23885 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
23886 libm_alias_double.
23887 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
23888 <libm-alias-double.h>.
23889 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
23890 libm_alias_double.
23891 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
23892 <libm-alias-double.h>.
23893 (getpayload): Define using libm_alias_double.
23894 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
23895 <libm-alias-double.h>.
23896 (llrint): Define using libm_alias_double.
23897 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
23898 (lrint): Define using libm_alias_double.
23899 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
23900 <libm-alias-double.h>.
23901 (nextup): Define using libm_alias_double.
23902 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
23903 <libm-alias-double.h>.
23904 (roundeven): Define using libm_alias_double.
23905 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
23906 libm_alias_double.
23907 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
23908 <libm-alias-double.h>.
23909 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
23910 using libm_alias_double.
23911 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
23912 (cos): Define using libm_alias_double.
23913 (sin): Likewise.
23914 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
23915 <libm-alias-double.h>.
23916 (sincos): Define using libm_alias_double.
23917 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
23918 (tanh): Define using libm_alias_double.
23919 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
23920 <libm-alias-double.h>.
23921 (totalorder): Define using libm_alias_double.
23922 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
23923 <libm-alias-double.h>.
23924 (totalordermag): Define using libm_alias_double.
23925 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
23926 libm_alias_double.
23927 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
23928 libm_alias_double.
23929 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
23930 <libm-alias-double.h>.
23931 (getpayload): Define using libm_alias_double.
23932 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
23933 <libm-alias-double.h>.
23934 (roundeven): Define using libm_alias_double.
23935 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
23936 <libm-alias-double.h>.
23937 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
23938 <libm-alias-double.h>.
23939 (totalorder): Define using libm_alias_double.
23940 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
23941 <libm-alias-double.h>.
23942 (totalordermag): Define using libm_alias_double.
23943 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
23944 libc compat symbol here.
23945 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
23946 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
23947 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
23948 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
23949 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
23950 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
23951 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
23952 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
23953 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
23954 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
23955
23956 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
23957
23958 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
23959 _dl_relocate_static_pie instead of _dl_start to compute load
23960 address in static PIE. Return 0 if _DYNAMIC is undefined for
23961 static executable.
23962
23963 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
23964
23965 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
23966 _DYNAMIC is undefined for static executable.
23967
23968 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
23969
23970 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
23971
23972 2017-09-29 Joseph Myers <joseph@codesourcery.com>
23973
23974 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
23975
23976 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
23977
23978 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
23979 (__ieee754_lgamma_r): Use fabs rather than __fabs.
23980 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
23981 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
23982 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
23983 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
23984 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
23985 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
23986 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
23987 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
23988 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
23989 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
23990 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
23991 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
23992 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
23993 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
23994 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
23995
23996 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
23997
23998 * math/bits/cmathcalls.h (cimag): Remove inline.
23999 (creal): Remove inline.
24000 (conj): Remove inline.
24001
24002 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
24003
24004 * math/Makefile (type-float-routines): Add e_powf_log2_data.
24005 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
24006 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
24007 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
24008 (issignalingf_inline): Likewise.
24009 (POWF_LOG2_TABLE_BITS): Likewise.
24010 (POWF_LOG2_POLY_ORDER): Likewise.
24011 (POWF_SCALE_BITS): Likewise.
24012 (POWF_SCALE): Likewise.
24013 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
24014 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
24015 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
24016
24017 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
24018
24019 * math/Makefile (type-float-routines): Add e_log2f_data.
24020 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
24021 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
24022 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
24023 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
24024 * sysdeps/i386/fpu/e_log2f_data.c: New file.
24025 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
24026 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
24027
24028 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
24029
24030 * math/Makefile (type-float-routines): Add e_logf_data.
24031 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
24032 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
24033 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
24034 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
24035 * sysdeps/i386/fpu/e_logf_data.c: New file.
24036 * sysdeps/ia64/fpu/e_logf_data.c: New file.
24037 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
24038
24039 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
24040
24041 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
24042 undefined _DYNAMIC in PIE libc.a.
24043 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
24044 Likewse.
24045
24046 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
24047
24048 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
24049 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
24050 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
24051 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
24052 (__signbit): Remove.
24053 (__signbitl): Remove.
24054 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
24055 (__signbit): Remove.
24056 (__signbitl): Remove.
24057 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
24058 (__signbit): Remove.
24059 (__signbitl): Remove.
24060 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
24061 (__signbit): Remove.
24062 (__signbitl): Remove.
24063 * sysdeps/tile/bits/mathinline.h: Delete file.
24064 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
24065 (__signbit): Remove.
24066 (__signbitl): Remove.
24067
24068 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
24069
24070 * math/math.h: Improve handling of C99 isgreater macros.
24071 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
24072 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
24073 * sysdeps/powerpc/bits/mathinline.h: Likewise.
24074 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
24075 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
24076
24077 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
24078
24079 * sysdeps/aarch64/libm-test-ulps: Update.
24080
24081 2017-09-28 Joseph Myers <joseph@codesourcery.com>
24082
24083 [BZ #22225]
24084 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
24085 math_opt_barrier on argument when doing arithmetic on it.
24086 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
24087 Likewise. Use math_force_eval not math_opt_barrier after
24088 arithmetic.
24089 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
24090 math_opt_barrier on argument when doing arithmetic on it.
24091 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
24092 Likewise.
24093
24094 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
24095
24096 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
24097 libc_hidden_def.
24098 (__freeifaddrs): Likewise.
24099
24100 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
24101
24102 * include/dirent.h (__dirfd): New declaration.
24103 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
24104 alias.
24105 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
24106 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
24107 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
24108 * include/unistd.h (__revoke): New declaration.
24109 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
24110 alias.
24111 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
24112 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
24113 revoke.
24114 * include/dirent.h (__seekdir): New declaration.
24115 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
24116 redefine as weak alias.
24117 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
24118 of seekdir.
24119 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
24120 and use libc_hidden_def on them.
24121 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
24122 them.
24123 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
24124 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
24125 instead of getifaddrs and freeifaddrs.
24126
24127 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
24128
24129 [BZ #18822]
24130 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
24131 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
24132 (__dso_handle): Remove declaration.
24133 * dlfcn/tstatexit.c (__dso_handle): Removed.
24134 (main): Don't check __dso_handle.
24135 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
24136 (main): Don't check __dso_handle.
24137 * include/dso_handle.h: New file.
24138 * malloc/mtrace.c: Include <dso_handle.h>.
24139 (mtrace): Pass __dso_handle directly.
24140 * nptl/pthread_atfork.c: Include <dso_handle.h>.
24141 (__dso_handle): Remove declaration.
24142 (__pthread_atfork): Pass __dso_handle directly.
24143 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
24144 (__dso_handle): Removed.
24145 * posix/wordexp-test.c: Include <dso_handle.h>.
24146 (__dso_handle): Remove declaration.
24147 (__app_register_atfork): Pass __dso_handle directly.
24148 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
24149 (__dso_handle): Remove declaration.
24150 (at_quick_exit): Pass __dso_handle directly.
24151 * stdlib/atexit.c: Include <dso_handle.h>.
24152 (__dso_handle): Remove declaration.
24153 (atexit): Pass __dso_handle directly.
24154 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
24155 (__dso_handle): Removed.
24156
24157 2017-09-26 Joseph Myers <joseph@codesourcery.com>
24158
24159 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
24160 using VDSO.
24161
24162 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
24163
24164 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
24165 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
24166 values to correct default value for given type.
24167
24168 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
24169
24170 [BZ #22101]
24171 * elf/Makefile (tests): Add tst-debug1.
24172 ($(objpfx)tst-debug1): New.
24173 ($(objpfx)tst-debug1.out): Likewise.
24174 ($(objpfx)tst-debug1mod1.so): Likewise.
24175 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
24176 with p_filesz == 0.
24177 * elf/tst-debug1.c: New file.
24178
24179 2017-09-26 Joseph Myers <joseph@codesourcery.com>
24180
24181 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
24182 Define using __ifunc.
24183
24184 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
24185
24186 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
24187 exp2f() values.
24188
24189 2017-09-26 Joseph Myers <joseph@codesourcery.com>
24190
24191 [BZ #22156]
24192 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
24193
24194 2017-09-26 Florian Weimer <fweimer@redhat.com>
24195
24196 * resolv/Makefile (tests-internal): Fix typo in comment.
24197
24198 2017-09-26 Florian Weimer <fweimer@redhat.com>
24199
24200 * resolv/nss_dns/dns-host.c: Fix typo in comment.
24201
24202 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24203
24204 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
24205 Use an union instead of a max_align_t array for __space,
24206 so that __space is the same size on all platforms.
24207 * malloc/scratch_buffer_grow_preserve.c
24208 (__libc_scratch_buffer_grow_preserve): Likewise.
24209
24210 [BZ #22183]
24211 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
24212 version to 2.
24213 * posix/Makefile (routines): Add glob-lstat-compat and
24214 glob64-lstat-compat.
24215 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
24216 * posix/glob-lstat-compat.c: New file.
24217 * posix/glob64-lstat-compat.c: Likewise.
24218 * posix/tst-glob_lstat_compat.c: Likewise.
24219 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
24220 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
24221 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
24222 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
24223 Likewise.
24224 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
24225 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
24226 * posix/glob.c (glob_lstat): New function.
24227 (glob): Rename to __glob and add versioned symbol to 2.27.
24228 (glob_in_dir): Use glob_lstat.
24229 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
24230 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
24231 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
24232 2.27.
24233 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
24234 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
24235 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
24236 gl_lstat on glob call.
24237 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
24238 and glob64 symbols.
24239 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
24240 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
24241 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
24242 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
24243 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
24244 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
24245 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
24246 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
24247 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
24248 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
24249 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
24250 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
24251 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
24252 Likewise.
24253 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
24254 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
24255 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
24256 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
24257 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
24258 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
24259 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
24260 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
24261 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
24262 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
24263 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
24264 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
24265
24266 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
24267
24268 * configure.ac (AS): Require binutils 2.25 or later.
24269 * configure: Regenerated.
24270
24271 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
24272
24273 [BZ #22207]
24274 * stdlib/test-atexit-race-common.c (do_test): Minimize required
24275 VM size.
24276
24277 2017-09-25 DJ Delorie <dj@redhat.com>
24278
24279 [BZ #22161]
24280 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
24281 resetting timeout.
24282
24283 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
24284
24285 * sysdeps/ieee754/dbl-64/sincos32.h
24286 [SINCCOS32_H]: Remove define.
24287 [SINCOS32_H]: Define.
24288
24289 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
24290
24291 * math/Versions (expf): New libm symbol at GLIBC_2.27.
24292 (exp2f): Likewise.
24293 * math/w_exp2f.c: New file.
24294 * math/w_expf.c: New file.
24295 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
24296 * math/w_expf_compat.c (__expf_compat): Likewise.
24297 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
24298 * sysdeps/ia64/fpu/e_expf.S: Likewise.
24299 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
24300 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
24301 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
24302 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
24303 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
24304 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
24305 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
24306 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
24307 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
24308 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
24309 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
24310 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
24311 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
24312 Likewise.
24313 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
24314 Likewise.
24315 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
24316 Likewise.
24317 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
24318 Likewise.
24319 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
24320 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
24321 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
24322 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
24323 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
24324 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
24325 Likewise.
24326 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
24327 Likewise.
24328 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
24329 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
24330 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
24331
24332 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
24333
24334 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
24335 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
24336 (roundtoint, converttoint): Likewise.
24337 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
24338 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
24339 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
24340 * sysdeps/ieee754/flt-32/math_config.h: New file.
24341 * sysdeps/ieee754/flt-32/math_errf.c: New file.
24342 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
24343 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
24344 * sysdeps/i386/fpu/math_errf.c: New file.
24345 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
24346 * sysdeps/ia64/fpu/math_errf.c: New file.
24347 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
24348 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
24349
24350 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
24351
24352 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
24353 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
24354 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
24355 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
24356 to make sure that these symbols are defined.
24357 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
24358 of <limits.h>
24359 (__need_NULL): Do not define.
24360 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
24361 alignment.
24362 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
24363 CMGROUP_MAX, cmsgcred): Do not define.
24364 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
24365 NULL.
24366 * bits/socket.h: Likewise.
24367 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
24368 __gettimeofday instead of gettimeofday.
24369 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
24370 instead of settimeofday.
24371
24372 2017-09-22 Joseph Myers <joseph@codesourcery.com>
24373
24374 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
24375 (asinhf): Define using libm_alias_float.
24376 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
24377 (atanf): Define using libm_alias_float.
24378 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
24379 (cbrtf): Define using libm_alias_float.
24380 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
24381 (ceilf): Define using libm_alias_float.
24382 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
24383 <libm-alias-float.h>.
24384 (copysignf): Define using libm_alias_float.
24385 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
24386 (cosf): Define using libm_alias_float.
24387 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
24388 (erff): Define using libm_alias_float.
24389 (erfcf): Likewise.
24390 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
24391 (expm1f): Define using libm_alias_float.
24392 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
24393 (fabsf): Define using libm_alias_float.
24394 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
24395 (floorf): Define using libm_alias_float.
24396 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
24397 (frexpf): Define using libm_alias_float.
24398 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
24399 libm_alias_float.
24400 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
24401 <libm-alias-float.h>.
24402 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
24403 libm_alias_float.
24404 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
24405 <libm-alias-float.h>.
24406 (getpayloadf): Define using libm_alias_float.
24407 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
24408 <libm-alias-float.h>.
24409 (llrintf): Define using libm_alias_float.
24410 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
24411 <libm-alias-float.h>.
24412 (llroundf): Define using libm_alias_float.
24413 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
24414 (logbf): Define using libm_alias_float.
24415 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
24416 (lrintf): Define using libm_alias_float.
24417 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
24418 (lroundf): Define using libm_alias_float.
24419 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
24420 (modff): Define using libm_alias_float.
24421 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
24422 <libm-alias-float.h>.
24423 (nearbyintf): Define using libm_alias_float.
24424 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
24425 <libm-alias-float.h>.
24426 (nextafterf): Define using libm_alias_float.
24427 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
24428 <libm-alias-float.h>.
24429 (nextupf): Define using libm_alias_float.
24430 * sysdeps/ieee754/flt-32/s_remquof.c: Include
24431 <libm-alias-float.h>.
24432 (remquof): Define using libm_alias_float.
24433 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
24434 (rintf): Define using libm_alias_float.
24435 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
24436 <libm-alias-float.h>.
24437 (roundevenf): Define using libm_alias_float.
24438 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
24439 (roundf): Define using libm_alias_float.
24440 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
24441 using libm_alias_float.
24442 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
24443 <libm-alias-float.h>.
24444 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
24445 Define using libm_alias_float.
24446 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
24447 <libm-alias-float.h>.
24448 (sincosf): Define using libm_alias_float.
24449 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
24450 (sinf): Define using libm_alias_float.
24451 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
24452 (tanf): Define using libm_alias_float.
24453 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
24454 (tanhf): Define using libm_alias_float.
24455 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
24456 <libm-alias-float.h>.
24457 (totalorderf): Define using libm_alias_float.
24458 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
24459 <libm-alias-float.h>.
24460 (totalordermagf): Define using libm_alias_float.
24461 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
24462 (truncf): Define using libm_alias_float.
24463 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
24464 libm_alias_float.
24465 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
24466 libm_alias_float.
24467
24468 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
24469
24470 [BZ #22146]
24471 math/math.h: Let fpclassify use the builtin in C++ mode, even
24472 when optimazing for size.
24473
24474 2017-09-22 Joseph Myers <joseph@codesourcery.com>
24475
24476 * csu/Makefile (generated): Do not add version-info.h.
24477 (before-compile): Likewise.
24478 (all-Banner-files): Remove variable.
24479 ($(objpfx)version-info.h): Remove rule.
24480 * csu/version.c (banner): Do not include "version-info.h".
24481 * libidn/Banner: Remove.
24482 * manual/contrib.texi (Simon Josefsson): New entry.
24483
24484 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
24485
24486 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
24487 Remove conditionals on LDBL_MANT_DIG.
24488 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
24489 (__ieee754_lgammal_r): Likewise.
24490
24491 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
24492
24493 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
24494 _Float128 and L().
24495 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
24496 _Float128 and L(). Replace _Float128 with long double and L(x)
24497 with xL, throughout the file.
24498 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
24499 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
24500 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
24501 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
24502
24503 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
24504
24505 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
24506 sysdeps/ieee754/ldbl-128ibm.
24507 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
24508 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
24509 of including it. Keep _Float128 and L() intact. These will be
24510 reviewed by a separate patch.
24511 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
24512 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
24513 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
24514 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
24515
24516 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
24517
24518 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
24519 (__finitef128): Define to __redirect___finitef128.
24520 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
24521 (__isinff128): Define to __redirect___isinff128.
24522 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
24523 (__isnanf128): Define to __redirect___isnanf128.
24524
24525 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
24526
24527 * sysdeps/powerpc/powerpc64le/Makefile
24528 (CFLAGS-tst-strtod-nan-locale.c): New variable.
24529 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
24530
24531 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
24532 Carlos O'Donell <carlos@redhat.com>
24533
24534 [BZ #22180]
24535 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
24536 * stdlib/test-dlclose-exit-race.c: New file.
24537 * stdlib/test-dlclose-exit-race-helper.c: New file.
24538 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
24539
24540 2017-09-21 Joseph Myers <joseph@codesourcery.com>
24541
24542 * crypt/Banner: Remove file.
24543 * nptl/Banner: Likewise.
24544 * resolv/Banner: Likewise.
24545 * soft-fp/Banner: Likewise.
24546 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
24547 ($(objpfx)version.d): Remove dependency on banner.h.
24548 ($(objpfx)version.os): Likewise.
24549 * nptl/version.c (banner): Do not include banner.h.
24550 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
24551 Jelinek and BIND code.
24552
24553 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
24554 Carlos O'Donell <carlos@redhat.com>
24555
24556 * support/xdlfcn.h: New file.
24557 * support/xdlfcn.c: New file.
24558 * support/Makefile (libsupport-routines): Add xdlfcn.
24559 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
24560
24561 2017-09-20 Joseph Myers <joseph@codesourcery.com>
24562
24563 [BZ #20142]
24564 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24565 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
24566 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
24567 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
24568 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
24569 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
24570 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
24571 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
24572
24573 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
24574 Ricky Zhou <rickyz@google.com>
24575 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
24576
24577 [BZ #14333]
24578 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
24579 Remove atomics.
24580 (__new_exitfn): Fail registration when we finished at_exit processing.
24581 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
24582 * stdlib/on_exit.c (__on_exit): Likewise.
24583 * stdlib/exit.c (__exit_funcs_done): New variable.
24584 (__run_exit_handlers): Use __exit_funcs_lock.
24585 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
24586 declarations.
24587 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
24588 (test-cxa_atexit-race, test-on_exit-race): New tests.
24589 * stdlib/test-atexit-race-common.c: New file.
24590 * stdlib/test-atexit-race.c: New file.
24591 * stdlib/test-at_quick_exit-race.c: New file.
24592 * stdlib/test-cxa_atexit-race.c: New file.
24593 * stdlib/test-on_exit-race.c: New file.
24594
24595 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
24596
24597 * benchtests/Makefile: Add exp2f and log2f benchmarks.
24598 * benchtests/exp2f-inputs: Copy of expf-inputs.
24599 * benchtests/log2f-inputs: Copy of logf-inputs.
24600
24601 2017-09-19 Joseph Myers <joseph@codesourcery.com>
24602
24603 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
24604 Explicitly take address of first element of array arguments in
24605 call to INLINE_SYSCALL.
24606
24607 2017-09-19 Andreas Schwab <schwab@suse.de>
24608
24609 [BZ #22134]
24610 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
24611 execveat first.
24612 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
24613 unimplemented.
24614 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
24615 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
24616 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
24617 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
24618 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
24619 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
24620 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
24621 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
24622 * posix/Makefile (tests): Add tst-fexecve.
24623 * posix/tst-fexecve.c: New file.
24624
24625 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
24626
24627 * benchtests/Makefile: Add logf benchmark.
24628 * benchtests/logf-inputs: Add reduced trace from wrf_r.
24629
24630 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
24631
24632 * benchtests/Makefile: Add expf benchmark.
24633 * benchtests/expf-inputs: Add reduced trace from wrf_r.
24634
24635 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
24636
24637 * csu/Makefile: Add -funwind-tables to libc-start.c.
24638 * debug/Makefile: Add -funwind-tables to backtrace.c.
24639 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
24640 * sysdeps/arm/Makefile: Likewise.
24641 * sysdeps/i386/Makefile: Likewise.
24642 * sysdeps/m68k/Makefile: Likewise.
24643 * sysdeps/mips/Makefile: Likewise.
24644 * sysdeps/nios2/Makefile: Likewise.
24645 * sysdeps/sh/Makefile: Likewise.
24646 * sysdeps/sparc/Makefile: Likewise.
24647
24648 2017-09-19 Joseph Myers <joseph@codesourcery.com>
24649
24650 * benchtests/Makefile (bench-math): Add trunc and truncf.
24651 (CFLAGS-bench-trunc.c): New variable.
24652 (CFLAGS-bench-truncf.c): Likewise.
24653 * benchtests/trunc-inputs: New file.
24654 * benchtests/truncf-inputs: Likewise.
24655
24656 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24657
24658 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
24659
24660 2017-09-18 Joseph Myers <joseph@codesourcery.com>
24661
24662 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
24663 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
24664 redefine.
24665 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
24666 (exp10l): Define as weak alias.
24667 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
24668 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
24669 and redefine.
24670 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
24671 (remainderl): Define as weak alias.
24672
24673 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
24674 (fmal): Define using libm_alias_ldouble.
24675 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
24676 (acoshl): Define using libm_alias_ldouble.
24677 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
24678 (acosl): Define using libm_alias_ldouble.
24679 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
24680 (asinl): Define using libm_alias_ldouble.
24681 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
24682 (atan2l): Define using libm_alias_ldouble.
24683 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
24684 (atanhl): Define using libm_alias_ldouble.
24685 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
24686 (coshl): Define using libm_alias_ldouble.
24687 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
24688 (exp10l): Define using libm_alias_ldouble.
24689 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
24690 (exp2l): Define using libm_alias_ldouble.
24691 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
24692 (expl): Define using libm_alias_ldouble.
24693 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
24694 (fmodl): Define using libm_alias_ldouble.
24695 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
24696 (hypotl): Define using libm_alias_ldouble.
24697 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
24698 (j0l): Define using libm_alias_ldouble.
24699 (y0l): Likewise.
24700 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
24701 (j1l): Define using libm_alias_ldouble.
24702 (y1l): Likewise.
24703 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
24704 (jnl): Define using libm_alias_ldouble.
24705 (ynl): Likewise.
24706 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
24707 (log10l): Define using libm_alias_ldouble.
24708 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
24709 (log2l): Define using libm_alias_ldouble.
24710 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
24711 (logl): Define using libm_alias_ldouble.
24712 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
24713 (powl): Define using libm_alias_ldouble.
24714 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
24715 (remainderl): Define using libm_alias_ldouble.
24716 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
24717 (sinhl): Define using libm_alias_ldouble.
24718 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
24719 (sqrtl): Define using libm_alias_ldouble.
24720 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
24721 (tgammal): Define using libm_alias_ldouble.
24722 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
24723 (exp10l): Do not use long_double_symbol here.
24724 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
24725 [LIBM_SVID_COMPAT] (remainderl): Likewise.
24726 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
24727 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
24728 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
24729 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
24730 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
24731 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
24732 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
24733 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
24734 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
24735 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
24736 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
24737 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
24738 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
24739 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
24740 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
24741 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
24742 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
24743 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
24744 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
24745 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
24746
24747 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
24748
24749 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
24750 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
24751
24752 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
24753
24754 * io/read.c (read): Add libc_hidden_weak.
24755 * sysdeps/mach/hurd/read.c (read): Likewise.
24756 * io/write.c (write): Likewise.
24757 * sysdeps/mach/hurd/write.c (write): Likewise.
24758 * io/pread64.c (__pread64): Likewise.
24759 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
24760 * posix/pread64.c (__pread64): Add libc_hidden_def.
24761
24762 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
24763
24764 * benchtests/scripts/compare_strings.py: New option -g.
24765 (draw_graph): Print a message that a graph is being generated.
24766 (process_results): Generate graph only if -g is passed.
24767 (main): Process option -g.
24768
24769 * benchtests/scripts/compare_strings.py (process_results):
24770 Better spacing for output.
24771
24772 * benchtests/scripts/compare_strings.py: Use argparse.
24773 * benchtests/README: Document existence of compare_strings.py.
24774
24775 2017-09-15 Joseph Myers <joseph@codesourcery.com>
24776
24777 * math/s_fma.c: Include <libm-alias-double.h>.
24778 (fma): Define using libm_alias_double.
24779 * math/s_nextafter.c: Include <libm-alias-double.h>.
24780 (nextafter): Define using libm_alias_double.
24781 * math/w_acos_compat.c: Include <libm-alias-double.h>.
24782 (acos): Define using libm_alias_double.
24783 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
24784 (aocsh): Define using libm_alias_double.
24785 * math/w_asin_compat.c: Include <libm-alias-double.h>.
24786 (asin): Define using libm_alias_double.
24787 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
24788 (atan2): Define using libm_alias_double.
24789 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
24790 (atanh): Define using libm_alias_double.
24791 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
24792 (cosh): Define using libm_alias_double.
24793 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
24794 (exp10): Define using libm_alias_double.
24795 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
24796 (exp2): Define using libm_alias_double.
24797 * math/w_exp_compat.c: Include <libm-alias-double.h>.
24798 (exp): Define using libm_alias_double.
24799 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
24800 (fmod): Define using libm_alias_double.
24801 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
24802 (hypot): Define using libm_alias_double.
24803 * math/w_j0_compat.c: Include <libm-alias-double.h>.
24804 (j0): Define using libm_alias_double.
24805 (y0): Likewise.
24806 * math/w_j1_compat.c: Include <libm-alias-double.h>.
24807 (j1): Define using libm_alias_double.
24808 (y1): Likewise.
24809 * math/w_jn_compat.c: Include <libm-alias-double.h>.
24810 (jn): Define using libm_alias_double.
24811 (yn): Likewise.
24812 * math/w_log10_compat.c: Include <libm-alias-double.h>.
24813 (log10): Define using libm_alias_double.
24814 * math/w_log2_compat.c: Include <libm-alias-double.h>.
24815 (log2): Define using libm_alias_double.
24816 * math/w_log_compat.c: Include <libm-alias-double.h>.
24817 (log): Define using libm_alias_double.
24818 * math/w_pow_compat.c: Include <libm-alias-double.h>.
24819 (pow): Define using libm_alias_double.
24820 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
24821 (remainder): Define using libm_alias_double.
24822 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
24823 (sinh): Define using libm_alias_double.
24824 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
24825 (sqrt): Define using libm_alias_double.
24826 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
24827 (tgamma): Define using libm_alias_double.
24828 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
24829 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
24830 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
24831 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
24832 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
24833 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
24834 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
24835 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
24836 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
24837 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
24838 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
24839 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
24840 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
24841 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
24842 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
24843 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
24844 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
24845 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
24846 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
24847 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
24848 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
24849 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
24850 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
24851 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
24852 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
24853
24854 * math/e_acoshl.c: Remove.
24855 * math/e_acosl.c: Likewise.
24856 * math/e_asinl.c: Likewise.
24857 * math/e_atan2l.c: Likewise.
24858 * math/e_atanhl.c: Likewise.
24859 * math/e_coshl.c: Likewise.
24860 * math/e_expl.c: Likewise.
24861 * math/e_fmodl.c: Likewise.
24862 * math/e_gammal_r.c: Likewise.
24863 * math/e_hypotl.c: Likewise.
24864 * math/e_j0l.c: Likewise.
24865 * math/e_j1l.c: Likewise.
24866 * math/e_jnl.c: Likewise.
24867 * math/e_lgammal_r.c: Likewise.
24868 * math/e_log10l.c: Likewise.
24869 * math/e_log2l.c: Likewise.
24870 * math/e_logl.c: Likewise.
24871 * math/e_powl.c: Likewise.
24872 * math/e_rem_pio2l.c: Likewise.
24873 * math/e_sinhl.c: Likewise.
24874 * math/e_sqrtf128.c: Likewise.
24875 * math/e_sqrtl.c: Likewise.
24876 * math/k_cosl.c: Likewise.
24877 * math/k_sinl.c: Likewise.
24878 * math/k_tanl.c: Likewise.
24879 * math/s_asinhl.c: Likewise.
24880 * math/s_atanl.c: Likewise.
24881 * math/s_cbrtl.c: Likewise.
24882 * math/s_erfl.c: Likewise.
24883 * math/s_expm1l.c: Likewise.
24884 * math/s_log1pl.c: Likewise.
24885 * math/s_tanhl.c: Likewise.
24886
24887 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
24888
24889 [BZ #21745]
24890 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
24891 [$(subdir) = math] (sysdep_calls): New variable. Has the
24892 previous contents of sysdep_routines, but re-sorted..
24893 [$(subdir) = math] (sysdep_routines): Re-use the contents from
24894 sysdep_calls.
24895 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
24896 defined in sysdep_calls and replace by the respective m_* names.
24897 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
24898 (compat_symbol): Undefine to avoid duplicated compat symbols in
24899 libc.
24900
24901 2017-09-15 Joseph Myers <joseph@codesourcery.com>
24902
24903 * math/s_fmaf.c: Include <libm-alias-float.h>.
24904 (fmaf): Define using libm_alias_float.
24905 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
24906 (acosf): Define using libm_alias_float.
24907 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
24908 (acoshf): Define using libm_alias_float.
24909 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
24910 (asinf): Define using libm_alias_float.
24911 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
24912 (atan2f): Define using libm_alias_float.
24913 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
24914 (atanhf): Define using libm_alias_float.
24915 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
24916 (coshf): Define using libm_alias_float.
24917 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
24918 (exp10f): Define using libm_alias_float.
24919 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
24920 (fmodf): Define using libm_alias_float.
24921 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
24922 (hypotf): Define using libm_alias_float.
24923 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
24924 (j0f): Define using libm_alias_float.
24925 (y0f): Likewise.
24926 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
24927 (j1f): Define using libm_alias_float.
24928 (y1f): Likewise.
24929 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
24930 (jnf): Define using libm_alias_float.
24931 (ynf): Likewise.
24932 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
24933 (log10f): Define using libm_alias_float.
24934 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
24935 (log2f): Define using libm_alias_float.
24936 * math/w_logf_compat.c: Include <libm-alias-float.h>.
24937 (logf): Define using libm_alias_float.
24938 * math/w_powf_compat.c: Include <libm-alias-float.h>.
24939 (powf): Define using libm_alias_float.
24940 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
24941 (remainderf): Define using libm_alias_float.
24942 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
24943 (sinhf): Define using libm_alias_float.
24944 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
24945 (sqrtf): Define using libm_alias_float.
24946 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
24947 (tgammaf): Define using libm_alias_float.
24948
24949 2017-09-14 Joseph Myers <joseph@codesourcery.com>
24950
24951 * include/math.h (roundeven): Change hidden_proto call to
24952 __roundeven.
24953 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
24954 alias.
24955 [NO_LONG_DOUBLE] (__j0l): New strong alias.
24956 (y0): Rename to __y0 and define as weak alias.
24957 [NO_LONG_DOUBLE] (__y0l): New strong alias.
24958 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
24959 alias.
24960 (y0f): Rename to __y0f and define as weak alias.
24961 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
24962 alias.
24963 [NO_LONG_DOUBLE] (__j1l): New strong alias.
24964 (y1): Rename to __y1 and define as weak alias.
24965 [NO_LONG_DOUBLE] (__y1l): New strong alias.
24966 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
24967 alias.
24968 (y1f): Rename to __y1f and define as weak alias.
24969 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
24970 alias.
24971 [NO_LONG_DOUBLE] (__jnl): New strong alias.
24972 (yn): Rename to __yn and define as weak alias.
24973 [NO_LONG_DOUBLE] (__ynl): New strong alias.
24974 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
24975 alias.
24976 (ynf): Rename to __ynf and define as weak alias.
24977 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
24978 (fromfp): Define as weak alias.
24979 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
24980 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
24981 (fromfpx): Define as weak alias.
24982 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
24983 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
24984 __getpayload and define as weak alias.
24985 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
24986 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
24987 __roundeven and define as weak alias.
24988 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
24989 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
24990 __setpayload.
24991 (setpayload): Define as weak alias.
24992 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
24993 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
24994 __setpayloadsig.
24995 (setpayloadsig): Define as weak alias.
24996 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
24997 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
24998 __totalorder and define as weak alias.
24999 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
25000 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
25001 to __totalordermag and define as weak alias.
25002 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
25003 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
25004 (ufromfp): Define as weak alias.
25005 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
25006 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
25007 __ufromfpx.
25008 (ufromfpx): Define as weak alias.
25009 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
25010 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
25011 Rename to __getpayload and define as weak alias.
25012 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
25013 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
25014 Rename to __roundeven and define as weak alias.
25015 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
25016 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
25017 Rename to __totalorder and define as weak alias.
25018 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
25019 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
25020 (totalordermag): Rename to __totalordermag and define as weak
25021 alias.
25022 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
25023 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
25024 macro.
25025 (__roundevenl): Likewise.
25026 (__totalorderl): Likewise.
25027 (__totalordermagl): Likewise
25028 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
25029 __fromfpf128.
25030 (fromfpf128): Define as weak alias.
25031 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
25032 __fromfpxf128.
25033 (fromfpxf128): Define as weak alias.
25034 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
25035 __setpayloadf128.
25036 (setpayloadf128): Define as weak alias.
25037 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
25038 __setpayloadsigf128.
25039 (setpayloadsigf128): Define as weak alias.
25040 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
25041 __ufromfpf128.
25042 (ufromfpf128): Define as weak alias.
25043 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
25044 __ufromfpxf128.
25045 (ufromfpxf128): Define as weak alias.
25046 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
25047 (fromfpf): Define as weak alias.
25048 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
25049 __fromfpxf.
25050 (fromfpxf): Define as weak alias.
25051 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
25052 __getpayloadf and define as weak alias.
25053 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
25054 __roundevenf and define as weak alias.
25055 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
25056 __setpayloadf.
25057 (setpayloadf): Define as weak alias.
25058 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
25059 __setpayloadsigf.
25060 (setpayloadsigf): Define as weak alias.
25061 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
25062 __totalorderf and define as weak alias.
25063 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
25064 Rename to __totalordermagf and define as weak alias.
25065 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
25066 __ufromfpf.
25067 (ufromfpf): Define as weak alias.
25068 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
25069 __ufromfpxf.
25070 (ufromfpxf): Define as weak alias.
25071 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
25072 __fromfpl.
25073 (fromfpl): Define as weak alias.
25074 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
25075 __fromfpxl.
25076 (fromfpxl): Define as weak alias.
25077 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
25078 to __getpayloadl and define as weak alias.
25079 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
25080 __roundevenl and define as weak alias.
25081 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
25082 __setpayloadl.
25083 (setpayloadl): Define as weak alias.
25084 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
25085 __setpayloadsigl.
25086 (setpayloadsigl): Define as weak alias.
25087 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
25088 to __totalorderl and define as weak alias.
25089 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
25090 Rename to __totalordermagl and define as weak alias.
25091 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
25092 __ufromfpl.
25093 (ufromfpl): Define as weak alias.
25094 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
25095 __ufromfpxl.
25096 (ufromfpxl): Define as weak alias.
25097 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
25098 __fromfpl.
25099 (fromfpl): Define as weak alias.
25100 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
25101 __fromfpxl.
25102 (fromfpxl): Define as weak alias.
25103 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
25104 Rename to __getpayloadl and define as weak alias.
25105 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
25106 to __roundevenl and define as weak alias. Call __roundeven
25107 instead of roundeven.
25108 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
25109 __setpayloadl.
25110 (setpayloadl): Define as weak alias.
25111 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
25112 __setpayloadsigl.
25113 (setpayloadsigl): Define as weak alias.
25114 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
25115 Rename to __totalorderl and define as weak alias.
25116 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
25117 Rename to __totalordermagl and define as weak alias.
25118 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
25119 __ufromfpl.
25120 (ufromfpl): Define as weak alias.
25121 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
25122 __ufromfpxl.
25123 (ufromfpxl): Define as weak alias.
25124 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
25125 __fromfpl.
25126 (fromfpl): Define as weak alias.
25127 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
25128 __fromfpxl.
25129 (fromfpxl): Define as weak alias.
25130 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
25131 __getpayloadl and define as weak alias.
25132 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
25133 __roundevenl and define as weak alias.
25134 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
25135 __setpayloadl.
25136 (setpayloadl): Define as weak alias.
25137 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
25138 __setpayloadsigl.
25139 (setpayloadsigl): Define as weak alias.
25140 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
25141 __totalorderl and define as weak alias.
25142 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
25143 Rename to __totalordermagl and define as weak alias.
25144 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
25145 __ufromfpl.
25146 (ufromfpl): Define as weak alias.
25147 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
25148 __ufromfpxl.
25149 (ufromfpxl): Define as weak alias.
25150
25151 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
25152
25153 * benchtests/bench-string.h (realloc_bufs): New function.
25154 (test_init): Call it.
25155 * benchtests/bench-memset-large.c (do_test): Likewise.
25156 * benchtests/bench-memset.c (do_test): Likewise.
25157
25158 * benchtests/bench-memset-large.c: Print output in JSON
25159 format.
25160 * benchtests/bench-memset.c: Likewise.
25161
25162 2017-09-14 Mike FABIAN <mfabian@redhat.com>
25163
25164 [BZ #21084]
25165 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
25166 * iconvdata/Makefile: Add IBM858.
25167 * iconvdata/gconv-modules: Likewise.
25168 * iconvdata/tst-tables.sh: Likewise.
25169 * iconvdata/ibm858.c: New file.
25170 * localedata/charmaps/IBM858: Likewise.
25171
25172 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
25173
25174 [BZ #22023]
25175 * locales/niu_NZ (LC_TIME): copy "niu_NU".
25176 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
25177
25178 2017-09-14 Mike FABIAN <mfabian@redhat.com>
25179
25180 [BZ #22112]
25181 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
25182 and add tel_int_fmt.
25183
25184 2017-09-14 Joseph Myers <joseph@codesourcery.com>
25185
25186 * sysdeps/generic/libm-alias-float128.h: New file.
25187 * sysdeps/generic/math-type-macros-float128.h: Include
25188 <libm-alias-float128.h>.
25189 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
25190
25191 2017-09-13 Joseph Myers <joseph@codesourcery.com>
25192
25193 * sysdeps/generic/libm-alias-ldouble.h: New file.
25194 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
25195 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
25196 * sysdeps/generic/math-type-macros-ldouble.h: Include
25197 <libm-alias-ldouble.h>.
25198 [!declare_mgen_alias] (declare_mgen_alias): Define to use
25199 libm_alias_ldouble.
25200
25201 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
25202
25203 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
25204 * math/w_exp_compat.c: ... here.
25205 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
25206 * math/w_expf_compat.c: ... here.
25207 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
25208 * math/w_expl_compat.c: ... here.
25209 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
25210 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
25211 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
25212 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
25213
25214 2017-09-13 Joseph Myers <joseph@codesourcery.com>
25215
25216 * math/w_scalbln_template.c (strong_alias): Do not undefine and
25217 redefine.
25218 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
25219 macro.
25220 (ldexpl): Only define as compat symbol for libc, not libm.
25221 (scalbnl): Define as compat symbol for libc here.
25222 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
25223 define for [IS_IN (libc)].
25224 (__ldexpl_2): Remove alias.
25225 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
25226 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
25227 name in long_double_symbol call.
25228 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
25229 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
25230 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
25231 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
25232 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
25233 Remove macro.
25234 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
25235 Define as compat symbol.
25236
25237 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25238
25239 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
25240 * sysdeps/unix/sysv/linux/alpha/Makefile
25241 [$(subdir) = csu] (sysdep_routines): Remove rule.
25242
25243 2017-09-13 Joseph Myers <joseph@codesourcery.com>
25244
25245 * sysdeps/generic/libm-alias-double.h: New file.
25246 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
25247 * sysdeps/generic/math-type-macros-double.h: Include
25248 <libm-alias-double.h>.
25249 [declare_mgen_alias] (declare_mgen_alias): Define to use
25250 libm_alias_double.
25251 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
25252 (M_LIBM_NEED_COMPAT): Remove macro.
25253 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
25254 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
25255 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
25256 code.
25257 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
25258 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
25259 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
25260 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
25261 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
25262 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
25263 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
25264 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
25265 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
25266 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
25267 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
25268 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
25269 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
25270 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
25271 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
25272 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
25273 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
25274 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
25275 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
25276 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
25277 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
25278 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
25279 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
25280 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
25281 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
25282 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
25283 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
25284 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
25285 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
25286 macro.
25287 (declare_mgen_alias): New macro.
25288 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
25289 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
25290 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
25291 (M_LIBM_NEED_COMPAT): Remove macro.
25292 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
25293 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
25294 <first-versions.h>.
25295 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
25296 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
25297
25298 2017-09-12 Joseph Myers <joseph@codesourcery.com>
25299
25300 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
25301 (declare_mgen_alias_2): Remove.
25302 * sysdeps/generic/math-type-macros-double.h
25303 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
25304 Likewise.
25305 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
25306 alias.
25307 (ldexp): Define with declare_mgen_alias.
25308 (scalbn): Likewise.
25309
25310 2017-09-12 Steve Ellcey <sellcey@cavium.com>
25311
25312 * grp/initgroups.c: Include config.h.
25313 (DEFAULT_CONFIG): New macro.
25314 (internal_getgrouplist): Use DEFAULT_CONFIG.
25315 * nscd/initgrcache.c (addinitgroupsX): Likewise.
25316 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
25317 (DEFAULT_DEFCONFIG): New macro.
25318 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
25319 * nss/grp-lookup.c: Include config.h
25320 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
25321 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
25322 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
25323 * manual/nss.texi: Update default values section.
25324
25325 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
25326
25327 [BZ #21967]
25328 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
25329 New.
25330 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
25331 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
25332 Handle MathVec_Prefer_No_AVX512.
25333 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
25334 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
25335 is set.
25336
25337 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
25338
25339 * posix/sched_primax.c (__sched_get_priority_max): Add
25340 libc_hidden_def.
25341 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
25342 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
25343 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
25344 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
25345 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
25346 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
25347 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
25348 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
25349 Add aliases.
25350
25351 2017-09-11 Joseph Myers <joseph@codesourcery.com>
25352
25353 * sysdeps/generic/libm-alias-float.h: New file.
25354 * sysdeps/generic/math-type-macros-float.h: Include
25355 <libm-alias-float.h>.
25356 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
25357
25358 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
25359
25360 [BZ #22093]
25361 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
25362 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
25363 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
25364 (HWCAP_IMPORTANT): Likewise.
25365 (HWCAP_X86_64): New enum.
25366 (HWCAP_X86_AVX512_1): Updated.
25367 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
25368 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
25369 (modules-names): Add x86_64/tst-x86_64mod-1.
25370 (LDFLAGS-tst-x86_64mod-1.so): New.
25371 ($(objpfx)tst-x86_64-1): Likewise.
25372 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
25373 (tst-x86_64-1-clean): Likewise.
25374 * sysdeps/x86_64/tst-x86_64-1.c: New file.
25375 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
25376
25377 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
25378
25379 * po/sv.po: Update translations.
25380 * po/fr.po: Likewise.
25381
25382 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
25383
25384 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
25385 seconds.
25386 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
25387 seconds.
25388 * elf/rtld-Rules: Fix $(error) use.
25389
25390 2017-09-09 Mike FABIAN <mfabian@redhat.com>
25391
25392 [BZ #14925]
25393 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
25394 * locale/iso-639.def: Change “Bengali” to “Bangla”.
25395 * localedata/locales/bn_BD: “Bengali” was still used in some
25396 comments. Change it to “Bangla”.
25397
25398 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
25399
25400 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
25401
25402 2017-09-08 Steve Ellcey <sellcey@cavium.com>
25403
25404 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
25405 thunderx2t99p1 to list of cpu names.
25406 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
25407 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
25408
25409 2017-09-08 Steve Ellcey <sellcey@cavium.com>
25410
25411 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
25412 Use strcmp instead of tunable_is_name.
25413
25414 2017-09-08 Joseph Myers <joseph@codesourcery.com>
25415
25416 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
25417 (F_GET_RW_HINT): New macro.
25418 [__USE_GNU] (F_SET_RW_HINT): Likewise.
25419 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
25420 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
25421 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
25422 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
25423 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
25424 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
25425 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
25426 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
25427
25428 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
25429 (F_ADD_SEALS): New macro.
25430 [__USE_GNU] (F_GET_SEALS): Likewise.
25431 [__USE_GNU] (F_SEAL_SEAL): Likewise.
25432 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
25433 [__USE_GNU] (F_SEAL_GROW): Likewise.
25434 [__USE_GNU] (F_SEAL_WRITE): Likewise.
25435
25436 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25437
25438 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
25439 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
25440 * posix/glob_internal.h (__glob_pattern_type):
25441 * posix/glob.c (glob):
25442 * posix/glob_pattern_p.c (__glob_pattern_p):
25443 Use them.
25444
25445 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
25446 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
25447 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
25448 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
25449 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
25450 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
25451 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
25452 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
25453 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
25454 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
25455 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
25456 * sysdeps/wordsize-64/glob.c: Likewise.
25457 * sysdeps/wordsize-64/glob64.c: Likewise.
25458 * sysdeps/wordsize-64/globfree.c: Likewise.
25459 * sysdeps/wordsize-64/globfree64.c: Likewise.
25460 * sysdeps/unix/sysv/linux/glob.c: New file.
25461 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
25462 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
25463 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
25464 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
25465 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
25466 adds !GLOB_NO_OLD_VERSION as an extra condition.
25467 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
25468 using relative path instead of absolute one.
25469 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
25470 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
25471 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
25472 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
25473 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
25474 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
25475
25476 [BZ #1062]
25477 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
25478 (glob): Use the same scratch buffer for both getlogin_r and
25479 getpwnam_r. Don’t require preallocation of the login name. This
25480 simplifies storage allocation, and corrects the handling of
25481 long login names.
25482
25483 [BZ #1062]
25484 * posix/glob.c (glob): Port recent patches to platforms
25485 lacking getpwnam_r.
25486 (glob): Fix longstanding misuse of errno after getpwnam_r, which
25487 returns an error number rather than setting errno.
25488
25489 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
25490 instead of GCC extension.
25491 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
25492 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
25493 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
25494
25495 [BZ #866]
25496 [BZ #1062]
25497 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
25498 * posix/bug-glob1.c: Remove file.
25499 * posix/tst-glob_symlinks.c: New file.
25500 * posix/glob.c (__lstat64): New macro.
25501 (is_dir): New function.
25502 (glob, glob_in_dir): Match symlinks even if they are dangling.
25503 (link_stat, link_exists_p): Remove. All uses removed.
25504
25505 [BZ #1062]
25506 [BZ #19971]
25507 * posix/glob.c (struct readdir_result): Remove skip_entry member.
25508 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
25509 All uses removed.
25510
25511 [BZ #1062]
25512 CVE-2017-15671
25513 * posix/Makefile (routines): Add globfree, globfree64, and
25514 glob_pattern_p.
25515 * posix/flexmember.h: New file.
25516 * posix/glob_internal.h: Likewise.
25517 * posix/glob_pattern_p.c: Likewise.
25518 * posix/globfree.c: Likewise.
25519 * posix/globfree64.c: Likewise.
25520 * sysdeps/gnu/globfree64.c: Likewise.
25521 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
25522 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
25523 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
25524 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
25525 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
25526 * sysdeps/wordsize-64/globfree.c: Likewise.
25527 * sysdeps/wordsize-64/globfree64.c: Likewise.
25528 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
25529 [NDEBUG): Remove comments.
25530 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
25531 (dirent_type): New type. Use uint_fast8_t not
25532 uint8_t, as C99 does not require uint8_t.
25533 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
25534 (struct readdir_result): Use dirent_type. Do not define skip_entry
25535 unless it is needed; this saves a byte on platforms lacking d_ino.
25536 (readdir_result_type, readdir_result_skip_entry):
25537 New functions, replacing ...
25538 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
25539 these functions, which were removed. This makes the callers
25540 easier to read. All callers changed.
25541 (D_INO_TO_RESULT): Now empty if there is no d_ino.
25542 (size_add_wrapv, glob_use_alloca): New static functions.
25543 (glob, glob_in_dir): Check for size_t overflow in several places,
25544 and fix some size_t checks that were not quite right.
25545 Remove old code using SHELL since Bash no longer
25546 uses this.
25547 (glob, prefix_array): Separate MS code better.
25548 (glob_in_dir): Remove old Amiga and VMS code.
25549 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
25550 separate files.
25551 (glob_in_dir): Do not rely on undefined behavior in accessing
25552 struct members beyond their bounds. Use a flexible array member
25553 instead
25554 (link_stat): Rename from link_exists2_p and return -1/0 instead of
25555 0/1. Caller changed.
25556 (glob): Fix memory leaks.
25557 * posix/glob64 (globfree64): Move to separate file.
25558 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
25559 (globfree64): Remove hidden alias.
25560 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
25561 oldglob.
25562 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
25563 separate file.
25564 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
25565 define.
25566 Move compat code to separate file.
25567 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
25568 separate file.
25569
25570 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
25571
25572 * resolv/tst-resolv-qtypes.c (domain): Changed to
25573 "const char domain[] =".
25574
25575 2017-09-07 Joseph Myers <joseph@codesourcery.com>
25576
25577 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
25578 version to 3.1.6.
25579
25580 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
25581 (TCP_MD5SIG_EXT): Likewise.
25582 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
25583 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
25584 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
25585
25586 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
25587
25588 2017-09-07 Mike FABIAN <mfabian@redhat.com>
25589
25590 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
25591
25592 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
25593
25594 [BZ #22100]
25595 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
25596
25597 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
25598
25599 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
25600 before assuming that the file is empty. Avoid testing buffer content
25601 when nread == 0.
25602
25603 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25604
25605 [BZ #18858]
25606 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
25607 Remove define.
25608 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
25609 Likewise.
25610 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
25611 Likewise.
25612 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
25613 Likewise.
25614 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
25615 Likewise.
25616 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
25617 Likewise.
25618 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
25619 Likewise.
25620
25621 2017-09-06 Florian Weimer <fweimer@redhat.com>
25622
25623 * malloc/dynarray_emplace_enlarge.c
25624 (__libc_dynarray_emplace_enlarge): Add missing else.
25625
25626 2017-09-06 Florian Weimer <fweimer@redhat.com>
25627
25628 [BZ #22096]
25629 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
25630 case of failure to obtain the global conf object.
25631
25632 2017-09-06 Florian Weimer <fweimer@redhat.com>
25633
25634 [BZ #22095]
25635 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
25636 dynarray allocation failure.
25637
25638 2017-09-06 Florian Weimer <fweimer@redhat.com>
25639
25640 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
25641 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
25642 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
25643 New functions.
25644 (response): Call them. Add 'p', '6' flag processing.
25645 (test_reverse): New function.
25646 (test_get2_any): Call it.
25647 (test_no_inet6): Add 'p' test.
25648 (test_inet6): Likewise.
25649
25650 2017-09-06 Florian Weimer <fweimer@redhat.com>
25651
25652 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
25653 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
25654 the QNAME.
25655 (test_gai): Adjust query names. Add additional tests.
25656 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
25657 test_get2. Adjust query names. Add additional tests.
25658 (test_no_inet6): New function, extracted from threadfunc.
25659 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
25660 Add additional tests.
25661
25662 2017-09-06 Mike FABIAN <mfabian@redhat.com>
25663
25664 [BZ #22070]
25665 * localedata/unicode-gen/utf8_gen.py: Set the width for
25666 characters with Prepended_Concatenation_Mark property to 1
25667 * localedata/charmaps/UTF-8: Updated using the improved script.
25668
25669 2017-09-06 Mike FABIAN <mfabian@redhat.com>
25670
25671 [BZ #21750]
25672 * localedata/unicode-gen/utf8_gen.py: Improve the script to
25673 use the range notation for all ranges of neighbouring characters
25674 with the same width.
25675
25676 2017-09-05 Joseph Myers <joseph@codesourcery.com>
25677
25678 * sysdeps/generic/math-type-macros-double.h: Include
25679 <math-svid-compat.h>.
25680 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
25681 * sysdeps/generic/math-type-macros-float.h: Include
25682 <math-svid-compat.h>.
25683 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
25684 * sysdeps/generic/math-type-macros-ldouble.h: Include
25685 <math-svid-compat.h>.
25686 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
25687 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
25688 condition.
25689 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
25690 * math/w_acosf_compat.c: Likewise.
25691 * math/w_acosh_compat.c: Likewise.
25692 * math/w_acoshf_compat.c: Likewise.
25693 * math/w_acoshl_compat.c: Likewise.
25694 * math/w_acosl_compat.c: Likewise.
25695 * math/w_asin_compat.c: Likewise.
25696 * math/w_asinf_compat.c: Likewise.
25697 * math/w_asinl_compat.c: Likewise.
25698 * math/w_atan2_compat.c: Likewise.
25699 * math/w_atan2f_compat.c: Likewise.
25700 * math/w_atan2l_compat.c: Likewise.
25701 * math/w_atanh_compat.c: Likewise.
25702 * math/w_atanhf_compat.c: Likewise.
25703 * math/w_atanhl_compat.c: Likewise.
25704 * math/w_cosh_compat.c: Likewise.
25705 * math/w_coshf_compat.c: Likewise.
25706 * math/w_coshl_compat.c: Likewise.
25707 * math/w_exp10_compat.c: Likewise.
25708 * math/w_exp10f_compat.c: Likewise.
25709 * math/w_exp10l_compat.c: Likewise.
25710 * math/w_exp2_compat.c: Likewise.
25711 * math/w_exp2f_compat.c: Likewise.
25712 * math/w_exp2l_compat.c: Likewise.
25713 * math/w_fmod_compat.c: Likewise.
25714 * math/w_fmodf_compat.c: Likewise.
25715 * math/w_fmodl_compat.c: Likewise.
25716 * math/w_hypot_compat.c: Likewise.
25717 * math/w_hypotf_compat.c: Likewise.
25718 * math/w_hypotl_compat.c: Likewise.
25719 * math/w_j0_compat.c: Likewise.
25720 * math/w_j0f_compat.c: Likewise.
25721 * math/w_j0l_compat.c: Likewise.
25722 * math/w_j1_compat.c: Likewise.
25723 * math/w_j1f_compat.c: Likewise.
25724 * math/w_j1l_compat.c: Likewise.
25725 * math/w_jn_compat.c: Likewise.
25726 * math/w_jnf_compat.c: Likewise.
25727 * math/w_jnl_compat.c: Likewise.
25728 * math/w_lgamma_r_compat.c: Likewise.
25729 * math/w_lgammaf_r_compat.c: Likewise.
25730 * math/w_lgammal_r_compat.c: Likewise.
25731 * math/w_log10_compat.c: Likewise.
25732 * math/w_log10f_compat.c: Likewise.
25733 * math/w_log10l_compat.c: Likewise.
25734 * math/w_log2_compat.c: Likewise.
25735 * math/w_log2f_compat.c: Likewise.
25736 * math/w_log2l_compat.c: Likewise.
25737 * math/w_log_compat.c: Likewise.
25738 * math/w_logf_compat.c: Likewise.
25739 * math/w_logl_compat.c: Likewise.
25740 * math/w_pow_compat.c: Likewise.
25741 * math/w_powf_compat.c: Likewise.
25742 * math/w_powl_compat.c: Likewise.
25743 * math/w_remainder_compat.c: Likewise.
25744 * math/w_remainderf_compat.c: Likewise.
25745 * math/w_remainderl_compat.c: Likewise.
25746 * math/w_sinh_compat.c: Likewise.
25747 * math/w_sinhf_compat.c: Likewise.
25748 * math/w_sinhl_compat.c: Likewise.
25749 * math/w_sqrt_compat.c: Likewise.
25750 * math/w_sqrtf_compat.c: Likewise.
25751 * math/w_sqrtl_compat.c: Likewise.
25752 * math/w_tgamma_compat.c: Likewise.
25753 * math/w_tgammaf_compat.c: Likewise.
25754 * math/w_tgammal_compat.c: Likewise.
25755 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
25756 [LIBM_SVID_COMPAT].
25757 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
25758 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
25759 [LIBM_SVID_COMPAT].
25760 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
25761 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
25762 [LIBM_SVID_COMPAT].
25763 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
25764 * sysdeps/i386/fpu/w_sqrt.c: New file.
25765 * sysdeps/ia64/fpu/w_acos.c: Likewise.
25766 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
25767 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
25768 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
25769 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
25770 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
25771 * sysdeps/ia64/fpu/w_asin.c: Likewise.
25772 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
25773 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
25774 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
25775 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
25776 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
25777 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
25778 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
25779 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
25780 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
25781 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
25782 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
25783 * sysdeps/ia64/fpu/w_exp.c: Likewise.
25784 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
25785 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
25786 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
25787 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
25788 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
25789 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
25790 * sysdeps/ia64/fpu/w_expf.c: Likewise.
25791 * sysdeps/ia64/fpu/w_expl.c: Likewise.
25792 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
25793 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
25794 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
25795 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
25796 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
25797 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
25798 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
25799 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
25800 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
25801 * sysdeps/ia64/fpu/w_log.c: Likewise.
25802 * sysdeps/ia64/fpu/w_log10.c: Likewise.
25803 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
25804 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
25805 * sysdeps/ia64/fpu/w_log2.c: Likewise.
25806 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
25807 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
25808 * sysdeps/ia64/fpu/w_logf.c: Likewise.
25809 * sysdeps/ia64/fpu/w_logl.c: Likewise.
25810 * sysdeps/ia64/fpu/w_pow.c: Likewise.
25811 * sysdeps/ia64/fpu/w_powf.c: Likewise.
25812 * sysdeps/ia64/fpu/w_powl.c: Likewise.
25813 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
25814 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
25815 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
25816 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
25817 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
25818 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
25819 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
25820 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
25821 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
25822 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
25823 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
25824 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
25825 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
25826 [LIBM_SVID_COMPAT].
25827 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
25828 * sysdeps/ieee754/k_standard.c: Likewise.
25829 * sysdeps/ieee754/k_standardf.c: Likewise.
25830 * sysdeps/ieee754/k_standardl.c: Likewise.
25831 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
25832 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
25833 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
25834 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
25835 long_double_symbol call on [LIBM_SVID_COMPAT].
25836 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
25837 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
25838 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
25839 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
25840 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
25841 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
25842 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
25843 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
25844 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
25845 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
25846 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
25847 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
25848 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
25849 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
25850 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
25851 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
25852 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
25853 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
25854 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
25855 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
25856 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
25857 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
25858
25859 2017-09-05 Steve Ellcey <sellcey@cavium.com>
25860
25861 * include/shlib-compat.h (TEST_COMPAT): New Macro.
25862 * malloc/tst-mallocstate.c: Convert from test-skeleton
25863 to test-driver. Ifdef code using TEST_COMPAT macro.
25864 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
25865 * math/test-matherr.c: Likewise.
25866
25867 2017-09-05 Joseph Myers <joseph@codesourcery.com>
25868
25869 [BZ #22086]
25870 * debug/pcprofiledump.c (main): Use byte-swapped mask when
25871 comparing word with byte-swapped constant.
25872
25873 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
25874
25875 [BZ #20498]
25876 * locale/iso-639.def: add Miskito.
25877 * localedata/SUPPORTED: Add miq_NI/UTF-8.
25878 * localedata/locales/miq_NI: New file.
25879
25880 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
25881
25882 [BZ #18822]
25883 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
25884 (__mkdir): Likewise.
25885 * io/chmod.c (__chmod): Add libc_hidden_def.
25886 * io/mkdir.c (__mkdir): Likewise.
25887 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
25888 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
25889 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
25890 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
25891
25892 2017-09-04 Joseph Myers <joseph@codesourcery.com>
25893
25894 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
25895 version to 4.13.
25896
25897 [BZ #22082]
25898 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
25899 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
25900
25901 2017-09-04 Florian Weimer <fweimer@redhat.com>
25902
25903 * math/math.h: Issue warning if log is defined.
25904
25905 2017-09-04 Joseph Myers <joseph@codesourcery.com>
25906
25907 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
25908 kernel version to 4.13.
25909
25910 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
25911
25912 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
25913 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
25914 parameter.
25915 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
25916 just <bits/types.h>.
25917 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
25918 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
25919 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
25920 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
25921 * misc/preadv2.c: Include <errno.h>.
25922 * misc/preadv64v2.c: Include <errno.h>.
25923 * misc/pwritev2.c: Include <errno.h>.
25924 * misc/pwritev64v2.c: Include <errno.h>.
25925 * sysdeps/posix/preadv2.c: Include <errno.h>.
25926 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
25927 Fix <unistd.h> inclusion.
25928 * sysdeps/posix/pwritev2.c: Include <errno.h>.
25929 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
25930 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
25931 __strtoul_internal): New functions.
25932 * sysdeps/posix/pause.c: Include <sigsetops.h>.
25933 * sysdeps/posix/system.c: Include <sigsetops.h>.
25934 * sysdeps/mach/hurd/i386/Makefile
25935 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
25936 [$(subdir) = csu] (sysdep-only-routines): Likewise.
25937 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
25938 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
25939 __feraiseexcept_renamed to feraiseexcept instead of
25940 __GI_feraiseexcept.
25941 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
25942 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
25943 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
25944 RWF_NOWAIT): Define to 0 if undefined already.
25945 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
25946 boils down to 0.
25947 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
25948 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
25949
25950 2017-09-01 Joseph Myers <joseph@codesourcery.com>
25951
25952 * manual/math.texi (pow10): Do not document.
25953 (pow10f): Likewise.
25954 (pow10l): Likewise.
25955 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
25956 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
25957 * math/libm-test-exp10.inc (pow10_test): Remove.
25958 (do_test): Do not call pow10.
25959 * math/w_exp10_compat.c (pow10): Make into compat symbol.
25960 [NO_LONG_DOUBLE] (pow10l): Likewise.
25961 * math/w_exp10f_compat.c (pow10f): Likewise.
25962 * math/w_exp10l_compat.c (pow10l): Likewise.
25963 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
25964 (pow10): Make into compat symbol.
25965 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
25966 (pow10f): Make into compat symbol.
25967 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
25968 (pow10l): Make into compat symbol.
25969 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
25970 pow10.
25971 (CFLAGS-nldbl-pow10.c): Remove variable..
25972 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
25973 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
25974 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
25975 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
25976 Undefine and redefine.
25977 (pow10l): Make into compat symbol.
25978 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
25979 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
25980 * sysdeps/arm/libm-test-ulps: Likewise.
25981 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
25982 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
25983 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
25984 * sysdeps/microblaze/libm-test-ulps: Likewise.
25985 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
25986 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
25987 * sysdeps/nios2/libm-test-ulps: Likewise.
25988 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
25989 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
25990 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
25991 * sysdeps/sh/libm-test-ulps: Likewise.
25992 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
25993 * sysdeps/tile/libm-test-ulps: Likewise.
25994 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25995
25996 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
25997
25998 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
25999
26000 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
26001
26002 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
26003 "../ChangeLog.old/ChangeLog.8".
26004 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
26005 "../ChangeLog.old/ChangeLog.14".
26006
26007 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
26008
26009 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
26010 Threads Library.
26011
26012 2017-09-01 Joseph Myers <joseph@codesourcery.com>
26013
26014 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
26015
26016 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
26017
26018 * csu/version.c (banner): Remove "by Roland McGrath et al.".
26019 * nptl/Banner: Remove "by Ulrich Drepper et al.".
26020
26021 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
26022
26023 * stdlib/tst-atexit-common.c (do_test): Test support for at least
26024 32 atexit handlers.
26025
26026 2017-09-01 Zack Weinberg <zackw@panix.com>
26027
26028 * math/math.h (HUGE_VAL): Improve commentary.
26029
26030 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26031 Andreas Schwab <schwab@suse.de>
26032
26033 [BZ #21530]
26034 * include/stdio.h (__gen_tempfd): New function.
26035 * stdio-common/Makefile (routines): Add gentempfd.
26036 * stdio-common/gentempfd.c: New file.
26037 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
26038 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
26039 unnamed file first.
26040
26041 2017-09-01 Florian Weimer <fweimer@redhat.com>
26042
26043 [BZ #21915]
26044 [BZ #21922]
26045 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
26046 result to determine success or failure, not the errno value.
26047 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
26048 (tst-nss-files-hosts-erange): Link with -ldl.
26049 * nss/tst-nss-files-hosts-erange.c: New file.
26050 * nss/tst-resolv-basic.c (response): Handle nodata.example.
26051 (do_test): Add NO_DATA tests.
26052 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
26053 (do_test): Call it.
26054
26055 2017-09-01 Florian Weimer <fweimer@redhat.com>
26056
26057 [BZ #21922]
26058 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
26059 coming from gethostbyname2_r.
26060
26061 2017-09-01 Florian Weimer <fweimer@redhat.com>
26062
26063 * support/namespace.h (struct support_chroot_configuration): Add
26064 hosts, host_conf.
26065 (struct support_chroot): Add path_hosts, path_host_conf.
26066 * support/support_chroot.c (write_file): New function.
26067 (support_chroot_create): Call it to process /etc/resolv.conf,
26068 /etc/hosts, /etc/host.conf.
26069 (support_chroot_free): Update.
26070
26071 2017-09-01 Florian Weimer <fweimer@redhat.com>
26072
26073 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
26074 status indicates it is set.
26075
26076 2017-09-01 Florian Weimer <fweimer@redhat.com>
26077
26078 [BZ #20532]
26079 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
26080 function lookup failures more reliable.
26081
26082 2017-09-01 Florian Weimer <fweimer@redhat.com>
26083
26084 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
26085 (getcanonname): Likewise.
26086 (gaih_inet): Likewise.
26087
26088 2017-09-01 Florian Weimer <fweimer@redhat.com>
26089
26090 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
26091 (getcanonname): Likewise.
26092 (gaih_inet): Likewise.
26093
26094 2017-08-31 Steve Ellcey <sellcey@cavium.com>
26095 Richard Henderson <rth@twiddle.net>
26096
26097 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
26098 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
26099 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
26100 (IREG_SIZE, OREG_SIZE): New macros.
26101 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
26102 (IREG_SIZE, OREG_SIZE): New macros.
26103 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
26104 (IREG_SIZE): New macro.
26105 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
26106 (IREG_SIZE): New macro.
26107 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
26108 New includes.
26109 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
26110 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
26111 (__CONCATX): Handle exceptions correctly on large values that may
26112 set FE_INVALID.
26113 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
26114 Initialize if not already set.
26115 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
26116
26117 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26118
26119 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
26120 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
26121 Likewise.
26122 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
26123 Likewise.
26124 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
26125 Likewise.
26126 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
26127 Likewise.
26128 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
26129 Likewise.
26130 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
26131 Likewise.
26132 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
26133 Likewise.
26134 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
26135 (NO_CANCELLATION): Likewise.
26136 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
26137 Likewise.
26138 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
26139 Likewise.
26140 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
26141 Likewise.
26142 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
26143 (NO_CANCELLATION): Likewise.
26144 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
26145 (NO_CANCELLATION): Likewise.
26146 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
26147 Likewise
26148 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
26149 Likewise.
26150 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
26151 Likewise.
26152 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
26153 Likewise.
26154 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
26155 hidden prototype.
26156 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
26157 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
26158
26159 2017-08-31 Steve Ellcey <sellcey@cavium.com>
26160
26161 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
26162 in resolver call.
26163
26164 2017-08-31 Florian Weimer <fweimer@redhat.com>
26165
26166 * include/libc-symbols.h (internal_function): Remove.
26167
26168 2017-08-31 Florian Weimer <fweimer@redhat.com>
26169
26170 * stdlib/fmtmsg.c (internal_addseverity): Remove
26171 internal_function.
26172
26173 2017-08-31 Florian Weimer <fweimer@redhat.com>
26174
26175 * stdio-common/printf_fp.c (group_number): Remove
26176 internal_function.
26177 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
26178
26179 2017-08-31 Florian Weimer <fweimer@redhat.com>
26180
26181 * posix/fnmatch.c (internal_function): Remove definition.
26182 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
26183 * posix/regcomp.c (peek_token, init_word_char)
26184 (duplicate_node_closure, fetch_token, peek_token)
26185 (peek_token_bracket, build_range_exp, build_collating_symbol):
26186 Likewise.
26187 * posix/regex_internal.c (re_string_construct_common)
26188 (create_ci_newstate, create_cd_newstate, re_string_allocate)
26189 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
26190 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
26191 (re_string_translate_buffer, re_string_reconstruct)
26192 (re_string_peek_byte_case, re_string_fetch_byte_case)
26193 (re_string_destruct, re_string_context_at, re_node_set_alloc)
26194 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
26195 (re_node_set_add_intersect, re_node_set_init_union)
26196 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
26197 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
26198 (re_dfa_add_node, calc_state_hash, re_acquire_state)
26199 (re_acquire_state_context): Likewise.
26200 * posix/regex_internal.h (internal_function): Remove definition.
26201 (re_string_realloc_buffers, build_wcs_buffer)
26202 (build_wcs_upper_buffer, build_upper_buffer)
26203 (re_string_translate_buffer, re_string_context_at)
26204 (re_string_char_size_at, re_string_wchar_at)
26205 (re_string_elem_size_at): Likewise.
26206 * posix/regexec.c (match_ctx_init, match_ctx_clean)
26207 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
26208 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
26209 (re_search_internal, re_search_2_stub, re_search_stub)
26210 (re_copy_regs, prune_impossible_nodes, check_matching)
26211 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
26212 (free_fail_stack_return, sift_states_iter_mb)
26213 (sift_states_backward, build_sifted_states)
26214 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
26215 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
26216 (check_subexp_limits, sift_states_bkref, merge_state_array)
26217 (find_recover_state, transit_state, merge_state_with_log)
26218 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
26219 (transit_state_mb, transit_state_bkref, get_subexp)
26220 (get_subexp_sub, find_subexp_node, check_arrival)
26221 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
26222 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
26223 (check_node_accept_bytes, find_collation_sequence_value)
26224 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
26225 (acquire_init_state_context, check_halt_node_context)
26226 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
26227 (sub_epsilon_src_nodes): Likewise.
26228 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
26229 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
26230 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
26231 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
26232 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
26233 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
26234 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
26235 * sysdeps/posix/ttyname.c (getttyname): Likewise.
26236 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
26237 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
26238 (PREADV): Likewise.
26239 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
26240 (PREADV): Likewise.
26241 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
26242 (PWRITEV): Likewise.
26243 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
26244 (PWRITEV): Likewise.
26245 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
26246 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
26247
26248 2017-08-31 Florian Weimer <fweimer@redhat.com>
26249
26250 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
26251 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
26252 Remove internal_function.
26253 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
26254 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
26255 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
26256 (__deallocate_stack, __libc_pthread_init)
26257 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
26258 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
26259 (__libc_disable_asynccancel, __librt_disable_asynccancel):
26260 Likewise.
26261 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
26262 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
26263 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
26264 Likewise.
26265 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
26266 (__pthread_mutex_unlock_usercnt): Likewise.
26267
26268 2017-08-31 Florian Weimer <fweimer@redhat.com>
26269
26270 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
26271 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
26272 (fts_safe_changedir): Remove internal_function.
26273 * io/ftw.c (internal_function): Remove definition.
26274 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
26275
26276 2017-08-31 Florian Weimer <fweimer@redhat.com>
26277
26278 * inet/deadline.c (__deadline_current_time)
26279 (__deadline_from_timeval, __deadline_to_ms): Remove
26280 internal_function.
26281 * inet/getnameinfo.c (nrl_domainname): Likewise.
26282 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
26283 * inet/inet6_option.c (add_pad): Likewise.
26284 * inet/net-internal.h (__deadline_current_time)
26285 (__deadline_from_timeval, __deadline_to_ms): Likewise.
26286 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
26287 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
26288 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
26289
26290 2017-08-31 Joseph Myers <joseph@codesourcery.com>
26291
26292 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
26293 include <bits/nan.h>.
26294 * math/Makefile (headers): Remove bits/nan.h.
26295 * bits/nan.h: Remove.
26296 * sysdeps/ieee754/bits/nan.h: Likewise.
26297 * sysdeps/mips/bits/nan.h: Likewise.
26298
26299 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
26300 not include <bits/inf.h>.
26301 * math/Makefile (headers): Remove bits/inf.h.
26302 * bits/inf.h: Remove.
26303 * sysdeps/ieee754/bits/inf.h: Likewise.
26304
26305 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
26306 bits/huge_vall.h or bits/huge_val_flt128.h.
26307 (HUGE_VAL): Define directly here.
26308 [__USE_ISOC99] (HUGE_VALF): Likewise.
26309 [__USE_ISOC99] (HUGE_VALL): Likewise.
26310 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26311 (HUGE_VAL_F128): Likewise.
26312 * math/Makefile (headers): Remove bits/huge_val.h,
26313 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
26314 * bits/huge_val.h: Remove.
26315 * bits/huge_val_flt128.h: Likewise.
26316 * bits/huge_valf.h: Likewise.
26317 * bits/huge_vall.h: Likewise.
26318 * sysdeps/ia64/bits/huge_vall.h: Likewise.
26319 * sysdeps/ieee754/bits/huge_val.h: Likewise.
26320 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
26321 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
26322 * sysdeps/sh/bits/huge_val.h: Likewise.
26323 * sysdeps/sparc/bits/huge_vall.h: Likewise.
26324 * sysdeps/x86/bits/huge_vall.h: Likewise.
26325
26326 2017-08-31 Florian Weimer <fweimer@redhat.com>
26327
26328 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
26329 internal_function.
26330 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
26331 Likewise.
26332 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
26333 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
26334 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
26335 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
26336 * elf/dl-fini.c (_dl_sort_fini): Likewise.
26337 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
26338 * elf/dl-libc.c (dlerror_run): Likewise.
26339 * elf/dl-load.c (add_name_to_object, decompose_rpath)
26340 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
26341 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
26342 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
26343 Likewise.
26344 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
26345 (_dl_higher_prime_number, _dl_strtoul): Likewise.
26346 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
26347 * elf/dl-profile.c (_dl_start_profile): Likewise.
26348 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
26349 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
26350 Likewise.
26351 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
26352 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
26353 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
26354 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
26355 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
26356 (_dl_allocate_tls_storage): Likewise.
26357 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
26358 (_dl_check_all_versions): Likewise.
26359 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
26360 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
26361 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
26362 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
26363 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
26364 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
26365 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
26366 internal_function from __dl_start.
26367 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
26368 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
26369 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
26370 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
26371 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
26372 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
26373 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
26374 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
26375 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
26376 (_dl_next_ld_env_entry, _dl_important_hwcaps)
26377 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
26378 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
26379 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
26380 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
26381 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
26382 Likewise.
26383 (struct rtld_global_ro): Remove internal_function from the
26384 _dl_lookup_symbol_x member.
26385 (_dl_symbol_value): Remove. No longer defined anywhere.
26386 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
26387 internal_function.
26388 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
26389 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
26390 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
26391 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
26392 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
26393 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
26394 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
26395 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
26396 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
26397 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
26398 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
26399 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
26400
26401 2017-08-31 Florian Weimer <fweimer@redhat.com>
26402
26403 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
26404 Remove internal_function.
26405 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
26406 Likewise.
26407 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
26408 Likewise.
26409
26410 2017-08-31 Florian Weimer <fweimer@redhat.com>
26411
26412 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
26413 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
26414 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
26415
26416 2017-08-31 Florian Weimer <fweimer@redhat.com>
26417
26418 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
26419 (__gai_enqueue_request): Remove internal_function.
26420 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
26421 (__gai_remove_request, __gai_notify, __gai_notify_only)
26422 (__gai_sigqueue): Likewise.
26423 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
26424 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
26425 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
26426 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
26427 Likewise.
26428
26429 2017-08-31 Florian Weimer <fweimer@redhat.com>
26430
26431 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
26432 * include/dirent.h (__opendirat, __getdents, __getdents64)
26433 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
26434 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
26435 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
26436 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
26437 Likewise.
26438 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
26439
26440 2017-08-31 Florian Weimer <fweimer@redhat.com>
26441
26442 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
26443 internal_function.
26444 (GETCWD_RETURN_TYPE): Likewise.
26445
26446 2017-08-31 Florian Weimer <fweimer@redhat.com>
26447
26448 * include/time.h (__tz_compute, __strptime_internal): Remove
26449 internal_function.
26450 * time/strptime_l.c (__strptime_internal): Likewise.
26451 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
26452
26453 2017-08-31 Florian Weimer <fweimer@redhat.com>
26454
26455 * iconv/gconv.c (__gconv): Remove internal_function.
26456 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
26457 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
26458 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
26459 (__gconv_release_cache): Likewise.
26460 * iconv/gconv_close.c (__gconv_close): Likewise.
26461 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
26462 (read_conf_file, __gconv_get_path): Likewise.
26463 * iconv/gconv_db.c (derivation_lookup, add_derivation)
26464 (__gconv_release_step, gen_steps, increment_counter)
26465 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
26466 (__gconv_close_transform, free_modules_db): Likewise.
26467 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
26468 Likewise.
26469 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
26470 (__gconv_find_transform, __gconv_lookup_cache)
26471 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
26472 (__gconv_close_transform, __gconv_release_cache)
26473 (__gconv_loaded_object, __gconv_release_shlib)
26474 (__gconv_compare_alias): Likewise.
26475 * iconv/gconv_open.c (__gconv_open): Likewise.
26476 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
26477 * iconv/iconvconfig.c (add_module): Likewise.
26478 * intl/dcigettext.c (plural_lookup, guess_category_value)
26479 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
26480 * intl/eval-plural.h (plural_eval): Likewise.
26481 * intl/finddomain.c (_nl_find_domain): Likewise.
26482 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
26483 (_nl_load_domain, _nl_find_msg): Likewise.
26484 (internal_function): Remove definition.
26485 * intl/loadinfo.h (internal_function): Likewise.
26486 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
26487 internal_function.
26488 * intl/localealias.c (internal_function): Remove definition.
26489 (read_alias_file): Remove internal_function.
26490 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
26491 * intl/plural-exp.h (internal_function): Remove definition.
26492 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
26493 internal_function.
26494 * intl/plural.c: Regenerate.
26495 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
26496 * locale/coll-lookup.c (__collidx_table_lookup)
26497 (__collseq_table_lookup): Likewise.
26498 * locale/coll-lookup.h (__collidx_table_lookup)
26499 (__collseq_table_lookup): Likewise.
26500 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
26501 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
26502 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
26503 (_nl_unload_locale): Likewise.
26504 * locale/localeinfo.h (struct __locale_data): Remove
26505 internal_function from cleanup member.
26506 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
26507 (_nl_remove_locale, _nl_load_locale_from_archive)
26508 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
26509 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
26510 (_nl_cleanup_time): Remove internal_function.
26511 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
26512 (_nl_parse_alt_digit): Likewise.
26513 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
26514 (_nl_select_era_entry): Likewise.
26515 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
26516 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
26517 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
26518 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
26519 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
26520
26521 2017-08-31 Florian Weimer <fweimer@redhat.com>
26522
26523 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
26524 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
26525 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
26526 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
26527 Likewise.
26528 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
26529 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
26530 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
26531 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
26532 Likewise.
26533 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
26534
26535 2017-08-31 Florian Weimer <fweimer@redhat.com>
26536
26537 * misc/getttyent.c (skip, value): Remove internal_function.
26538 * misc/syslog.c (openlog_internal): Likewise.
26539 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
26540
26541 2017-08-31 Florian Weimer <fweimer@redhat.com>
26542
26543 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
26544 (__nss_rewrite_field): Remove internal_function.
26545 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
26546 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
26547 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
26548 * nss/nsswitch.c (nss_parse_file, nss_getline)
26549 (nss_parse_service_list, nss_new_service): Likewise.
26550 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
26551 * nss/valid_field.c (__nss_valid_field): Likewise.
26552 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
26553
26554 2017-08-31 Florian Weimer <fweimer@redhat.com>
26555
26556 * malloc/arena.c (__malloc_fork_lock_parent)
26557 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
26558 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
26559 internal_function from defintions.
26560 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
26561 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
26562 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
26563 internal_function from declarations.
26564 * malloc/malloc.c (internal_function): Do not define.
26565 (mem2mem_check): Remove internal_function from declaration.
26566 (munmap_chunk, mremap_chunk): Remove internal_function.
26567 * malloc/mtrace.c (tr_where): Likewise.
26568
26569 2017-08-31 Florian Weimer <fweimer@redhat.com>
26570
26571 * include/rpc/pmap_clnt.h (__get_socket): Remove
26572 internal_function.
26573 * sunrpc/auth_des.c (synchronize): Likewise.
26574 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
26575 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
26576 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
26577 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
26578 (key_call): Likewise.
26579 * sunrpc/pm_getport.c (__get_socket): Likewise.
26580 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
26581 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
26582 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
26583 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
26584 (invalidate): Likewise.
26585 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
26586 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
26587 (set_input_fragment, get_input_bytes): Likewise.
26588
26589 2017-08-31 Florian Weimer <fweimer@redhat.com>
26590
26591 * malloc/malloc.c (_int_free): Remove locked variable and related
26592 asserts.
26593
26594 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
26595
26596 [BZ #22051]
26597 * Makerules (build-module-helper-objlist): Filter out
26598 $(elf-objpfx)sofini.os.
26599 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
26600 needed.
26601
26602 2017-08-31 Florian Weimer <fweimer@redhat.com>
26603
26604 * libio/fcloseall.c: Assume weak_alias is defined.
26605 * libio/feof.c: Likewise.
26606 * libio/fileno.c: Likewise.
26607 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
26608 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
26609 definitions.
26610 (_IO_file_open): Call __open directly.
26611 (_IO_new_file_sync): Assume ESPIPE is defined.
26612 (_IO_file_seekoff_maybe_mmap): Call __read directly.
26613 (_IO_new_file_write): Call __write directly.
26614 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
26615 * libio/ftello64.c (__ftello64): Assume EIO is defined.
26616 * libio/genops.c: Assume _LIBC is defined.
26617 (save_for_backup): Remove internal_function.
26618 * libio/getc.c: Assume weak_alias is defined.
26619 * libio/getwc.c: Likewise.
26620 * libio/iofclose.c: Assume _LIBC is defined.
26621 * libio/iofdopen.c: Likewise.
26622 (_IO_fcntl): Remove macro definition.
26623 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
26624 Call __fcntl directly.
26625 * libio/iofflush.c: Assume weak_alias is defined.
26626 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
26627 defined.
26628 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
26629 * libio/iofgets.c: Likewise.
26630 * libio/iofopen.c: Assume _LIBC is defined.
26631 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
26632 * libio/iofputs.c: Assume weak_alias is defined.
26633 * libio/iofread.c: Likewise.
26634 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
26635 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
26636 * libio/ioftell.c: Assume weak_alias is defined.
26637 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
26638 * libio/iofwide.c: Assume _LIBC is defined.
26639 (_IO_fwide): Drop SHARED conditional because it is implied by
26640 SHLIB_COMPAT.
26641 * libio/iofwrite.c: Assume weak_alias is defined.
26642 * libio/iogetdelim.c: Likewise.
26643 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
26644 * libio/iogetwline.c (wmemcpy): Remove macro definition.
26645 (_IO_getwline): Call __wmemcpy directly.
26646 * libio/iopopen.c: Assume _LIBC is defined.
26647 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
26648 (_IO_close): Remove macro definitions.
26649 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
26650 _exit directly.
26651 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
26652 directly.
26653 * libio/ioputs.c: Assume weak_alias is defined.
26654 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
26655 * libio/iosetbuffer.c: Assume weak_alias is defined.
26656 * libio/iosetvbuf.c: Likewise.
26657 * libio/ioungetc.c: Likewise.
26658 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
26659 libc_hidden_def, libc_hidden_weak, NULL are defined.
26660 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
26661 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
26662 defined.
26663 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
26664 definitions.
26665 (_IO_old_file_init_internal): Drop SHARED conditional because it
26666 is implied by SHLIB_COMPAT.
26667 (_IO_old_file_fopen): Call __open directly.
26668 (_IO_old_file_sync): Assume ESPIPE is defined.
26669 (_IO_old_file_write): Call __write directly.
26670 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
26671 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
26672 Call __fcntl directly.
26673 * libio/oldiofgetpos.c: Assume weak_alias is defined.
26674 (_IO_old_fgetpos): Assume EIO is defined.
26675 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
26676 (_IO_old_fgetpos64): Assume EIO is defined.
26677 * libio/oldiofsetpos.c: Assume weak_alias is defined.
26678 (_IO_old_fsetpos): Assume EIO is defined.
26679 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
26680 (_IO_old_fsetpos64): Assume EIO is defined.
26681 * libio/oldiopopen.c: Assume _LIBC is defined.
26682 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
26683 (_IO_close): Remove macro definitions.
26684 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
26685 directly.
26686 (_IO_old_proc_close): Call __close, __waitpid directly.
26687 * libio/put.c: Assume weak_alias is defined.
26688 * libio/stdfiles.c: Assume _LIBC is defined.
26689 * libio/stdio.c: Likewise.
26690 * libio/wfileops.c: Likewise.
26691 (_IO_wfile_sync): Assume ESPIPE is defined.
26692 * libio/wgenops.c: Assume _LIBC is defined.
26693 (save_for_wbackup): Remove internal_function.
26694
26695 2017-08-31 Florian Weimer <fweimer@redhat.com>
26696
26697 * malloc/malloc.c (top_check): Change return type to void. Remove
26698 internal_function.
26699 * malloc/hooks.c (top_check): Likewise.
26700 (malloc_check, realloc_check, memalign_check): Adjust.
26701
26702 2017-08-30 Joseph Myers <joseph@codesourcery.com>
26703
26704 [BZ #21457]
26705 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
26706 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
26707 sigcontext and namespace requirements.
26708 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
26709 * sysdeps/m68k/sys/ucontext.h: Likewise.
26710 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
26711 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
26712 <bits/sigcontext.h>.
26713 (__ctx): Define earlier.
26714 (mcontext_t): Define structure contents rather than using struct
26715 sigcontext.
26716 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
26717 __glibc_reserved1 instead of __reserved.
26718 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
26719 <bits/sigcontext.h>.
26720 (__ctx): Define earlier.
26721 (mcontext_t): Define structure contents rather than using struct
26722 sigcontext.
26723 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
26724 mcontext_t instead of struct sigcontext.
26725 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
26726 <bits/sigcontext.h>.
26727 (__ctx): Define earlier.
26728 (mcontext_t): Define structure contents rather than using struct
26729 sigcontext.
26730 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
26731 <bits/sigcontext.h>.
26732 (__ctx): Define earlier.
26733 (mcontext_t): Define structure contents rather than using struct
26734 sigcontext.
26735 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
26736 mcontext_t instead of struct sigcontext.
26737 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
26738 mcontext_t instead of struct sigcontext.
26739 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
26740 <bits/sigcontext.h>.
26741 (__ctx): New macro.
26742 (struct __ia64_fpreg_mcontext): New type.
26743 (mcontext_t): Define structure contents rather than using struct
26744 sigcontext.
26745 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
26746 (uc_sigmask): Define using __ctx.
26747 (uc_stack): Likewise.
26748 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
26749 <bits/sigcontext.h>.
26750 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
26751 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
26752 <bits/sigcontext.h>.
26753 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
26754 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
26755 <bits/sigcontext.h>.
26756 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
26757 <bits/sigcontext.h>.
26758 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
26759 <bits/sigcontext.h>.
26760 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
26761 <bits/sigcontext.h>.
26762 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
26763 <bits/sigcontext.h>.
26764 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
26765 <bits/sigcontext.h>.
26766 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
26767 <bits/sigcontext.h>.
26768 (__ctx): Define earlier.
26769 (mcontext_t): Define structure contents rather than using struct
26770 sigcontext.
26771 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
26772 <bits/sigcontext.h>. Include <bits/types.h>.
26773 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
26774 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
26775 (test-xfail-XPG42/ucontext.h/conform): Likewise.
26776 (test-xfail-UNIX98/signal.h/conform): Likewise.
26777 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
26778 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
26779 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
26780 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
26781 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
26782 (test-xfail-POSIX2008/signal.h/conform): Likewise.
26783 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
26784 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
26785 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
26786
26787 2017-08-30 Florian Weimer <fweimer@redhat.com>
26788
26789 * malloc/dynarray_emplace_enlarge.c
26790 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
26791 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
26792 * malloc/tst-dynarray.c (test_long_overflow): New function.
26793 (do_test): Call it.
26794
26795 2017-08-30 Florian Weimer <fweimer@redhat.com>
26796
26797 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
26798 (set_arena_corrupt): Remove definitions.
26799 (mtrim): Do not check for corrupt arena.
26800 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
26801 Likewise.
26802
26803 2017-08-30 Florian Weimer <fweimer@redhat.com>
26804
26805 [BZ #21754]
26806 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
26807 check_action.
26808 (ptmalloc_init): Do not set or use check_action.
26809 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
26810 call to malloc_printerr. Remove return statement.
26811 (free_check): Likewise. Remove arena unlock.
26812 (top_check): Update comment. Adjust call to malloc_printerr.
26813 Remove heap repair code.
26814 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
26815 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
26816 (sysmalloc): Adjust call to malloc_printerr.
26817 (munmap_chunk, __libc_realloc): Likewise. Remove return
26818 statement.
26819 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
26820 Remove errout label and corresponding gotos.
26821 (_int_free): Likewise. Remove arena unlock.
26822 (do_set_mallopt_check): Do not set check_action.
26823 (malloc_printerr): Adjust parameter list. Do not mark arena as
26824 corrupt.
26825 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
26826 comment.
26827 * manual/probes.texi (Memory Allocation Probes): Remove
26828 memory_mallopt_check_action.
26829
26830 2017-08-30 Steve Ellcey <sellcey@cavium.com>
26831
26832 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
26833 Use pointer to uint64_t instead of long int for sp.
26834
26835 2017-08-30 Florian Weimer <fweimer@redhat.com>
26836
26837 [BZ #21754]
26838 * malloc/malloc.c (malloc_printerr): Always terminate the process,
26839 without printing a backtrace. Do not leak any information in the
26840 error message.
26841 * manual/memory.texi (Heap Consistency Checking): Update.
26842 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
26843
26844 2017-08-30 Florian Weimer <fweimer@redhat.com>
26845
26846 Do not scale NPTL tests with available number of CPUs.
26847 * nptl/tst-cond16.c (count): Set to constant value of 8.
26848 * nptl/tst-cond18.c (count): Likewise.
26849
26850 2017-08-29 Joseph Myers <joseph@codesourcery.com>
26851
26852 [BZ #22035]
26853 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
26854 Define to take a second argument that is a macro that
26855 concatentates a suffix, not the suffix itself.
26856 (__CONCAT_d): New macro.
26857 (__CONCAT_f): Likewise.
26858 (__CONCAT_l): Likewise.
26859
26860 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
26861
26862 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
26863 by child.
26864
26865 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26866 Aurelien Jarno <aurelien@aurel32.net>
26867 Maciej W. Rozycki <macro@imgtec.com>
26868
26869 [BZ #21956]
26870 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
26871 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
26872 `mips16-syscall6' and `mips16-syscall7'.
26873 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
26874 (CFLAGS-mips16-syscall7.c): Remove.
26875 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
26876 Remove `__mips16_syscall5', `__mips16_syscall6' and
26877 `__mips16_syscall7'.
26878 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
26879 (__mips16_syscall0): Rename `__mips16_syscall_return' to
26880 `__mips_syscall_return'.
26881 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
26882 (__mips16_syscall1): Likewise.
26883 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
26884 (__mips16_syscall2): Likewise.
26885 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
26886 (__mips16_syscall3): Likewise.
26887 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
26888 (__mips16_syscall4): Likewise.
26889 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
26890 Remove.
26891 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
26892 Remove.
26893 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
26894 Remove.
26895 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
26896 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
26897 `__mips16_syscall5'. Remove prototype.
26898 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
26899 `__mips16_syscall6'. Remove prototype.
26900 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
26901 `__mips16_syscall7'. Remove prototype.
26902 (__nomips16, __mips16_syscall_return): Move to...
26903 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
26904 (__nomips16, __mips_syscall_return): ... here.
26905 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
26906 `__mips16_syscall_return' to `__mips_syscall_return'.
26907 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
26908 `internal_syscall##nr'.
26909 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
26910 `internal_syscall##nr'.
26911 (FORCE_FRAME_POINTER): Remove.
26912 (__mips_syscall5): New prototype.
26913 (internal_syscall5): Rewrite to call `__mips_syscall5'.
26914 (__mips_syscall6): New prototype.
26915 (internal_syscall6): Rewrite to call `__mips_syscall6'.
26916 (__mips_syscall7): New prototype.
26917 (internal_syscall7): Rewrite to call `__mips_syscall7'.
26918 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
26919 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
26920 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
26921 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
26922 (sysdep_routines): Add libc-do-syscall.
26923 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
26924 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
26925
26926 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26927
26928 [BZ #21672]
26929 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
26930 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
26931 (advise_stack_range): New function.
26932 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
26933 stack non required to advise_stack_range at allocatestack.c
26934
26935 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
26936
26937 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
26938
26939 2017-08-29 Florian Weimer <fweimer@redhat.com>
26940
26941 [BZ #22026]
26942 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
26943 __end_fct. Mangle __end_fct after setting it to NULL.
26944 * iconv/Makefile (tests): Add tst-gconv-init-failure.
26945 (modules-names, modules-names-tests): Add
26946 tst-gconv-init-failure-mod.
26947 (gconv-modules): New target.
26948 (tst-gconv-init-failure-mod.so): Link against libsupport.
26949 (tst-gconv-init-failure): Depend on gconv-modules,
26950 tst-gconv-init-failure-mod.so.
26951 * iconv/tst-gconv-init-failure-mod.c: New file.
26952 * iconv/tst-gconv-init-failure.c: Likewise.
26953 * iconv/test-gconv-modules: Likewise.
26954
26955 2017-08-29 Florian Weimer <fweimer@redhat.com>
26956
26957 [BZ #22025]
26958 * iconv/gconv_db.c (free_derivation): Remove redundant
26959 parentheses.
26960 (gen_steps): Unconditionally mangle __btowc_fct after
26961 initialization.
26962 (increment_counter): Likewise. Do not call init_fct for internal
26963 modules.
26964
26965 2017-08-29 Joseph Myers <joseph@codesourcery.com>
26966
26967 [BZ #22028]
26968 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
26969 (_MSUF_): Remove macro.
26970 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
26971 Likewise.
26972 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
26973 (__REDIRFROM_X): New macro.
26974 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
26975 Likewise.
26976 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
26977 (__REDIRTO_X): Likewise.
26978 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
26979 arguments.
26980 (__MATH_REDIRCALL_2): Likewise.
26981 (__MATH_REDIRCALL_INTERNAL): Likewise.
26982 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
26983 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
26984 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
26985 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
26986 * math/test-finite-macros.c: New file.
26987 * math/Makefile (tests): Add test-finite-macros.
26988 (CFLAGS-test-finite-macros.c): New variable.
26989
26990 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
26991 Jeff Law <law@redhat.com>
26992
26993 [BZ #22025]
26994 Mangle NULL pointers in iconv/gconv.
26995 * iconv/gconv_cache.c (find_module): Demangle init_fct before
26996 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
26997 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
26998 is non-NULL before demangling the end_fct. Check for NULL
26999 end_fct after demangling.
27000 (__gconv_release_step): Demangle the end_fct before checking
27001 it for NULL. Remove assert on __shlibc_handle != NULL.
27002 (gen_steps): Don't check btowc_fct for NULL before mangling.
27003 Demangle init_fct before checking for NULL.
27004 (increment_counter): Likewise.
27005 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
27006 end_fct for NULL before mangling.
27007 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
27008 for NULL.
27009
27010 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
27011
27012 [BZ #21971]
27013 * locale/iso-639.def: add Morisyen.
27014
27015 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
27016
27017 [BZ #21930]
27018 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
27019 (iszero): New C++ implementation that does not use
27020 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
27021 signaling nans are enabled, since __builtin_types_compatible_p
27022 is a C-only feature.
27023 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
27024 defined, include ieee754_float128.h for access to the union and
27025 member ieee854_float128.ieee.
27026 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
27027 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
27028 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
27029 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
27030 options of test-math-zero on powerpc64le.
27031
27032 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
27033
27034 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
27035 Change double to float.
27036
27037 2017-08-28 Joseph Myers <joseph@codesourcery.com>
27038
27039 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
27040 unconditional.
27041 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
27042 conditional code; define contents only for [LIBM_SVID_COMPAT].
27043
27044 2017-08-28 Florian Weimer <fweimer@redhat.com>
27045
27046 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
27047 (abi-lp64_be-options): Remove.
27048 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
27049 (abi-hard-options): Likewise.
27050 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
27051 (abi-o32_hard-options, abi-o32_soft_2008-options)
27052 (abi-o32_hard_2008-options, abi-n32_soft-options)
27053 (abi-n32_hard-options, abi-n32_soft_2008-options)
27054 (abi-n32_hard_2008-options, abi-n64_soft-options)
27055 (abi-n64_hard-options, abi-n64_soft_2008-options)
27056 (abi-n64_hard_2008-options): Likewise.
27057 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
27058 (abi-64-v1-options, abi-64-v2-options): Likewise.
27059 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
27060 (abi-64-options): Likewise.
27061 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
27062 (abi-64-options): Likewise.
27063 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
27064 (abi-64-options): Likewise.
27065 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
27066 (abi-64-options, abi-x32-options): Likewise.
27067
27068 2017-08-28 Florian Weimer <fweimer@redhat.com>
27069
27070 Store supported list of SYS_* system calls in the source tree.
27071 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
27072 (bits/syscall.h): Generate from list file.
27073 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
27074 [$(subdir) = misc] (tests): Add tst-syscall-list.
27075 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
27076 [$(subdir) = misc] (tst-syscall-list-macros.list)
27077 [$(subdir) = misc] (tst-syscall-list-nr.list)
27078 (tst-syscall-list-sys.list): Helper targets for new
27079 tst-syscall-list test.
27080 [$(subdir) = misc] (tst-syscall-list.out): Run test script
27081 tst-syscall-list.sh.
27082 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
27083 target. Do not include bits/syscall.d.
27084 [$(subdir) = misc] (generated): Do not update.
27085 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
27086 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
27087 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
27088 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
27089
27090 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
27091
27092 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
27093 (tst-cxa_atexit, tst-on_exit): Likewise.
27094 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
27095 tst-cxa_atexit, and tst-on_exit.
27096 * stdlib/tst-atexit-common.c: New file.
27097 * stdlib/tst-atexit.c: New file.
27098 * stdlib/tst-at_quick_exit.c: New file.
27099 * stdlib/tst-cxa_atexit.c: New file.
27100 * stdlib/tst-on_exit.c: New file.
27101
27102 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
27103
27104 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
27105 * mach/stack_chk_fail_local.c: New file.
27106 * hurd/stack_chk_fail_local.c: New file.
27107 * mach/Machrules ($(interface-library)-routines): Add
27108 stack_chk_fail_local.
27109 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
27110 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
27111 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
27112 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
27113 * hurd/Makefile (CFLAGS-hurdstartup.o,
27114 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
27115
27116 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
27117
27118 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
27119 (index_cpu_*, index_arch_*): Removed.
27120
27121 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
27122
27123 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
27124 Use uint64_t instead of unsigned long.
27125
27126 2017-08-25 Joseph Myers <joseph@codesourcery.com>
27127
27128 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
27129 [__HAVE_DISTINCT_FLOAT128].
27130
27131 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
27132 of <bits/math-finite.h>.
27133 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
27134 inclusion of <bits/math-finite.h>.
27135 * math/bits/math-finite.h (__REDIRTO_X): Do not define
27136 conditionally on [__MATH_DECLARING_LDOUBLE && defined
27137 __NO_LONG_DOUBLE_MATH].
27138 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
27139 (__MATH_REDIRCALL_2): Likewise.
27140 (__MATH_REDIRCALL_INTERNAL): Likewise.
27141 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
27142 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
27143 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
27144
27145 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
27146 Remove file.
27147 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
27148 Likewise.
27149 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
27150 Likewise.
27151 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
27152 Likewise.
27153 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
27154 Likewise.
27155 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
27156 Likewise.
27157 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
27158 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
27159 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
27160 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
27161 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
27162 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
27163 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
27164 w_sqrtf_compat-ppc32.
27165
27166 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
27167
27168 * math/math.h [defined __cplusplus] (issignaling): In the long
27169 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
27170 is not defined. Call __issignaling, otherwise.
27171
27172 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27173
27174 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
27175 syscall definitions and replace __builtin_expect with __glibc_likely.
27176 * sysdeps/unix/syscall-template.S: Update comment about cancellable
27177 syscall.
27178 (SYSCALL_CANCELLABLE): Removedefinition
27179 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
27180 definition.
27181 (PSEUDO_END): Likewise.
27182 [IS_IN (libpthread)] (CENABLE): Likewise.
27183 [IS_IN (libpthread)] (CDISABLE): Likewise.
27184 [IS_IN (libc)] (CENABLE): Likewise.
27185 [IS_IN (libc)] (CENABLE): Likewise.
27186 [IS_IN (librt)] (CDISABLE): Likewise.
27187 [IS_IN (librt)] (CDISABLE): Likewise.
27188 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
27189 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
27190 definition.
27191 (PSEUDO_END): Likewise.
27192 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
27193 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
27194 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
27195 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
27196 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
27197 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
27198 (CENABLE): Likewise.
27199 (CDISABLE): Likewise.
27200 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
27201 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
27202 defintion.
27203 (PSEUDO_END): Likewise.
27204 [IS_IN (libpthread)] (CENABLE): Likewise.
27205 [IS_IN (libpthread)] (CDISABLE): Likewise.
27206 [IS_IN (libc)] (CENABLE): Likewise.
27207 [IS_IN (libc)] (CENABLE): Likewise.
27208 [IS_IN (librt)] (CDISABLE): Likewise.
27209 [IS_IN (librt)] (CDISABLE): Likewise.
27210 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
27211 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
27212 definition.
27213 (PSEUDO_END): Likewise.
27214 [IS_IN (libpthread)] (CENABLE): Likewise.
27215 [IS_IN (libpthread)] (CDISABLE): Likewise.
27216 [IS_IN (libc)] (CENABLE): Likewise.
27217 [IS_IN (libc)] (CENABLE): Likewise.
27218 [IS_IN (librt)] (CDISABLE): Likewise.
27219 [IS_IN (librt)] (CDISABLE): Likewise.
27220 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
27221 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
27222 definition.
27223 (PSEUDO_END): Likewise.
27224 [IS_IN (libpthread)] (CENABLE): Likewise.
27225 [IS_IN (libpthread)] (CDISABLE): Likewise.
27226 [IS_IN (libc)] (CENABLE): Likewise.
27227 [IS_IN (libc)] (CENABLE): Likewise.
27228 [IS_IN (librt)] (CDISABLE): Likewise.
27229 [IS_IN (librt)] (CDISABLE): Likewise.
27230 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
27231 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
27232 definition.
27233 (PSEUDO_END): Likewise.
27234 [IS_IN (libpthread)] (CENABLE): Likewise.
27235 [IS_IN (libpthread)] (CDISABLE): Likewise.
27236 [IS_IN (libc)] (CENABLE): Likewise.
27237 [IS_IN (libc)] (CENABLE): Likewise.
27238 [IS_IN (librt)] (CDISABLE): Likewise.
27239 [IS_IN (librt)] (CDISABLE): Likewise.
27240 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
27241 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
27242 definition.
27243 (PSEUDO_END): Likewise.
27244 [IS_IN (libpthread)] (CENABLE): Likewise.
27245 [IS_IN (libpthread)] (CDISABLE): Likewise.
27246 [IS_IN (libc)] (CENABLE): Likewise.
27247 [IS_IN (libc)] (CENABLE): Likewise.
27248 [IS_IN (librt)] (CDISABLE): Likewise.
27249 [IS_IN (librt)] (CDISABLE): Likewise.
27250 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
27251 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
27252 definition.
27253 (PSEUDO_END): Likewise.
27254 [IS_IN (libpthread)] (CENABLE): Likewise.
27255 [IS_IN (libpthread)] (CDISABLE): Likewise.
27256 [IS_IN (libc)] (CENABLE): Likewise.
27257 [IS_IN (libc)] (CENABLE): Likewise.
27258 [IS_IN (librt)] (CDISABLE): Likewise.
27259 [IS_IN (librt)] (CDISABLE): Likewise.
27260 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
27261 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
27262 Remove definition.
27263 (PSEUDO_END): Likewise.
27264 [IS_IN (libpthread)] (CENABLE): Likewise.
27265 [IS_IN (libpthread)] (CDISABLE): Likewise.
27266 [IS_IN (libc)] (CENABLE): Likewise.
27267 [IS_IN (libc)] (CENABLE): Likewise.
27268 [IS_IN (librt)] (CDISABLE): Likewise.
27269 [IS_IN (librt)] (CDISABLE): Likewise.
27270 (SINGLE_THREAD_P): Likewise.
27271 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
27272 definition.
27273 (PSEUDO_END): Likewise.
27274 [IS_IN (libpthread)] (CENABLE): Likewise.
27275 [IS_IN (libpthread)] (CDISABLE): Likewise.
27276 [IS_IN (libc)] (CENABLE): Likewise.
27277 [IS_IN (libc)] (CENABLE): Likewise.
27278 [IS_IN (librt)] (CDISABLE): Likewise.
27279 [IS_IN (librt)] (CDISABLE): Likewise.
27280 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
27281 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
27282 definition.
27283 (PSEUDO_END): Likewise.
27284 [IS_IN (libpthread)] (CENABLE): Likewise.
27285 [IS_IN (libpthread)] (CDISABLE): Likewise.
27286 [IS_IN (libc)] (CENABLE): Likewise.
27287 [IS_IN (libc)] (CENABLE): Likewise.
27288 [IS_IN (librt)] (CDISABLE): Likewise.
27289 [IS_IN (librt)] (CDISABLE): Likewise.
27290 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
27291 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
27292 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
27293 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
27294 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
27295 definition.
27296 (PSEUDO_END): Likewise.
27297 [IS_IN (libpthread)] (CENABLE): Likewise.
27298 [IS_IN (libpthread)] (CDISABLE): Likewise.
27299 [IS_IN (libc)] (CENABLE): Likewise.
27300 [IS_IN (libc)] (CENABLE): Likewise.
27301 [IS_IN (librt)] (CDISABLE): Likewise.
27302 [IS_IN (librt)] (CDISABLE): Likewise.
27303 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
27304 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
27305 definition.
27306 (PSEUDO_END): Likewise.
27307 [IS_IN (libpthread)] (CENABLE): Likewise.
27308 [IS_IN (libpthread)] (CDISABLE): Likewise.
27309 [IS_IN (libc)] (CENABLE): Likewise.
27310 [IS_IN (libc)] (CENABLE): Likewise.
27311 [IS_IN (librt)] (CDISABLE): Likewise.
27312 [IS_IN (librt)] (CDISABLE): Likewise.
27313 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
27314 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
27315 definition.
27316 (PSEUDO_END): Likewise.
27317 [IS_IN (libpthread)] (CENABLE): Likewise.
27318 [IS_IN (libpthread)] (CDISABLE): Likewise.
27319 [IS_IN (libc)] (CENABLE): Likewise.
27320 [IS_IN (libc)] (CENABLE): Likewise.
27321 [IS_IN (librt)] (CDISABLE): Likewise.
27322 [IS_IN (librt)] (CDISABLE): Likewise.
27323 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
27324 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
27325 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
27326 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
27327 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
27328 definition.
27329 (PSEUDO_END): Likewise.
27330 [IS_IN (libpthread)] (CENABLE): Likewise.
27331 [IS_IN (libpthread)] (CDISABLE): Likewise.
27332 [IS_IN (libc)] (CENABLE): Likewise.
27333 [IS_IN (libc)] (CENABLE): Likewise.
27334 [IS_IN (librt)] (CDISABLE): Likewise.
27335 [IS_IN (librt)] (CDISABLE): Likewise.
27336 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
27337 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
27338 definition.
27339 (PSEUDO_END): Likewise.
27340 [IS_IN (libpthread)] (CENABLE): Likewise.
27341 [IS_IN (libpthread)] (CDISABLE): Likewise.
27342 [IS_IN (libc)] (CENABLE): Likewise.
27343 [IS_IN (libc)] (CENABLE): Likewise.
27344 [IS_IN (librt)] (CDISABLE): Likewise.
27345 [IS_IN (librt)] (CDISABLE): Likewise.
27346 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
27347
27348 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
27349
27350 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
27351
27352 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
27353
27354 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
27355
27356 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
27357
27358 [BZ #21982]
27359 * string/stratcliff.c (do_test): Declare size, nchars, inner,
27360 middle and outer with size_t instead of int. Repleace %d and
27361 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
27362 "MAX (outer, nchars - 64)" to support unsigned outer and
27363 nchars. Also exit loop when outer == 0.
27364
27365 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27366
27367 * include/fcntl.h (__fcntl_nocancel): Remove definition.
27368 * include/signal.h (__sigsuspend_nocancel): Likewise.
27369 * include/time.h (__nanosleep_nocancel): Likewise.
27370 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
27371 * login/utmp_file.c: Include non cancellable syscall header.
27372 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
27373 prototype.
27374
27375 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
27376
27377 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
27378 .byte sequences with AVX512F instructions.
27379 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
27380 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
27381 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
27382 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
27383 Likewise.
27384 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
27385 Likewise.
27386
27387 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
27388 Steve Ellcey <sellcey@cavium.com>
27389
27390 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
27391 Use PTR_REG macro in cmp instruction.
27392
27393 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
27394
27395 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
27396 Change the return type of the ifunc resolver to match the return
27397 type of the target function.
27398
27399 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27400
27401 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
27402 (preadv64): Likewise.
27403 (pwrite64(: Likewise.
27404 (pwritev64): Likewise.
27405
27406 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
27407 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
27408 (LOAD_ARGS_0): Likewise.
27409 (LOAD_ARGS_1): Likewise.
27410 (LOAD_ARGS_2): Likewise.
27411 (LOAD_ARGS_3): Likewise.
27412 (LOAD_ARGS_4): Likewise.
27413 (LOAD_ARGS_5): Likewise.
27414 (LOAD_ARGS_6): Likewise.
27415 (LOAD_REGS_0): Likewise.
27416 (LOAD_REGS_1): Likewise.
27417 (LOAD_REGS_2): Likewise.
27418 (LOAD_REGS_3): Likewise.
27419 (LOAD_REGS_4): Likewise.
27420 (LOAD_REGS_5): Likewise.
27421 (LOAD_REGS_6): Likewise.
27422 (ASM_ARGS_0): Likewise.
27423 (ASM_ARGS_1): Likewise.
27424 (ASM_ARGS_2): Likewise.
27425 (ASM_ARGS_3): Likewise.
27426 (ASM_ARGS_4): Likewise.
27427 (ASM_ARGS_5): Likewise.
27428 (ASM_ARGS_6): Likewise.
27429 (LOAD_ARGS_TYPES_1): Likewise.
27430 (LOAD_ARGS_TYPES_2): Likewise.
27431 (LOAD_ARGS_TYPES_3): Likewise.
27432 (LOAD_ARGS_TYPES_4): Likewise.
27433 (LOAD_ARGS_TYPES_5): Likewise.
27434 (LOAD_ARGS_TYPES_6): Likewise.
27435 (LOAD_REGS_TYPES_1): Likewise.
27436 (LOAD_REGS_TYPES_2): Likewise.
27437 (LOAD_REGS_TYPES_3): Likewise.
27438 (LOAD_REGS_TYPES_4): Likewise.
27439 (LOAD_REGS_TYPES_5): Likewise.
27440 (LOAD_REGS_TYPES_6): Likewise.
27441 (TYPEFY): New define.
27442 (ARGIFY): Likewise.
27443 (internal_syscall0): Likewise.
27444 (internal_syscall1): Likewise.
27445 (internal_syscall2): Likewise.
27446 (internal_syscall3): Likewise.
27447 (internal_syscall4): Likewise.
27448 (internal_syscall5): Likewise.
27449 (internal_syscall6): Likewise.
27450 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
27451 (INTERNAL_SYSCALL_NCS): Remove define.
27452 (internal_syscall1): Add define.
27453
27454 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
27455
27456 * math/w_remainder_compat.c: Remove duplicate inclusion of
27457 math-svid-compat.h.
27458 * math/w_remainderf_compat.c: Likewise.
27459 * math/w_remainderl_compat.c: Likewise.
27460
27461 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
27462
27463 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
27464
27465 2017-08-22 Joseph Myers <joseph@codesourcery.com>
27466
27467 [BZ #21684]
27468 * math/tgmath.h (__floating_type): Simplify definitions.
27469 (__real_integer_type): New macro.
27470 (__complex_integer_type): Likewise.
27471 (__expr_is_real): Likewise.
27472 (__tgmath_real_type_sub): Update comment to describe handling of
27473 complex types.
27474 (__tgmath_complex_type_sub): New macro.
27475 (__tgmath_complex_type): Likewise.
27476 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
27477 (__TGMATH_CF128): Use __expr_is_real.
27478 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
27479 __expr_is_real.
27480 (__TGMATH_BINARY_REAL_IMAG): Likewise.
27481 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
27482 * math/gen-tgmath-tests.py (Type.create_type): Create complex
27483 integer types.
27484
27485 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27486
27487 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
27488 macro.
27489 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
27490 alias.
27491 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
27492 Likewise.
27493
27494 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
27495 nanosleep_not_cancel with __nanosleep_nocancel.
27496 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
27497 (__nanosleep_nocancel): New macro.
27498 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
27499 function.
27500 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
27501 macro.
27502 (__nanosleep_nocancel): New prototype.
27503
27504 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
27505 pause_not_cancel with __pause_nocancel.
27506 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
27507 (__pause_nocancel): New macro.
27508 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
27509 macro.
27510 (__pause_nocancel): New prototype.
27511 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
27512
27513 2017-08-22 Martin Sebor <msebor@redhat.com>
27514
27515 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
27516 to return a pointer to the same type as the target function.
27517
27518 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
27519
27520 [BZ #18822]
27521 [BZ #21986]
27522 * include/printf.h (__printf_fphex): Add attribute_hidden.
27523 (__guess_grouping): New prototype.
27524 * stdio-common/printf_fp.c (__guess_grouping): Removed.
27525 * stdio-common/reg-printf.c (__register_printf_specifier): Add
27526 libc_hidden_proto and libc_hidden_def.
27527 * stdlib/strfmon_l.c (__guess_grouping): Removed.
27528 (__vstrfmon_l): Remove the third argument passed to
27529 __guess_grouping.
27530
27531 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
27532
27533 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
27534 definition for issignaling that does not rely on __MATH_TG,
27535 since __MATH_TG uses __builtin_types_compatible_p, which is only
27536 available in C mode.
27537 (CFLAGS-test-math-issignaling.cc): New variable.
27538 * math/Makefile [CXX] (tests): Add test-math-issignaling.
27539 * math/test-math-issignaling.cc: New test for C++ implementation
27540 of type-generic issignaling.
27541 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
27542 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
27543 options of test-math-issignaling on powerpc64le.
27544
27545 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
27546
27547 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
27548 building libc.a.
27549 (hidden_proto): Likewise.
27550 (hidden_tls_proto): Likewise.
27551 (__hidden_proto): Likewise.
27552
27553 2017-08-22 Florian Weimer <fweimer@redhat.com>
27554
27555 math: Statically link tests of internal functionality.
27556 * math/Makefile (tests): Remove atest-exp, atest-sincos,
27557 atest-exp2.
27558 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
27559 (gmp-objs): Remove assignment.
27560 (atest-exp, atest-sincos, atest-exp2): Remove targets.
27561
27562 2017-08-22 Joseph Myers <joseph@codesourcery.com>
27563
27564 [BZ #21987]
27565 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
27566 and copy to ...
27567 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
27568 ... here.
27569 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
27570 ... and here.
27571
27572 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
27573 variable definitions above inclusion of ../Rules.
27574
27575 2017-08-21 Joseph Myers <joseph@codesourcery.com>
27576
27577 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
27578 case calling __builtin_unreachable.
27579
27580 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27581
27582 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
27583 __waitpid_nocancel.
27584 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
27585 (__waitpid_nocancel): New macro.
27586 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
27587 macro.
27588 (__waitpid_nocancel): Replace macro with a function.
27589 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
27590 function.
27591
27592 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
27593 __fcntl_nocancel.
27594 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
27595 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
27596
27597 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
27598 __writev_nocancel_nostatus.
27599 (write_call_graph): Likewise.
27600 (write_bb_counts): Likewise.
27601 * resolv/herror.c (herror): Likewise.
27602 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
27603 macro.
27604 (__writev_nocancel_nostatus): New macro.
27605 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
27606 Remove macro.
27607 (__writev_nocancel_nostatus): New function.
27608
27609 2017-08-21 Joseph Myers <joseph@codesourcery.com>
27610
27611 Revert:
27612 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
27613
27614 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
27615 building libc.a.
27616 (hidden_proto): Likewise.
27617 (hidden_tls_proto): Likewise.
27618 (__hidden_proto): Likewise.
27619
27620 [BZ #21973]
27621 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
27622 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
27623 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
27624 Likewise.
27625 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
27626 Likewise.
27627 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
27628 Likewise.
27629 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
27630 Likewise.
27631 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
27632 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
27633 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
27634 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
27635 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
27636 GLIBC_2.0 sqrtl symbol.
27637
27638 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
27639 [__USE_MISC] (_LIB_VERSION): Likewise.
27640 [__USE_MISC] (struct exception): Likewise.
27641 [__USE_MISC] (matherr): Likewise.
27642 [__USE_MISC] (DOMAIN): Likewise.
27643 [__USE_MISC] (SING): Likewise.
27644 [__USE_MISC] (OVERFLOW): Likewise.
27645 [__USE_MISC] (UNDERFLOW): Likewise.
27646 [__USE_MISC] (TLOSS): Likewise.
27647 [__USE_MISC] (PLOSS): Likewise.
27648 [__USE_MISC] (HUGE): Likewise.
27649 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
27650 * math/math-svid-compat.h: New file.
27651 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
27652 and matherrl.
27653 * include/math.h [!_ISOMAC] (__matherr): Remove.
27654 * manual/arith.texi (FP Exceptions): Do not document matherr.
27655 * math/Makefile (tests): Change test-matherr to test-matherr-3.
27656 (tests-internal): New variable.
27657 (install-lib): Do not add libieee.a.
27658 (non-lib.a): Likewise.
27659 (extra-objs): Do not add libieee.a and ieee-math.o.
27660 (CPPFLAGS-s_lib_version.c): Remove variable.
27661 ($(objpfx)libieee.a): Remove rule.
27662 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
27663 * math/ieee-math.c: Remove.
27664 * math/libm-test-support.c (matherr): Remove.
27665 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
27666 and license notices. Include <math-svid-compat.h> and
27667 <shlib-compat.h>.
27668 (matherr): Undefine as macro. Use compat_symbol_reference.
27669 (_LIB_VERSION): Likewise.
27670 * math/test-matherr-2.c: New file.
27671 * math/test-matherr-3.c: Likewise.
27672 * sysdeps/generic/math_private.h (__kernel_standard): Remove
27673 declaration.
27674 (__kernel_standard_f): Likewise.
27675 (__kernel_standard_l): Likewise.
27676 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
27677 <math_private.h>. Include <math-svid-compat.h>.
27678 (_LIB_VERSION): Undefine as macro.
27679 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
27680 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
27681 [LIBM_SVID_COMPAT], use compat_symbol.
27682 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
27683 <math_private.h>. Include <math-svid-compat.h>.
27684 (matherr): Undefine as macro.
27685 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
27686 compat_symbol.
27687 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
27688 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
27689 compat_symbol_reference.
27690 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
27691 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
27692 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
27693 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
27694 (MATHERR_D): Remove declaration.
27695 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
27696 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
27697 [LIBM_BUILD] (pmatherrf): Likewise.
27698 [LIBM_BUILD] (pmatherr): Likewise.
27699 [LIBM_BUILD] (pmatherrl): Likewise.
27700 (DOMAIN): Likewise.
27701 (SING): Likewise.
27702 (OVERFLOW): Likewise.
27703 (UNDERFLOW): Likewise.
27704 (TLOSS): Likewise.
27705 (PLOSS): Likewise.
27706 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
27707 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
27708 compat_symbol.
27709 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
27710 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
27711 compat_symbol.
27712 * math/lgamma-compat.h: Include <math-svid-compat.h>.
27713 * math/w_acos_compat.c: Likewise.
27714 * math/w_acosf_compat.c: Likewise.
27715 * math/w_acosh_compat.c: Likewise.
27716 * math/w_acoshf_compat.c: Likewise.
27717 * math/w_acoshl_compat.c: Likewise.
27718 * math/w_acosl_compat.c: Likewise.
27719 * math/w_asin_compat.c: Likewise.
27720 * math/w_asinf_compat.c: Likewise.
27721 * math/w_asinl_compat.c: Likewise.
27722 * math/w_atan2_compat.c: Likewise.
27723 * math/w_atan2f_compat.c: Likewise.
27724 * math/w_atan2l_compat.c: Likewise.
27725 * math/w_atanh_compat.c: Likewise.
27726 * math/w_atanhf_compat.c: Likewise.
27727 * math/w_atanhl_compat.c: Likewise.
27728 * math/w_cosh_compat.c: Likewise.
27729 * math/w_coshf_compat.c: Likewise.
27730 * math/w_coshl_compat.c: Likewise.
27731 * math/w_exp10_compat.c: Likewise.
27732 * math/w_exp10f_compat.c: Likewise.
27733 * math/w_exp10l_compat.c: Likewise.
27734 * math/w_exp2_compat.c: Likewise.
27735 * math/w_exp2f_compat.c: Likewise.
27736 * math/w_exp2l_compat.c: Likewise.
27737 * math/w_fmod_compat.c: Likewise.
27738 * math/w_fmodf_compat.c: Likewise.
27739 * math/w_fmodl_compat.c: Likewise.
27740 * math/w_hypot_compat.c: Likewise.
27741 * math/w_hypotf_compat.c: Likewise.
27742 * math/w_hypotl_compat.c: Likewise.
27743 * math/w_j0_compat.c: Likewise.
27744 * math/w_j0f_compat.c: Likewise.
27745 * math/w_j0l_compat.c: Likewise.
27746 * math/w_j1_compat.c: Likewise.
27747 * math/w_j1f_compat.c: Likewise.
27748 * math/w_j1l_compat.c: Likewise.
27749 * math/w_jn_compat.c: Likewise.
27750 * math/w_jnf_compat.c: Likewise.
27751 * math/w_jnl_compat.c: Likewise.
27752 * math/w_lgamma_main.c: Likewise.
27753 * math/w_lgamma_r_compat.c: Likewise.
27754 * math/w_lgammaf_main.c: Likewise.
27755 * math/w_lgammaf_r_compat.c: Likewise.
27756 * math/w_lgammal_main.c: Likewise.
27757 * math/w_lgammal_r_compat.c: Likewise.
27758 * math/w_log10_compat.c: Likewise.
27759 * math/w_log10f_compat.c: Likewise.
27760 * math/w_log10l_compat.c: Likewise.
27761 * math/w_log2_compat.c: Likewise.
27762 * math/w_log2f_compat.c: Likewise.
27763 * math/w_log2l_compat.c: Likewise.
27764 * math/w_log_compat.c: Likewise.
27765 * math/w_logf_compat.c: Likewise.
27766 * math/w_logl_compat.c: Likewise.
27767 * math/w_pow_compat.c: Likewise.
27768 * math/w_powf_compat.c: Likewise.
27769 * math/w_powl_compat.c: Likewise.
27770 * math/w_remainder_compat.c: Likewise.
27771 * math/w_remainderf_compat.c: Likewise.
27772 * math/w_remainderl_compat.c: Likewise.
27773 * math/w_scalb_compat.c: Likewise.
27774 * math/w_scalbf_compat.c: Likewise.
27775 * math/w_scalbl_compat.c: Likewise.
27776 * math/w_sinh_compat.c: Likewise.
27777 * math/w_sinhf_compat.c: Likewise.
27778 * math/w_sinhl_compat.c: Likewise.
27779 * math/w_sqrt_compat.c: Likewise.
27780 * math/w_sqrtf_compat.c: Likewise.
27781 * math/w_sqrtl_compat.c: Likewise.
27782 * math/w_tgamma_compat.c: Likewise.
27783 * math/w_tgammaf_compat.c: Likewise.
27784 * math/w_tgammal_compat.c: Likewise.
27785 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
27786 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
27787 * sysdeps/ieee754/k_standard.c: Likewise.
27788 * sysdeps/ieee754/k_standardf.c: Likewise.
27789 * sysdeps/ieee754/k_standardl.c: Likewise.
27790 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
27791 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
27792 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
27793 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
27794 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
27795 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
27796 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
27797 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
27798 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
27799 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
27800 Likewise.
27801 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
27802 Likewise.
27803 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
27804 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
27805 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
27806 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
27807
27808 2017-08-21 Florian Weimer <fweimer@redhat.com>
27809
27810 [BZ #21864]
27811 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
27812 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
27813 Move before inclusion of ../Rules.
27814
27815 2017-08-21 Florian Weimer <fweimer@redhat.com>
27816
27817 [BZ #21972]
27818 * assert/assert.h (assert): Use static_cast (bool) for C++.
27819 Use the ternary operator in the warning branch for GNU C.
27820 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
27821 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
27822 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
27823 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
27824 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
27825
27826 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
27827
27828 [BZ #18822]
27829 * sysdeps/unix/sysv/linux/x86_64/init-first.c
27830 (__syscall_clock_gettime): Add attribute_hidden.
27831 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
27832 (__start_context): Likewise.
27833
27834 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
27835
27836 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
27837 building libc.a.
27838 (hidden_proto): Likewise.
27839 (hidden_tls_proto): Likewise.
27840 (__hidden_proto): Likewise.
27841
27842 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
27843
27844 * include/libc-symbols.h (attribute_hidden): Enable hidden
27845 visibility in libc.a compiled with PIE.
27846
27847 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
27848
27849 [BZ #18822]
27850 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
27851 Add attribute_hidden.
27852
27853 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
27854
27855 [BZ #21864]
27856 * Makerules (all-nonlib): Add $(others-extras).
27857 * catgets/Makefile (others-extras): New.
27858 * elf/Makefile (others-extras): Likewise.
27859 * nss/Makefile (others-extras): Likewise.
27860
27861 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
27862
27863 [BZ #18822]
27864 * csu/libc-start.c (__libc_multiple_libcs): Removed.
27865 * elf/dl-open.c: Include <libc-internal.h>.
27866 (__libc_multiple_libcs): Removed.
27867 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
27868 <hp-timing.h>.
27869 * include/libc-internal.h (__libc_multiple_libcs): New.
27870 * misc/sbrk.c: Include <libc-internal.h>.
27871 (__libc_multiple_libcs): Removed.
27872
27873 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
27874
27875 [BZ #18822]
27876 * grp/initgroups.c (__nss_group_database): Removed.
27877 (__nss_initgroups_database): Likewise.
27878 * nscd/gai.c (__nss_hosts_database): Likewise.
27879 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
27880 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
27881 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
27882 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
27883 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
27884 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
27885 attribute_hidden.
27886 * nss/nsswitch.c (__nss_database_custom): Define only if
27887 USE_NSCD is defined.
27888 (__nss_configure_lookup): Use __nss_database_custom only if
27889 USE_NSCD is defined.
27890 * nss/nsswitch.h (__nss_database_custom): Declare only if
27891 USE_NSCD is defined. Add attribute_hidden.
27892 (__nss_setent): Add attribute_hidden.
27893 (__nss_endent): Likewise.
27894 (__nss_getent_r): Likewise.
27895 (__nss_getent): Likewise.
27896 (DEFINE_DATABASE): Declare __nss_##arg##_database.
27897
27898 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
27899
27900 [BZ #18822]
27901 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
27902 libc_hidden_proto and libc_hidden_def.
27903
27904 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
27905
27906 [BZ #18822]
27907 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
27908 Add libc_hidden_proto.
27909 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
27910 Add libc_hidden_def.
27911
27912 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
27913
27914 [BZ #21974]
27915 * gmon/Makefile (routines): Remove bb_init_func and
27916 bb_exit_func.
27917 (elide-routines.os): Removed.
27918 * gmon/bb_exit_func.c: Likewise.
27919 * gmon/bb_init_func.c: Likewise.
27920 * include/sys/gmon.h (__bb): Likewise.
27921 (__bb_init_func): Likewise.
27922 (__bb_exit_func): Likewise.
27923 * sysdeps/alpha/bb_init_func.S: Likewise.
27924
27925 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
27926
27927 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
27928 * include/setjmp.h (____longjmp_chk): Here. Add
27929 attribute_hidden.
27930
27931 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
27932
27933 [BZ #18822]
27934 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
27935 attribute_hidden.
27936 (__strspn_sse2): Likewise.
27937
27938 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27939
27940 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
27941 (close_not_cancel_no_status): Likewise.
27942 (__close_nocancel): New macro.
27943 (__close_nocancel_nostatus): Likewise.
27944 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
27945 macro.
27946 (close_not_cancel): Likewise.
27947 (close_not_cancel_no_status): Likewise.
27948 (__close_nocancel): New prototype.
27949 (__close_nocancel_nostatus): New function.
27950 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
27951 * catgets/open_catalog.c (__open_catalog): Replace
27952 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
27953 * gmon/gmon.c (write_gmon): Likewise.
27954 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
27955 * intl/loadmsgcat.c (close): Likewise.
27956 * io/ftw.c (open_dir_stream): Likewise.
27957 (ftw_startup): Likewise.
27958 * libio/fileops.c (_IO_file_open): Likewise.
27959 (_IO_file_close_mmap): Likewise.
27960 (_IO_file_close): Likewise.
27961 * libio/iopopen.c (_IO_dup2): Likewise.
27962 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
27963 * locale/loadlocale.c (_nl_load_locale): Likewise.
27964 * login/utmp_file.c (pututline_file): Likewise.
27965 (endutent_file): Likewise.
27966 * misc/daemon.c (daemon): Likewise.
27967 * nscd/nscd_getai.c (__nscd_getai): Likewise.
27968 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
27969 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
27970 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
27971 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
27972 * nscd/nscd_helper.c (open_socket): Likewise.
27973 (__nscd_open_socket): Likewise.
27974 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
27975 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
27976 (__nscd_innetgr): Likewise.
27977 * nss/nss_db/db-open.c (internal_setent): Likewise.
27978 * resolv/res-close.c (__res_iclose): Likewise.
27979 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
27980 * sysdeps/posix/closedir.c (__closedir): Likewise.
27981 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
27982 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
27983 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
27984 (opendir_tail): Likewise.
27985 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
27986 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
27987 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
27988 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
27989 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
27990 (gethostid): Likewise.
27991 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
27992 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
27993 Likewise.
27994 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
27995 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
27996 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
27997 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
27998 Likewise.
27999 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
28000 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
28001 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
28002 Likewise.
28003 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
28004 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
28005 Likewise.
28006 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
28007 Likewise.
28008 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
28009 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
28010 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
28011 __close_nocancel.
28012
28013 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
28014 (openat_not_cancel_3): Likewise.
28015 (openat64_not_cancel_3): Likewise).
28016 (openat_not_cancel_3): Likewise).
28017 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
28018 macro.
28019 (openat_not_cancel_3): Likewise.
28020 (openat64_not_cancel): Likewise.
28021 (openat64_not_cancel_3): Likewise.
28022 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
28023 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
28024 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
28025 __open{64}_nocancel.
28026 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
28027 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
28028 * sysdeps/posix/opendir.c (__opendirat): Likewise.
28029
28030 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
28031
28032 [BZ #18822]
28033 * include/argz.h (__argz_create_sep): New function prototype.
28034 (__argz_append): Likewise.
28035 (__argz_add): Likewise.
28036 (__argz_add_sep): Likewise.
28037 (__argz_delete): Likewise.
28038 (__argz_insert): Likewise.
28039 (__argz_replace): Likewise.
28040 * string/argz.h (__argz_create_sep): Removed.
28041 (__argz_append): Likewise.
28042 (__argz_add): Likewise.
28043 (__argz_add_sep): Likewise.
28044 (__argz_delete): Likewise.
28045 (__argz_insert): Likewise.
28046 (__argz_replace): Likewise.
28047
28048 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
28049
28050 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
28051 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
28052 (GNU_PROPERTY_STACK_SIZE): Likewie.
28053 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
28054 (GNU_PROPERTY_LOPROC): Likewise.
28055 (GNU_PROPERTY_HIPROC): Likewise.
28056 (GNU_PROPERTY_LOUSER): Likewise.
28057 (GNU_PROPERTY_HIUSER): Likewise.
28058 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
28059 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
28060 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
28061 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
28062 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
28063 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
28064 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
28065 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
28066 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
28067 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
28068 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
28069 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
28070 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
28071 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
28072 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
28073 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
28074 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
28075 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
28076 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
28077 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
28078 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
28079 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
28080 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
28081
28082 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
28083
28084 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
28085 in C++ mode.
28086
28087 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
28088
28089 [BZ #21930]
28090 * math/math.h (isinf): Check if in C or C++ mode before using
28091 __builtin_types_compatible_p, since this is a C mode feature.
28092
28093 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28094
28095 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
28096 (__write_nocancel): New macro.
28097 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
28098 Rewrite as a function prototype.
28099 (write_not_cancel): Remove macro.
28100 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
28101 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
28102 (write_gmon): Likewise.
28103 * libio/fileops.c (_IO_new_file_write): Likewise.
28104 * login/utmp_file.c (pututline_file): Likewise.
28105 (updwtmp_file): Likewise.
28106 * stdio-common/psiginfo.c (psiginfo): Likewise.
28107 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
28108 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
28109 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
28110 Likewise.
28111 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
28112 Likewise.
28113
28114 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
28115 (__read_nocancel): New macro.
28116 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
28117 __read_nocancel.
28118 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
28119 macro.
28120 (__read_nocancel): New prototype.
28121 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
28122 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
28123 with __read_nocancel.
28124 * intl/loadmsgcat.c (read): Likewise.
28125 * libio/fileops.c (_IO_file_read): Likewise.
28126 * locale/loadlocale.c (_nl_load_locale): Likewise.
28127 * login/utmp_file.c (getutent_r_file): Likewise.
28128 (internal_getut_r): Likewise.
28129 (getutline_r_file): Likewise.
28130 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
28131 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
28132 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
28133 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
28134 Likewise.
28135 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
28136 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
28137 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
28138 Likewise.
28139 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
28140 Likewise.
28141 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
28142 Likewise.
28143 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
28144 Likewise.
28145 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
28146
28147 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
28148
28149 [BZ #21966]
28150 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
28151 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
28152 usable.
28153
28154 2017-08-17 DJ Delorie <dj@redhat.com>
28155
28156 * bug17079.c: Update to new test harness.
28157 * test-digits-dots.c: Likewise.
28158 * test-netdb.c: Likewise.
28159 * tst-field.c: Likewise.
28160 * tst-nss-getpwent.c: Likewise.
28161 * tst-nss-static.c: Likewise.
28162 * tst-nss-test1.c: Likewise.
28163 * tst-nss-test2.c: Likewise.
28164 * tst-nss-test3.c: Likewise.
28165 * tst-nss-test4.c: Likewise.
28166 * tst-nss-test5.c: Likewise.
28167
28168 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28169
28170 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
28171 (open_not_cancel_2): Likewise.
28172 (open_nocancel): New macro.
28173 (open64_nocancel): Likewise.
28174 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
28175 (open_not_cancel_2): Likewise.
28176 (__open_nocancel): New prototype.
28177 (__open64_nocancel): Likewise.
28178 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
28179 __open_nocancel.
28180 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
28181 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
28182 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
28183 with __open_nocancel.
28184 * csu/check_fds.c (check_one_fd): Likewise.
28185 * gmon/gmon.c (write_gmon): Likewise.
28186 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
28187 * intl/loadmsgcat.c (open): Likewise.
28188 * libio/fileops.c (_IO_file_open): Likewise.
28189 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
28190 * locale/loadlocale.c (_nl_load_locale): Likewise.
28191 * login/utmp_file.c (setutent_file): Likewise.
28192 * misc/daemon.c (daemon): Likewise.
28193 * nss/nss_db/db-open.c (internal_setent): Likewise.
28194 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
28195 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
28196 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
28197 (__opendir): Likewise.
28198 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
28199 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
28200 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
28201 (gethostid): Likewise.
28202 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
28203 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
28204 Likewise.
28205 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
28206 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
28207 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
28208 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
28209 Likewise.
28210 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
28211 Likewise.
28212 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
28213 Likewise.
28214 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
28215 Likewise.
28216 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
28217 Likewise.
28218 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
28219 Likewise.
28220 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
28221 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
28222
28223 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
28224
28225 * benchtests/bench-skeleton.c (main): Add support for
28226 latency benchmarking.
28227 * benchtests/scripts/bench.py: Add support for latency benchmarking.
28228
28229 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
28230
28231 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
28232 the startup object.
28233
28234 2017-08-17 Florian Weimer <fweimer@redhat.com>
28235
28236 * include/sys/socket.h (__opensock): Remove internal_function.
28237 * socket/opensock.c (__opensock): Likewise.
28238 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
28239
28240 2017-08-16 Joseph Myers <joseph@codesourcery.com>
28241
28242 [BZ #21944]
28243 * signal/bits/types/__sigval_t.h: New file.
28244 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
28245 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
28246 and define sigval_t using __sigval_t.
28247 * include/bits/types/__sigval_t.h: New file.
28248 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
28249 instead of <bits/types/__sigval_t.h>.
28250 (struct sigevent): Use __sigval_t instead of sigval_t.
28251 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
28252 instead of <bits/types/__sigval_t.h>.
28253 (siginfo_t): Use __sigval_t instead of sigval_t.
28254 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
28255 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
28256 (struct sigevent): Use __sigval_t instead of sigval_t.
28257 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
28258 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
28259 (siginfo_t): Use __sigval_t instead of sigval_t.
28260 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
28261
28262 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
28263
28264 * NEWS: Remove "[Add new features here]" for 2.27.
28265
28266 2017-08-16 Joseph Myers <joseph@codesourcery.com>
28267
28268 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
28269 libc.so.
28270
28271 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
28272
28273 * NEWS: Mention x86-64 FMA optimization.
28274
28275 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
28276
28277 [BZ #21912]
28278 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
28279 Add e_expf-fma.
28280 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
28281 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
28282 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
28283
28284 2017-08-16 Andreas Schwab <schwab@suse.de>
28285
28286 [BZ #16750]
28287 CVE-2009-5064
28288 * elf/ldd.bash.in: Never run file directly.
28289
28290 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
28291
28292 [BZ #21955]
28293 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
28294 (L(SP_INF_0)): Likewise.
28295
28296 2017-08-15 Florian Weimer <fweimer@redhat.com>
28297
28298 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
28299 run-built-tests.
28300
28301 2017-08-15 Florian Weimer <fweimer@redhat.com>
28302
28303 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
28304 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
28305 BROKEN_THREAD_SIGNALS code.
28306 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
28307 request_list): Remove caller_pid member used for
28308 BROKEN_THREAD_SIGNALS.
28309 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
28310 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
28311 Remove BROKEN_THREAD_SIGNALS support.
28312 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
28313 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
28314
28315 2017-08-15 Florian Weimer <fweimer@redhat.com>
28316
28317 * gmon/Makefile (tests): Add tst-gmon.
28318 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
28319 Set.
28320 (tests-special): Add tst-gmon-prof.out.
28321 (tst-gmon.out): Depend on clean-tst-gmon-data.
28322 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
28323 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
28324 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
28325 startup object.
28326 * aclocal.m4 (GPROF): Set and substitute.
28327 * config.amke.in (GPROF): Set.
28328 * configure: Regenerate.
28329
28330 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
28331
28332 * elf/elf.h A (NT_PPC_TAR): New macro.
28333 (NT_PPC_PPR): Likewise.
28334 (NT_PPC_DSCR): Likewise.
28335 (NT_PPC_EBB): Likewise.
28336 (NT_PPC_PMU): Likewise.
28337 (NT_PPC_TM_CGPR): Likewise.
28338 (NT_PPC_TM_CFPR): Likewise.
28339 (NT_PPC_TM_CVMX): Likewise.
28340 (NT_PPC_TM_CVSX): Likewise.
28341 (NT_PPC_TM_SPR): Likewise.
28342 (NT_PPC_TM_CTAR): Likewise.
28343 (NT_PPC_TM_CPPR): Likewise.
28344 (NT_PPC_TM_CDSCR): Likewise.
28345
28346 2017-08-15 Florian Weimer <fweimer@redhat.com>
28347
28348 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
28349 regparm (2) instead of internal_function.
28350 (_MCOUNT_DECL): Adjust.
28351
28352 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
28353
28354 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
28355 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
28356
28357 2017-08-14 Joseph Myers <joseph@codesourcery.com>
28358
28359 * conform/data/sys/wait.h-data (si_value): Do not expect for
28360 XPG42.
28361
28362 2017-08-14 Florian Weimer <fweimer@redhat.com>
28363
28364 [BZ #21962]
28365 NSS: Create stubs for accidentally exported lookup functions.
28366 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
28367 Remove declaration.
28368 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
28369 (ether_hostton): Call __nss_ethers_lookup2 instead.
28370 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
28371 (ether_ntohost): Call __nss_ethers_lookup2 instead.
28372 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
28373 (setup): Call __nss_netgroup_lookup2 instead.
28374 * nss/Makefile (routines): Add compat-lookup.
28375 * nss/Versions (GLIBC_2.27): Add symbol version.
28376 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
28377 (DB_COMPAT_FCT): Remove.
28378 * nss/compat-lookup.c: New file.
28379 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
28380 from databases.def.
28381 * nss/service-lookup.c (NO_COMPAT): Remove definition.
28382 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
28383 (netname2user): Call __nss_publickey_lookup2 instead.
28384 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
28385 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
28386 instead.
28387
28388 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28389 Sergei Trofimovich <slyfox@inbox.ru>
28390
28391 [BZ #21908]
28392 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
28393 Rename to MMAP2_PAGE_UNIT.
28394 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
28395 __OFF_T_MATCHES_OFF64_T is not defined.
28396 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
28397 uint64_t.
28398 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
28399 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
28400
28401 2017-08-14 Florian Weimer <fweimer@redhat.com>
28402
28403 i386: Do not set internal_function.
28404 * config.h.in (USE_REGPARMS, internal_function): Remove.
28405 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
28406 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
28407
28408 2017-08-14 Florian Weimer <fweimer@redhat.com>
28409
28410 * elf/dl-init.c (_dl_init): Remove internal_function.
28411 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
28412 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
28413
28414 2017-08-14 Florian Weimer <fweimer@redhat.com>
28415
28416 * elf/rtld.c (_dl_start): Remove internal_function.
28417 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
28418 _dl_start.
28419
28420 2017-08-14 Florian Weimer <fweimer@redhat.com>
28421
28422 * elf/dl-fini.c (_dl_fini): Remove internal_function
28423 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
28424
28425 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
28426
28427 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
28428 (bit_cpu_SHSTK): Likewise.
28429 (index_cpu_IBT): Likewise.
28430 (index_cpu_SHSTK): Likewise.
28431 (reg_IBT): Likewise.
28432 (reg_SHSTK): Likewise.
28433 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
28434 Handle index_cpu_IBT and index_cpu_SHSTK.
28435
28436 2017-08-14 Mike FABIAN <mfabian@redhat.com>
28437
28438 [BZ #19982]
28439 * po/fr.po: Fix spelling mistake.
28440
28441 2017-08-13 Florian Weimer <fweimer@redhat.com>
28442
28443 * elf/dl-addr.c (_dl_addr): Remove internal_function.
28444 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
28445 (_dl_catch_error, _dl_receive_error): Likewise.
28446 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
28447 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
28448 (_dl_deallocate_tls): Likewise.
28449 * include/dlfcn.h (_dl_addr): Likewise.
28450 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
28451 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
28452 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
28453 Likewise.
28454
28455 2017-08-13 Florian Weimer <fweimer@redhat.com>
28456
28457 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
28458 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
28459 internal_function.
28460 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
28461
28462 2017-08-13 Florian Weimer <fweimer@redhat.com>
28463
28464 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
28465 internal_function.
28466 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
28467 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
28468 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
28469 internal_function from _dl_make_stack_executable_hook member.
28470 (_dl_make_stack_executable): Remove internal_function.
28471 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
28472 Likewise.
28473 * sysdeps/unix/sysv/linux/dl-execstack.c
28474 (_dl_make_stack_executable): Likewise.
28475
28476 2017-08-13 Florian Weimer <fweimer@redhat.com>
28477
28478 * sysdeps/unix/sysv/linux/netlinkaccess.h
28479 (__netlink_assert_response): Remove internal_function.
28480 * sysdeps/unix/sysv/linux/netlink_assert_response.c
28481 (__netlink_assert_response): Likewise.
28482
28483 2017-08-13 Florian Weimer <fweimer@redhat.com>
28484
28485 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
28486 internal_function.
28487 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
28488
28489 2017-08-13 Florian Weimer <fweimer@redhat.com>
28490
28491 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
28492 internal_function.
28493 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
28494 * inet/netgroup.h (__internal_setnetgrent)
28495 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
28496 * inet/getnetgrent_r.c (__internal_setnetgrent)
28497 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
28498 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
28499 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
28500 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
28501 * nss/nsswitch.h (db_lookup_function): Likewise.
28502
28503 2017-08-13 Florian Weimer <fweimer@redhat.com>
28504
28505 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
28506 Remove internal_function.
28507 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
28508 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
28509 message argument on the stack.
28510 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
28511 Likeweise.
28512
28513 2017-08-12 Mike FABIAN <mfabian@redhat.com>
28514
28515 Adapt test case data to the changes in the thousands
28516 separators.
28517
28518 [BZ #20756]
28519 * localedata/tst-langinfo.sh: Adapt test case data.
28520 * stdlib/tst-strfmon_l.c: Likewise.
28521 * stdlib/tst-strtod4.c: Likewise.
28522 * stdlib/tst-strtod5i.c: Likewise.
28523
28524 2017-08-11 Florian Weimer <fweimer@redhat.com>
28525
28526 [BZ #21242]
28527 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
28528 Suppress pedantic warning resulting from statement expression.
28529 (__ASSERT_FUNCTION): Add missing __extension__.
28530
28531 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
28532
28533 * benchtests/bench-memmove-large.c: Print output in JSON
28534 format.
28535 * benchtests/bench-memmove.c: Likewise.
28536
28537 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
28538 * benchtests/bench-memchr.c (do_one_test): Likewise.
28539 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
28540 * benchtests/bench-memcpy.c (do_one_test): Likewise.
28541 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
28542 * benchtests/bench-memmove.c (do_one_test): Likewise.
28543 * benchtests/bench-memset-large.c (do_one_test): Likewise.
28544 * benchtests/bench-memset.c (do_one_test): Likewise.
28545 * benchtests/bench-string.h (test_init): Remove memsets.
28546
28547 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
28548
28549 * manual/lang.texi
28550 (Computing the Width of an Integer Data Type): Rename section to
28551 "Width of an Integer Type". Remove inaccurate statement regarding
28552 lack of C language facilities for determining width of integer
28553 types, and reorder content to improve flow and context of
28554 discussion.
28555
28556 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
28557
28558 * lang.texi (va_copy): Change standard from ISO to C99.
28559 (__va_copy): Add standard and header annotation.
28560 Update description for clarity of origins and current use.
28561
28562 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
28563
28564 [BZ #21941]
28565 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
28566 xssqrtqp requires operands to be in Vector Registers
28567 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
28568 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
28569 (__ieee754_sqrtf128): Likewise.
28570
28571 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
28572
28573 * sysdeps/aarch64/memcmp.S (memcmp):
28574 Rewrite of optimized memcmp.
28575
28576 2017-08-10 Florian Weimer <fweimer@redhat.com>
28577
28578 Introduce ld.so exceptions.
28579 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
28580 (_dl_exception_create, _dl_exception_create_format)
28581 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
28582 (_dl_catch_exception): Declare.
28583 (_dl_catch_error): Update comment.
28584 * elf/dl-error-skeleton.c (struct catch): Replace objname,
28585 errstring, malloced members with exception member.
28586 (_dl_out_of_memory): Remove.
28587 (fatal_error): New function, extracted from _dl_signal_error.
28588 (_dl_signal_exception, _dl_signal_cexception): New functions.
28589 (_dl_signal_error): Call _dl_exception_create to allocate an
28590 exception object.
28591 (_dl_catch_exception): New function, based on _dl_catch_error.
28592 (_dl_catch_error): Implement using _dl_catch_exception.
28593 * elf/dl-exception.c: New file.
28594 * elf/Makefile (dl-routines): Add dl-exception.
28595 (elide-routines.os): Likewise.
28596 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
28597 _dl_exception_create_format, _dl_exception_free.
28598 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
28599 _dl_signal_exception.
28600 * elf/dl-lookup.c (make_string): Remove.
28601 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
28602 _dl_signal_cexception, _dl_exception_free.
28603 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
28604 _dl_signal_exception.
28605 * elf/dl-sym.c (do_sym): Likewise.
28606 * elf/dl-version.c (make_string): Remove.
28607 (match_symbol): Use _dl_exception_create_format,
28608 _dl_signal_cexception, _dl_exception_free.
28609 (_dl_check_map_versions): Likewise.
28610 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
28611 _dl_catch_exception.
28612 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
28613 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
28614 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
28615 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
28616 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
28617 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
28618 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
28619 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
28620 Likewise.
28621 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
28622 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
28623 (ld.so): Likewise.
28624 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
28625 (ld.so): Likewise.
28626 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
28627 Likewise.
28628 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
28629 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
28630 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
28631 Likewise.
28632 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
28633 Likewise.
28634 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
28635
28636 2017-08-10 Florian Weimer <fweimer@redhat.com>
28637
28638 * inet/net-internal.h (__inet6_scopeid_pton): Remove
28639 attribute_hidden, internal_function.
28640 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
28641 internal_function.
28642
28643 2017-08-10 Florian Weimer <fweimer@redhat.com>
28644
28645 * malloc/malloc.c (get_max_fast): Reimplement as an inline
28646 function which calls __builtin_unreachable.
28647
28648 2017-08-10 Mike FABIAN <mfabian@redhat.com>
28649
28650 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
28651 Indian monetary formatting
28652 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
28653 test cases.
28654
28655 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
28656
28657 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
28658 Fix typo in comment.
28659
28660 [BZ #21928]
28661 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
28662 PTRACE_SEIZE_DEVEL): Remove.
28663 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
28664 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
28665 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
28666 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
28667 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
28668
28669 2017-08-09 Joseph Myers <joseph@codesourcery.com>
28670
28671 * posix/bits/types.h (__qaddr_t): Remove.
28672
28673 [BZ #21457]
28674 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
28675 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
28676 __glibc_reserved1.
28677 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
28678 (ucontext_t): Use __ctx with uc_flags.
28679 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
28680 (__ctxt): Likewise.
28681 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
28682 __glibc_reserved1.
28683 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
28684 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
28685 __glibc_reserved1.
28686 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
28687 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
28688 __glibc_reserved1.
28689 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
28690 macro.
28691 (ucontext_t): Use __ctx with uc_flags.
28692 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
28693 (ucontext_t): Use __ctx with uc_flags.
28694 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
28695 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
28696 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
28697 (ucontext_t): Use __ctx with uc_flags.
28698 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
28699 undefine further down.
28700 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
28701 __glibc_reserved1.
28702 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
28703 undefine further down.
28704 (ucontext_t): Use __ctx with uc_flags.
28705 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
28706 undefine further down.
28707 (ucontext_t): Use __ctx with uc_flags.
28708 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
28709 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
28710 Rename uc_pad to __glibc_reserved1.
28711 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
28712 undefine further down.
28713 (ucontext_t): Use __ctx with uc_flags.
28714 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
28715 further down.
28716 (ucontext_t): Use __ctx with uc_flags.
28717 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
28718 __ctx with uc_flags.
28719 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
28720 (ucontext_t): Use __ctx with uc_flags.
28721 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
28722 __ctx with uc_flags.
28723
28724 2017-08-09 Florian Weimer <fweimer@redhat.com>
28725
28726 [BZ #21932]
28727 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
28728 before early return.
28729
28730 2017-08-09 Andreas Schwab <schwab@suse.de>
28731
28732 [BZ #21041]
28733 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
28734 renamed alias.
28735
28736 [BZ #21041]
28737 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
28738 tst-compat-forwarder.
28739 (modules-names): Add tst-compat-forwarder-mod.
28740 ($(objpfx)tst-compat-forwarder): Depend on
28741 $(objpfx)tst-compat-forwarder-mod.so.
28742 * nptl/tst-compat-forwarder.c: New file.
28743 * nptl/tst-compat-forwarder-mod.c: New file.
28744
28745 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
28746
28747 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
28748 comments.
28749
28750 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
28751 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
28752 memcpy_falkor.
28753 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
28754 Bump.
28755 (__libc_ifunc_impl_list): Add __memcpy_falkor.
28756 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
28757 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
28758 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
28759 Add falkor.
28760 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
28761 New macro.
28762
28763 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28764
28765 [BZ #759]
28766 * manual/setjmp.texi (getcontex): Document uc_stack value
28767 compatibility differences.
28768
28769 2017-08-08 Joseph Myers <joseph@codesourcery.com>
28770
28771 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
28772 (old_malloc_hook): Likewise.
28773 (old_memalign_hook): Likewise.
28774 (old_realloc_hook): Likewise.
28775 (struct hdr): Likewise.
28776 (flood): Likewise.
28777 (freehook): Likewise.
28778 (mallochook): Likewise.
28779 (memalignhook): Likewise.
28780 (reallochook): Likewise.
28781 (mprobe): Likewise.
28782 * malloc/mtrace.c (mallwatch): Likewise.
28783 (tr_old_free_hook): Likewise.
28784 (tr_old_malloc_hook): Likewise.
28785 (tr_old_realloc_hook): Likewise.
28786 (tr_old_memalign_hook): Likewise.
28787 (tr_where): Likewise.
28788 (lock_and_info): Likewise.
28789 (tr_freehook): Likewise.
28790 (tr_mallochook): Likewise.
28791 (tr_reallochook): Likewise.
28792 (tr_memalignhook): Likewise.
28793 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
28794 * misc/mmap.c (__mmap): Likewise.
28795 * misc/mmap64.c (__mmap64): Likewise.
28796 * misc/mprotect.c (__mprotect): Likewise.
28797 * misc/msync.c (msync): Likewise.
28798 * misc/munmap.c (__munmap): Likewise.
28799 * posix/posix_madvise.c (posix_madvise): Likewise.
28800 * socket/send.c (__send): Likewise.
28801 * socket/sendto.c (__sendto): Likewise.
28802 * socket/setsockopt.c (__setsockopt): Likewise.
28803 * string/memcmp.c (__ptr_t): Remove macro.
28804 (MEMCMP): Use void * instead of ptr_t.
28805 * string/memrchr.c (__ptr_t): Remove macro.
28806 (__memrchr): Use void * instead of ptr_t.
28807 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
28808 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
28809 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
28810 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
28811 * sysdeps/mach/msync.c (msync): Likewise.
28812 * sysdeps/mach/munmap.c (__munmap): Likewise.
28813 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
28814 Likewise.
28815 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
28816 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
28817 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
28818 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
28819 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
28820 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
28821 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
28822 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
28823 Likewise.
28824 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
28825 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
28826 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
28827 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
28828 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
28829 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
28830 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
28831 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
28832 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
28833 Likewise.
28834 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
28835 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
28836 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
28837 (MEMCMP): Use void * instead of ptr_t.
28838 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
28839 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
28840
28841 2017-08-08 Florian Weimer <fweimer@redhat.com>
28842
28843 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
28844 return statement.
28845
28846 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
28847
28848 [BZ #21913]
28849 * csu/libc-tls.c: Include <startup.h> first.
28850 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
28851 * elf/dl-tunables.c: Include <startup.h> first.
28852 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
28853 * sysdeps/generic/startup.h: New file.
28854 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
28855 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
28856 (I386_USE_SYSENTER): New. Defined to 0.
28857
28858 2017-08-08 Andreas Schwab <schwab@suse.de>
28859
28860 [BZ #21041]
28861 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
28862 * nptl/pt-system.c (system): Likewise.
28863
28864 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28865
28866 [BZ #21780]
28867 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
28868 EOPNOTSUPP.
28869 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
28870 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
28871 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
28872 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
28873 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
28874 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
28875 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
28876
28877 2017-08-07 Joseph Myers <joseph@codesourcery.com>
28878
28879 [BZ #21899]
28880 * bits/sigaction.h (struct sigaction): Define sa_handler and
28881 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
28882 (SA_ONSTACK): Change [__USE_UNIX98] condition to
28883 [__USE_XOPEN_EXTENDED].
28884 (SA_RESTART): Likewise.
28885 (SA_NODEFER): Likewise.
28886 (SA_RESETHAND): Likewise.
28887 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
28888 (struct sigaction): Define sa_handler and sa_sigaction using union
28889 also for [__USE_XOPEN_EXTENDED].
28890 (SA_ONSTACK): Change [__USE_UNIX98] condition to
28891 [__USE_XOPEN_EXTENDED].
28892 (SA_RESTART): Likewise.
28893 (SA_NODEFER): Likewise.
28894 (SA_RESETHAND): Likewise.
28895 * sysdeps/unix/sysv/linux/bits/sigaction.h
28896 (struct sigaction): Define sa_handler and sa_sigaction using union
28897 also for [__USE_XOPEN_EXTENDED].
28898 (SA_ONSTACK): Change [__USE_UNIX98] condition to
28899 [__USE_XOPEN_EXTENDED].
28900 (SA_RESTART): Likewise.
28901 (SA_NODEFER): Likewise.
28902 (SA_RESETHAND): Likewise.
28903 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
28904 (struct sigaction): Define sa_handler and sa_sigaction using union
28905 also for [__USE_XOPEN_EXTENDED].
28906 (SA_ONSTACK): Change [__USE_UNIX98] condition to
28907 [__USE_XOPEN_EXTENDED].
28908 (SA_RESTART): Likewise.
28909 (SA_NODEFER): Likewise.
28910 (SA_RESETHAND): Likewise.
28911 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
28912 (struct sigaction): Define sa_handler and sa_sigaction using union
28913 also for [__USE_XOPEN_EXTENDED].
28914 (SA_ONSTACK): Change [__USE_UNIX98] condition to
28915 [__USE_XOPEN_EXTENDED].
28916 (SA_RESTART): Likewise.
28917 (SA_NODEFER): Likewise.
28918 (SA_RESETHAND): Likewise.
28919 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
28920 (struct sigaction): Define sa_handler and sa_sigaction using union
28921 also for [__USE_XOPEN_EXTENDED].
28922 (SA_ONSTACK): Change [__USE_UNIX98] condition to
28923 [__USE_XOPEN_EXTENDED].
28924 (SA_RESTART): Likewise.
28925 (SA_NODEFER): Likewise.
28926 (SA_RESETHAND): Likewise.
28927 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
28928 (struct sigaction): Define sa_handler and sa_sigaction using union
28929 also for [__USE_XOPEN_EXTENDED].
28930 (SA_ONSTACK): Change [__USE_UNIX98] condition to
28931 [__USE_XOPEN_EXTENDED].
28932 (SA_RESTART): Likewise.
28933 (SA_NODEFER): Likewise.
28934 (SA_RESETHAND): Likewise.
28935 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
28936 (struct sigaction): Define sa_handler and sa_sigaction using union
28937 also for [__USE_XOPEN_EXTENDED].
28938 (SA_ONSTACK): Change [__USE_UNIX98] condition to
28939 [__USE_XOPEN_EXTENDED].
28940 (SA_RESTART): Likewise.
28941 (SA_NODEFER): Likewise. Define directly rather than as alias.
28942 (SA_RESETHAND): Likewise.
28943 (SA_INTERRUPT): Define only for [__USE_MISC].
28944 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
28945 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
28946 [__USE_MISC].
28947 (SA_STACK): Define only for [__USE_MISC].
28948 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
28949 (struct sigaction): Define sa_handler and sa_sigaction using union
28950 also for [__USE_XOPEN_EXTENDED].
28951 (SA_ONSTACK): Change [__USE_UNIX98] condition to
28952 [__USE_XOPEN_EXTENDED].
28953 (SA_RESTART): Likewise.
28954 (SA_NODEFER): Likewise.
28955 (SA_RESETHAND): Likewise.
28956 (SA_NOPTRACE): Define only for [__USE_MISC].
28957
28958 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
28959 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
28960 (struct catalog_info): Likewise.
28961 * inet/htontest.c (lo): Likewise.
28962 (foo): Likewise.
28963 * inet/inet_lnaof.c (inet_lnaof): Likewise.
28964 * inet/inet_net.c (inet_network): Likewise.
28965 * inet/inet_netof.c (inet_netof): Likewise.
28966 * inet/rcmd.c (__ivaliduser): Likewise.
28967 (iruserok): Likewise.
28968 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
28969 * locale/programs/locale-spec.c (locale_special): Likewise.
28970 * nis/nis_findserv.c (struct findserv_req): Likewise.
28971 (__nis_findfastest_with_timeout): Likewise.
28972 * nss/test-netdb.c (test_network): Likewise.
28973 * resolv/inet_neta.c (inet_neta): Likewise.
28974 * resolv/ns_date.c (ns_datetosecs): Likewise.
28975 (SECS_PER_DAY): Likewise.
28976 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
28977 Likewise.
28978 * resolv/res_comp.c (__putlong): Likewise.
28979 (__putshort): Likewise.
28980 (_getlong): Likewise.
28981 (_getshort): Likewise.
28982 * resolv/res_debug.c (p_time): Likewise.
28983 (precsize_ntoa): Likewise.
28984 (precsize_aton): Likewise.
28985 (latlon2ul): Likewise.
28986 (loc_aton): Likewise.
28987 (loc_ntoa): Likewise.
28988 * resolv/res_hconf.c (struct netaddr): Likewise.
28989 (_res_hconf_reorder_addrs): Likewise.
28990 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
28991 (clnttcp_control): Likewise.
28992 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
28993 (clntudp_control): Likewise.
28994 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
28995 (clntunix_control): Likewise.
28996 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
28997 * sunrpc/rpc/auth.h (union des_block): Likewise.
28998 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
28999 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
29000 (xdrrec_create): Likewise.
29001 (xdrrec_endofrecord): Likewise.
29002 (flush_out): Likewise.
29003 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
29004 (xdrstdio_putlong): Likewise.
29005 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
29006 Likewise.
29007
29008 * misc/sys/cdefs.h (__long_double_t): Remove.
29009 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
29010 instead of __long_double_t,
29011 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
29012
29013 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
29014
29015 * benchtests/scripts/compare_strings.py: Avoid display error when
29016 running on a text terminal.
29017
29018 * benchtests/scripts/compare_strings.py (main): Add an
29019 optional -base option.
29020 (process_results): New argument base_func.
29021
29022 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
29023 hardcoding memcpy.
29024 * benchtests/bench-memcpy-large.c (test_name): Likewise.
29025 * benchtests/bench-memcpy-random.c (test_name): Likewise.
29026
29027 2017-08-07 Andreas Schwab <schwab@suse.de>
29028
29029 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
29030 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
29031 * intl/Makefile ($(objpfx)tst-gettext.out)
29032 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
29033 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
29034 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
29035 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
29036 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
29037 * posix/Makefile ($(objpfx)globtest.out)
29038 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
29039 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
29040 ($(objpfx)tst-printf.out): Likewise.
29041 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
29042 ($(objpfx)tst-setcontext3.out): Likewise.
29043
29044 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
29045
29046 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
29047 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
29048 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
29049 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
29050 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
29051 and mptan-fma.
29052 (CFLAGS-doasin-fma.c): New.
29053 (CFLAGS-dosincos-fma.c): Likewise.
29054 (CFLAGS-e_asin-fma.c): Likewise.
29055 (CFLAGS-e_atan2-fma.c): Likewise.
29056 (CFLAGS-e_exp-fma.c): Likewise.
29057 (CFLAGS-e_log-fma.c): Likewise.
29058 (CFLAGS-e_pow-fma.c): Likewise.
29059 (CFLAGS-halfulp-fma.c): Likewise.
29060 (CFLAGS-mpa-fma.c): Likewise.
29061 (CFLAGS-mpatan-fma.c): Likewise.
29062 (CFLAGS-mpatan2-fma.c): Likewise.
29063 (CFLAGS-mpexp-fma.c): Likewise.
29064 (CFLAGS-mplog-fma.c): Likewise.
29065 (CFLAGS-mpsqrt-fma.c): Likewise.
29066 (CFLAGS-mptan-fma.c): Likewise.
29067 (CFLAGS-s_atan-fma.c): Likewise.
29068 (CFLAGS-sincos32-fma.c): Likewise.
29069 (CFLAGS-slowexp-fma.c): Likewise.
29070 (CFLAGS-slowpow-fma.c): Likewise.
29071 (CFLAGS-s_sin-fma.c): Likewise.
29072 (CFLAGS-s_tan-fma.c): Likewise.
29073 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
29074 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
29075 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
29076 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
29077 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
29078 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
29079 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
29080 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
29081 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
29082 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
29083 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
29084 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
29085 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
29086 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
29087 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
29088 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
29089 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
29090 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
29091 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
29092 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
29093 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
29094 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
29095 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
29096 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
29097 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
29098 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
29099 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
29100 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
29101 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
29102 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
29103 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
29104
29105 2017-08-04 Joseph Myers <joseph@codesourcery.com>
29106
29107 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
29108 (min_of_type_f): New macro.
29109 (min_of_type_): Likewise.
29110 (min_of_type_l): Likewise.
29111 (min_of_type_f128): Likewise.
29112 (min_of_type): Define using __MATH_TG and taking an expression
29113 argument.
29114 (math_check_force_underflow): Pass expression instead of type to
29115 min_of_type.
29116 (math_check_force_underflow_nonneg): Likewise.
29117
29118 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
29119
29120 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
29121 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
29122 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
29123
29124 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
29125
29126 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
29127 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
29128 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
29129 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
29130 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
29131 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
29132 memcpy_chk-nonshared, mempcpy_chk-nonshared,
29133 memmove_chk-nonshared and memset_chk-nonshared
29134 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
29135 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
29136 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
29137 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
29138 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
29139 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
29140 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
29141 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
29142 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
29143 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
29144 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
29145 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
29146 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
29147 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
29148 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
29149 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
29150 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
29151 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
29152 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
29153 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
29154 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
29155 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
29156 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
29157 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
29158 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
29159 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
29160 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
29161 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
29162 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
29163 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
29164 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
29165 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
29166 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
29167 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
29168 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
29169 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
29170 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
29171 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
29172 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
29173 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
29174 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
29175 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
29176 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
29177 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
29178 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
29179 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
29180 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
29181 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
29182 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
29183 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
29184 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
29185 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
29186 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
29187 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
29188 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
29189 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
29190 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
29191 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
29192 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
29193 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
29194 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
29195 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
29196 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
29197 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
29198 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
29199 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
29200 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
29201 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
29202 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
29203 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
29204 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
29205 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
29206 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
29207 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
29208 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
29209 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
29210 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
29211 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
29212 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
29213 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
29214 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
29215 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
29216 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
29217 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
29218 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
29219 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
29220 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
29221 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
29222 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
29223 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
29224 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
29225 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
29226 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
29227 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
29228 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
29229 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
29230 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
29231 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
29232 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
29233 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
29234 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
29235 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
29236 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
29237 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
29238 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
29239 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
29240 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
29241 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
29242
29243 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
29244
29245 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
29246 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
29247 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
29248 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
29249 svml_d_log2_core-sse2, svml_d_log4_core-sse,
29250 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
29251 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
29252 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
29253 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
29254 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
29255 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
29256 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
29257 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
29258 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
29259 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
29260 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
29261 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
29262 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
29263 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
29264 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
29265 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
29266 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
29267 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
29268 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
29269 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
29270 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
29271 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
29272 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
29273 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
29274 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
29275 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
29276 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
29277 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
29278 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
29279 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
29280 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
29281 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
29282 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
29283 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
29284 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
29285 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
29286 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
29287 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
29288 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
29289 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
29290 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
29291 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
29292 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
29293 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
29294 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
29295 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
29296 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
29297 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
29298 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
29299 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
29300 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
29301 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
29302 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
29303 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
29304 ...
29305 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
29306 Don't include <sysdep.h> nor <init-arch.h>.
29307 (_ZGVbN2v_cos): Removed.
29308 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
29309 ...
29310 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
29311 Don't include <sysdep.h> nor <init-arch.h>.
29312 (_ZGVdN4v_cos): Removed.
29313 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
29314 ...
29315 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
29316 Don't include <sysdep.h> nor <init-arch.h>.
29317 (_ZGVeN8v_cos): Removed.
29318 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
29319 ...
29320 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
29321 Don't include <sysdep.h> nor <init-arch.h>.
29322 (_ZGVbN2v_exp): Removed.
29323 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
29324 ...
29325 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
29326 Don't include <sysdep.h> nor <init-arch.h>.
29327 (_ZGVdN4v_exp): Removed.
29328 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
29329 ...
29330 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
29331 Don't include <sysdep.h> nor <init-arch.h>.
29332 (_ZGVeN8v_exp): Removed.
29333 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
29334 ...
29335 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
29336 Don't include <sysdep.h> nor <init-arch.h>.
29337 (_ZGVbN2v_log): Removed.
29338 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
29339 ...
29340 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
29341 Don't include <sysdep.h> nor <init-arch.h>.
29342 (_ZGVdN4v_log): Removed.
29343 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
29344 ...
29345 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
29346 Don't include <sysdep.h> nor <init-arch.h>.
29347 (_ZGVeN8v_log): Removed.
29348 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
29349 ...
29350 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
29351 Don't include <sysdep.h> nor <init-arch.h>.
29352 (_ZGVbN2vv_pow): Removed.
29353 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
29354 ...
29355 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
29356 Don't include <sysdep.h> nor <init-arch.h>.
29357 (_ZGVdN4vv_pow): Removed.
29358 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
29359 ...
29360 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
29361 Don't include <sysdep.h> nor <init-arch.h>.
29362 (_ZGVeN8vv_pow): Removed.
29363 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
29364 ...
29365 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
29366 Don't include <sysdep.h> nor <init-arch.h>.
29367 (_ZGVbN2v_sin): Removed.
29368 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
29369 ...
29370 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
29371 Don't include <sysdep.h> nor <init-arch.h>.
29372 (_ZGVbN4v_sin): Removed.
29373 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
29374 ...
29375 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
29376 Don't include <sysdep.h> nor <init-arch.h>.
29377 (_ZGVbN8v_sin): Removed.
29378 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
29379 ...
29380 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
29381 Don't include <sysdep.h> nor <init-arch.h>.
29382 (_ZGVbN2vvv_sincos): Removed.
29383 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
29384 ...
29385 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
29386 Don't include <sysdep.h> nor <init-arch.h>.
29387 (_ZGVdN4vvv_sincos): Removed.
29388 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
29389 ...
29390 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
29391 Don't include <sysdep.h> nor <init-arch.h>.
29392 (_ZGVeN8vvv_sincos): Removed.
29393 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
29394 ...
29395 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
29396 Don't include <sysdep.h> nor <init-arch.h>.
29397 (_ZGVeN16v_cosf): Removed.
29398 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
29399 ...
29400 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
29401 Don't include <sysdep.h> nor <init-arch.h>.
29402 (_ZGVbN4v_cosf): Removed.
29403 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
29404 ...
29405 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
29406 Don't include <sysdep.h> nor <init-arch.h>.
29407 (_ZGVdN8v_cosf): Removed.
29408 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
29409 ...
29410 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
29411 Don't include <sysdep.h> nor <init-arch.h>.
29412 (_ZGVeN16v_expf): Removed.
29413 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
29414 ...
29415 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
29416 Don't include <sysdep.h> nor <init-arch.h>.
29417 (_ZGVbN4v_expf): Removed.
29418 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
29419 ...
29420 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
29421 Don't include <sysdep.h> nor <init-arch.h>.
29422 (_ZGVdN8v_expf): Removed.
29423 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
29424 ...
29425 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
29426 Don't include <sysdep.h> nor <init-arch.h>.
29427 (_ZGVeN16v_logf): Removed.
29428 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
29429 ...
29430 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
29431 Don't include <sysdep.h> nor <init-arch.h>.
29432 (_ZGVbN4v_logf): Removed.
29433 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
29434 ...
29435 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
29436 Don't include <sysdep.h> nor <init-arch.h>.
29437 (_ZGVdN8v_logf): Removed.
29438 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
29439 ...
29440 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
29441 Don't include <sysdep.h> nor <init-arch.h>.
29442 (_ZGVeN16vv_powf): Removed.
29443 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
29444 ...
29445 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
29446 Don't include <sysdep.h> nor <init-arch.h>.
29447 (_ZGVbN4vv_powf): Removed.
29448 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
29449 ...
29450 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
29451 Don't include <sysdep.h> nor <init-arch.h>.
29452 (_ZGVdN8vv_powf): Removed.
29453 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
29454 ...
29455 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
29456 Don't include <sysdep.h> nor <init-arch.h>.
29457 (_ZGVeN16vvv_sincosf): Removed.
29458 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
29459 ...
29460 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
29461 Don't include <sysdep.h> nor <init-arch.h>.
29462 (_ZGVbN4vvv_sincosf): Removed.
29463 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
29464 ...
29465 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
29466 Don't include <sysdep.h> nor <init-arch.h>.
29467 (_ZGVdN8vvv_sincosf): Removed.
29468 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
29469 ...
29470 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
29471 Don't include <sysdep.h> nor <init-arch.h>.
29472 (_ZGVeN16v_sinf): Removed.
29473 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
29474 ...
29475 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
29476 Don't include <sysdep.h> nor <init-arch.h>.
29477 (_ZGVbN4v_sinf): Removed.
29478 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
29479 ...
29480 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
29481 Don't include <sysdep.h> nor <init-arch.h>.
29482 (_ZGVdN8v_sinf): Removed.
29483
29484 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
29485
29486 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
29487 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
29488 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
29489 s_rint-sse4_1 and s_rintf-sse4_1.
29490 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
29491 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
29492 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
29493 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
29494 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
29495 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
29496 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
29497 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
29498 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
29499 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
29500 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
29501 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
29502 (__ceil): Removed.
29503 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
29504 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
29505 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
29506 (__ceilf): Removed.
29507 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
29508 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
29509 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
29510 (__floor): Removed.
29511 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
29512 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
29513 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
29514 (__floorf): Removed.
29515 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
29516 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
29517 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
29518 (__nearbyint): Removed.
29519 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
29520 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
29521 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
29522 (__nearbyintf): Removed.
29523 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
29524 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
29525 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
29526 (__rint): Removed.
29527 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
29528 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
29529 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
29530 (__rintf): Removed.
29531
29532 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
29533
29534 * sysdeps/i386/start.S (_start): Check Check PIC instead of
29535 SHARED. Avoid dynamic relocation against main in static PIE.
29536
29537 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
29538
29539 [BZ #21815]
29540 * elf/Makefile (CFLAGS-tst-prelink.c): New.
29541 (LDFLAGS-tst-prelink): Likewise.
29542
29543 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
29544
29545 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
29546 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
29547 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
29548 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
29549 (INTERNAL_SYSCALL_NCS): Likewise.
29550 (LOADARGS_1): Likewise.
29551 (LOADARGS_5): Likewise.
29552 (RESTOREARGS_1): Likewise.
29553 (RESTOREARGS_5): Likewise.
29554
29555 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
29556
29557 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
29558 (MEMPCPY_SYMBOL): Likewise.
29559 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
29560 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
29561 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
29562 in libc.a.
29563 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
29564 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
29565 Likewise.
29566 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
29567 (__hidden_ver1): Don't use in libc.a.
29568 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
29569 (__mempcpy): Don't create a weak alias in libc.a.
29570 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
29571 libc.a.
29572 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
29573 (__hidden_ver1): Don't use in libc.a.
29574
29575 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
29576
29577 * config.make.in (have-insert): New.
29578 * configure.ac (libc_cv_insert): New. Set to yes if linker
29579 supports INSERT in linker script.
29580 (AC_SUBST(libc_cv_insert): New.
29581 * configure: Regenerated.
29582 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
29583 if $(have-insert) == yes.
29584
29585 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
29586
29587 * elf/Makefile (tests): Add vismain only if
29588 $(have-protected-data) == yes.
29589 (tests-pie): Likewise.
29590
29591 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
29592
29593 [BZ #21871]
29594 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
29595 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
29596
29597 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
29598
29599 [BZ #21790]
29600 * sysdeps/i386/i586/memset.S
29601 (__memset_zero_constant_len_parameter): Removed.
29602 * sysdeps/i386/i686/memset.S
29603 (__memset_zero_constant_len_parameter): Likewise.
29604 * sysdeps/i386/i686/multiarch/memset_chk.S
29605 (__memset_zero_constant_len_parameter): Likewise.
29606 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
29607 Likewise.
29608
29609 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
29610
29611 * stdlib/getentropy.c (getentropy): Change return type to int.
29612
29613 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
29614
29615 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
29616
29617 2017-08-03 Joseph Myers <joseph@codesourcery.com>
29618
29619 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
29620 u_intN_t.
29621 * math/s_nexttowardf.c (__nexttowardf): Likewise.
29622 * sysdeps/generic/math_private.h (ieee_double_shape_type):
29623 Likewise.
29624 (ieee_float_shape_type): Likewise.
29625 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
29626 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
29627 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
29628 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
29629 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
29630 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
29631 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
29632 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
29633 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
29634 Likewise.
29635 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
29636 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
29637 (__ieee754_yn): Likewise.
29638 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
29639 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
29640 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
29641 Likewise.
29642 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
29643 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
29644 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
29645 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
29646 (__erfc): Likewise.
29647 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
29648 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
29649 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
29650 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
29651 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
29652 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
29653 Likewise.
29654 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
29655 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
29656 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
29657 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
29658 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
29659 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
29660 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
29661 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
29662 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
29663 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
29664 (__issignaling): Likewise.
29665 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
29666 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
29667 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
29668 Likewise.
29669 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
29670 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
29671 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
29672 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
29673 Likewise.
29674 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
29675 Likewise.
29676 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
29677 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
29678 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
29679 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
29680 (__erfcf): Likewise.
29681 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
29682 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
29683 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
29684 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
29685 Likewise.
29686 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
29687 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
29688 Likewise.
29689 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
29690 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
29691 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
29692 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
29693 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
29694 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
29695 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
29696 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
29697 Likewise.
29698 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
29699 Likewise.
29700 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
29701 Likewise.
29702 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
29703 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
29704 Likewise.
29705 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
29706 Likewise.
29707 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
29708 (__ieee754_ynl): Likewise.
29709 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
29710 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
29711 Likewise.
29712 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
29713 Likewise.
29714 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
29715 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
29716 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
29717 Likewise.
29718 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
29719 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
29720 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
29721 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
29722 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
29723 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
29724 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
29725 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
29726 Likewise.
29727 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
29728 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
29729 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
29730 Likewise.
29731 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
29732 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
29733 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
29734 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
29735 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
29736 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
29737 Likewise.
29738 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
29739 Likewise.
29740 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
29741 Likewise.
29742 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
29743 Likewise.
29744 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
29745 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
29746 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
29747 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
29748 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
29749 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
29750 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
29751 Likewise.
29752 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
29753 Likewise.
29754 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
29755 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
29756 Likewise.
29757 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
29758 (__ieee754_remainderl): Likewise.
29759 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
29760 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
29761 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
29762 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
29763 Likewise.
29764 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
29765 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
29766 Likewise.
29767 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
29768 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
29769 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
29770 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
29771 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
29772 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
29773 Likewise.
29774 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
29775 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
29776 (__ieee754_y0l): Likewise.
29777 (pzero): Likewise.
29778 (qzero): Likewise.
29779 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
29780 (__ieee754_y1l): Likewise.
29781 (pone): Likewise.
29782 (qone): Likewise.
29783 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
29784 (__ieee754_ynl): Likewise.
29785 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
29786 (__ieee754_lgammal_r): Likewise.
29787 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
29788 Likewise.
29789 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
29790 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
29791 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
29792 (__erfcl): Likewise.
29793 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
29794 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
29795 Likewise.
29796 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
29797 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
29798 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
29799 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
29800 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
29801 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
29802 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
29803 Likewise.
29804 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
29805 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
29806 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
29807 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
29808 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
29809 Likewise.
29810 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
29811 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
29812 Likewise.
29813 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
29814 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
29815 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
29816 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
29817 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
29818
29819 2017-08-03 Florian Weimer <fweimer@redhat.com>
29820
29821 [BZ #21885]
29822 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
29823 on memory allocation failure.
29824
29825 2017-08-03 Alan Modra <amodra@gmail.com>
29826
29827 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
29828 tst-tlsopt-powerpc.c with function name change and no test harness.
29829 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
29830 Call tls_get_addr_opt_test.
29831 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
29832 (modules-names): Add mod-tlsopt-powerpc.
29833 (mod-tlsopt-powerpc.so-no-z-defs): Define.
29834 (tst-tlsopt-powerpc): Depend on .so.
29835 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
29836 define. Expand use in TLS_GD and TLS_LD.
29837
29838 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
29839
29840 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
29841 function.
29842 * sysdeps/posix/shm_open.c: Include <pthread.h>.
29843
29844 2017-08-02 Joseph Myers <joseph@codesourcery.com>
29845
29846 [BZ #21686]
29847 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
29848 comparing size with that of double.
29849 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
29850 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
29851 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
29852 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
29853 (__TGMATH_BINARY_REAL_IMAG): Likewise.
29854 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
29855 unsigned __int128 types.
29856
29857 2017-08-02 Steve Ellcey <sellcey@cavium.com>
29858
29859 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
29860 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
29861 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
29862 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
29863 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
29864
29865 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
29866
29867 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
29868
29869 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
29870
29871 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
29872 of SHARED.
29873 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
29874 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
29875 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
29876 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
29877 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
29878 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
29879 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
29880
29881 2017-08-02 Joseph Myers <joseph@codesourcery.com>
29882
29883 [BZ #21685]
29884 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
29885 bit-field expressions passed to sizeof or typeof.
29886 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29887 (__TGMATH_F128): Likewise.
29888 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29889 (__TGMATH_CF128): Likewise.
29890 (__TGMATH_UNARY_REAL_ONLY): Likewise.
29891 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
29892 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
29893 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
29894 (__TGMATH_BINARY_REAL_ONLY): Likewise.
29895 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
29896 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
29897 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
29898 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
29899 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
29900 (__TGMATH_UNARY_REAL_IMAG): Likewise.
29901 (__TGMATH_UNARY_IMAG): Likewise.
29902 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
29903 (__TGMATH_BINARY_REAL_IMAG): Likewise.
29904 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
29905 type.
29906 (define_vars_for_type): Handle bit_field type specially.
29907 (Tests.__init__): Declare structure with bit-field element.
29908
29909 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
29910
29911 [BZ #21791]
29912 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
29913 (MEMCPY_CHK): Define only if SHARED is defined.
29914 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
29915 Likewise.
29916 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
29917 Likewise.
29918
29919 See ChangeLog.18 for earlier changes.