i586: Use conditional branches in strcpy.S [BZ #22353]
[glibc.git] / ChangeLog
blob5ea3d856a1512f8bec42ad39a0b879031ada9df6
1 2017-10-30  H.J. Lu  <hongjiu.lu@intel.com>
3         [BZ #22353]
4         * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
5         (1): Renamed to ...
6         (L(Src0)): This.
7         (L(Src1)): New.
8         (L(Src2)): Likewise.
9         (L(1)): Renamed to ...
10         (L(Src3)): This.
12 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
14         * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
15         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
16         [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
17         [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
18         [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
19         [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
20         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
21         [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
22         [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
23         [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
24         [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
25         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
26         [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
27         [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
28         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
29         [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
30         [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
31         [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
32         [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
33         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
34         [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
35         [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
36         [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
37         [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
38         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
39         [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
40         [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
41         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
42         [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
43         [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
44         [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
45         [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
46         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
47         [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
48         [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
49         [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
50         [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
51         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
52         [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
53         [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
54         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
55         [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
56         [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
57         [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
58         [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
59         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
60         [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
61         [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
62         [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
63         [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
64         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
65         [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
66         [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
67         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
68         [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
69         [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
70         [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
71         [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
72         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
73         [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
74         [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
75         [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
76         [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
77         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
78         [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
79         [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
81 2017-10-30  Florian Weimer  <fweimer@redhat.com>
83         * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
84         always defined.
85         * io/tst-mkdirat.c (do_test): Likewise.
86         * io/tst-mkfifoat.c (do_test): Likewise.
87         * io/tst-mknodat.c (do_test): Likewise.
88         * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
89         * locale/programs/locale.c (select_dirs): Likewise.
90         * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
91         * posix/bug-glob2.c (my_readdir): Likewise.
92         * posix/tst-dir.c (main): Likewise.
93         * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
94         * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
96 2017-10-30  Florian Weimer  <fweimer@redhat.com>
98         * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
99         just __USE_GNU.
101 2017-10-30  Florian Weimer  <fweimer@redhat.com>
103         * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
104         Convert to support/test-driver.c.
105         (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
106         New macro parameters.
107         (PRINTF): Remove macro.  Use test_verbose conditionals instead.
108         * posix/tst-gnuglob.c: New file.
109         * posix/tst-gnuglob64.c: Likewise.
110         * posix/Makefile (tests): Add tst-gnuglob64.
112 2017-10-30  Michal Ostrowski <ostrowski.michal@gmail.com>
114         [BZ #19485]
115         * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
116         and use a better translation for March in “mon”.
117         * localedata/locales/csb_PL: Use more ASCII to improve the
118         readability of the source.
120 2017-10-30  Mike FABIAN  <mfabian@redhat.com>
122         [BZ #13953]
123         * localedata/locales/km_KH: Use ASCII as much
124         as possible for better readability of the source and
125         remove useless comments.
126         * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
127         was commented out and apparently wrong anyway because it was
128         using Lao characters. If Buddhist era should be used
129         for km_KH, a native speaker should write the correct formaat
130         for Khmer.
131         * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
132         (According to CLDR, the first weekday for Cambodia is Sunday).
133         * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
134         (These were using Lao characters which must be wrong. If we get
135         the correct data from a native speaker, we could add it back, until
136         then it is better not to have name_mr and name_mrs at all than
137         having it wrong).
139 2017-10-27  Rafal Luzynski  <digitalfreak@lingonborough.com>
141         * locale/loadlocale.c: Correct size of
142         _nl_value_type_LC_<category> arrays.
144 2017-10-27  Joseph Myers  <joseph@codesourcery.com>
146         * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
147         Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
148         with appropriate macros defined and undefined.
149         [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
150         [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
151         [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
152         [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
153         [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
155 2017-10-27  H.J. Lu  <hongjiu.lu@intel.com>
157         * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
158         "-O2 -march=i586".
160 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
162         * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
163         with lowercase letters to make it agree with CLDR.
165 2017-10-27  Mike FABIAN  <mfabian@redhat.com>
167         [BZ #15260]
168         * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
169         first letters of yesstr and nostr in yesexpr and noexpr,
170         not for the full words.
171         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
172         * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
173         * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
174         * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
175         * localedata/locales/km_KH (LC_MESSAGES): Match also for the
176         first letters of yesstr and nostr in yesexpr and noexpr,
177         until now only English was matched in yesexpr and noexpr.
178         * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
179         instead of “copy "en_US"”. CLDR has yesstr and nostr data for
180         fil but not for tl. As tl and fil are very similar, using fil
181         is probably better than using English.
183 2017-10-27  Thierry Vignaud <thierry.vignaud@gmail.com>
185         [BZ #21706]
186         * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
187         in yesstr and nostr.
189 2017-10-26  Joseph Myers  <joseph@codesourcery.com>
191         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
192         (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
193         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
194         Likewise.
195         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
196         Likewise.
197         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
198         Likewise.
199         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
200         Likewise.
201         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
202         (SNANF128X): Likewise.
204         * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
205         (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
206         [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
207         (HUGE_VAL_F32): Likewise.
208         [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
209         (HUGE_VAL_F64): Likewise.
210         [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
211         (HUGE_VAL_F32X): Likewise.
212         [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
213         (HUGE_VAL_F64X): Likewise.
214         [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
215         (HUGE_VAL_F128X): Likewise.
217 2017-10-26  Thierry Vignaud <thierry.vignaud@gmail.com>
219         * localedata/locales/br_FR (LC_IDENTIFICATON): Add
220         Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
221         for the br_FR locale.
223 2017-10-26  Thierry Vignaud <thierry.vignaud@gmail.com>
225         [BZ #21706]
226         * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
228 2017-10-25  Carlos O'Donell  <carlos@redhat.com>
230         * locale/programs/record-status.h: Define globals, and function
231         prototypes. Move function bodies...
232         * locale/programs/record-status.c: ... to here. New file.
233         * iconv/Makefile (iconv_prog-modules): Add record-status.
234         * locale/Makefile (lib-modules): Likewise.
235         * iconv/iconv_prog.c: Remove verbose.
236         * iconv/iconv_prog.h: Include record-status.h (defines verbose).
237         * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
238         record a warning about ASCII compatibility.
239         * locale/programs/ld-monetary.c (monetary_finish): If
240         warn_int_curr_symbol is true then record a warning about the symbol
241         not being in our ISO 4217 list.
242         * locale/programs/locale.c: Include record-status.h. Remove verbose.
243         * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
244         verbose, recorded_warning_count, recorded_error_count, and be_quiet.
245         (OPT_NO_WARN): Define.
246         (OPT_WARN): Define.
247         (options): Add entry for --no-warnings, and --warnings.
248         (set_warnings): New function to enable/disable warnings.
249         (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
250         * locale/programs/localedef.h: Remove warn_int_curr_symbol.
251         * localedata/gen-locale.sh: Default flags to `--quiet -c'.
252         Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
253         Pass flags to generate_locale.
254         (generate_locale): Accept new flag argument and pass it to localedef
255         invocation.
256         * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
257         --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
259         * localedata/Makefile (test-input-data): Use full file name.
260         * localedata/da_DK.in: Rename to...
261         * localedata/da_DK.ISO-8859-1.in: ...this.
262         * localedata/de_DE.in: Rename to...
263         * localedata/de_DE.ISO-8859-1.in: ...this.
264         * localedata/en_US.in: Rename to...
265         * localedata/en_US.ISO-8859-1.in: ...this.
266         * localedata/fr_FR.in: Rename to...
267         * localedata/fr_FR.UTF-8.in: ... this.
268         * localedata/hr_HR.in: Rename to...
269         * localedata/hr_HR.ISO-8859-2.in: ...this.
270         * localedata/hu_HU.in: Rename to...
271         * localedata/hu_HU.UTF-8.in: ...this.
272         * localedata/si_LK.in: Rename to...
273         * localedata/si_LK.UTF-8.in: ...this.
274         * localedata/sv_SE.in: Rename to...
275         * localedata/sv_SE.ISO-8859-1.in: ...this.
276         * localedata/tr_TR.in: Rename to...
277         * localedata/tr_TR.UTF-8.in: ...this.
278         * localedata/uk_UA.in: Rename to...
279         * localedata/uk_UA.UTF-8.in: ...this.
280         * localedata/sort-test.sh: Test file is locale name with the
281         suffix.
283         * localedata/unicode-gen/Makefile (check_i18n): Rename to
284         check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
285         file.
286         * localedata/locales/i18n_ctype: Regenerate.
287         * localedata/locales/tr_TR: Likewise.
288         * localedata/locales/translit_circle: Likewise.
289         * localedata/locales/translit_cjk_compat: Likewise.
290         * localedata/locales/translit_combining: Likewise.
291         * localedata/locales/translit_compat: Likewise.
292         * localedata/locales/translit_font: Likewise.
293         * localedata/locales/translit_fraction: Likewise.
295 2017-10-25  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
297         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
298         lxvd2x/stxvd2x with lvx/stvx.
299         * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
301 2017-10-25  H.J. Lu  <hongjiu.lu@intel.com>
303         * include/alloc_buffer.h: Replace "if if " with "if " in
304         comments.
305         * sysdeps/mips/memcpy.S: Likkewise.
306         * sysdeps/mips/memset.S: Likewise.
307         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
308         Likewise.
309         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
310         Likewise.
311         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
312         Likewise.
314 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
316         [BZ #15261]
317         * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
318         yesexpr and noexpr.
319         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
320         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
321         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
322         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
323         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
324         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
325         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
327 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
329         * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
330         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
331         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
332         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
333         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
334         * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
335         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
336         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
337         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
338         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
339         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
340         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
342 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
344         * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
345         as possible for better readability of the source.
346         * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
347         * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
348         * localedata/locales/am_ET (LC_MESSAGES): Likewise.
349         * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
350         * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
351         * localedata/locales/as_IN (LC_MESSAGES): Likewise.
352         * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
353         * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
354         * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
355         * localedata/locales/az_IR (LC_MESSAGES): Likewise.
356         * localedata/locales/be_BY (LC_MESSAGES): Likewise.
357         * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
358         * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
359         * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
360         * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
361         * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
362         * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
363         * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
364         * localedata/locales/br_FR (LC_MESSAGES): Likewise.
365         * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
366         * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
367         * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
368         * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
369         * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
370         * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
371         * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
372         * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
373         * localedata/locales/da_DK (LC_MESSAGES): Likewise.
374         * localedata/locales/de_DE (LC_MESSAGES): Likewise.
375         * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
376         * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
377         * localedata/locales/el_GR (LC_MESSAGES): Likewise.
378         * localedata/locales/en_CA (LC_MESSAGES): Likewise.
379         * localedata/locales/en_US (LC_MESSAGES): Likewise.
380         * localedata/locales/es_ES (LC_MESSAGES): Likewise.
381         * localedata/locales/et_EE (LC_MESSAGES): Likewise.
382         * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
383         * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
384         * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
385         * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
386         * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
387         * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
388         * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
389         * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
390         * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
391         * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
392         * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
393         * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
394         * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
395         * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
396         * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
397         * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
398         * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
399         * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
400         * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
401         * localedata/locales/he_IL (LC_MESSAGES): Likewise.
402         * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
403         * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
404         * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
405         * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
406         * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
407         * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
408         * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
409         * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
410         * localedata/locales/id_ID (LC_MESSAGES): Likewise.
411         * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
412         * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
413         * localedata/locales/is_IS (LC_MESSAGES): Likewise.
414         * localedata/locales/it_CH (LC_MESSAGES): Likewise.
415         * localedata/locales/it_IT (LC_MESSAGES): Likewise.
416         * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
417         * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
418         * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
419         * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
420         * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
421         * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
422         * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
423         * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
424         * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
425         * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
426         * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
427         * localedata/locales/li_NL (LC_MESSAGES): Likewise.
428         * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
429         * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
430         * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
431         * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
432         * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
433         * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
434         * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
435         * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
436         * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
437         * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
438         * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
439         * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
440         * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
441         * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
442         * localedata/locales/my_MM (LC_MESSAGES): Likewise.
443         * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
444         * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
445         * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
446         * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
447         * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
448         * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
449         * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
450         * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
451         * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
452         * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
453         * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
454         * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
455         * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
456         * localedata/locales/om_ET (LC_MESSAGES): Likewise.
457         * localedata/locales/or_IN (LC_MESSAGES): Likewise.
458         * localedata/locales/os_RU (LC_MESSAGES): Likewise.
459         * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
460         * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
461         * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
462         * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
463         * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
464         * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
465         * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
466         * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
467         * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
468         * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
469         * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
470         * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
471         * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
472         * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
473         * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
474         * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
475         * localedata/locales/se_NO (LC_MESSAGES): Likewise.
476         * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
477         * localedata/locales/si_LK (LC_MESSAGES): Likewise.
478         * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
479         * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
480         * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
481         * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
482         * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
483         * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
484         * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
485         * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
486         * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
487         * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
488         * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
489         * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
490         * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
491         * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
492         * localedata/locales/th_TH (LC_MESSAGES): Likewise.
493         * localedata/locales/the_NP (LC_MESSAGES): Likewise.
494         * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
495         * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
496         * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
497         * localedata/locales/to_TO (LC_MESSAGES): Likewise.
498         * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
499         * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
500         * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
501         * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
502         * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
503         * localedata/locales/unm_US (LC_MESSAGES): Likewise.
504         * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
505         * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
506         * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
507         * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
508         * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
509         * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
510         * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
511         * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
512         * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
513         * localedata/locales/yi_US (LC_MESSAGES): Likewise.
514         * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
515         * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
516         * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
517         * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
518         * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
519         * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
521 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
523         * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
524         (Use first letters of yesstr and nostr correctly instead of using
525         full words).
527 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
529         * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
530         (Use first letters of yesstr and nostr correctly).
532 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
534         * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
535         also check for the first characters of yesstr and nostr.
536         * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
537         * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
539 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
541         * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
542         also check for Chinese characters.
544 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
546         * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
547         match also for the contents of yesstr and nostr. As the first letter
548         of yesstr and nostr is equal, checking only for the first letter
549         is not enough.
551 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
553         * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
554         it is the same according to  Belkacem Mohammed <belkacem77@gmail.com>.
556 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
558         * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
559         of main contributor.
561 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
563         * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
564         instead of using English.
566 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
568         * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
569         by including the first letters of nostr and yesexpr in the regexp.
570         Also make it more readable by using ASCII where possible.
572 2017-10-25  Mike FABIAN  <mfabian@redhat.com>
574         * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
575         the first letter of nostr in the regexp. It agrees with CLDR now.
576         Also make it more readable by using ASCII where possible.
578 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
580         * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
581         The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
582         these strings contain a U+17D6 (which somewhat looks like a colon)
583         instead of a real colon to separate the full words for “yes”
584         and “no” from the single letter responses.
586 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
588         * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
589         it agree with CLDR (include the first letter of yesstr).
590         Also make it more readable by using ASCII where possible.
592 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
594         * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
595         and improve yesexpr and noexpr. The yesstr and nostr apparently
596         came from CLDR. And CLDR has a bug there: these strings contain
597         a U+0903 (which looks like a colon) instead of a real colon
598         to separate the full words for “yes” and “no” from the single
599         letter responses.
601 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
603         * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
604         letters of the full yesstr and nostr in yesexpr and noexpr.
606 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
608         * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
609         * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
610         * localedata/locales/an_ES: Make source more readable by using ASCII
611         where possible.
613 2017-10-24  Mike FABIAN  <mfabian@redhat.com>
615         [BZ #20952]
616         * localedata/locales/yuw_PG: New file.
617         * localedata/SUPPORTED: Add yuw_PG/UTF-8.
618         * locale/iso-639.def: Add Yau (Uruwa).
620 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
622         * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
624 2017-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
626         * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
627         (__libc_realloc): Likewise.
628         (_mid_memalign): Likewise.
629         (__libc_calloc): Likewise.
631 2017-10-23  Mike FABIAN  <mfabian@redhat.com>
633         * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
634         by adding the generic +1 and -0 as in all other locales.
635         * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
636         day names and make it more readable by using ASCII where possible.
638 2017-10-24  Joseph Myers  <joseph@codesourcery.com>
640         * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
641         (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
643 2017-10-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
645         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
646         WNOHANG in waitpid call.
648 2017-10-23  Siddhesh Poyarekar  <siddhesh@sourceware.org>
650         * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
651         _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
653         * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
654         _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
655         _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
656         _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
657         _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
658         _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
659         _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
660         _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
661         variables.
663 2017-10-23  Michael Collison  <michael.collison@arm.com>
665         * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
666         with __builtin_sqrt.
667         * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
668         with __builtin_sqrtf.
669         * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
670         with __builtin_ceil.
671         * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
672         with __builtin_ceilf.
673         * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
674         with __builtin_floor.
675         * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
676         with __builtin_floorf.
677         * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
678         with __builtin_fma.
679         * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
680         with __builtin_fmaf.
681         * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
682         with __builtin_fmax.
683         * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
684         with __builtin_fmaxf.
685         * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
686         with __builtin_fmin.
687         * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
688         with __builtin_fminf.
689         * sysdeps/aarch64/fpu/s_frint.c: Delete file.
690         * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
691         * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
692         with builtin_rint and conversion to int.
693         * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
694         * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
695         with builtin_llround.
696         * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
697         * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
698         with builtin_rint and conversion to long int.
699         * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
700         * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
701         with builtin_lround.
702         * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
703         with builtin_lroundf.
704         * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
705         statements with __builtin_nearbyint.
706         * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
707         statements with __builtin_nearbyintf.
708         * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
709         with __builtin_rint.
710         * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
711         with __builtin_rintf.
712         * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
713         with __builtin_round.
714         * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
715         with __builtin_roundf.
716         * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
717         with __builtin_trunc.
718         * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
719         with __builtin_truncf.
720         * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
721         and s_l[l]round[f].c too.
723 2017-10-23  Alan Modra  <amodra@gmail.com>
725         * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
726         Adjust stack after restoring regs.  Add missing LR cfi_restore.
728 2017-10-23  Alan Modra  <amodra@gmail.com>
730         * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
731         Move LR save and frame setup/teardown and LR restore to
732         immediately around memset call.  Provide cfi.
734 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
736         * sysdeps/i386/fpu/e_powf.S: Removed.
737         * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
738         * sysdeps/i386/fpu/w_powf.c: Likewise.
739         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
740         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
741         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
742         Add e_powf-sse2.
743         (CFLAGS-e_powf-sse2.c): New.
744         * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
745         * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
747 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
749         * sysdeps/i386/fpu/e_log2f.S: Removed.
750         * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
751         * sysdeps/i386/fpu/w_log2f.c: Likewise.
752         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
753         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
754         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
755         Add e_log2f-sse2.
756         (CFLAGS-e_log2f-sse2.c): New.
757         * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
758         * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
760 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
762         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
763         Add e_powf-fma.
764         (CFLAGS-e_powf-fma.c): New.
765         * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
766         * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
768 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
770         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
771         Add e_log2f-fma.
772         (CFLAGS-e_log2f-fma.c): New.
773         * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
774         * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
776 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
778         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
779         Add e_logf-fma.
780         (CFLAGS-e_logf-fma.c): New.
781         * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
782         * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
784 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
786         * sysdeps/i386/fpu/e_logf.S: Removed.
787         * sysdeps/i386/fpu/e_logf_data.c: Likewise.
788         * sysdeps/i386/fpu/w_logf.c: Likewise.
789         * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
790         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
791         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
792         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
793         Add e_logf-sse2.
794         (CFLAGS-e_logf-sse2.c): New.
795         * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
796         * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
798 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
800         * sysdeps/i386/fpu/e_exp2f.S: Removed.
801         * sysdeps/i386/fpu/w_exp2f.c: Likewise.
802         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
803         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
804         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
805         Add e_exp2f-sse2.
806         (CFLAGS-e_exp2f-sse2.c): New.
807         * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
808         * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
810 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
812         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
813         Add e_exp2f-fma.
814         (CFLAGS-e_exp2f-fma.c): New.
815         * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
816         * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
818 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
820         * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
821         * sysdeps/i386/fpu/e_expf.S: Likewise.
822         * sysdeps/i386/fpu/math_errf.c: Likewise.
823         * sysdeps/i386/fpu/w_expf.c: Likewise.
824         * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
825         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
826         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
827         * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
828         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
829         * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
830         Remove e_expf-ia32.
831         (CFLAGS-e_expf-sse2.c): New.
832         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
833         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
835 2017-10-22  H.J. Lu  <hongjiu.lu@intel.com>
837         * sysdeps/x86_64/fpu/e_expf.S: Removed.
838         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
839         * sysdeps/x86_64/fpu/w_expf.c: Likewise.
840         * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
841         e_expf.c.
842         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
843         New.
844         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
845         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
846         Renamed to ...
847         (__redirect_expf): This.
848         (SYMBOL_NAME): Changed to expf.
849         (__ieee754_expf): Renamed to ...
850         (__expf): This.
851         (__GI___expf): This.
852         (__ieee754_expf): Add strong_alias.
853         (__expf_finite): Likewise.
854         (__expf): New.
855         Include <sysdeps/ieee754/flt-32/e_expf.c>.
857 2017-10-22  Paul Eggert <eggert@cs.ucla.edu>
859         [BZ #22332]
860         * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
861         unescaping.
863 2017-10-21  Florian Weimer  <fweimer@redhat.com>
865         * posix/Makefile (tests): Add tst-glob-tilde.
866         (tests-special): Add tst-glob-tilde-mem.out
867         (tst-glob-tilde-ENV): Set MALLOC_TRACE.
868         (tst-glob-tilde-mem.out): Add mtrace check.
869         * posix/tst-glob-tilde.c: New file.
871 2017-10-20  Joseph Myers  <joseph@codesourcery.com>
873         * bits/floatn-common.h: New file.
874         * math/Makefile (headers): Add bits/floatn-common.h.
875         * bits/floatn.h: Include <bits/floatn-common.h>.
876         * sysdeps/ia64/bits/floatn.h: Likewise.
877         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
878         * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
879         * sysdeps/powerpc/bits/floatn.h: Likewise.
880         * sysdeps/x86/bits/floatn.h: Likewise.
882 2017-10-20  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
884         * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
885         indicates whether compiler emits an warning for alias for
886         functions with incompatible types.
888         [BZ #22273]
889         * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
890         the auxiliary process is terminated by a signal before calling _exit
891         or execve.
893 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
895         [BZ #21265]
896         * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
897         New.
898         * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
899         (get_common_indeces): Set xsave_state_size, xsave_state_full_size
900         and bit_arch_XSAVEC_Usable if needed.
901         (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
902         and bit_arch_Use_dl_runtime_resolve_opt.
903         * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
904         Removed.
905         (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
906         (bit_arch_Prefer_No_AVX512): Updated.
907         (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
908         (bit_arch_XSAVEC_Usable): New.
909         (STATE_SAVE_OFFSET): Likewise.
910         (STATE_SAVE_MASK): Likewise.
911         [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
912         (cpu_features): Add xsave_state_size and xsave_state_full_size.
913         (index_arch_Use_dl_runtime_resolve_opt): Removed.
914         (index_arch_Use_dl_runtime_resolve_slow): Likewise.
915         (index_arch_XSAVEC_Usable): New.
916         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
917         Support XSAVEC_Usable.  Remove Use_dl_runtime_resolve_slow.
918         * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
919         is enabled.
920         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
921         Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
922         _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
923         _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
924         with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
925         _dl_runtime_resolve_xsavec.
926         * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
927         Removed.
928         (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
929         instead of VEC_SIZE.
930         (REGISTER_SAVE_BND0): Removed.
931         (REGISTER_SAVE_BND1): Likewise.
932         (REGISTER_SAVE_BND3): Likewise.
933         (REGISTER_SAVE_RAX): Always defined to 0.
934         (VMOV): Removed.
935         (_dl_runtime_resolve_avx): Likewise.
936         (_dl_runtime_resolve_avx_slow): Likewise.
937         (_dl_runtime_resolve_avx_opt): Likewise.
938         (_dl_runtime_resolve_avx512): Likewise.
939         (_dl_runtime_resolve_avx512_opt): Likewise.
940         (_dl_runtime_resolve_sse): Likewise.
941         (_dl_runtime_resolve_sse_vex): Likewise.
942         (USE_FXSAVE): New.
943         (_dl_runtime_resolve_fxsave): Likewise.
944         (USE_XSAVE): Likewise.
945         (_dl_runtime_resolve_xsave): Likewise.
946         (USE_XSAVEC): Likewise.
947         (_dl_runtime_resolve_xsavec): Likewise.
948         * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
949         Removed.
950         (_dl_runtime_resolve_avx512_opt): Likewise.
951         (_dl_runtime_resolve_avx): Likewise.
952         (_dl_runtime_resolve_avx_opt): Likewise.
953         (_dl_runtime_resolve_sse): Likewise.
954         (_dl_runtime_resolve_sse_vex): Likewise.
955         (_dl_runtime_resolve_fxsave): New.
956         (_dl_runtime_resolve_xsave): Likewise.
957         (_dl_runtime_resolve_xsavec): Likewise.
959 2017-10-20  Paul Eggert <eggert@cs.ucla.edu>
961         [BZ #22320]
962         CVE-2017-15670
963         * posix/glob.c (__glob): Fix one-byte overflow.
965 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
967         * malloc/malloc.c (sysdep-cancel.h): Add include.
969 2017-10-20  Wilco Dijkstra  <wdijkstr@arm.com>
971         * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
973 2017-10-20  Will Hawkins  <hawkinsw@borlaugic.com>
975         * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
976         (tests): Remove $(objpfx)ga_test depdendency.
977         * resolv/ga_test.c: Remove file.
979 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
981         [BZ #18812]
982         * localedata/SUPPORTED: Add kab_DZ/UTF-8.
983         * localedata/locales/kab_DZ: New file.
985 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
987         * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
988         _dl_relocate_static_pie instead of _dl_start to compute load
989         address in static PIE.
991 2017-10-20  H.J. Lu  <hongjiu.lu@intel.com>
993         * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
995 2017-10-20  Mike FABIAN  <mfabian@redhat.com>
997         [BZ #13605]
998         * localedata/SUPPORTED: Add shn_MM/UTF-8.
999         * localedata/locales/shn_MM: New file.
1001 2017-10-20  Florian Weimer  <fweimer@redhat.com>
1003         [BZ #22321]
1004         sysconf: Fix missing definition of UIO_MAXIOV on Linux.
1005         * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
1006         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
1007         (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
1008         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
1009         * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
1011 2017-10-19  H.J. Lu  <hongjiu.lu@intel.com>
1013         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
1015 2017-10-19  Joseph Myers  <joseph@codesourcery.com>
1017         * sysdeps/mips/ieee754/bits/floatn.h: New file.
1019         [BZ #22322]
1020         * sysdeps/mips/bits/long-double.h: Move to ....
1021         * sysdeps/mips/ieee754/bits/long-double.h: ... here.
1023 2017-10-19  Wilco Dijkstra  <wdijkstr@arm.com>
1025         * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
1027 2017-10-19  Valery Reznic <valery_reznic@yahoo.com>
1028             H.J. Lu  <hongjiu.lu@intel.com>
1030         [BZ #22299]
1031         * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
1032         GLRO(dl_platform) to NULL.
1033         * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
1034         (modules-names): Add tst-platformmod-1 and
1035         x86_64/tst-platformmod-2.
1036         (CFLAGS-tst-platform-1.c): New.
1037         (CFLAGS-tst-platformmod-1.c): Likewise.
1038         (CFLAGS-tst-platformmod-2.c): Likewise.
1039         (LDFLAGS-tst-platformmod-2.so): Likewise.
1040         ($(objpfx)tst-platform-1): Likewise.
1041         ($(objpfx)tst-platform-1.out): Likewise.
1042         (tst-platform-1-ENV): Likewise.
1043         ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
1044         * sysdeps/x86_64/tst-platform-1.c: New file.
1045         * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
1046         * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
1048 2017-10-19  Mike FABIAN  <mfabian@redhat.com>
1050         [BZ #13994]
1051         * locale/iso-639.def: Add Karbi.
1052         * localedata/SUPPORTED: Add mjw_IN/UTF-8.
1053         * localedata/locales/mjw_IN: New file.
1055 2017-10-18  Joseph Myers  <joseph@codesourcery.com>
1057         * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
1058         * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
1059         * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
1060         * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
1061         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
1062         (libm_alias_ldouble_other_r): Also create _Float128 alias.
1063         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
1064         <bits/floatn.h>.
1065         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
1066         (libm_alias_ldouble_other_r): Also create _Float128 alias.
1067         * manual/math.texi (Mathematics): Document additional architecture
1068         support for _Float128.
1069         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
1070         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
1071         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
1072         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
1073         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
1074         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
1075         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
1076         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
1077         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
1078         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
1079         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
1080         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
1081         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
1082         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
1083         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
1085 2017-10-18  Renlin Li  <renlin.li@arm.com>
1087         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
1088         _DYNAMIC symbol to calculate load address.
1090 2017-10-18  Paul A. Clarke  <pc@us.ibm.com>
1092         * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
1093         (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
1094         summary bits.
1095         (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
1096         (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
1098 2017-10-18  Mike FABIAN  <mfabian@redhat.com>
1100         [BZ #16777]
1101         * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
1102         and improve readability by using more ASCII.
1103         * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
1104         and improve readability by using more ASCII.
1106 2017-10-18  Wilco Dijkstra  <wdijkstr@arm.com>
1108         * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
1109         not all targets support atomics on bool.
1111 2017-10-17  Joseph Myers  <joseph@codesourcery.com>
1113         * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
1114         __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
1115         __f128.
1116         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
1117         (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
1118         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
1119         (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
1120         [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
1121         (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
1123 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1125         * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
1126         defines.
1128 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
1130         [BZ #22159]
1131         * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
1132         * malloc/malloc.c (do_check_free_chunk): Fix build bug.
1133         (do_check_remalloced_chunk): Fix build bug.
1134         (do_check_malloc_state): Add assert that checks arena->top.
1135         (malloc_consolidate): Remove initialization.
1136         (int_mallinfo): Remove call to malloc_consolidate.
1137          (__libc_mallopt): Clarify why malloc_consolidate is needed.
1139 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
1141         * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
1142         (have_fastchunks): Remove.
1143         (clear_fastchunks): Remove.
1144         (set_fastchunks): Remove.
1145         (malloc_state): Add have_fastchunks.
1146         (malloc_init_state): Use have_fastchunks.
1147         (do_check_malloc_state): Remove incorrect invariant checks.
1148         (_int_malloc): Use have_fastchunks.
1149         (_int_free): Likewise.
1150         (malloc_consolidate): Likewise.
1152 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
1154         * malloc/malloc.c (tcache_put): Inline.
1155         (tcache_get): Inline.
1157 2017-10-17  Jordi Mallach  <jordi@gnu.org>
1159         Aurelien Jarno  <aurelien@aurel32.net>
1160         [BZ #2522]
1161         * localedata/locales/ca_ES@valencia: New file.
1162         * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
1164 2017-10-17  Romain Naour  <romain.naour@gmail.com>  (tiny change)
1166         [BZ #22296]
1167         * math/math.h: Let signbit use the builtin in C++ mode with gcc
1168         < 6.x
1170 2017-10-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1172         * scripts/build-many-glibcs.py (Context.add_all_configs):
1173         Add arm-linux-gnueabihf multiarch extra_glibcs.
1175         * sysdeps/generic/ifunc-init.h: New file.
1176         * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
1178 2017-10-17  Mike FABIAN  <mfabian@redhat.com>
1180         [BZ #22019]
1181         * localedata/locales/el_GR: Set n_cs_precedes to 0.
1182         * localedata/locales/el_CY: copy "el_GR" because it is identical.
1183         * stdlib/tst-strfmon_l.c: adapt test case.
1185 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
1187         * sysdeps/generic/float128-abi.h: New file.
1188         * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
1189         non-__prefixed symbols to ....
1190         * math/Versions: ... here.  Include <float128-abi.h>.
1191         * stdlib/Versions ... and here.  Include <float128-abi.h>
1193 2017-10-16  Florian Weimer  <fweimer@redhat.com>
1195         * version.h (VERSION): Switch to ".9000" as the development
1196         version suffix.
1198 2017-10-16  Florian Weimer  <fweimer@redhat.com>
1200         [BZ #22050]
1201         * malloc/mcheck-init.c (__malloc_initialize_hook): Use
1202         compat_symbol_reference to access non-default version.
1204 2017-10-16  Florian Weimer  <fweimer@redhat.com>
1206         * malloc/Makefile (others-extras): Set to mcheck-init.o.
1208 2017-10-16  Carlos O'Donell  <carlos@redhat.com>
1210         * include/shlib-compat.h (compat_symbol_reference): Update
1211         comment.
1213 2017-10-16  Joseph Myers  <joseph@codesourcery.com>
1215         * math/Makefile (test-types): Add
1216         $(type-float128-$(float128-alias-fcts)).
1217         * math/test-float128.h (TYPE_STR): Define conditional on
1218         [FLT128_MANT_DIG == LDBL_MANT_DIG].
1219         (ULP_IDX): Likewise.
1220         (ULP_I_IDX): Likewise.
1222         * stdlib/strtold.c: Include <bits/floatn.h>
1223         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
1224         and later undefine as macro.  Define as weak alias if
1225         [!USE_WIDE_CHAR].
1226         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
1227         and later undefine as macro.  Define as weak alias if
1228         [USE_WIDE_CHAR].
1229         * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
1230         !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
1231         undefine as macro.  Define as weak alias if [!USE_WIDE_CHAR].
1232         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
1233         Define and later undefine as macro.  Define as weak alias if
1234         [USE_WIDE_CHAR].
1235         * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
1236         <bits/floatn.h>.
1237         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
1238         Define and later undefine as macro.  Define as weak alias if
1239         [!USE_WIDE_CHAR].
1240         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
1241         Define and later undefine as macro.  Define as weak alias if
1242         [USE_WIDE_CHAR].
1244 2017-10-15  Carlos O'Donell  <carlos@redhat.com>
1246         * localedata/collate-test.c (allocate_arrays): Don't use \n in
1247         record_verbose messages.
1249 2017-10-15  H.J. Lu  <hongjiu.lu@intel.com>
1251         [BZ #22052]
1252         * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
1253         to silence -O3 -Wall warning with GCC 7.
1255 2017-10-14  H.J. Lu  <hongjiu.lu@intel.com>
1257         * Makeconfig (+link-static-before-libc): Use the first of
1258         $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
1259         * gmon/Makefile (tests): Add tst-gmon-static.
1260         (tests-static): Likewise.
1261         (CFLAGS-tst-gmon-static.c): New.
1262         (CRT-tst-gmon-static): Likewise.
1263         (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
1264         (tst-gmon-static-ENV): Likewise.
1265         (tests-special): Likewise.
1266         ($(objpfx)tst-gmon-static.out): Likewise.
1267         (clean-tst-gmon-static-data): Likewise.
1268         ($(objpfx)tst-gmon-static-gprof.out): Likewise.
1269         * gmon/tst-gmon-static-gprof.sh: New file.
1270         * gmon/tst-gmon-static.c: Likewise.
1272 2017-10-13  Carlos O'Donell  <carlos@redhat.com>
1274         [BZ #22295]
1275         * locale/programs/linereader.c (get_string): Don't warn on
1276         non-symbolic character.
1278         [BZ #22294]
1279         * locale/programs/ld-monetary.c (monetary_finish): Allow ""
1280         int_curr_symbol.
1282         [BZ #22292]
1283         * locale/programs/record-status.h: New file
1284         * locale/programs/locale.c: Add comment.
1285         * locale/programs/charmap-dir.c: Don't include error.h.
1286         (charmap_opendir): Use record_error.
1287         * locale/programs/charmap.c: Don't include error.h.
1288         (charmap_read): Use record_error, and record_warning.
1289         (parse_charmap): Likewise.
1290         * locale/programs/ld-address.c: Don't include error.h.
1291         (address_finish): Use record_error, and record_warning.
1292         * locale/programs/ld-collate.c: Don't include error.h.
1293         (collate_finish): Use record_error, and record_error_at_line.
1294         * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
1295         (ctype_class_new): Likewise.
1296         (ctype_map_new): Likewise.
1297         (set_one_default): Likewise.
1298         (set_class_defaults): Likewise.
1299         (translit_flatten): Likewise.
1300         (allocate_arrays): Use record_error, and record_verbose.
1301         * locale/programs/ld-identification.c: Don't include error.h.
1302         (indentation_finish): Use record_error and record_warning.
1303         * locale/programs/ld-measurement.c: Don't include error.h.
1304         (measurement_finish): Use record_error.
1305         * locale/programs/ld-messages.c
1306         (message_finish): Likewise.
1307         * locale/programs/ld-monetary.c
1308         (monetary_finish): Likewise.
1309         * locale/programs/ld-name.c (name_finish): Use record_error
1310         and record_warning.
1311         * locale/programs/ld-numeric.c
1312         (numeric_finish): Use record_error.
1313         * locale/programs/ld-paper.c: Don't include error.h.
1314         (paper_finish): Use record_error.
1315         * locale/programs/ld-telephone.c: Don't include error.h.
1316         (telephone_finish): Use record_error.
1317         * locale/programs/ld-time.c (time_finish): Likewise.
1318         * locale/programs/linereader.h (lr_error): Make inline func.
1319         * locale/programs/localedef.c: Define recorded_warning_count,
1320         and recorded_error_count.
1321         (main): Use record_error. Use recorded_error_count and
1322         recorded_warning_count to issue correct error returns.
1323         (add_to_readlist): Use record_error.
1324         (find_locale): Likewise.
1325         (load_locale): Likewise.
1326         * locale/programs/localedef.h: Remove be_quiet
1327         and WITH_CUR_LOCALE.
1328         * locale/programs/locarchive.c (compare_from_file): Use
1329         record_error.
1330         * locale/programs/locfile.c (write_locale_data): Use
1331         record_error.
1332         * locale/programs/repertoire.c: Dont include error.h.
1333         (repertoire_complain): Use record_error.
1334         * localedata/tst-fmon.sh: Expect failures from localedef.
1335         * localedata/tst-locale.sh: Likewise.
1336         * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
1338         * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
1339         (REPORTS): Likewise.
1340         (check): Likewise.
1341         (i18n): Rename to...
1342         (i18n_ctype): ...this.
1343         (i18n-report): Rename to...
1344         (i18n_ctype-report): ...this.
1345         * localedata/locales/i18n_ctype: Regenerate.
1346         * localedata/locales/i18n: copy i18n_ctype.
1348 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
1350         * stdlib/strfroml.c: Include <bits/floatn.h>.
1351         [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
1352         Define before include of <stdlib.h> and undefine afterwards, then
1353         define as weak alias.
1355         * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
1356         Undefine and restore default definition.  Use
1357         libm_alias_ldouble_other.
1359 2017-10-13  Peter Zelezny  <peter.zelezny@dektech.com.au>
1361         [BZ #22153]
1362         * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
1363         in coredumps.
1365 2017-10-13  James Clarke  <jrtc27@jrtc27.com>
1367         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
1368         Assign sym_map to be map for local symbols, as TLS relocations
1369         use sym_map to determine whether the symbol is defined and to
1370         extract the TLS information.
1371         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
1372         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
1374 2017-10-13  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1376         [BZ #22189]
1377         * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
1378         (math_force_eval): Add powerpc version.
1380         [BZ #22142]
1381         * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
1382         -DBL_MAX.
1383         (do_test): Likewise.
1384         * stdio-common/tst-printf.sh: Likewise.
1385         * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
1386         ifdef clause in order to set the carry bit right.  Replace r0 by
1387         0 without changing the behavior.
1389 2017-10-13  Joseph Myers  <joseph@codesourcery.com>
1391         * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
1392         <libm-alias-ldouble.h>.
1393         (fabsl): Define using libm_alias_ldouble.
1394         * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
1395         <libm-alias-ldouble.h>.
1396         (fabsl): Define using libm_alias_ldouble.
1398         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
1399         Remove conditional code.
1401         * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
1402         Rename to __clog10_internal_l.
1403         (__clog10_internal_l): Define aliases using
1404         libm_alias_ldouble_other instead of using libm_alias_ldouble_other
1405         with __clog10.
1407 2017-10-13  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
1409         * benchtests/Makefile (bench-math):  Add sinf, cosf and sincosf.
1410         * benchtests/sincosf-inputs: New file.
1411         * benchtests/cosf-inputs: New file.
1412         * benchtests/sinf-inputs: New file.
1414 2017-10-12  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1416         * posix/tst-spawn.c (do_test): Wait for both children.
1418 2017-10-12  H.J. Lu  <hongjiu.lu@intel.com>
1420         [BZ #22284]
1421         * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
1422         tests-pie): Add tst-gmon-pie.
1423         (CFLAGS-tst-gmon-pie.c): New.
1424         (CRT-tst-gmon-pie): Likewise.
1425         (tst-gmon-pie-ENV): Likewise.
1426         [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
1427         ($(objpfx)tst-gmon-pie.out): Likewise.
1428         (clean-tst-gmon-pie-data): Likewise.
1429         ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
1430         * gmon/gmon.c [PIC]: Include <link.h>.
1431         [PIC] (callback): New function.
1432         (write_hist): Add an argument for load address.  Subtract load
1433         address from PCs.
1434         (write_call_graph): Likewise.
1435         (write_gmon): Call __dl_iterate_phdr to get load address, pass
1436         it to write_hist and write_call_graph.
1437         * gmon/tst-gmon-pie.c: New file.
1439 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
1441         * math/Makefile (test-types-basic): New variable.
1442         (test-types): Likewise.
1443         (libm-test-support): Use $(test-types) instead of $(types).
1444         (libm-tests-base-normal): Likewise.
1445         (libm-tests-base-finite): Likewise.
1446         (libm-tests-base-inline): Likewise.
1447         (generated): Likewise.
1448         ($(objpfx)libm-test-support-$(t).c): Likewise.
1449         (libm-tests-for-type iterator): Likewise.
1450         (libm-test-support iterator): Likewise.
1451         * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
1452         (ulp_idx): Use ULP_IDX.
1453         * math/test-ldouble.h: Include <float.h>.
1454         (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
1455         (ULP_IDX): New macro.
1456         (ULP_I_IDX): Likewise.
1457         * math/test-double.h (ULP_IDX): Likewise.
1458         (ULP_I_IDX): Likewise.
1459         * math/test-float.h (ULP_IDX): Likewise.
1460         (ULP_I_IDX): Likewise.
1461         * math/test-float128.h (ULP_IDX): Likewise.
1462         (ULP_I_IDX): Likewise.
1464 2017-10-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1466         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
1467         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
1468         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
1469         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
1470         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
1471         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
1472         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
1473         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
1474         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
1475         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
1476         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
1477         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
1478         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
1479         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
1480         (SINGLE_THREAD_BY_GLOBAL): Define.
1481         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
1482         Likewise.
1483         * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
1484         Likewise.
1485         * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
1486         Likewise.
1487         * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
1488         Likewise.
1489         * sysdeps/unix/sysv/linux/microblaze/sysdep.h
1490         (SINGLE_THREAD_BY_GLOBAL): Likewise.
1491         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
1492         Likewise.
1494 2017-10-11  Andreas Schwab  <schwab@suse.de>
1496         * nis/Makefile (aux): Remove.
1497         * nscd/Makefile (aux): Add nscd_hash.
1498         (nscd-modules): Likewise.
1499         ($(objpfx)nscd): Don't depend on libnsl.
1500         * nscd/nscd_hash.c: New file.
1501         * nscd/nscd_hash.h: Likewise.
1502         * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
1503         (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
1504         * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
1505         instead of <nis/rpcsvc/nis.h>.
1506         (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
1508 2017-10-11  Florian Weimer  <fweimer@redhat.com>
1510         [BZ #22078]
1511         Avoid large NSS buffers with many addresses, aliases.
1512         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
1513         using dynarrays and struct alloc_buffer.
1514         * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
1515         (tst-nss-files-hosts-multi): Link with -ldl.
1516         * nss/tst-nss-files-hosts-multi.c: New file.
1518 2017-10-11  Florian Weimer  <fweimer@redhat.com>
1520         [BZ #18023]
1521         * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
1522         scratch_buffer.  Eliminate gotos.
1524 2017-10-11  Joseph Myers  <joseph@codesourcery.com>
1526         * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
1527         libm_alias_ldouble_other.
1528         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
1529         undefine and redefine.
1530         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
1531         (exp10l): Do not define here.
1532         * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
1533         (weak_alias): Undefine and redefine.
1534         [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
1535         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
1536         [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
1537         [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
1539         * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
1540         [!__fma] (fma): Define using libm_alias_double.
1541         * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
1542         [!__fmaf] (fmaf): Define using libm_alias_float.
1543         * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
1544         (fmal): Define using libm_alias_ldouble.
1546 2017-10-10  Joseph Myers  <joseph@codesourcery.com>
1548         * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
1549         New macro.
1550         (libm_alias_double_other): Likewise.
1551         (libm_alias_double_r): Use libm_alias_double_other_r.
1552         * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
1553         New macro.
1554         (libm_alias_float_other): Likewise.
1555         (libm_alias_float_r): Use libm_alias_float_other_r.
1556         * sysdeps/generic/libm-alias-float128.h
1557         (libm_alias_float128_other_r): New macro.
1558         (libm_alias_float128_other): Likewise.
1559         (libm_alias_float128_r): Use libm_alias_float128_other_r.
1560         * sysdeps/generic/libm-alias-ldouble.h
1561         (libm_alias_ldouble_other_r): New macro.
1562         (libm_alias_ldouble_other): Likewise.
1563         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
1564         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
1565         (libm_alias_double_other_r): New macro.
1566         (libm_alias_double_other): Likewise.
1567         (libm_alias_double_r): Use libm_alias_double_other_r.
1568         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
1569         (libm_alias_ldouble_other_r): New macro.
1570         (libm_alias_ldouble_other): Likewise.
1571         (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
1572         * math/w_lgamma_main.c: Include <libm-alias-double.h>.
1573         [!USE_AS_COMPAT]: Use libm_alias_double_other.
1574         * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
1575         [!USE_AS_COMPAT]: Use libm_alias_float_other.
1576         * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
1577         [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
1578         * math/w_exp2f.c: Use libm_alias_float_other.
1579         * math/w_expf.c: Likewise.
1580         * math/w_log2f.c: Likewise.
1581         * math/w_logf.c: Likewise.
1582         * math/w_powf.c: Likewise.
1583         * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
1584         [!__exp2f]: Use libm_alias_float_other.
1585         * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
1586         [!__expf]: Use libm_alias_float_other.
1587         * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
1588         [!__log2f]: Use libm_alias_float_other.
1589         * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
1590         [!__logf]: Use libm_alias_float_other.
1591         * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
1592         [!__powf]: Use libm_alias_float_other.
1594 2017-10-10  Florian Weimer  <fweimer@redhat.com>
1596         * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
1597         function.
1598         (_nss_files_gethostbyname3_r): Call it.
1600 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
1602         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
1603         error.  Remove default definition of declare_mgen_alias.
1604         [!declare_mgen_alias_r]: Likewise.
1605         * sysdeps/generic/math-type-macros-double.h
1606         [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
1607         * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
1608         (declare_mgen_alias_r): Likewise.
1609         * sysdeps/generic/math-type-macros-float128.h
1610         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
1611         * sysdeps/generic/math-type-macros-ldouble.h
1612         [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
1613         * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
1614         macro.
1615         (declare_mgen_alias_r_s): Likewise.
1616         (declare_mgen_alias_r): Likewise.
1617         * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
1618         (lgamma_r): Define using libm_alias_double_r.
1619         * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
1620         (lgammaf_r): Define using libm_alias_float_r.
1621         * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
1622         (lgammal_r): Define using libm_alias_ldouble_r.
1623         * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
1624         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
1626 2017-10-09  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
1628         * lib/glob.c (__glob_pattern_type): Remove now-spurious
1629         extern declaration.
1631 2017-10-09  Joseph Myers  <joseph@codesourcery.com>
1633         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
1635 2017-10-09  Jonathan Wakely  <jwakely@redhat.com>
1637         [BZ #21326]
1638         * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
1639         [__cplusplus >= 201103] (__USE_ISOC99): Define.
1640         * math/Makefile (test-math-cxx11): New test.
1641         * math/test-math-cxx11.cc: New file.
1643 2017-10-08  Christian Brauner  <christian.brauner@ubuntu.com>
1645         * login/openpty.c (openpty): Close slave pty file descriptor on error.
1647         * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
1648         call to allocate the slave pty file descriptor.
1650 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
1652         * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
1653         [!__fma] (fma): Define using libm_alias_double.
1654         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
1655         [!__fma] (fma): Define using libm_alias_double.
1657         * sysdeps/ieee754/float128/float128_private.h: Include
1658         <libm-alias-ldouble.h> and <libm-alias-float128.h>.
1659         (libm_alias_ldouble_r): Undefine and redefine.
1660         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
1661         <libm-alias-ldouble.h>.
1662         (asinhl): Define using libm_alias_ldouble.
1663         * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
1664         <libm-alias-ldouble.h>.
1665         (atanl): Define using libm_alias_ldouble.
1666         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
1667         <libm-alias-ldouble.h>.
1668         (cbrtl): Define using libm_alias_ldouble.
1669         * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
1670         <libm-alias-ldouble.h>.
1671         (ceill): Define using libm_alias_ldouble.
1672         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
1673         <libm-alias-ldouble.h>.
1674         (copysignl): Define using libm_alias_ldouble.
1675         * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
1676         <libm-alias-ldouble.h>.
1677         (cosl): Define using libm_alias_ldouble.
1678         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
1679         <libm-alias-ldouble.h>.
1680         (erfl): Define using libm_alias_ldouble.
1681         (erfcl): Likewise.
1682         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
1683         <libm-alias-ldouble.h>.
1684         (expm1l): Define using libm_alias_ldouble.
1685         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
1686         <libm-alias-ldouble.h>.
1687         (fabsl): Define using libm_alias_ldouble.
1688         * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
1689         <libm-alias-ldouble.h>.
1690         (floorl): Define using libm_alias_ldouble.
1691         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
1692         <libm-alias-ldouble.h>.
1693         (fmal): Define using libm_alias_ldouble.
1694         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
1695         <libm-alias-ldouble.h>.
1696         (frexpl): Define using libm_alias_ldouble.
1697         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
1698         libm_alias_ldouble.
1699         * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
1700         <libm-alias-ldouble.h>.
1701         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
1702         libm_alias_ldouble.
1703         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
1704         <libm-alias-ldouble.h>.
1705         (getpayloadl): Define using libm_alias_ldouble.
1706         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
1707         <libm-alias-ldouble.h>.
1708         (llrintl): Define using libm_alias_ldouble.
1709         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
1710         <libm-alias-ldouble.h>.
1711         (llroundl): Define using libm_alias_ldouble.
1712         * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
1713         <libm-alias-ldouble.h>.
1714         (logbl): Define using libm_alias_ldouble.
1715         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
1716         <libm-alias-ldouble.h>.
1717         (lrintl): Define using libm_alias_ldouble.
1718         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
1719         <libm-alias-ldouble.h>.
1720         (lroundl): Define using libm_alias_ldouble.
1721         * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
1722         <libm-alias-ldouble.h>.
1723         (modfl): Define using libm_alias_ldouble.
1724         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
1725         <libm-alias-ldouble.h>.
1726         (nearbyintl): Define using libm_alias_ldouble.
1727         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
1728         <libm-alias-ldouble.h>.
1729         (nextafterl): Define using libm_alias_ldouble.
1730         * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
1731         <libm-alias-ldouble.h>.
1732         (nextupl): Define using libm_alias_ldouble.
1733         * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
1734         <libm-alias-ldouble.h>.
1735         (remquol): Define using libm_alias_ldouble.
1736         * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
1737         <libm-alias-ldouble.h>.
1738         (rintl): Define using libm_alias_ldouble.
1739         * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
1740         <libm-alias-ldouble.h>.
1741         (roundevenl): Define using libm_alias_ldouble.
1742         * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
1743         <libm-alias-ldouble.h>.
1744         (roundl): Define using libm_alias_ldouble.
1745         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
1746         using libm_alias_ldouble.
1747         * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
1748         <libm-alias-ldouble.h>.
1749         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
1750         Define using libm_alias_ldouble.
1751         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
1752         <libm-alias-ldouble.h>.
1753         (sincosl): Define using libm_alias_ldouble.
1754         * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
1755         <libm-alias-ldouble.h>.
1756         (sinl): Define using libm_alias_ldouble.
1757         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
1758         <libm-alias-ldouble.h>.
1759         (tanhl): Define using libm_alias_ldouble.
1760         * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
1761         <libm-alias-ldouble.h>.
1762         (tanl): Define using libm_alias_ldouble.
1763         * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
1764         <libm-alias-ldouble.h>.
1765         (totalorderl): Define using libm_alias_ldouble.
1766         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
1767         <libm-alias-ldouble.h>.
1768         (totalordermagl): Define using libm_alias_ldouble.
1769         * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
1770         <libm-alias-ldouble.h>.
1771         (truncl): Define using libm_alias_ldouble.
1772         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
1773         libm_alias_ldouble.
1774         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
1775         libm_alias_ldouble.
1776         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
1777         <libm-alias-ldouble.h>.
1778         (weak_alias): Do not undefine and redefine.
1779         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
1780         (copysignl): Define with long_double_symbol only if [IS_IN
1781         (libc)].
1782         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
1783         <libm-alias-ldouble.h>.
1784         (weak_alias): Do not undefine and redefine.
1785         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
1786         (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
1787         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
1788         <libm-alias-ldouble.h>.
1789         (weak_alias): Do not undefine and redefine.
1790         [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
1791         (modfl): Define with long_double_symbol only if [IS_IN (libc)].
1792         * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
1793         * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
1794         * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
1795         * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
1796         * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
1797         * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
1798         * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
1799         * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
1800         * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
1801         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
1802         * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
1803         * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
1804         * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
1805         * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
1806         * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
1807         * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
1808         * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
1809         * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
1810         * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
1811         * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
1812         * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
1813         * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
1814         * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
1815         * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
1817 2017-10-06  Carlos O'Donell  <carlos@redhat.com>
1819         [BZ #22111]
1820         * malloc/malloc.c (tcache_shutting_down): Use bool type.
1821         (tcache_thread_freeres): Set tcache_shutting_down before
1822         freeing the tcache.
1823         * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
1824         * malloc/tst-malloc-tcache-leak.c: New file.
1826 2017-10-06  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
1828         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
1829         back to powerpc32 file.
1830         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
1831         (memrchr): Add __memrchr_power8 to ifunc list.
1832         * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
1833         extra bytes for unaligned inputs.
1835 2017-10-06  Joseph Myers  <joseph@codesourcery.com>
1837         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
1838         * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
1839         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
1840         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
1841         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
1843 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
1845         * sysdeps/arm/libm-test-ulps: Update.
1847         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
1848         <libm-alias-ldouble.h>.
1849         (asinhl): Define using libm_alias_ldouble.
1850         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
1851         <libm-alias-ldouble.h>.
1852         (cbrtl): Define using libm_alias_ldouble.
1853         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
1854         <libm-alias-ldouble.h>.
1855         (copysignl): Define using libm_alias_ldouble.
1856         * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
1857         <libm-alias-ldouble.h>.
1858         (cosl): Define using libm_alias_ldouble.
1859         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
1860         <libm-alias-ldouble.h>.
1861         (erfl): Define using libm_alias_ldouble.
1862         (erfcl): Likewise.
1863         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
1864         <libm-alias-ldouble.h>.
1865         (fmal): Define using libm_alias_ldouble.
1866         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
1867         <libm-alias-ldouble.h>.
1868         (frexpl): Define using libm_alias_ldouble.
1869         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
1870         libm_alias_ldouble.
1871         * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
1872         <libm-alias-ldouble.h>.
1873         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
1874         libm_alias_ldouble.
1875         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
1876         <libm-alias-ldouble.h>.
1877         (getpayloadl): Define using libm_alias_ldouble.
1878         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
1879         <libm-alias-ldouble.h>.
1880         (llrintl): Define using libm_alias_ldouble.
1881         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
1882         <libm-alias-ldouble.h>.
1883         (llroundl): Define using libm_alias_ldouble.
1884         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
1885         <libm-alias-ldouble.h>.
1886         (lrintl): Define using libm_alias_ldouble.
1887         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
1888         <libm-alias-ldouble.h>.
1889         (lroundl): Define using libm_alias_ldouble.
1890         * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
1891         <libm-alias-ldouble.h>.
1892         (modfl): Define using libm_alias_ldouble.
1893         * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
1894         <libm-alias-ldouble.h>.
1895         (nextupl): Define using libm_alias_ldouble.
1896         * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
1897         <libm-alias-ldouble.h>.
1898         (remquol): Define using libm_alias_ldouble.
1899         * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
1900         <libm-alias-ldouble.h>.
1901         (roundevenl): Define using libm_alias_ldouble.
1902         * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
1903         <libm-alias-ldouble.h>.
1904         (roundl): Define using libm_alias_ldouble.
1905         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
1906         using libm_alias_ldouble.
1907         * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
1908         <libm-alias-ldouble.h>.
1909         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
1910         <libm-alias-ldouble.h>.
1911         (setpayloadsigl): Define using libm_alias_ldouble.
1912         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
1913         <libm-alias-ldouble.h>.
1914         (sincosl): Define using libm_alias_ldouble.
1915         * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
1916         <libm-alias-ldouble.h>.
1917         (sinl): Define using libm_alias_ldouble.
1918         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
1919         <libm-alias-ldouble.h>.
1920         (tanhl): Define using libm_alias_ldouble.
1921         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
1922         <libm-alias-ldouble.h>.
1923         (tanl): Define using libm_alias_ldouble.
1924         * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
1925         <libm-alias-ldouble.h>.
1926         (totalorderl): Define using libm_alias_ldouble.
1927         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
1928         <libm-alias-ldouble.h>.
1929         (totalordermagl): Define using libm_alias_ldouble.
1930         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
1931         libm_alias_ldouble.
1932         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
1933         libm_alias_ldouble.
1935 2017-10-05  Siddhesh Poyarekar  <siddhesh@sourceware.org>
1937         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
1938         memmove_falkor.
1939         * sysdeps/aarch64/multiarch/ifunc-impl-list.c
1940         (__libc_ifunc_impl_list): Likewise.
1941         * sysdeps/aarch64/multiarch/memmove.c: Likewise.
1942         * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
1944         * benchtests/bench-memmove-walk.c: New file.
1945         * benchtests/Makefile (string-benchset): Add it.
1947         * benchtests/bench-memset-walk.c: New file.
1948         * benchtests/Makefile (string-benchset): Add it.
1950         * benchtests/bench-memcpy-walk.c: New file.
1951         * benchtests/Makefile (string-benchset): Add it.
1953 2017-10-05  Florian Weimer  <fweimer@redhat.com>
1955         nscd: Eliminate compilation time dependency in the build output.
1956         * nscd/nscd_stat.c (STATDATA_VERSION)
1957         (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
1958         (STATDATA_VERSION_FULL): New macro definitions.
1959         (compilation): Remove.
1960         (struct statdata): Adjust version member.
1961         (send_stats): Set version from STATDATA_VERSION_FULL.
1962         (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
1964 2017-10-05  Joseph Myers  <joseph@codesourcery.com>
1966         * configure.ac (--enable-add-ons): Remove option.
1967         (machine): Do not mention add-ons in comment.
1968         (LIBC_PRECONFIGURE): Likewise.
1969         (add_ons): Remove variable and sanity checks and logic to locate
1970         add-ons.
1971         (add_ons_automatic): Remove variable.
1972         (configured_add_ons): Likewise.
1973         (add_ons_sfx): Likewise.
1974         (add_ons_pfx): Likewise.
1975         (add_on_subdirs): Likewise.
1976         (sysnames_add_ons): Likewise.  Remove loop over add-ons and
1977         consideration of add-ons in Implies handling.
1978         (sysdeps_add_ons): Likewise.
1979         * configure: Regenerated.
1980         * libidn/configure.ac: Remove.
1981         * libidn/configure: Likewise.
1982         * sysdeps/unix/inet/configure.ac: New file.
1983         * sysdeps/unix/inet/configure: New generated file.
1984         * sysdeps/unix/inet/Subdirs: Add libidn.
1985         * Makeconfig (sysdeps-srcdirs): Remove variable.
1986         (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
1987         ($(common-objpfx)config.status): Do not depend on add-on files.
1988         ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
1989         comment.
1990         (all-subdirs): Do not include $(add-on-subdirs).
1991         * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
1992         * config.make.in (add-ons): Remove variable.
1993         (add-on-subdirs): Likewise.
1994         (sysdeps-add-ons): Likewise.
1995         * manual/Makefile (add-chapters): Remove.
1996         ($(objpfx)texis): Do not depend on $(add-chapters).
1997         (nonexamples): Do not handle $(add-chapters).
1998         (examples): Do not handle $(add-ons).
1999         (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
2000         libc-texinfo.sh.
2001         * manual/install.texi (Installation): Do not mention add-ons.
2002         (--enable-add-ons): Do not document configure option.
2003         * INSTALL: Regenerated.
2004         * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
2005         * manual/maint.texi (Hierarchy Conventions): Do not mention
2006         add-ons.
2007         * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
2008         --enable-add-ons.
2009         * scripts/gen-sorted.awk: Do not handle Subdirs files from
2010         add-ons.
2011         * scripts/test-installation.pl: Do not handle glibc-compat add-on.
2012         * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
2014 2017-10-05  Andreas Schwab  <schwab@suse.de>
2016         [BZ #15142]
2017         * libio/genops.c (_IO_list_all_stamp): Delete.  All uses removed.
2018         (_IO_flush_all_lockp): Always lock list_all_lock.
2019         (_IO_flush_all_linebuffered): Likewise.
2020         (_IO_unbuffer_all): Likewise.
2022 2017-10-05  Florian Weimer  <fweimer@redhat.com>
2024         [BZ #15436]
2025         Do not flush stdio streams on abort.
2026         * stdlib/abort.c (fflush): Remove macro definition.
2027         (abort): Remove stages related to stdio flushing.
2029 2017-10-05  Florian Weimer  <fweimer@redhat.com>
2031         * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
2033 2017-10-05  Stefan Liebler  <stli@linux.vnet.ibm.com>
2035         * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
2037 2017-10-05  Florian Weimer  <fweimer@redhat.com>
2039         * support/support_format_hostent.c (support_format_hostent): Add
2040         more error information for NETDB_INTERNAL.
2042 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
2044         * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
2045         * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
2046         for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
2047         * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
2048         AC_DEFINE if multi-arch is enabled.
2049         * sysdeps/i386/configure: Regenerated.
2051 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
2053         * Makeconfig (+link-static-before-libc): Use
2054         $(DEFAULT-LDFLAGS-$(@F)).
2055         * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
2056         (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
2057         (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
2059 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
2061         * elf/Makefile (tests): Add tst-main1.
2062         (modules-names): Add tst-main1mod.
2063         ($(objpfx)tst-main1): New.
2064         (CRT-tst-main1): Likewise.
2065         (LDFLAGS-tst-main1): Likewise.
2066         (LDLIBS-tst-main1): Likewise.
2067         (tst-main1mod.so-no-z-defs): Likewise.
2068         * elf/tst-main1.c: New file.
2069         * elf/tst-main1mod.c: Likewise.
2071 2017-10-04  H.J. Lu  <hongjiu.lu@intel.com>
2073         * math/test-math-iscanonical.cc (do_test): Return errors != 0.
2075 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
2077         * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
2078         (fma): Define using libm_alias_double.
2079         * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
2080         * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
2081         <math_ldbl_opt.h>.
2082         (fmal): Do not define as compat symbol here.
2083         * sysdeps/alpha/fpu/s_fma.c: New file.
2085 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2087         * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
2089 2017-10-04  Joseph Myers  <joseph@codesourcery.com>
2091         [BZ #22229]
2092         * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
2093         <math_ldbl_opt.h>
2094         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
2095         and libc.
2096         * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
2097         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
2098         * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
2099         (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
2100         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
2101         Include <math_ldbl_opt.h>
2102         (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
2103         and libc.
2104         (compat_symbol): Undefine and redefine.
2105         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
2106         <math_ldbl_opt.h>
2107         (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
2108         (compat_symbol): Undefine and redefine.
2109         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
2110         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
2111         [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
2112         GLIBC_2_1 for libm.
2113         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
2114         GLIBC_2.0 copysignl symbol.
2115         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
2116         GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
2118         * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
2120 2017-10-04  Florian Weimer  <fweimer@redhat.com>
2122         * scripts/check-local-headers.sh: Ignore nspr4 header file
2123         directory in addition to nspr.
2125 2017-10-04  Guido Trentalancia  <guido@trentalancia.net>
2127         [BZ #17956]
2128         * configure.ac (--enable-nss-crypt): Use NSPR include directory.
2129         * configure: Regenerate.
2130         * crypt/Makefile (nss-cpp-flags): New variable.
2131         (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
2132         (CPPFLAGS-md5-crypt.c): Use it.
2133         * scripts/check-local-headers.sh: Ignore nspr header file
2134         directory.
2136 2017-10-04  Andreas Schwab  <schwab@suse.de>
2138         * nis/Makefile (services): Remove compat.
2139         (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
2140         ($(objpfx)libnss_compat.so): Remove rule.
2141         * nis/Versions (libnss_compat): Remove.
2142         * nss/Makefile (services): Add compat.
2143         (libnss_compat-routines, libnss_compat-inhibit-o): Define.
2144         * nss/Versions (libnss_compat): Define.
2145         * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
2146         Don't include <rpc/types.h>.  Replace bool_t by bool.
2147         * nss/nss_compat/compat-initgroups.c: Likewise.
2148         * nss/nss_compat/compat-pwd.c: Likewise.  Include "nisdomain.h"
2149         instead of <rpcsrv/ypclnt.h>.
2150         (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
2151         yp_get_default_domain.
2152         * nss/nss_compat/compat-pwd.c: Likewise.
2153         (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
2154         yp_get_default_domain.
2155         * nss/nss_compat/nisdomain.c: New file.
2156         * nss/nss_compat/nisdomain.h: Likewise.
2158 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2160         [BZ #22244]
2161         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
2162         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
2164 2017-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2166         [BZ #22243]
2167         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
2168         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
2170 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
2172         * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
2173         "movl main@GOTOFF(%ebx), %eax".
2175 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
2177         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
2178         allow undefined _DYNAMIC in PIE libc.a.
2179         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
2180         Likewse.
2182 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
2184         * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
2185         check _DYNAMIC.
2187 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
2189         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
2190         check _DYNAMIC.
2192 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
2194         * math/test-math-iscanonical.cc (error): Replace bool with int.
2196 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
2198         * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
2199         (modf): Define using libm_alias_double, only if [!__modf].
2200         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
2201         <libm-alias-double.h>.
2202         (modf): Define using libm_alias_double, only if [!__modf].
2203         * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
2204         compat symbol here.
2205         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
2206         (weak_alias): Do not undefine and redefine.
2207         (strong_alias): Likewise.
2208         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
2209         (weak_alias): Likewise.
2210         (strong_alias): Likewise.
2212         * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
2213         (logb): Define using libm_alias_double, only if [!__logb].
2214         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
2215         <libm-alias-double.h>.
2216         (logb): Define using libm_alias_double, only if [!__logb].
2217         * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
2218         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
2219         (weak_alias): Do not undefine and redefine.
2220         (strong_alias): Likewise.
2221         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
2222         (weak_alias): Likewise.
2223         (strong_alias): Likewise.
2225 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
2227         * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
2228         Check SHARED instead PIC.
2230 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
2232         * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
2233         [!__fmaf] (fmaf): Define using libm_alias_float.
2235         * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
2236         (frexp): Define using libm_alias_double.
2237         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
2238         <libm-alias-double.h>.
2239         (frexp): Define using libm_alias_double.
2240         * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
2241         compat symbol here.
2243 2017-10-03  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
2245         [BZ #22235]
2246         * math/math.h: Trivial fix for unbalanced parentheses in comment.
2247         * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
2248         (CFLAGS-test-math-iscanonical.cc): New variable.
2249         * math/test-math-iscanonical.cc: New file.
2250         * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
2251         Provide a C++ implementation based on function overloading,
2252         rather than using __MATH_TG, which uses C-only builtins.
2253         * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
2254         Likewise.
2255         * sysdeps/powerpc/powerpc64le/Makefile
2256         (CFLAGS-test-math-iscanonical.cc): New variable.
2258 2017-10-03  Joseph Myers  <joseph@codesourcery.com>
2260         * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
2261         (ceil): Define using libm_alias_double.
2262         * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
2263         (floor): Define using libm_alias_double.
2264         * sysdeps/ieee754/dbl-64/s_llround.c: Include
2265         <libm-alias-double.h>.
2266         (llround): Define using libm_alias_double.
2267         * sysdeps/ieee754/dbl-64/s_lround.c: Include
2268         <libm-alias-double.h>.
2269         (lround): Define using libm_alias_double.
2270         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
2271         <libm-alias-double.h>.
2272         (nearbyint): Define using libm_alias_double.
2273         * sysdeps/ieee754/dbl-64/s_remquo.c: Include
2274         <libm-alias-double.h>.
2275         (remquo): Define using libm_alias_double.
2276         * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
2277         (rint): Define using libm_alias_double.
2278         * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
2279         (round): Define using libm_alias_double.
2280         * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
2281         (trunc): Define using libm_alias_double.
2282         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
2283         <libm-alias-double.h>.
2284         (ceil): Define using libm_alias_double.
2285         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
2286         <libm-alias-double.h>.
2287         (floor): Define using libm_alias_double.
2288         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
2289         <libm-alias-double.h>.
2290         (llround): Define using libm_alias_double.
2291         [_LP64] (lround): Likewise.
2292         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
2293         <libm-alias-double.h>.
2294         [!_LP64] (lround): Define using libm_alias_double.
2295         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
2296         <libm-alias-double.h>.
2297         (nearbyint): Define using libm_alias_double.
2298         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
2299         <libm-alias-double.h>.
2300         (remquo): Define using libm_alias_double.
2301         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
2302         <libm-alias-double.h>.
2303         (rint): Define using libm_alias_double.
2304         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
2305         <libm-alias-double.h>.
2306         (round): Define using libm_alias_double.
2307         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
2308         <libm-alias-double.h>.
2309         (trunc): Define using libm_alias_double.
2310         * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
2311         * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
2312         * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
2313         * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
2314         * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
2315         * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
2316         * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
2317         * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
2318         * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
2320 2017-10-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2322         * math/w_remainder.c: New file.
2323         * math/w_remainderf.c: New file.
2324         * math/w_remainderl.c: New file.
2326 2017-10-03  H.J. Lu  <hongjiu.lu@intel.com>
2328         * elf/rtld.c (BOOTSTRAP_MAP): New.
2329         (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
2330         * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
2331         Likewise.
2332         * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
2333         Likewise.
2334         * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
2335         Likewise.
2337 2017-10-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2339         * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
2340         rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
2341         rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
2342         rtld_hidden_data_ver): Define to empty.
2343         * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
2344         __assert_perror_fail): Likewise.
2345         * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
2346         (__rewinddir): Likewise.
2347         * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
2348         (__profile_frequency): Likewise.
2349         * include/setjmp.h (__sigsetjmp): Likewise.
2350         * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
2351         __libc_sigaction): Likewise.
2352         * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
2353         not set hidden attribute.
2354         * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
2355         __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
2356         rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
2357         * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
2358         __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
2359         __fxstatat64): Likewise.
2360         * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
2361         (__uname): Likewise.
2362         * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
2363         (_itoa_upper_digits, _itoa_lower_digits): Likewise.
2364         * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
2365         (NO_RTLD_HIDDEN): Set.
2366         * sysdeps/mach/hurd/configure: Refresh.
2367         * config.h.in: Refresh.
2369 2017-10-02  Joseph Myers  <joseph@codesourcery.com>
2371         * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
2372         (atan): Define using libm_alias_double.
2373         * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
2374         (tan): Define using libm_alias_double.
2375         * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
2376         * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
2378         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
2379         define as weak alias of __atan.  Do not define any aliases if
2380         [__atan].
2381         [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
2382         [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
2383         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
2384         as weak alias of __tan.  Do not define any aliases if [__tan].
2385         [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
2386         [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
2387         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
2388         __atan.
2389         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
2390         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
2391         * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
2392         and define as weak alias of __atan.
2393         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
2394         __atan.
2395         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
2396         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
2397         * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
2398         define as weak alias of __tan.
2400 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2402         * math/w_lgamma.c: New file.
2403         * math/w_lgammaf.c: New file.
2404         * math/w_lgammal.c: New file.
2406 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2408         * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
2409         * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
2410         * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
2411         * sysdeps/ieee754/flt-32/w_log2f.c: New file.
2412         * sysdeps/ieee754/flt-32/w_logf.c: New file.
2413         * sysdeps/ieee754/flt-32/w_powf.c: New file.
2414         * sysdeps/i386/fpu/w_log2f.c: New file.
2415         * sysdeps/i386/fpu/w_logf.c: New file.
2416         * sysdeps/i386/fpu/w_powf.c: New file.
2417         * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
2418         * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
2419         * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
2421 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2422             H.J. Lu  <hongjiu.lu@intel.com>
2424         * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
2425         * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
2426         * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
2427         * sysdeps/ieee754/flt-32/w_expf.c: New file.
2428         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
2429         the new expf code.
2430         * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
2431         * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
2432         * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
2433         * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
2434         * sysdeps/i386/fpu/w_exp2f.c: New file.
2435         * sysdeps/i386/fpu/w_expf.c: New file.
2436         * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
2437         * sysdeps/x86_64/fpu/w_expf.c: New file.
2439 2017-10-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2441         * math/Versions (logf): New libm symbol at GLIBC_2.27.
2442         (log2f): Likewise.
2443         (powf): Likewise.
2444         * math/w_log2f.c: New file.
2445         * math/w_logf.c: New file.
2446         * math/w_powf.c: New file.
2447         * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
2448         * math/w_logf_compat.c (__logf_compat): Likewise.
2449         * math/w_powf_compat.c (__powf_compat): Likewise.
2450         * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
2451         * sysdeps/ia64/fpu/e_logf.S: Likewise.
2452         * sysdeps/ia64/fpu/e_powf.S: Likewise.
2453         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
2454         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
2455         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
2456         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
2457         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
2458         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
2459         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
2460         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
2461         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
2462         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
2463         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
2464         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
2465         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
2466         Likewise.
2467         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
2468         Likewise.
2469         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
2470         Likewise.
2471         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
2472         Likewise.
2473         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
2474         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
2475         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
2476         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
2477         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
2478         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
2479         Likewise.
2480         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
2481         Likewise.
2482         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
2483         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
2484         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
2486 2017-10-02  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
2488         * sysdeps/powerpc/powerpc64/multiarch/Makefile
2489         (sysdep_routines): Add memrchr_power8.
2490         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
2491         (memrchr): Add __memrchr_power8 to list of memrchr functions.
2492         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
2493         New file.
2494         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
2495         (memrchr): Add __memrchr_power8 to ifunc list.
2496         * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
2498 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2500         [BZ #18822]
2501         * sysdeps/unix/sysv/linux/posix_fadvise64.c
2502         (__posix_fadvise64_l64): Add Add libc_hidden_proto and
2503         libc_hidden_def.
2504         * sysdeps/unix/sysv/linux/posix_fallocate64.c
2505         (__posix_fallocate64_l64): Likewise.
2507 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2509         [BZ #18822]
2510         * sysdeps/unix/sysv/linux/sched_setaffinity.c
2511         (__sched_setaffinity_new): Add libc_hidden_proto and
2512         libc_hidden_def.
2514 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2516         [BZ #18822]
2517         * include/glob.h (__glob64): Add libc_hidden_proto.
2518         * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
2519         libc_hidden_def.
2521 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2523         [BZ #18822]
2524         * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
2525         attribute_hidden.
2527 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2529         [BZ #18822]
2530         * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
2532 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2534         [BZ #18822]
2535         * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
2536         libc_hidden_def.
2538 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2540         [BZ #18822]
2541         * csu/version.c (__libc_print_version): Add attribute_hidden.
2543 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2545         [BZ #18822]
2546         * include/libc-internal.h (__init_misc): Add attribute_hidden.
2548 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2550         [BZ #18822]
2551         * include/fpu_control.h (__setfpucw): Add attribute_hidden.
2553 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2555         [BZ #18822]
2556         * nscd/nscd_helper.c (__nis_hash): New prototype.
2558 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2560         [BZ #18822]
2561         * include/termios.h (__tcgetattr): Add libc_hidden_proto.
2562         * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
2563         libc_hidden_def.
2564         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
2565         * termios/tcgetattr.c (__tcgetattr): Likewise.
2567 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2569         [BZ #18822]
2570         * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
2571         * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
2572         * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
2573         * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
2574         * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
2576 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2578         [BZ #18822]
2579         * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
2581 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2583         [BZ #18822]
2584         * include/sched.h (__sched_setparam): Add libc_hidden_proto.
2585         * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
2587 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2589         [BZ #18822]
2590         * intl/hash-string.h (__hash_string): Add attribute_hidden.
2592 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2594         [BZ #18822]
2595         * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
2596         * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
2598 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2600         [BZ #18822]
2601         * include/ifreq.h: New file.
2602         * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
2603         (__ifreq): Likewise.
2604         * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
2605         (__ifreq): Likewise.
2607 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2609         [BZ #18822]
2610         * include/idna.h: New file.
2611         * inet/getnameinfo.c: Include <idna.h> instead of
2612         <libidn/idna.h>.
2613         (__idna_to_unicode_lzlz): Removed.
2614         * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
2615         <libidn/idna.h>.
2616         (__idna_to_ascii_lz): Removed.
2617         (__idna_to_unicode_lzlz): Likewise.
2619 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2621         [BZ #18822]
2622         * include/plural-exp.h: New file.
2623         * intl/plural-exp.c: Include <plural-exp.h> instead of
2624         "plural-exp.h".
2626 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2628         [BZ #18822]
2629         * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
2630         "getsourcefilter.h".
2631         * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
2632         * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
2633         "getsourcefilter.h".
2634         (__get_sol): Removed.
2636 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2638         [BZ #18822]
2639         * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
2640         to ...
2641         * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
2643 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2645         [BZ #18822]
2646         * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
2647         attribute_hidden.
2649 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2651         [BZ #18822]
2652         * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
2654 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2656         [BZ #18822]
2657         * include/search.h (__tdestroy): Add libc_hidden_proto.
2658         * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
2660 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2662         [BZ #18822]
2663         * include/assert.h (__assert_fail_base): Add attribute_hidden.
2665 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2667         [BZ #18822]
2668         * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
2669         attribute_hidden.
2671 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2673         [BZ #18822]
2674         * include/signal.h (__kill): Add libc_hidden_proto.
2675         (__sigblock): Likewise.
2676         (__sigprocmask): Likewise.
2677         (__sigaltstack): Likewise.
2678         * signal/kill.c (__kill): Add libc_hidden_def.
2679         * signal/sigblock.c (__sigblock): Likewise.
2680         * signal/sigprocmask.c (__sigprocmask): Likewise.
2681         * sysdeps/mach/hurd/kill.c (__kill): Likewise.
2682         * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
2683         * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
2684         * sysdeps/posix/sigblock.c (__sigblock): Likewise.
2685         * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
2686         Likewise.
2687         * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
2688         Likewise.
2689         * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
2690         (__sigprocmask): Likewise.
2691         * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
2692         Likewise.
2693         * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
2694         (__sigprocmask): Likewise.
2695         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
2696         Likewise.
2698 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2700         [BZ #18822]
2701         * include/string.h (__strsep): Add libc_hidden_proto.
2702         * string/strsep.c (__strsep): Add libc_hidden_def.
2704 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2706         [BZ #18822]
2707         * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
2708         attribute_hidden.
2709         (__spawni): Likewise.
2711 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2713         [BZ #18822]
2714         * include/sys/mman.h (__mremap): Add libc_hidden_proto.
2715         * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
2716         libc_hidden_def.
2718 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2720         [BZ #18822]
2721         * include/malloc.h (__malloc_check_init): Add attribute_hidden.
2723 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2725         [BZ #18822]
2726         * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
2727         * misc/ioctl.c (__ioctl): Add libc_hidden_def.
2728         * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
2729         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
2730         * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
2731         Likewise.
2732         * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
2733         * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
2735 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2737         [BZ #18822]
2738         * intl/gettextP.h (__dcngettext): Add attribute_hidden.
2739         (__dcigettext): Likewise.
2741 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2743         [BZ #18822]
2744         * include/sys/sysinfo.h (__get_nprocs_conf): Add
2745         libc_hidden_proto.
2746         (__get_nprocs): Likewise.
2747         (__get_phys_pages): Likewise.
2748         (__get_avphys_pages): Likewise.
2749         (__get_child_max): Add attribute_hidden.
2750         * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
2751         (__get_nprocs): Likewise.
2752         (__get_phys_pages): Likewise.
2753         (__get_avphys_pages): Likewise.
2754         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
2755         libc_hidden_def.
2756         (__get_nprocs): Likewise.
2757         (__get_phys_pages): Likewise.
2758         (__get_avphys_pages): Likewise.
2759         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
2760         libc_hidden_def.
2761         (__get_nprocs_conf): Likewise.
2762         (__get_phys_pages): Likewise.
2763         (__get_avphys_pages): Likewise.
2765 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2767         [BZ #18822]
2768         * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
2769         attribute_hidden.
2770         (__netlink_close): Likewise.
2771         (__netlink_free_handle): Likewise.
2772         (__netlink_request): Likewise.
2774 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2776         [BZ #18822]
2777         * include/rpc/rpc.h (__rpc_thread_variables): Add
2778         attribute_hidden.
2779         (__rpc_thread_svc_cleanup): Likewise.
2780         (__rpc_thread_clnt_cleanup): Likewise.
2781         (__rpc_thread_key_cleanup): Likewise.
2783 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2785         [BZ #18822]
2786         * include/sys/uio.h (__readv): Add libc_hidden_proto.
2787         (__writev): Likewise.
2788         * misc/readv.c (__readv): Add libc_hidden_def.
2789         * misc/writev.c (__writev): Likewise.
2790         * sysdeps/posix/readv.c (__readv): Likewise.
2791         * sysdeps/posix/writev.c (__writev): Likewise.
2792         * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
2793         (__readv): Likewise.
2794         * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
2795         (__writev): Likewise.
2797 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2799         [BZ #18822]
2800         * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
2801         (__regcomp): Add libc_hidden_proto.
2802         (__regexec): Likewise.
2803         (__regfree): Likewise.
2804         * posix/regcomp.c (__regcomp): Add libc_hidden_def.
2805         (__regfree): Likewise.
2806         * posix/regexec.c (__regexec): Likewise.
2808 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2810         [BZ #18822]
2811         * include/utmp.h (__updwtmp): Add libc_hidden_proto.
2812         (__getutent): Likewise.
2813         (__getutid): Likewise.
2814         (__getutline): Likewise.
2815         (__pututline): Likewise.
2816         (__getutent_r): Likewise.
2817         (__getutid_r): Likewise.
2818         (__getutline_r): Likewise.
2819         (__utmpname): Add attribute_hidden.
2820         (__setutent): Likewise.
2821         (__endutent): Likewise.
2822         * login/getutent.c (__getutent): Add libc_hidden_def.
2823         * login/getutent_r.c (__getutent_r): Likewise.
2824         (__pututline): Likewise.
2825         * login/getutid.c (__getutid): Likewise.
2826         * login/getutid_r.c (__getutid_r): Likewise.
2827         * login/getutline.c (__getutline): Likewise.
2828         * login/getutline_r.c (__getutline_r): Likewise.
2829         * login/updwtmp.c (__updwtmp): Likewise.
2831 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2833         [BZ #18822]
2834         * include/dirent.h (__opendir): Always add attribute_hidden.
2835         (__fdopendir): Likewise.
2836         (__closedir): Likewise.
2837         (__readdir): Likewise.
2838         (__readdir64): Add libc_hidden_proto.
2839         * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
2840         * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
2841         * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
2842         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
2843         New alias.
2845 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2847         [BZ #18822]
2848         * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
2849         * include/netdb.h (__gethostbyaddr_r): Likewise.
2850         (__gethostbyname_r): Likewise.
2851         (__gethostbyname2_r): Likewise.
2852         (__getnetbyaddr_r): Likewise.
2853         (__getnetbyname_r): Likewise.
2854         (__getservbyname_r): Likewise.
2855         (__getservbyport_r): Likewise.
2856         (__getprotobyname_r): Likewise.
2857         (__getprotobynumber_r): Likewise.
2858         (__getnetgrent_r): Likewise.
2859         * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
2860         (__getrpcbynumber_r): Likewise.
2861         * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
2863 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2865         [BZ #18822]
2866         * include/stdio.h (__fcloseall): Add attribute_hidden.
2867         (__getline): Likewise.
2868         (__path_search): Likewise.
2869         (__gen_tempname): Likewise.
2870         (__libc_message): Likewise.
2871         (__flockfile): Likewise.
2872         (__funlockfile): Likewise.
2873         (__fxprintf): Likewise.
2874         (__fxprintf_nocancel): Likewise.
2876 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2878         [BZ #18822]
2879         * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
2880         (__sgetsgent_r): Likewise.
2882 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2884         [BZ #18822]
2885         * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
2886         (__statfs64): Likewise.
2887         (__fstatfs64): Likewise.
2888         * include/sys/statvfs.h (__statvfs64): Likewise.
2889         (__fstatvfs64): Likewise.
2890         * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
2891         (__statfs_filesize_max): Likewise.
2892         (__statfs_symlinks): Likewise.
2893         (__statfs_chown_restricted): Likewise.
2895 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2897         [BZ #18822]
2898         * include/time.h (__tzstring): Add attribute_hidden.
2899         (__tzfile_read): Likewise.
2900         (__tzfile_compute): Likewise.
2901         (__tzfile_default): Likewise.
2902         (__tzset_parse_tz): Likewise.
2903         (__offtime): Likewise.
2904         (__asctime_r): Likewise.
2905         (__tzset): Likewise.
2906         (__tz_convert): Likewise.
2907         (__getdate_r): Likewise.
2908         (__getclktck): Likewise.
2910 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2912         [BZ #18822]
2913         * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
2914         (__nscd_unmap): Likewise.
2915         (__nscd_cache_search): Likewise.
2916         (__nscd_get_nl_timestamp): Likewise.
2917         (__nscd_getpwnam_r): Likewise.
2918         (__nscd_getpwuid_r): Likewise.
2919         (__nscd_getgrnam_r): Likewise.
2920         (__nscd_getgrgid_r): Likewise.
2921         (__nscd_gethostbyname_r): Likewise.
2922         (__nscd_gethostbyname2_r): Likewise.
2923         (__nscd_gethostbyaddr_r): Likewise.
2924         (__nscd_getai): Likewise.
2925         (__nscd_getgrouplist): Likewise.
2926         (__nscd_getservbyname_r): Likewise.
2927         (__nscd_getservbyport_r): Likewise.
2928         (__nscd_innetgr): Likewise.
2929         (__nscd_setnetgrent): Likewise.
2931 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2933         [BZ #18822]
2934         * include/gmp.h: Declare internal functions only if _ISOMAC is
2935         undefined.
2936         (__mpn_extract_double): Add attribute_hidden.
2937         (__mpn_extract_long_double): Likewise.
2938         (__mpn_extract_float128): Likewise.
2939         (__mpn_construct_float): Likewise.
2940         (__mpn_construct_double): Likewise.
2941         (__mpn_construct_long_double): Likewise.
2942         (__mpn_construct_float128): Likewise.
2943         (mpn_add_1): Likewise.
2944         (mpn_addmul_1): Likewise.
2945         (mpn_add_n): Likewise.
2946         (mpn_cmp): Likewise.
2947         (mpn_divrem): Likewise.
2948         (mpn_lshift): Likewise.
2949         (mpn_mul): Likewise.
2950         (mpn_mul_1): Likewise.
2951         (mpn_rshift): Likewise.
2952         (mpn_sub_1): Likewise.
2953         (mpn_submul_1): Likewise.
2954         (mpn_sub_n): Likewise.
2956 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2958         [BZ #18822]
2959         * include/wchar.h (__wcsnlen): Add attribute_hidden.
2960         (__wcscat): Likewise.
2961         (__btowc): Likewise.
2962         (__wcrtomb): Likewise.
2963         (__mbsrtowcs): Likewise.
2964         (__wcsrtombs): Likewise.
2965         (__mbsnrtowcs): Likewise.
2966         (__wcsnrtombs): Likewise.
2967         (__wcsncpy): Likewise.
2968         (__wcpncpy): Likewise.
2969         (__wmemcpy): Likewise.
2970         (__wmempcpy): Likewise.
2971         (__wmemmove): Likewise.
2972         (__wcschrnul): Likewise.
2973         (__vfwscanf): Likewise.
2974         (__vswprintf): Likewise.
2975         (__fwprintf): Likewise.
2976         (__vfwprintf): Likewise.
2978 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2980         [BZ #18822]
2981         * include/grp.h (__fgetgrent_r): Add attribute_hidden.
2982         (__getgrgid_r): Likewise.
2983         (__getgrnam_r): Likewise.
2984         * include/pwd.h (__getpwuid_r): Likewise.
2985         (__getpwnam_r): Likewise.
2986         (__fgetpwent_r): Likewise.
2987         * include/shadow.h (__getspnam_r): Likewise.
2988         (__sgetspent_r): Likewise.
2989         (__fgetspent_r): Likewise.
2991 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2993         [BZ #18822]
2994         * include/unistd.h (__access): Add attribute_hidden.
2995         (__lseek64): Likewise.
2996         (__libc_pread64): Likewise.
2997         (__pipe2): Likewise.
2998         (__sleep): Likewise.
2999         (__chdir): Likewise.
3000         (__fchdir): Likewise.
3001         (__getcwd): Likewise.
3002         (__rmdir): Likewise.
3003         (__execvpe): Likewise.
3004         (__execve): Likewise.
3005         (__setsid): Likewise.
3006         (__getuid): Likewise.
3007         (__geteuid): Likewise.
3008         (__getgid): Likewise.
3009         (__getegid): Likewise.
3010         (__getgroups): Likewise.
3011         (__group_member): Likewise.
3012         (__ttyname_r): Likewise.
3013         (__isatty): Likewise.
3014         (__readlink): Likewise.
3015         (__unlink): Likewise.
3016         (__gethostname): Likewise.
3017         (__profil): Likewise.
3018         (__getdtablesize): Likewise.
3019         (__brk): Likewise.
3020         (__ftruncate): Likewise.
3021         (__ftruncate64): Likewise.
3023 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3025         [BZ #18822]
3026         * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
3027         * argp/argp-fs-xinl.c: Likewise.
3028         * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
3029         * argp/argp-parse.c: Include <argp.h>.
3030         * argp/argp-xinl.c: Likewise.
3031         * include/argp-fmtstream.h: New file.
3032         * include/argp.h (__argp_error): Add attribute_hidden.
3033         (__argp_failure): Likewise.
3034         (__argp_input): Likewise.
3035         (__argp_state_help): Likewise.
3037 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3039         [BZ #18822]
3040         * include/wchar.h (____wcstof_l_internal): New prototype.
3041         (____wcstod_l_internal): Likewise.
3042         (____wcstold_l_internal): Likewise.
3043         (____wcstol_l_internal): Likewise.
3044         (____wcstoul_l_internal): Likewise.
3045         (____wcstoll_l_internal): Likewise.
3046         (____wcstoull_l_internal): Likewise.
3047         (____wcstof128_l_internal): Likewise.
3048         * sysdeps/ieee754/float128/wcstof128.c
3049         (____wcstof128_l_internal): Removed.
3050         * sysdeps/ieee754/float128/wcstof128_l.c
3051         (____wcstof128_l_internal): Likewise.
3052         * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
3053         * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
3054         * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
3055         * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
3056         * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
3057         * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
3058         * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
3059         * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
3060         * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
3061         * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
3063 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3065         [BZ #18822]
3066         * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
3067         instead of <sys/statvfs.h>.
3068         (__internal_statvfs): Removed.
3069         * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
3070         instead of <sys/statvfs.h>.
3071         (__internal_statvfs64): Removed.
3072         * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
3073         "internal_statvfs.h" instead of <sys/statvfs.h>.
3074         * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
3075         * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
3076         instead of <sys/statvfs.h>.
3077         (__internal_statvfs): Removed.
3078         * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
3079         instead of <sys/statvfs.h>.
3080         (__internal_statvfs64): Removed.
3082 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3084         [BZ #18822]
3085         * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
3086         (__gconv_close): Likewise.
3087         (__gconv): Likewise.
3088         (__gconv_find_transform): Likewise.
3089         (__gconv_lookup_cache): Likewise.
3090         (__gconv_compare_alias_cache): Likewise.
3091         (__gconv_load_cache): Likewise.
3092         (__gconv_get_path): Likewise.
3093         (__gconv_close_transform): Likewise.
3094         (__gconv_release_cache): Likewise.
3095         (__gconv_find_shlib): Likewise.
3096         (__gconv_release_shlib): Likewise.
3097         (__gconv_get_builtin_trans): Likewise.
3098         (__gconv_compare_alias): Likewise.
3099         * include/dlfcn.h (_dlerror_run): Likewise.
3100         * include/stdio.h (__fortify_fail_abort): Likewise.
3101         * include/time.h (__tz_compute): Likewise.
3102         (__strptime_internal): Likewise.
3103         * intl/gettextP.h (_nl_find_domain): Likewise.
3104         (_nl_load_domain): Likewise.
3105         (_nl_find_msg): Likewise.
3106         * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
3107         (EXTRACT_PLURAL_EXPRESSION): Likewise.
3108         * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
3109         * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
3110         (__gai_find_request): Likewise.
3111         (__gai_remove_request): Likewise.
3112         (__gai_notify): Likewise.
3113         (__gai_notify_only): Likewise.
3114         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
3115         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
3116         (_dl_non_dynamic_init): Likewise.
3117         (_dl_aux_init): Likewise.
3118         * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
3119         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
3120         Likewise.
3121         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
3122         (__wcsmbs_clone_conv): Likewise.
3123         (__wcsmbs_named_conv): Likewise.
3125 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3127         [BZ #18822]
3128         * include/stdlib.h (__random): Add attribute_hidden.
3129         (__random_r): Likewise.
3130         (__srandom_r): Likewise.
3131         (__initstate_r): Likewise.
3132         (__setstate_r): Likewise.
3133         (__erand48_r): Likewise.
3134         (__nrand48_r): Likewise.
3135         (__jrand48_r): Likewise.
3136         (__srand48_r): Likewise.
3137         (__seed48_r): Likewise.
3138         (__lcong48_r): Likewise.
3139         (__drand48_iterate): Likewise.
3140         (__setenv): Likewise.
3141         (__unsetenv): Likewise.
3142         (__clearenv): Likewise.
3143         (__ptsname_r): Likewise.
3144         (__posix_openpt): Likewise.
3145         (__add_to_environ): Likewise.
3146         (__realpath): Add libc_hidden_proto.
3147         (__ecvt_r): Likewise.
3148         (__fcvt_r): Likewise.
3149         (__qecvt_r): Likewise.
3150         (__qfcvt_r): Likewise.
3151         * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
3152         * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
3154 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
3156         [BZ #18822]
3157         * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
3158         * include/time.h (__mktime_internal): Likewise.
3159         * libio/iolibio.h (__fopen_internal): Likewise.
3161 2017-10-01  John David Anglin  <danglin@gcc.gnu.org>
3163         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
3164         pointer in frame.
3165         * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
3166         Correct offset used to restore PIC register.
3168 2017-09-30  John David Anglin  <danglin@gcc.gnu.org>
3170         [BZ libc/22165]
3171         * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
3172         code to load address of __getcontext_ret when generating PIC code.
3174 2017-09-30  H.J. Lu  <hongjiu.lu@intel.com>
3176         * elf/Makefile (tests-static-internal): Add
3177         tst-tls1-static-non-pie.
3178         (LDFLAGS-tst-tls1-static-non-pie): New.
3179         * elf/tst-tls1-static-non-pie.c: New file.
3181 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
3183         * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
3184         (asinh): Define using libm_alias_double.
3185         * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
3186         (cbrt): Define using libm_alias_double.
3187         * sysdeps/ieee754/dbl-64/s_copysign.c: Include
3188         <libm-alias-double.h>.
3189         (copysign): Define using libm_alias_double.
3190         * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
3191         (erf): Define using libm_alias_double.
3192         (erfc): Likewise.
3193         * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
3194         (expm1): Define using libm_alias_double.
3195         * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
3196         (fabs): Define using libm_alias_double.
3197         * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
3198         libm_alias_double.
3199         * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
3200         <libm-alias-double.h>.
3201         * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
3202         libm_alias_double.
3203         * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
3204         <libm-alias-double.h>.
3205         (getpayload): Define using libm_alias_double.
3206         * sysdeps/ieee754/dbl-64/s_llrint.c: Include
3207         <libm-alias-double.h>.
3208         (llrint): Define using libm_alias_double.
3209         * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
3210         (lrint): Define using libm_alias_double.
3211         * sysdeps/ieee754/dbl-64/s_nextup.c: Include
3212         <libm-alias-double.h>.
3213         (nextup): Define using libm_alias_double.
3214         * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
3215         <libm-alias-double.h>.
3216         (roundeven): Define using libm_alias_double.
3217         * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
3218         libm_alias_double.
3219         * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
3220         <libm-alias-double.h>.
3221         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
3222         using libm_alias_double.
3223         * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
3224         (cos): Define using libm_alias_double.
3225         (sin): Likewise.
3226         * sysdeps/ieee754/dbl-64/s_sincos.c: Include
3227         <libm-alias-double.h>.
3228         (sincos): Define using libm_alias_double.
3229         * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
3230         (tanh): Define using libm_alias_double.
3231         * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
3232         <libm-alias-double.h>.
3233         (totalorder): Define using libm_alias_double.
3234         * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
3235         <libm-alias-double.h>.
3236         (totalordermag): Define using libm_alias_double.
3237         * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
3238         libm_alias_double.
3239         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
3240         libm_alias_double.
3241         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
3242         <libm-alias-double.h>.
3243         (getpayload): Define using libm_alias_double.
3244         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
3245         <libm-alias-double.h>.
3246         (roundeven): Define using libm_alias_double.
3247         * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
3248         <libm-alias-double.h>.
3249         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
3250         <libm-alias-double.h>.
3251         (totalorder): Define using libm_alias_double.
3252         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
3253         <libm-alias-double.h>.
3254         (totalordermag): Define using libm_alias_double.
3255         * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
3256         libc compat symbol here.
3257         * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
3258         * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
3259         * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
3260         * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
3261         * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
3262         * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
3263         * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
3264         * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
3265         * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
3266         * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
3268 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
3270         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
3271         _dl_relocate_static_pie instead of _dl_start to compute load
3272         address in static PIE.  Return 0 if _DYNAMIC is undefined for
3273         static executable.
3275 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
3277         * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
3278         _DYNAMIC is undefined for static executable.
3280 2017-09-29  H.J. Lu  <hongjiu.lu@intel.com>
3282         * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
3284 2017-09-29  Joseph Myers  <joseph@codesourcery.com>
3286         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3288 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
3290         * sysdeps/ieee754/dbl-64/e_lgamma_r.c
3291         (__ieee754_lgamma_r): Use fabs rather than __fabs.
3292         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
3293         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
3294         * sysdeps/ieee754/flt-32/e_lgammaf_r.c
3295         (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
3296         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
3297         * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
3298         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
3299         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
3300         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
3301         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
3302         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
3303         (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
3304         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
3305         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
3306         * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
3308 2017-09-29  Wilco Dijkstra  <wdijkstr@arm.com>
3310         * math/bits/cmathcalls.h (cimag): Remove inline.
3311         (creal): Remove inline.
3312         (conj): Remove inline.
3314 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3316         * math/Makefile (type-float-routines): Add e_powf_log2_data.
3317         * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
3318         * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
3319         * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
3320         (issignalingf_inline): Likewise.
3321         (POWF_LOG2_TABLE_BITS): Likewise.
3322         (POWF_LOG2_POLY_ORDER): Likewise.
3323         (POWF_SCALE_BITS): Likewise.
3324         (POWF_SCALE): Likewise.
3325         * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
3326         * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
3327         * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
3329 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3331         * math/Makefile (type-float-routines): Add e_log2f_data.
3332         * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
3333         * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
3334         * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
3335         (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
3336         * sysdeps/i386/fpu/e_log2f_data.c: New file.
3337         * sysdeps/ia64/fpu/e_log2f_data.c: New file.
3338         * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
3340 2017-09-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3342         * math/Makefile (type-float-routines): Add e_logf_data.
3343         * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
3344         * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
3345         * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
3346         (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
3347         * sysdeps/i386/fpu/e_logf_data.c: New file.
3348         * sysdeps/ia64/fpu/e_logf_data.c: New file.
3349         * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
3351 2017-09-28  H.J. Lu  <hongjiu.lu@intel.com>
3353         * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
3354         undefined _DYNAMIC in PIE libc.a.
3355         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
3356         Likewse.
3358 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
3360         * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
3361         * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
3362         * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
3363         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
3364         (__signbit): Remove.
3365         (__signbitl): Remove.
3366         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
3367         (__signbit): Remove.
3368         (__signbitl): Remove.
3369         * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
3370         (__signbit): Remove.
3371         (__signbitl): Remove.
3372         * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
3373         (__signbit): Remove.
3374         (__signbitl): Remove.
3375         * sysdeps/tile/bits/mathinline.h: Delete file.
3376         * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
3377         (__signbit): Remove.
3378         (__signbitl): Remove.
3380 2017-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
3382         * math/math.h: Improve handling of C99 isgreater macros.
3383         * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
3384         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
3385         * sysdeps/powerpc/bits/mathinline.h: Likewise.
3386         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
3387         * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
3389 2017-09-28  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3391         * sysdeps/aarch64/libm-test-ulps: Update.
3393 2017-09-28  Joseph Myers  <joseph@codesourcery.com>
3395         [BZ #22225]
3396         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
3397         math_opt_barrier on argument when doing arithmetic on it.
3398         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
3399         Likewise.  Use math_force_eval not math_opt_barrier after
3400         arithmetic.
3401         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
3402         math_opt_barrier on argument when doing arithmetic on it.
3403         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
3404         Likewise.
3406 2017-09-27  H.J. Lu  <hongjiu.lu@intel.com>
3408         * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
3409         libc_hidden_def.
3410         (__freeifaddrs): Likewise.
3412 2017-09-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3414         * include/dirent.h (__dirfd): New declaration.
3415         * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
3416         alias.
3417         * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
3418         * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
3419         * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
3420         * include/unistd.h (__revoke): New declaration.
3421         * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
3422         alias.
3423         * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
3424         * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
3425         revoke.
3426         * include/dirent.h (__seekdir): New declaration.
3427         * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
3428         redefine as weak alias.
3429         * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
3430         of seekdir.
3431         * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
3432         and use libc_hidden_def on them.
3433         * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
3434         them.
3435         * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
3436         * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
3437         instead of getifaddrs and freeifaddrs.
3439 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
3441         [BZ #18822]
3442         * dlfcn/modatexit.c (foo): Remove __dso_handle check.
3443         * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
3444         (__dso_handle): Remove declaration.
3445         * dlfcn/tstatexit.c (__dso_handle): Removed.
3446         (main): Don't check __dso_handle.
3447         * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
3448         (main): Don't check __dso_handle.
3449         * include/dso_handle.h: New file.
3450         * malloc/mtrace.c: Include <dso_handle.h>.
3451         (mtrace): Pass __dso_handle directly.
3452         * nptl/pthread_atfork.c: Include <dso_handle.h>.
3453         (__dso_handle): Remove declaration.
3454         (__pthread_atfork): Pass __dso_handle directly.
3455         * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
3456         (__dso_handle): Removed.
3457         * posix/wordexp-test.c: Include <dso_handle.h>.
3458         (__dso_handle): Remove declaration.
3459         (__app_register_atfork): Pass __dso_handle directly.
3460         * stdlib/at_quick_exit.c: Include <dso_handle.h>.
3461         (__dso_handle): Remove declaration.
3462         (at_quick_exit): Pass __dso_handle directly.
3463         * stdlib/atexit.c: Include <dso_handle.h>.
3464         (__dso_handle): Remove declaration.
3465         (atexit): Pass __dso_handle directly.
3466         * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
3467         (__dso_handle): Removed.
3469 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
3471         * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
3472         using VDSO.
3474 2017-09-26  Alexey Makhalov  <amakhalov@vmware.com>
3476         * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
3477         * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
3478         values to correct default value for given type.
3480 2017-09-26  H.J. Lu  <hongjiu.lu@intel.com>
3482         [BZ #22101]
3483         * elf/Makefile (tests): Add tst-debug1.
3484         ($(objpfx)tst-debug1): New.
3485         ($(objpfx)tst-debug1.out): Likewise.
3486         ($(objpfx)tst-debug1mod1.so): Likewise.
3487         * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
3488         with p_filesz == 0.
3489         * elf/tst-debug1.c: New file.
3491 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
3493         * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
3494         Define using __ifunc.
3496 2017-09-26  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
3498         * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
3499         exp2f() values.
3501 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
3503         [BZ #22156]
3504         * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
3506 2017-09-26  Florian Weimer  <fweimer@redhat.com>
3508         * resolv/Makefile (tests-internal): Fix typo in comment.
3510 2017-09-26  Florian Weimer  <fweimer@redhat.com>
3512         * resolv/nss_dns/dns-host.c: Fix typo in comment.
3514 2017-09-25  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
3516         * lib/malloc/scratch_buffer.h (struct scratch_buffer):
3517         Use an union instead of a max_align_t array for __space,
3518         so that __space is the same size on all platforms.
3519         * malloc/scratch_buffer_grow_preserve.c
3520         (__libc_scratch_buffer_grow_preserve): Likewise.
3522         [BZ #22183]
3523         * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
3524         version to 2.
3525         * posix/Makefile (routines): Add glob-lstat-compat and
3526         glob64-lstat-compat.
3527         * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
3528         * posix/glob-lstat-compat.c: New file.
3529         * posix/glob64-lstat-compat.c: Likewise.
3530         * posix/tst-glob_lstat_compat.c: Likewise.
3531         * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
3532         * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
3533         * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
3534         * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
3535         Likewise.
3536         * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
3537         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
3538         * posix/glob.c (glob_lstat): New function.
3539         (glob): Rename to __glob and add versioned symbol to 2.27.
3540         (glob_in_dir): Use glob_lstat.
3541         * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
3542         * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
3543         * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
3544         2.27.
3545         * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
3546         * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
3547         * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
3548         gl_lstat on glob call.
3549         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
3550         and glob64 symbols.
3551         * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
3552         * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
3553         * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
3554         * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
3555         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
3556         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
3557         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
3558         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
3559         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
3560         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
3561         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
3562         * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
3563         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
3564         Likewise.
3565         * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
3566         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
3567         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
3568         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
3569         * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
3570         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
3571         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
3572         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
3573         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
3574         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
3575         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
3576         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
3578 2017-09-25  H.J. Lu  <hongjiu.lu@intel.com>
3580         * configure.ac (AS): Require binutils 2.25 or later.
3581         * configure: Regenerated.
3583 2017-09-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
3585         [BZ #22207]
3586         * stdlib/test-atexit-race-common.c (do_test): Minimize required
3587         VM size.
3589 2017-09-25  DJ Delorie  <dj@redhat.com>
3591         [BZ #22161]
3592         * nscd/netgroupcache.c (addinnetgrX): Release read lock after
3593         resetting timeout.
3595 2017-09-25  Stefan Liebler  <stli@linux.vnet.ibm.com>
3597         * sysdeps/ieee754/dbl-64/sincos32.h
3598         [SINCCOS32_H]: Remove define.
3599         [SINCOS32_H]: Define.
3601 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3603         * math/Versions (expf): New libm symbol at GLIBC_2.27.
3604         (exp2f): Likewise.
3605         * math/w_exp2f.c: New file.
3606         * math/w_expf.c: New file.
3607         * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
3608         * math/w_expf_compat.c (__expf_compat): Likewise.
3609         * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
3610         * sysdeps/ia64/fpu/e_expf.S: Likewise.
3611         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
3612         * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
3613         * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
3614         * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
3615         * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
3616         * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
3617         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
3618         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
3619         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
3620         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
3621         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
3622         * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
3623         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
3624         Likewise.
3625         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
3626         Likewise.
3627         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
3628         Likewise.
3629         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
3630         Likewise.
3631         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
3632         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
3633         * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
3634         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
3635         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
3636         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
3637         Likewise.
3638         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
3639         Likewise.
3640         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
3641         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
3642         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
3644 2017-09-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3646         * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
3647         * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
3648         (roundtoint, converttoint): Likewise.
3649         * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
3650         * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
3651         * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
3652         * sysdeps/ieee754/flt-32/math_config.h: New file.
3653         * sysdeps/ieee754/flt-32/math_errf.c: New file.
3654         * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
3655         * sysdeps/i386/fpu/e_exp2f_data.c: New file.
3656         * sysdeps/i386/fpu/math_errf.c: New file.
3657         * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
3658         * sysdeps/ia64/fpu/math_errf.c: New file.
3659         * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
3660         * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
3662 2017-09-24  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3664         * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
3665         (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
3666         __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
3667         __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
3668         to make sure that these symbols are defined.
3669         * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
3670         of <limits.h>
3671         (__need_NULL): Do not define.
3672         (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
3673         alignment.
3674         [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
3675         CMGROUP_MAX, cmsgcred): Do not define.
3676         (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
3677         NULL.
3678         * bits/socket.h: Likewise.
3679         * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
3680         __gettimeofday instead of gettimeofday.
3681         * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
3682         instead of settimeofday.
3684 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
3686         * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
3687         (asinhf): Define using libm_alias_float.
3688         * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
3689         (atanf): Define using libm_alias_float.
3690         * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
3691         (cbrtf): Define using libm_alias_float.
3692         * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
3693         (ceilf): Define using libm_alias_float.
3694         * sysdeps/ieee754/flt-32/s_copysignf.c: Include
3695         <libm-alias-float.h>.
3696         (copysignf): Define using libm_alias_float.
3697         * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
3698         (cosf): Define using libm_alias_float.
3699         * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
3700         (erff): Define using libm_alias_float.
3701         (erfcf): Likewise.
3702         * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
3703         (expm1f): Define using libm_alias_float.
3704         * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
3705         (fabsf): Define using libm_alias_float.
3706         * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
3707         (floorf): Define using libm_alias_float.
3708         * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
3709         (frexpf): Define using libm_alias_float.
3710         * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
3711         libm_alias_float.
3712         * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
3713         <libm-alias-float.h>.
3714         * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
3715         libm_alias_float.
3716         * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
3717         <libm-alias-float.h>.
3718         (getpayloadf): Define using libm_alias_float.
3719         * sysdeps/ieee754/flt-32/s_llrintf.c: Include
3720         <libm-alias-float.h>.
3721         (llrintf): Define using libm_alias_float.
3722         * sysdeps/ieee754/flt-32/s_llroundf.c: Include
3723         <libm-alias-float.h>.
3724         (llroundf): Define using libm_alias_float.
3725         * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
3726         (logbf): Define using libm_alias_float.
3727         * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
3728         (lrintf): Define using libm_alias_float.
3729         * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
3730         (lroundf): Define using libm_alias_float.
3731         * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
3732         (modff): Define using libm_alias_float.
3733         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
3734         <libm-alias-float.h>.
3735         (nearbyintf): Define using libm_alias_float.
3736         * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
3737         <libm-alias-float.h>.
3738         (nextafterf): Define using libm_alias_float.
3739         * sysdeps/ieee754/flt-32/s_nextupf.c: Include
3740         <libm-alias-float.h>.
3741         (nextupf): Define using libm_alias_float.
3742         * sysdeps/ieee754/flt-32/s_remquof.c: Include
3743         <libm-alias-float.h>.
3744         (remquof): Define using libm_alias_float.
3745         * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
3746         (rintf): Define using libm_alias_float.
3747         * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
3748         <libm-alias-float.h>.
3749         (roundevenf): Define using libm_alias_float.
3750         * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
3751         (roundf): Define using libm_alias_float.
3752         * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
3753         using libm_alias_float.
3754         * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
3755         <libm-alias-float.h>.
3756         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
3757         Define using libm_alias_float.
3758         * sysdeps/ieee754/flt-32/s_sincosf.c: Include
3759         <libm-alias-float.h>.
3760         (sincosf): Define using libm_alias_float.
3761         * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
3762         (sinf): Define using libm_alias_float.
3763         * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
3764         (tanf): Define using libm_alias_float.
3765         * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
3766         (tanhf): Define using libm_alias_float.
3767         * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
3768         <libm-alias-float.h>.
3769         (totalorderf): Define using libm_alias_float.
3770         * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
3771         <libm-alias-float.h>.
3772         (totalordermagf): Define using libm_alias_float.
3773         * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
3774         (truncf): Define using libm_alias_float.
3775         * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
3776         libm_alias_float.
3777         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
3778         libm_alias_float.
3780 2017-09-22  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
3782         [BZ #22146]
3783         math/math.h: Let fpclassify use the builtin in C++ mode, even
3784         when optimazing for size.
3786 2017-09-22  Joseph Myers  <joseph@codesourcery.com>
3788         * csu/Makefile (generated): Do not add version-info.h.
3789         (before-compile): Likewise.
3790         (all-Banner-files): Remove variable.
3791         ($(objpfx)version-info.h): Remove rule.
3792         * csu/version.c (banner): Do not include "version-info.h".
3793         * libidn/Banner: Remove.
3794         * manual/contrib.texi (Simon Josefsson): New entry.
3796 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
3798         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
3799         Remove conditionals on LDBL_MANT_DIG.
3800         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
3801         (__ieee754_lgammal_r): Likewise.
3803 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
3805         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
3806         _Float128 and L().
3807         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
3808         _Float128 and L(). Replace _Float128 with long double and L(x)
3809         with xL, throughout the file.
3810         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
3811         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
3812         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
3813         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
3815 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
3817         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
3818         sysdeps/ieee754/ldbl-128ibm.
3819         * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
3820         equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
3821         of including it.  Keep _Float128 and L() intact.  These will be
3822         reviewed by a separate patch.
3823         * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
3824         * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
3825         * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
3826         * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
3828 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
3830         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
3831         (__finitef128): Define to __redirect___finitef128.
3832         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
3833         (__isinff128): Define to __redirect___isinff128.
3834         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
3835         (__isnanf128): Define to __redirect___isnanf128.
3837 2017-09-21  Gabriel F. T. Gomes  <gabriel@inconstante.eti.br>
3839         * sysdeps/powerpc/powerpc64le/Makefile
3840         (CFLAGS-tst-strtod-nan-locale.c): New variable.
3841         (CFLAGS-tst-wcstod-nan-locale.c): New variable.
3843 2017-09-21  Paul Pluzhnikov  <ppluzhnikov@google.com>
3844             Carlos O'Donell  <carlos@redhat.com>
3846         [BZ #22180]
3847         * stdlib/Makefile (tests): Add test-dlclose-exit-race.
3848         * stdlib/test-dlclose-exit-race.c: New file.
3849         * stdlib/test-dlclose-exit-race-helper.c: New file.
3850         * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
3852 2017-09-21  Joseph Myers  <joseph@codesourcery.com>
3854         * crypt/Banner: Remove file.
3855         * nptl/Banner: Likewise.
3856         * resolv/Banner: Likewise.
3857         * soft-fp/Banner: Likewise.
3858         * nptl/Makefile ($(objpfx)banner.h): Remove rule.
3859         ($(objpfx)version.d): Remove dependency on banner.h.
3860         ($(objpfx)version.os): Likewise.
3861         * nptl/version.c (banner): Do not include banner.h.
3862         * manual/contrib.texi: Update entries for Richard Henderson, Jakub
3863         Jelinek and BIND code.
3865 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
3866             Carlos O'Donell  <carlos@redhat.com>
3868         * support/xdlfcn.h: New file.
3869         * support/xdlfcn.c: New file.
3870         * support/Makefile (libsupport-routines): Add xdlfcn.
3871         * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
3873 2017-09-20  Joseph Myers  <joseph@codesourcery.com>
3875         [BZ #20142]
3876         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
3877         Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
3878         * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
3879         * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
3880         * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
3881         * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
3882         * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
3883         * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
3885 2017-09-20  Paul Pluzhnikov  <ppluzhnikov@google.com>
3886             Ricky Zhou  <rickyz@google.com>
3887             Anoop V Chakkalakkal  <anoop.vijayan@in.ibm.com>
3889         [BZ #14333]
3890         * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
3891         Remove atomics.
3892         (__new_exitfn): Fail registration when we finished at_exit processing.
3893         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
3894         * stdlib/on_exit.c (__on_exit): Likewise.
3895         * stdlib/exit.c (__exit_funcs_done): New variable.
3896         (__run_exit_handlers): Use __exit_funcs_lock.
3897         * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
3898         declarations.
3899         * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
3900         (test-cxa_atexit-race, test-on_exit-race): New tests.
3901         * stdlib/test-atexit-race-common.c: New file.
3902         * stdlib/test-atexit-race.c: New file.
3903         * stdlib/test-at_quick_exit-race.c: New file.
3904         * stdlib/test-cxa_atexit-race.c: New file.
3905         * stdlib/test-on_exit-race.c: New file.
3907 2017-09-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3909         * benchtests/Makefile: Add exp2f and log2f benchmarks.
3910         * benchtests/exp2f-inputs: Copy of expf-inputs.
3911         * benchtests/log2f-inputs: Copy of logf-inputs.
3913 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
3915         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
3916         Explicitly take address of first element of array arguments in
3917         call to INLINE_SYSCALL.
3919 2017-09-19  Andreas Schwab  <schwab@suse.de>
3921         [BZ #22134]
3922         * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
3923         execveat first.
3924         [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
3925         unimplemented.
3926         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
3927         [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
3928         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
3929         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
3930         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
3931         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
3932         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
3933         (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
3934         * posix/Makefile (tests): Add tst-fexecve.
3935         * posix/tst-fexecve.c: New file.
3937 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
3939         * benchtests/Makefile: Add logf benchmark.
3940         * benchtests/logf-inputs: Add reduced trace from wrf_r.
3942 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
3944         * benchtests/Makefile: Add expf benchmark.
3945         * benchtests/expf-inputs: Add reduced trace from wrf_r.
3947 2017-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
3949         * csu/Makefile: Add -funwind-tables to libc-start.c.
3950         * debug/Makefile: Add -funwind-tables to backtrace.c.
3951         * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
3952         * sysdeps/arm/Makefile: Likewise.
3953         * sysdeps/i386/Makefile: Likewise.
3954         * sysdeps/m68k/Makefile: Likewise.
3955         * sysdeps/mips/Makefile: Likewise.
3956         * sysdeps/nios2/Makefile: Likewise.
3957         * sysdeps/sh/Makefile: Likewise.
3958         * sysdeps/sparc/Makefile: Likewise.
3960 2017-09-19  Joseph Myers  <joseph@codesourcery.com>
3962         * benchtests/Makefile (bench-math): Add trunc and truncf.
3963         (CFLAGS-bench-trunc.c): New variable.
3964         (CFLAGS-bench-truncf.c): Likewise.
3965         * benchtests/trunc-inputs: New file.
3966         * benchtests/truncf-inputs: Likewise.
3968 2017-09-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
3970         * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
3972 2017-09-18  Joseph Myers  <joseph@codesourcery.com>
3974         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
3975         !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
3976         redefine.
3977         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
3978         (exp10l): Define as weak alias.
3979         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
3980         && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
3981         and redefine.
3982         [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
3983         (remainderl): Define as weak alias.
3985         * math/s_fmal.c: Include <libm-alias-ldouble.h>.
3986         (fmal): Define using libm_alias_ldouble.
3987         * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
3988         (acoshl): Define using libm_alias_ldouble.
3989         * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
3990         (acosl): Define using libm_alias_ldouble.
3991         * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
3992         (asinl): Define using libm_alias_ldouble.
3993         * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
3994         (atan2l): Define using libm_alias_ldouble.
3995         * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
3996         (atanhl): Define using libm_alias_ldouble.
3997         * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
3998         (coshl): Define using libm_alias_ldouble.
3999         * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
4000         (exp10l): Define using libm_alias_ldouble.
4001         * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
4002         (exp2l): Define using libm_alias_ldouble.
4003         * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
4004         (expl): Define using libm_alias_ldouble.
4005         * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
4006         (fmodl): Define using libm_alias_ldouble.
4007         * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
4008         (hypotl): Define using libm_alias_ldouble.
4009         * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
4010         (j0l): Define using libm_alias_ldouble.
4011         (y0l): Likewise.
4012         * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
4013         (j1l): Define using libm_alias_ldouble.
4014         (y1l): Likewise.
4015         * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
4016         (jnl): Define using libm_alias_ldouble.
4017         (ynl): Likewise.
4018         * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
4019         (log10l): Define using libm_alias_ldouble.
4020         * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
4021         (log2l): Define using libm_alias_ldouble.
4022         * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
4023         (logl): Define using libm_alias_ldouble.
4024         * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
4025         (powl): Define using libm_alias_ldouble.
4026         * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
4027         (remainderl): Define using libm_alias_ldouble.
4028         * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
4029         (sinhl): Define using libm_alias_ldouble.
4030         * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
4031         (sqrtl): Define using libm_alias_ldouble.
4032         * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
4033         (tgammal): Define using libm_alias_ldouble.
4034         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
4035         (exp10l): Do not use long_double_symbol here.
4036         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
4037         [LIBM_SVID_COMPAT] (remainderl): Likewise.
4038         * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
4039         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
4040         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
4041         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
4042         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
4043         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
4044         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
4045         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
4046         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
4047         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
4048         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
4049         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
4050         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
4051         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
4052         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
4053         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
4054         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
4055         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
4056         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
4057         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
4059 2017-09-18  Wang Boshi  <wangboshi@huawei.com>  (tiny change)
4061         * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
4062         * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
4064 2017-09-17  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4066         * io/read.c (read): Add libc_hidden_weak.
4067         * sysdeps/mach/hurd/read.c (read): Likewise.
4068         * io/write.c (write): Likewise.
4069         * sysdeps/mach/hurd/write.c (write): Likewise.
4070         * io/pread64.c (__pread64): Likewise.
4071         * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
4072         * posix/pread64.c (__pread64): Add libc_hidden_def.
4074 2017-09-16  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4076         * benchtests/scripts/compare_strings.py: New option -g.
4077         (draw_graph): Print a message that a graph is being generated.
4078         (process_results): Generate graph only if -g is passed.
4079         (main): Process option -g.
4081         * benchtests/scripts/compare_strings.py (process_results):
4082         Better spacing for output.
4084         * benchtests/scripts/compare_strings.py: Use argparse.
4085         * benchtests/README: Document existence of compare_strings.py.
4087 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
4089         * math/s_fma.c: Include <libm-alias-double.h>.
4090         (fma): Define using libm_alias_double.
4091         * math/s_nextafter.c: Include <libm-alias-double.h>.
4092         (nextafter): Define using libm_alias_double.
4093         * math/w_acos_compat.c: Include <libm-alias-double.h>.
4094         (acos): Define using libm_alias_double.
4095         * math/w_acosh_compat.c: Include <libm-alias-double.h>.
4096         (aocsh): Define using libm_alias_double.
4097         * math/w_asin_compat.c: Include <libm-alias-double.h>.
4098         (asin): Define using libm_alias_double.
4099         * math/w_atan2_compat.c: Include <libm-alias-double.h>.
4100         (atan2): Define using libm_alias_double.
4101         * math/w_atanh_compat.c: Include <libm-alias-double.h>.
4102         (atanh): Define using libm_alias_double.
4103         * math/w_cosh_compat.c: Include <libm-alias-double.h>.
4104         (cosh): Define using libm_alias_double.
4105         * math/w_exp10_compat.c: Include <libm-alias-double.h>.
4106         (exp10): Define using libm_alias_double.
4107         * math/w_exp2_compat.c: Include <libm-alias-double.h>.
4108         (exp2): Define using libm_alias_double.
4109         * math/w_exp_compat.c: Include <libm-alias-double.h>.
4110         (exp): Define using libm_alias_double.
4111         * math/w_fmod_compat.c: Include <libm-alias-double.h>.
4112         (fmod): Define using libm_alias_double.
4113         * math/w_hypot_compat.c: Include <libm-alias-double.h>.
4114         (hypot): Define using libm_alias_double.
4115         * math/w_j0_compat.c: Include <libm-alias-double.h>.
4116         (j0): Define using libm_alias_double.
4117         (y0): Likewise.
4118         * math/w_j1_compat.c: Include <libm-alias-double.h>.
4119         (j1): Define using libm_alias_double.
4120         (y1): Likewise.
4121         * math/w_jn_compat.c: Include <libm-alias-double.h>.
4122         (jn): Define using libm_alias_double.
4123         (yn): Likewise.
4124         * math/w_log10_compat.c: Include <libm-alias-double.h>.
4125         (log10): Define using libm_alias_double.
4126         * math/w_log2_compat.c: Include <libm-alias-double.h>.
4127         (log2): Define using libm_alias_double.
4128         * math/w_log_compat.c: Include <libm-alias-double.h>.
4129         (log): Define using libm_alias_double.
4130         * math/w_pow_compat.c: Include <libm-alias-double.h>.
4131         (pow): Define using libm_alias_double.
4132         * math/w_remainder_compat.c: Include <libm-alias-double.h>.
4133         (remainder): Define using libm_alias_double.
4134         * math/w_sinh_compat.c: Include <libm-alias-double.h>.
4135         (sinh): Define using libm_alias_double.
4136         * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
4137         (sqrt): Define using libm_alias_double.
4138         * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
4139         (tgamma): Define using libm_alias_double.
4140         * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
4141         GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
4142         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
4143         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
4144         * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
4145         [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
4146         * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
4147         * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
4148         * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
4149         * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
4150         * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
4151         * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
4152         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
4153         * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
4154         * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
4155         * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
4156         * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
4157         * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
4158         * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
4159         * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
4160         * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
4161         * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
4162         * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
4163         * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
4164         * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
4166         * math/e_acoshl.c: Remove.
4167         * math/e_acosl.c: Likewise.
4168         * math/e_asinl.c: Likewise.
4169         * math/e_atan2l.c: Likewise.
4170         * math/e_atanhl.c: Likewise.
4171         * math/e_coshl.c: Likewise.
4172         * math/e_expl.c: Likewise.
4173         * math/e_fmodl.c: Likewise.
4174         * math/e_gammal_r.c: Likewise.
4175         * math/e_hypotl.c: Likewise.
4176         * math/e_j0l.c: Likewise.
4177         * math/e_j1l.c: Likewise.
4178         * math/e_jnl.c: Likewise.
4179         * math/e_lgammal_r.c: Likewise.
4180         * math/e_log10l.c: Likewise.
4181         * math/e_log2l.c: Likewise.
4182         * math/e_logl.c: Likewise.
4183         * math/e_powl.c: Likewise.
4184         * math/e_rem_pio2l.c: Likewise.
4185         * math/e_sinhl.c: Likewise.
4186         * math/e_sqrtf128.c: Likewise.
4187         * math/e_sqrtl.c: Likewise.
4188         * math/k_cosl.c: Likewise.
4189         * math/k_sinl.c: Likewise.
4190         * math/k_tanl.c: Likewise.
4191         * math/s_asinhl.c: Likewise.
4192         * math/s_atanl.c: Likewise.
4193         * math/s_cbrtl.c: Likewise.
4194         * math/s_erfl.c: Likewise.
4195         * math/s_expm1l.c: Likewise.
4196         * math/s_log1pl.c: Likewise.
4197         * math/s_tanhl.c: Likewise.
4199 2017-09-15  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4201         [BZ #21745]
4202         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
4203         [$(subdir) = math] (sysdep_calls): New variable.  Has the
4204         previous contents of sysdep_routines, but re-sorted..
4205         [$(subdir) = math] (sysdep_routines): Re-use the contents from
4206         sysdep_calls.
4207         [$(subdir) = math] (libm-sysdep_routines): Remove the functions
4208         defined in sysdep_calls and replace by the respective m_* names.
4209         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
4210         (compat_symbol): Undefine to avoid duplicated compat symbols in
4211         libc.
4213 2017-09-15  Joseph Myers  <joseph@codesourcery.com>
4215         * math/s_fmaf.c: Include <libm-alias-float.h>.
4216         (fmaf): Define using libm_alias_float.
4217         * math/w_acosf_compat.c: Include <libm-alias-float.h>.
4218         (acosf): Define using libm_alias_float.
4219         * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
4220         (acoshf): Define using libm_alias_float.
4221         * math/w_asinf_compat.c: Include <libm-alias-float.h>.
4222         (asinf): Define using libm_alias_float.
4223         * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
4224         (atan2f): Define using libm_alias_float.
4225         * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
4226         (atanhf): Define using libm_alias_float.
4227         * math/w_coshf_compat.c: Include <libm-alias-float.h>.
4228         (coshf): Define using libm_alias_float.
4229         * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
4230         (exp10f): Define using libm_alias_float.
4231         * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
4232         (fmodf): Define using libm_alias_float.
4233         * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
4234         (hypotf): Define using libm_alias_float.
4235         * math/w_j0f_compat.c: Include <libm-alias-float.h>.
4236         (j0f): Define using libm_alias_float.
4237         (y0f): Likewise.
4238         * math/w_j1f_compat.c: Include <libm-alias-float.h>.
4239         (j1f): Define using libm_alias_float.
4240         (y1f): Likewise.
4241         * math/w_jnf_compat.c: Include <libm-alias-float.h>.
4242         (jnf): Define using libm_alias_float.
4243         (ynf): Likewise.
4244         * math/w_log10f_compat.c: Include <libm-alias-float.h>.
4245         (log10f): Define using libm_alias_float.
4246         * math/w_log2f_compat.c: Include <libm-alias-float.h>.
4247         (log2f): Define using libm_alias_float.
4248         * math/w_logf_compat.c: Include <libm-alias-float.h>.
4249         (logf): Define using libm_alias_float.
4250         * math/w_powf_compat.c: Include <libm-alias-float.h>.
4251         (powf): Define using libm_alias_float.
4252         * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
4253         (remainderf): Define using libm_alias_float.
4254         * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
4255         (sinhf): Define using libm_alias_float.
4256         * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
4257         (sqrtf): Define using libm_alias_float.
4258         * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
4259         (tgammaf): Define using libm_alias_float.
4261 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
4263         * include/math.h (roundeven): Change hidden_proto call to
4264         __roundeven.
4265         * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
4266         alias.
4267         [NO_LONG_DOUBLE] (__j0l): New strong alias.
4268         (y0): Rename to __y0 and define as weak alias.
4269         [NO_LONG_DOUBLE] (__y0l): New strong alias.
4270         * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
4271         alias.
4272         (y0f): Rename to __y0f and define as weak alias.
4273         * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
4274         alias.
4275         [NO_LONG_DOUBLE] (__j1l): New strong alias.
4276         (y1): Rename to __y1 and define as weak alias.
4277         [NO_LONG_DOUBLE] (__y1l): New strong alias.
4278         * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
4279         alias.
4280         (y1f): Rename to __y1f and define as weak alias.
4281         * math/w_jn_compat.c (jn): Rename to __jn and define as weak
4282         alias.
4283         [NO_LONG_DOUBLE] (__jnl): New strong alias.
4284         (yn): Rename to __yn and define as weak alias.
4285         [NO_LONG_DOUBLE] (__ynl): New strong alias.
4286         * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
4287         alias.
4288         (ynf): Rename to __ynf and define as weak alias.
4289         * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
4290         (fromfp): Define as weak alias.
4291         [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
4292         * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
4293         (fromfpx): Define as weak alias.
4294         [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
4295         * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
4296         __getpayload and define as weak alias.
4297         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
4298         * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
4299         __roundeven and define as weak alias.
4300         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
4301         * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
4302         __setpayload.
4303         (setpayload): Define as weak alias.
4304         [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
4305         * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
4306         __setpayloadsig.
4307         (setpayloadsig): Define as weak alias.
4308         [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
4309         * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
4310         __totalorder and define as weak alias.
4311         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
4312         * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
4313         to __totalordermag and define as weak alias.
4314         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
4315         * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
4316         (ufromfp): Define as weak alias.
4317         [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
4318         * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
4319         __ufromfpx.
4320         (ufromfpx): Define as weak alias.
4321         [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
4322         * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
4323         Rename to __getpayload and define as weak alias.
4324         [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
4325         * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
4326         Rename to __roundeven and define as weak alias.
4327         [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
4328         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
4329         Rename to __totalorder and define as weak alias.
4330         [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
4331         * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
4332         (totalordermag): Rename to __totalordermag and define as weak
4333         alias.
4334         [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
4335         * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
4336         macro.
4337         (__roundevenl): Likewise.
4338         (__totalorderl): Likewise.
4339         (__totalordermagl): Likewise
4340         * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
4341         __fromfpf128.
4342         (fromfpf128): Define as weak alias.
4343         * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
4344         __fromfpxf128.
4345         (fromfpxf128): Define as weak alias.
4346         * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
4347         __setpayloadf128.
4348         (setpayloadf128): Define as weak alias.
4349         * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
4350         __setpayloadsigf128.
4351         (setpayloadsigf128): Define as weak alias.
4352         * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
4353         __ufromfpf128.
4354         (ufromfpf128): Define as weak alias.
4355         * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
4356         __ufromfpxf128.
4357         (ufromfpxf128): Define as weak alias.
4358         * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
4359         (fromfpf): Define as weak alias.
4360         * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
4361         __fromfpxf.
4362         (fromfpxf): Define as weak alias.
4363         * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
4364         __getpayloadf and define as weak alias.
4365         * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
4366         __roundevenf and define as weak alias.
4367         * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
4368         __setpayloadf.
4369         (setpayloadf): Define as weak alias.
4370         * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
4371         __setpayloadsigf.
4372         (setpayloadsigf): Define as weak alias.
4373         * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
4374         __totalorderf and define as weak alias.
4375         * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
4376         Rename to __totalordermagf and define as weak alias.
4377         * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
4378         __ufromfpf.
4379         (ufromfpf): Define as weak alias.
4380         * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
4381         __ufromfpxf.
4382         (ufromfpxf): Define as weak alias.
4383         * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
4384         __fromfpl.
4385         (fromfpl): Define as weak alias.
4386         * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
4387         __fromfpxl.
4388         (fromfpxl): Define as weak alias.
4389         * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
4390         to __getpayloadl and define as weak alias.
4391         * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
4392         __roundevenl and define as weak alias.
4393         * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
4394         __setpayloadl.
4395         (setpayloadl): Define as weak alias.
4396         * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
4397         __setpayloadsigl.
4398         (setpayloadsigl): Define as weak alias.
4399         * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
4400         to __totalorderl and define as weak alias.
4401         * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
4402         Rename to __totalordermagl and define as weak alias.
4403         * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
4404         __ufromfpl.
4405         (ufromfpl): Define as weak alias.
4406         * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
4407         __ufromfpxl.
4408         (ufromfpxl): Define as weak alias.
4409         * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
4410         __fromfpl.
4411         (fromfpl): Define as weak alias.
4412         * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
4413         __fromfpxl.
4414         (fromfpxl): Define as weak alias.
4415         * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
4416         Rename to __getpayloadl and define as weak alias.
4417         * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
4418         to __roundevenl and define as weak alias.  Call __roundeven
4419         instead of roundeven.
4420         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
4421         __setpayloadl.
4422         (setpayloadl): Define as weak alias.
4423         * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
4424         __setpayloadsigl.
4425         (setpayloadsigl): Define as weak alias.
4426         * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
4427         Rename to __totalorderl and define as weak alias.
4428         * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
4429         Rename to __totalordermagl and define as weak alias.
4430         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
4431         __ufromfpl.
4432         (ufromfpl): Define as weak alias.
4433         * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
4434         __ufromfpxl.
4435         (ufromfpxl): Define as weak alias.
4436         * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
4437         __fromfpl.
4438         (fromfpl): Define as weak alias.
4439         * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
4440         __fromfpxl.
4441         (fromfpxl): Define as weak alias.
4442         * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
4443         __getpayloadl and define as weak alias.
4444         * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
4445         __roundevenl and define as weak alias.
4446         * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
4447         __setpayloadl.
4448         (setpayloadl): Define as weak alias.
4449         * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
4450         __setpayloadsigl.
4451         (setpayloadsigl): Define as weak alias.
4452         * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
4453         __totalorderl and define as weak alias.
4454         * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
4455         Rename to __totalordermagl and define as weak alias.
4456         * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
4457         __ufromfpl.
4458         (ufromfpl): Define as weak alias.
4459         * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
4460         __ufromfpxl.
4461         (ufromfpxl): Define as weak alias.
4463 2017-09-14  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4465         * benchtests/bench-string.h (realloc_bufs): New function.
4466         (test_init): Call it.
4467         * benchtests/bench-memset-large.c (do_test): Likewise.
4468         * benchtests/bench-memset.c (do_test): Likewise.
4470         * benchtests/bench-memset-large.c: Print output in JSON
4471         format.
4472         * benchtests/bench-memset.c: Likewise.
4474 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
4476         [BZ #21084]
4477         * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
4478         * iconvdata/Makefile: Add IBM858.
4479         * iconvdata/gconv-modules: Likewise.
4480         * iconvdata/tst-tables.sh: Likewise.
4481         * iconvdata/ibm858.c: New file.
4482         * localedata/charmaps/IBM858: Likewise.
4484 2017-09-14  Akhilesh Kumar  <akhilesh.k@samsung.com>
4486         [BZ #22023]
4487         * locales/niu_NZ (LC_TIME): copy "niu_NU".
4488         * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
4490 2017-09-14  Mike FABIAN  <mfabian@redhat.com>
4492         [BZ #22112]
4493         * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
4494         and add tel_int_fmt.
4496 2017-09-14  Joseph Myers  <joseph@codesourcery.com>
4498         * sysdeps/generic/libm-alias-float128.h: New file.
4499         * sysdeps/generic/math-type-macros-float128.h: Include
4500         <libm-alias-float128.h>.
4501         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
4503 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
4505         * sysdeps/generic/libm-alias-ldouble.h: New file.
4506         * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
4507         * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
4508         * sysdeps/generic/math-type-macros-ldouble.h: Include
4509         <libm-alias-ldouble.h>.
4510         [!declare_mgen_alias] (declare_mgen_alias): Define to use
4511         libm_alias_ldouble.
4513 2017-09-13  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4515         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
4516         * math/w_exp_compat.c: ... here.
4517         * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
4518         * math/w_expf_compat.c: ... here.
4519         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
4520         * math/w_expl_compat.c: ... here.
4521         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
4522         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
4523         * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
4524         * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
4526 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
4528         * math/w_scalbln_template.c (strong_alias): Do not undefine and
4529         redefine.
4530         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
4531         macro.
4532         (ldexpl): Only define as compat symbol for libc, not libm.
4533         (scalbnl): Define as compat symbol for libc here.
4534         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
4535         define for [IS_IN (libc)].
4536         (__ldexpl_2): Remove alias.
4537         (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
4538         (scalbnl): Likewise.  Use __wrap_scalbnl not __ldexpl_2 as base
4539         name in long_double_symbol call.
4540         * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
4541         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
4542         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
4543         * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
4544         * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
4545         Remove macro.
4546         [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
4547         Define as compat symbol.
4549 2017-09-13  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4551         * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
4552         * sysdeps/unix/sysv/linux/alpha/Makefile
4553         [$(subdir) = csu] (sysdep_routines): Remove rule.
4555 2017-09-13  Joseph Myers  <joseph@codesourcery.com>
4557         * sysdeps/generic/libm-alias-double.h: New file.
4558         * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
4559         * sysdeps/generic/math-type-macros-double.h: Include
4560         <libm-alias-double.h>.
4561         [declare_mgen_alias] (declare_mgen_alias): Define to use
4562         libm_alias_double.
4563         * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
4564         (M_LIBM_NEED_COMPAT): Remove macro.
4565         [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
4566         * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
4567         * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
4568         code.
4569         * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4570         * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4571         * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4572         * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4573         * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4574         * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4575         * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4576         * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4577         * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4578         * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4579         * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4580         * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4581         * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4582         * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4583         * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4584         * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4585         * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4586         * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4587         * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4588         * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4589         * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4590         * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4591         * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4592         * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4593         * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4594         * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4595         * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
4596         * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
4597         * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
4598         macro.
4599         (declare_mgen_alias): New macro.
4600         * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
4601         * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
4602         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
4603         (M_LIBM_NEED_COMPAT): Remove macro.
4604         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
4605         [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
4606         <first-versions.h>.
4607         [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
4608         FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
4610 2017-09-12  Joseph Myers  <joseph@codesourcery.com>
4612         * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
4613         (declare_mgen_alias_2): Remove.
4614         * sysdeps/generic/math-type-macros-double.h
4615         [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
4616         Likewise.
4617         * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
4618         alias.
4619         (ldexp): Define with declare_mgen_alias.
4620         (scalbn): Likewise.
4622 2017-09-12  Steve Ellcey  <sellcey@cavium.com>
4624         * grp/initgroups.c: Include config.h.
4625         (DEFAULT_CONFIG): New macro.
4626         (internal_getgrouplist): Use DEFAULT_CONFIG.
4627         * nscd/initgrcache.c (addinitgroupsX): Likewise.
4628         * nss/nsswitch.c (__nss_disable_nscd): Likewise.
4629         (DEFAULT_DEFCONFIG): New macro.
4630         (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
4631         * nss/grp-lookup.c: Include config.h
4632         (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
4633         * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
4634         * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
4635         * manual/nss.texi: Update default values section.
4637 2017-09-12  H.J. Lu  <hongjiu.lu@intel.com>
4639         [BZ #21967]
4640         * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
4641         New.
4642         (index_arch_MathVec_Prefer_No_AVX512): Likewise.
4643         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
4644         Handle MathVec_Prefer_No_AVX512.
4645         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
4646         (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
4647         is set.
4649 2017-09-12  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4651         * posix/sched_primax.c (__sched_get_priority_max): Add
4652         libc_hidden_def.
4653         * posix/sched_primin.c (__sched_get_priority_min): Likewise.
4654         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
4655         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
4656         * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
4657         * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
4658         * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
4659         __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
4660         __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
4661         Add aliases.
4663 2017-09-11  Joseph Myers  <joseph@codesourcery.com>
4665         * sysdeps/generic/libm-alias-float.h: New file.
4666         * sysdeps/generic/math-type-macros-float.h: Include
4667         <libm-alias-float.h>.
4668         [!declare_mgen_alias] (declare_mgen_alias): Define macro.
4670 2017-09-11  H.J. Lu  <hongjiu.lu@intel.com>
4672         [BZ #22093]
4673         * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
4674         GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
4675         * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
4676         (HWCAP_IMPORTANT): Likewise.
4677         (HWCAP_X86_64): New enum.
4678         (HWCAP_X86_AVX512_1): Updated.
4679         * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
4680         * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
4681         (modules-names): Add x86_64/tst-x86_64mod-1.
4682         (LDFLAGS-tst-x86_64mod-1.so): New.
4683         ($(objpfx)tst-x86_64-1): Likewise.
4684         ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
4685         (tst-x86_64-1-clean): Likewise.
4686         * sysdeps/x86_64/tst-x86_64-1.c: New file.
4687         * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
4689 2017-09-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
4691         * po/sv.po: Update translations.
4692         * po/fr.po: Likewise.
4694 2017-09-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4696         * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
4697         seconds.
4698         * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
4699         seconds.
4700         * elf/rtld-Rules: Fix $(error) use.
4702 2017-09-09  Mike FABIAN  <mfabian@redhat.com>
4704         [BZ #14925]
4705         * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
4706         * locale/iso-639.def: Change “Bengali” to “Bangla”.
4707         * localedata/locales/bn_BD: “Bengali” was still used in some
4708         comments. Change it to “Bangla”.
4710 2017-09-08  Markus Trippelsdorf  <markus@trippelsdorf.de>
4712         * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
4714 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
4716         * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
4717         thunderx2t99p1 to list of cpu names.
4718         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
4719         Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
4721 2017-09-08  Steve Ellcey  <sellcey@cavium.com>
4723         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
4724         Use strcmp instead of tunable_is_name.
4726 2017-09-08  Joseph Myers  <joseph@codesourcery.com>
4728         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
4729         (F_GET_RW_HINT): New macro.
4730         [__USE_GNU] (F_SET_RW_HINT): Likewise.
4731         [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
4732         [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
4733         [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
4734         [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
4735         [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
4736         [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
4737         [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
4738         [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
4740         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
4741         (F_ADD_SEALS): New macro.
4742         [__USE_GNU] (F_GET_SEALS): Likewise.
4743         [__USE_GNU] (F_SEAL_SEAL): Likewise.
4744         [__USE_GNU] (F_SEAL_SHRINK): Likewise.
4745         [__USE_GNU] (F_SEAL_GROW): Likewise.
4746         [__USE_GNU] (F_SEAL_WRITE): Likewise.
4748 2017-09-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4750         * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
4751         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
4752         * posix/glob_internal.h (__glob_pattern_type):
4753         * posix/glob.c (glob):
4754         * posix/glob_pattern_p.c (__glob_pattern_p):
4755         Use them.
4757         * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
4758         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
4759         * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
4760         * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
4761         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
4762         * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
4763         * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
4764         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
4765         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
4766         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
4767         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
4768         * sysdeps/wordsize-64/glob.c: Likewise.
4769         * sysdeps/wordsize-64/glob64.c: Likewise.
4770         * sysdeps/wordsize-64/globfree.c: Likewise.
4771         * sysdeps/wordsize-64/globfree64.c: Likewise.
4772         * sysdeps/unix/sysv/linux/glob.c: New file.
4773         * sysdeps/unix/sysv/linux/glob64.c: Likewise.
4774         * sysdeps/unix/sysv/linux/globfree.c: Likewise.
4775         * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
4776         * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
4777         * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
4778         adds !GLOB_NO_OLD_VERSION as an extra condition.
4779         * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
4780         using relative path instead of absolute one.
4781         * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
4782         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
4783         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
4784         * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
4785         * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
4786         * sysdeps/unix/sysv/linux//olddirent.h: ... here.
4788         [BZ #1062]
4789         * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
4790         (glob): Use the same scratch buffer for both getlogin_r and
4791         getpwnam_r.  Don’t require preallocation of the login name.  This
4792         simplifies storage allocation, and corrects the handling of
4793         long login names.
4795         [BZ #1062]
4796         * posix/glob.c (glob): Port recent patches to platforms
4797         lacking getpwnam_r.
4798         (glob): Fix longstanding misuse of errno after getpwnam_r, which
4799         returns an error number rather than setting errno.
4801         * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
4802         instead of GCC extension.
4803         * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
4804         * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
4805         * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
4807         [BZ #866]
4808         [BZ #1062]
4809         * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
4810         * posix/bug-glob1.c: Remove file.
4811         * posix/tst-glob_symlinks.c: New file.
4812         * posix/glob.c (__lstat64): New macro.
4813         (is_dir): New function.
4814         (glob, glob_in_dir): Match symlinks even if they are dangling.
4815         (link_stat, link_exists_p): Remove.  All uses removed.
4817         [BZ #1062]
4818         [BZ #19971]
4819         * posix/glob.c (struct readdir_result): Remove skip_entry member.
4820         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
4821         All uses removed.
4823         [BZ #1062]
4824         CVE-2017-15671
4825         * posix/Makefile (routines): Add globfree, globfree64, and
4826         glob_pattern_p.
4827         * posix/flexmember.h: New file.
4828         * posix/glob_internal.h: Likewise.
4829         * posix/glob_pattern_p.c: Likewise.
4830         * posix/globfree.c: Likewise.
4831         * posix/globfree64.c: Likewise.
4832         * sysdeps/gnu/globfree64.c: Likewise.
4833         * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
4834         * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
4835         * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
4836         * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
4837         * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
4838         * sysdeps/wordsize-64/globfree.c: Likewise.
4839         * sysdeps/wordsize-64/globfree64.c: Likewise.
4840         * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
4841         [NDEBUG): Remove comments.
4842         (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
4843         (dirent_type): New type.  Use uint_fast8_t not
4844         uint8_t, as C99 does not require uint8_t.
4845         (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
4846         (struct readdir_result): Use dirent_type.  Do not define skip_entry
4847         unless it is needed; this saves a byte on platforms lacking d_ino.
4848         (readdir_result_type, readdir_result_skip_entry):
4849         New functions, replacing ...
4850         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
4851          these functions, which were removed.  This makes the callers
4852         easier to read.  All callers changed.
4853         (D_INO_TO_RESULT): Now empty if there is no d_ino.
4854         (size_add_wrapv, glob_use_alloca): New static functions.
4855         (glob, glob_in_dir): Check for size_t overflow in several places,
4856         and fix some size_t checks that were not quite right.
4857         Remove old code using SHELL since Bash no longer
4858         uses this.
4859         (glob, prefix_array): Separate MS code better.
4860         (glob_in_dir): Remove old Amiga and VMS code.
4861         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
4862         separate files.
4863         (glob_in_dir): Do not rely on undefined behavior in accessing
4864         struct members beyond their bounds.  Use a flexible array member
4865         instead
4866         (link_stat): Rename from link_exists2_p and return -1/0 instead of
4867         0/1.  Caller changed.
4868         (glob): Fix memory leaks.
4869         * posix/glob64 (globfree64): Move to separate file.
4870         * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
4871         (globfree64): Remove hidden alias.
4872         * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
4873         oldglob.
4874         * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
4875         separate file.
4876         * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
4877         define.
4878         Move compat code to separate file.
4879         * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
4880         separate file.
4882 2017-09-07  H.J. Lu  <hongjiu.lu@intel.com>
4884         * resolv/tst-resolv-qtypes.c (domain): Changed to
4885         "const char domain[] =".
4887 2017-09-07  Joseph Myers  <joseph@codesourcery.com>
4889         * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
4890         version to 3.1.6.
4892         * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
4893         (TCP_MD5SIG_EXT): Likewise.
4894         (TCP_MD5SIG_FLAG_PREFIX): Likewise.
4895         (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
4896         tcpm_prefixlen.  Rename __tcpm_pad2 to __tcpm_pad.
4898         * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
4900 2017-09-07  Mike FABIAN  <mfabian@redhat.com>
4902         * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
4904 2017-09-07  Akhilesh Kumar  <akhilesh.k@samsung.com>
4906         [BZ #22100]
4907         * localedata/locales/om_KE (LC_TIME): copy "om_ET".
4909 2017-09-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4911         * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
4912         before assuming that the file is empty.  Avoid testing buffer content
4913         when nread == 0.
4915 2017-09-06  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
4917         [BZ #18858]
4918         * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
4919         Remove define.
4920         * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
4921         Likewise.
4922         * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
4923         Likewise.
4924         * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
4925         Likewise.
4926         * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
4927         Likewise.
4928         * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
4929         Likewise.
4930         * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
4931         Likewise.
4933 2017-09-06  Florian Weimer  <fweimer@redhat.com>
4935         * malloc/dynarray_emplace_enlarge.c
4936         (__libc_dynarray_emplace_enlarge): Add missing else.
4938 2017-09-06  Florian Weimer  <fweimer@redhat.com>
4940         [BZ #22096]
4941         * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
4942         case of failure to obtain the global conf object.
4944 2017-09-06  Florian Weimer  <fweimer@redhat.com>
4946         [BZ #22095]
4947         * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
4948         dynarray allocation failure.
4950 2017-09-06  Florian Weimer  <fweimer@redhat.com>
4952         Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
4953         * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
4954         * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
4955         New functions.
4956         (response): Call them.  Add 'p', '6' flag processing.
4957         (test_reverse): New function.
4958         (test_get2_any): Call it.
4959         (test_no_inet6): Add 'p' test.
4960         (test_inet6): Likewise.
4962 2017-09-06  Florian Weimer  <fweimer@redhat.com>
4964         Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
4965         * resolv/tst-res_use_inet6.c (response): Process flags embedded in
4966         the QNAME.
4967         (test_gai): Adjust query names.  Add additional tests.
4968         (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
4969         test_get2.  Adjust query names.  Add additional tests.
4970         (test_no_inet6): New function, extracted from threadfunc.
4971         (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
4972         Add additional tests.
4974 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
4976         [BZ #22070]
4977         * localedata/unicode-gen/utf8_gen.py: Set the width for
4978         characters with Prepended_Concatenation_Mark property to 1
4979         * localedata/charmaps/UTF-8: Updated using the improved script.
4981 2017-09-06  Mike FABIAN  <mfabian@redhat.com>
4983         [BZ #21750]
4984         * localedata/unicode-gen/utf8_gen.py: Improve the script to
4985         use the range notation for all ranges of neighbouring characters
4986         with the same width.
4988 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
4990         * sysdeps/generic/math-type-macros-double.h: Include
4991         <math-svid-compat.h>.
4992         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
4993         * sysdeps/generic/math-type-macros-float.h: Include
4994         <math-svid-compat.h>.
4995         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
4996         * sysdeps/generic/math-type-macros-ldouble.h: Include
4997         <math-svid-compat.h>.
4998         (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
4999         * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
5000         condition.
5001         * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
5002         * math/w_acosf_compat.c: Likewise.
5003         * math/w_acosh_compat.c: Likewise.
5004         * math/w_acoshf_compat.c: Likewise.
5005         * math/w_acoshl_compat.c: Likewise.
5006         * math/w_acosl_compat.c: Likewise.
5007         * math/w_asin_compat.c: Likewise.
5008         * math/w_asinf_compat.c: Likewise.
5009         * math/w_asinl_compat.c: Likewise.
5010         * math/w_atan2_compat.c: Likewise.
5011         * math/w_atan2f_compat.c: Likewise.
5012         * math/w_atan2l_compat.c: Likewise.
5013         * math/w_atanh_compat.c: Likewise.
5014         * math/w_atanhf_compat.c: Likewise.
5015         * math/w_atanhl_compat.c: Likewise.
5016         * math/w_cosh_compat.c: Likewise.
5017         * math/w_coshf_compat.c: Likewise.
5018         * math/w_coshl_compat.c: Likewise.
5019         * math/w_exp10_compat.c: Likewise.
5020         * math/w_exp10f_compat.c: Likewise.
5021         * math/w_exp10l_compat.c: Likewise.
5022         * math/w_exp2_compat.c: Likewise.
5023         * math/w_exp2f_compat.c: Likewise.
5024         * math/w_exp2l_compat.c: Likewise.
5025         * math/w_fmod_compat.c: Likewise.
5026         * math/w_fmodf_compat.c: Likewise.
5027         * math/w_fmodl_compat.c: Likewise.
5028         * math/w_hypot_compat.c: Likewise.
5029         * math/w_hypotf_compat.c: Likewise.
5030         * math/w_hypotl_compat.c: Likewise.
5031         * math/w_j0_compat.c: Likewise.
5032         * math/w_j0f_compat.c: Likewise.
5033         * math/w_j0l_compat.c: Likewise.
5034         * math/w_j1_compat.c: Likewise.
5035         * math/w_j1f_compat.c: Likewise.
5036         * math/w_j1l_compat.c: Likewise.
5037         * math/w_jn_compat.c: Likewise.
5038         * math/w_jnf_compat.c: Likewise.
5039         * math/w_jnl_compat.c: Likewise.
5040         * math/w_lgamma_r_compat.c: Likewise.
5041         * math/w_lgammaf_r_compat.c: Likewise.
5042         * math/w_lgammal_r_compat.c: Likewise.
5043         * math/w_log10_compat.c: Likewise.
5044         * math/w_log10f_compat.c: Likewise.
5045         * math/w_log10l_compat.c: Likewise.
5046         * math/w_log2_compat.c: Likewise.
5047         * math/w_log2f_compat.c: Likewise.
5048         * math/w_log2l_compat.c: Likewise.
5049         * math/w_log_compat.c: Likewise.
5050         * math/w_logf_compat.c: Likewise.
5051         * math/w_logl_compat.c: Likewise.
5052         * math/w_pow_compat.c: Likewise.
5053         * math/w_powf_compat.c: Likewise.
5054         * math/w_powl_compat.c: Likewise.
5055         * math/w_remainder_compat.c: Likewise.
5056         * math/w_remainderf_compat.c: Likewise.
5057         * math/w_remainderl_compat.c: Likewise.
5058         * math/w_sinh_compat.c: Likewise.
5059         * math/w_sinhf_compat.c: Likewise.
5060         * math/w_sinhl_compat.c: Likewise.
5061         * math/w_sqrt_compat.c: Likewise.
5062         * math/w_sqrtf_compat.c: Likewise.
5063         * math/w_sqrtl_compat.c: Likewise.
5064         * math/w_tgamma_compat.c: Likewise.
5065         * math/w_tgammaf_compat.c: Likewise.
5066         * math/w_tgammal_compat.c: Likewise.
5067         * math/w_scalb_compat.c (sysv_scalb): Condition definition on
5068         [LIBM_SVID_COMPAT].
5069         (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
5070         * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
5071         [LIBM_SVID_COMPAT].
5072         (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
5073         * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
5074         [LIBM_SVID_COMPAT].
5075         (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
5076         * sysdeps/i386/fpu/w_sqrt.c: New file.
5077         * sysdeps/ia64/fpu/w_acos.c: Likewise.
5078         * sysdeps/ia64/fpu/w_acosf.c: Likewise.
5079         * sysdeps/ia64/fpu/w_acosh.c: Likewise.
5080         * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
5081         * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
5082         * sysdeps/ia64/fpu/w_acosl.c: Likewise.
5083         * sysdeps/ia64/fpu/w_asin.c: Likewise.
5084         * sysdeps/ia64/fpu/w_asinf.c: Likewise.
5085         * sysdeps/ia64/fpu/w_asinl.c: Likewise.
5086         * sysdeps/ia64/fpu/w_atan2.c: Likewise.
5087         * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
5088         * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
5089         * sysdeps/ia64/fpu/w_atanh.c: Likewise.
5090         * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
5091         * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
5092         * sysdeps/ia64/fpu/w_cosh.c: Likewise.
5093         * sysdeps/ia64/fpu/w_coshf.c: Likewise.
5094         * sysdeps/ia64/fpu/w_coshl.c: Likewise.
5095         * sysdeps/ia64/fpu/w_exp.c: Likewise.
5096         * sysdeps/ia64/fpu/w_exp10.c: Likewise.
5097         * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
5098         * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
5099         * sysdeps/ia64/fpu/w_exp2.c: Likewise.
5100         * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
5101         * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
5102         * sysdeps/ia64/fpu/w_expf.c: Likewise.
5103         * sysdeps/ia64/fpu/w_expl.c: Likewise.
5104         * sysdeps/ia64/fpu/w_fmod.c: Likewise.
5105         * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
5106         * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
5107         * sysdeps/ia64/fpu/w_hypot.c: Likewise.
5108         * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
5109         * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
5110         * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
5111         * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
5112         * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
5113         * sysdeps/ia64/fpu/w_log.c: Likewise.
5114         * sysdeps/ia64/fpu/w_log10.c: Likewise.
5115         * sysdeps/ia64/fpu/w_log10f.c: Likewise.
5116         * sysdeps/ia64/fpu/w_log10l.c: Likewise.
5117         * sysdeps/ia64/fpu/w_log2.c: Likewise.
5118         * sysdeps/ia64/fpu/w_log2f.c: Likewise.
5119         * sysdeps/ia64/fpu/w_log2l.c: Likewise.
5120         * sysdeps/ia64/fpu/w_logf.c: Likewise.
5121         * sysdeps/ia64/fpu/w_logl.c: Likewise.
5122         * sysdeps/ia64/fpu/w_pow.c: Likewise.
5123         * sysdeps/ia64/fpu/w_powf.c: Likewise.
5124         * sysdeps/ia64/fpu/w_powl.c: Likewise.
5125         * sysdeps/ia64/fpu/w_remainder.c: Likewise.
5126         * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
5127         * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
5128         * sysdeps/ia64/fpu/w_sinh.c: Likewise.
5129         * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
5130         * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
5131         * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
5132         * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
5133         * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
5134         * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
5135         * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
5136         * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
5137         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
5138         [LIBM_SVID_COMPAT].
5139         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
5140         * sysdeps/ieee754/k_standard.c: Likewise.
5141         * sysdeps/ieee754/k_standardf.c: Likewise.
5142         * sysdeps/ieee754/k_standardl.c: Likewise.
5143         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
5144         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
5145         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
5146         * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
5147         long_double_symbol call on [LIBM_SVID_COMPAT].
5148         * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
5149         * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
5150         * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
5151         * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
5152         * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
5153         * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
5154         * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
5155         * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
5156         * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
5157         * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
5158         * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
5159         * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
5160         * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
5161         * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
5162         * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
5163         * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
5164         * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
5165         * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
5166         * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
5167         * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
5168         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
5169         long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
5171 2017-09-05  Steve Ellcey  <sellcey@cavium.com>
5173         * include/shlib-compat.h (TEST_COMPAT): New Macro.
5174         * malloc/tst-mallocstate.c: Convert from test-skeleton
5175         to test-driver.  Ifdef code using TEST_COMPAT macro.
5176         * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
5177         * math/test-matherr.c: Likewise.
5179 2017-09-05  Joseph Myers  <joseph@codesourcery.com>
5181         [BZ #22086]
5182         * debug/pcprofiledump.c (main): Use byte-swapped mask when
5183         comparing word with byte-swapped constant.
5185 2017-09-05  Chris Leonard  <cjlhomeaddress@gmail.com>
5187         [BZ #20498]
5188         * locale/iso-639.def: add Miskito.
5189         * localedata/SUPPORTED: Add miq_NI/UTF-8.
5190         * localedata/locales/miq_NI: New file.
5192 2017-09-04  H.J. Lu  <hongjiu.lu@intel.com>
5194         [BZ #18822]
5195         * include/sys/stat.h (__chmod): Add libc_hidden_proto.
5196         (__mkdir): Likewise.
5197         * io/chmod.c (__chmod): Add libc_hidden_def.
5198         * io/mkdir.c (__mkdir): Likewise.
5199         * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
5200         * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
5201         * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
5202         * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
5204 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
5206         * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
5207         version to 4.13.
5209         [BZ #22082]
5210         * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
5211         (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
5213 2017-09-04  Florian Weimer  <fweimer@redhat.com>
5215         * math/math.h: Issue warning if log is defined.
5217 2017-09-04  Joseph Myers  <joseph@codesourcery.com>
5219         * scripts/build-many-glibcs.py (Context.checkout): Default Linux
5220         kernel version to 4.13.
5222 2017-09-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5224         * sysdeps/generic/sigsetops.h: Remove spurious #endif.
5225         (__sigismember, __sigaddset, __sigdelset): Fix referencing set
5226         parameter.
5227         * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
5228         just <bits/types.h>.
5229         * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
5230         * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
5231         * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
5232         * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
5233         * misc/preadv2.c: Include <errno.h>.
5234         * misc/preadv64v2.c: Include <errno.h>.
5235         * misc/pwritev2.c: Include <errno.h>.
5236         * misc/pwritev64v2.c: Include <errno.h>.
5237         * sysdeps/posix/preadv2.c: Include <errno.h>.
5238         * sysdeps/posix/preadv64v2.c: Include <errno.h>.
5239         Fix <unistd.h> inclusion.
5240         * sysdeps/posix/pwritev2.c: Include <errno.h>.
5241         * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
5242         * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
5243         __strtoul_internal): New functions.
5244         * sysdeps/posix/pause.c: Include <sigsetops.h>.
5245         * sysdeps/posix/system.c: Include <sigsetops.h>.
5246         * sysdeps/mach/hurd/i386/Makefile
5247         [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
5248         [$(subdir) = csu] (sysdep-only-routines): Likewise.
5249         [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
5250         * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
5251         __feraiseexcept_renamed to feraiseexcept instead of
5252         __GI_feraiseexcept.
5253         * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
5254         * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
5255         * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
5256         RWF_NOWAIT): Define to 0 if undefined already.
5257         (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
5258         boils down to 0.
5259         * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
5260         [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
5262 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
5264         * manual/math.texi (pow10): Do not document.
5265         (pow10f): Likewise.
5266         (pow10l): Likewise.
5267         * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
5268         * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
5269         * math/libm-test-exp10.inc (pow10_test): Remove.
5270         (do_test): Do not call pow10.
5271         * math/w_exp10_compat.c (pow10): Make into compat symbol.
5272         [NO_LONG_DOUBLE] (pow10l): Likewise.
5273         * math/w_exp10f_compat.c (pow10f): Likewise.
5274         * math/w_exp10l_compat.c (pow10l): Likewise.
5275         * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
5276         (pow10): Make into compat symbol.
5277         * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
5278         (pow10f): Make into compat symbol.
5279         * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
5280         (pow10l): Make into compat symbol.
5281         * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
5282         pow10.
5283         (CFLAGS-nldbl-pow10.c): Remove variable..
5284         * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
5285         * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
5286         [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
5287         * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
5288         Undefine and redefine.
5289         (pow10l): Make into compat symbol.
5290         * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
5291         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
5292         * sysdeps/arm/libm-test-ulps: Likewise.
5293         * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
5294         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
5295         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
5296         * sysdeps/microblaze/libm-test-ulps: Likewise.
5297         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
5298         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
5299         * sysdeps/nios2/libm-test-ulps: Likewise.
5300         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
5301         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
5302         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
5303         * sysdeps/sh/libm-test-ulps: Likewise.
5304         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
5305         * sysdeps/tile/libm-test-ulps: Likewise.
5306         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5308 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
5310         * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
5312 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
5314         * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
5315         "../ChangeLog.old/ChangeLog.8".
5316         * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
5317         "../ChangeLog.old/ChangeLog.14".
5319 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
5321         * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
5322         Threads Library.
5324 2017-09-01  Joseph Myers  <joseph@codesourcery.com>
5326         * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
5328 2017-09-01  H.J. Lu  <hongjiu.lu@intel.com>
5330         * csu/version.c (banner): Remove "by Roland McGrath et al.".
5331         * nptl/Banner: Remove "by Ulrich Drepper et al.".
5333 2017-09-01  Paul Pluzhnikov  <ppluzhnikov@google.com>
5335         * stdlib/tst-atexit-common.c (do_test): Test support for at least
5336         32 atexit handlers.
5338 2017-09-01  Zack Weinberg  <zackw@panix.com>
5340         * math/math.h (HUGE_VAL): Improve commentary.
5342 2017-09-01  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5343             Andreas Schwab  <schwab@suse.de>
5345         [BZ #21530]
5346         * include/stdio.h (__gen_tempfd): New function.
5347         * stdio-common/Makefile (routines): Add gentempfd.
5348         * stdio-common/gentempfd.c: New file.
5349         * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
5350         * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
5351         unnamed file first.
5353 2017-09-01  Florian Weimer  <fweimer@redhat.com>
5355         [BZ #21915]
5356         [BZ #21922]
5357         * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
5358         result to determine success or failure, not the errno value.
5359         * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
5360         (tst-nss-files-hosts-erange): Link with -ldl.
5361         * nss/tst-nss-files-hosts-erange.c: New file.
5362         * nss/tst-resolv-basic.c (response): Handle nodata.example.
5363         (do_test): Add NO_DATA tests.
5364         * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
5365         (do_test): Call it.
5367 2017-09-01  Florian Weimer  <fweimer@redhat.com>
5369         [BZ #21922]
5370         * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
5371         coming from gethostbyname2_r.
5373 2017-09-01  Florian Weimer  <fweimer@redhat.com>
5375         * support/namespace.h (struct support_chroot_configuration): Add
5376         hosts, host_conf.
5377         (struct support_chroot): Add path_hosts, path_host_conf.
5378         * support/support_chroot.c (write_file): New function.
5379         (support_chroot_create): Call it to process /etc/resolv.conf,
5380         /etc/hosts, /etc/host.conf.
5381         (support_chroot_free): Update.
5383 2017-09-01  Florian Weimer  <fweimer@redhat.com>
5385         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
5386         status indicates it is set.
5388 2017-09-01  Florian Weimer  <fweimer@redhat.com>
5390         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
5391         function lookup failures more reliable.
5393 2017-09-01  Florian Weimer  <fweimer@redhat.com>
5395         * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
5396         (getcanonname): Likewise.
5397         (gaih_inet): Likewise.
5399 2017-09-01  Florian Weimer  <fweimer@redhat.com>
5401         * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
5402         (getcanonname): Likewise.
5403         (gaih_inet): Likewise.
5405 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
5406             Richard Henderson <rth@twiddle.net>
5408         * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
5409         * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
5410         * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
5411         (IREG_SIZE, OREG_SIZE): New macros.
5412         * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
5413         (IREG_SIZE, OREG_SIZE): New macros.
5414         * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
5415         (IREG_SIZE): New macro.
5416         * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
5417         (IREG_SIZE): New macro.
5418         * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
5419         New includes.
5420         (IREG_SIZE, OREG_SIZE): Initialize if not already set.
5421         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
5422         (__CONCATX): Handle exceptions correctly on large values that may
5423         set FE_INVALID.
5424         * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
5425         Initialize if not already set.
5426         (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
5428 2017-08-31  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
5430         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
5431         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
5432         Likewise.
5433         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
5434         Likewise.
5435         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
5436         Likewise.
5437         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
5438         Likewise.
5439         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
5440         Likewise.
5441         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
5442         Likewise.
5443         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
5444         Likewise.
5445         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
5446         (NO_CANCELLATION): Likewise.
5447         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
5448         Likewise.
5449         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
5450         Likewise.
5451         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
5452         Likewise.
5453         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
5454         (NO_CANCELLATION): Likewise.
5455         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
5456         (NO_CANCELLATION): Likewise.
5457         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
5458         Likewise
5459         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
5460         Likewise.
5461         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
5462         Likewise.
5463         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
5464         Likewise.
5465         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
5466         hidden prototype.
5467         * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
5468         for !IS_IN (rtld) and remove NO_CANCELLATION usage.
5470 2017-08-31  Steve Ellcey  <sellcey@cavium.com>
5472         * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
5473         in resolver call.
5475 2017-08-31  Florian Weimer  <fweimer@redhat.com>
5477         * include/libc-symbols.h (internal_function): Remove.
5479 2017-08-31  Florian Weimer  <fweimer@redhat.com>
5481         * stdlib/fmtmsg.c (internal_addseverity): Remove
5482         internal_function.
5484 2017-08-31  Florian Weimer  <fweimer@redhat.com>
5486         * stdio-common/printf_fp.c (group_number): Remove
5487         internal_function.
5488         * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
5490 2017-08-31  Florian Weimer  <fweimer@redhat.com>
5492         * posix/fnmatch.c (internal_function): Remove definition.
5493         * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
5494         * posix/regcomp.c (peek_token, init_word_char)
5495         (duplicate_node_closure, fetch_token, peek_token)
5496         (peek_token_bracket, build_range_exp, build_collating_symbol):
5497         Likewise.
5498         * posix/regex_internal.c (re_string_construct_common)
5499         (create_ci_newstate, create_cd_newstate, re_string_allocate)
5500         (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
5501         (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
5502         (re_string_translate_buffer, re_string_reconstruct)
5503         (re_string_peek_byte_case, re_string_fetch_byte_case)
5504         (re_string_destruct, re_string_context_at, re_node_set_alloc)
5505         (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
5506         (re_node_set_add_intersect, re_node_set_init_union)
5507         (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
5508         (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
5509         (re_dfa_add_node, calc_state_hash, re_acquire_state)
5510         (re_acquire_state_context): Likewise.
5511         * posix/regex_internal.h (internal_function): Remove definition.
5512         (re_string_realloc_buffers, build_wcs_buffer)
5513         (build_wcs_upper_buffer, build_upper_buffer)
5514         (re_string_translate_buffer, re_string_context_at)
5515         (re_string_char_size_at, re_string_wchar_at)
5516         (re_string_elem_size_at): Likewise.
5517         * posix/regexec.c (match_ctx_init, match_ctx_clean)
5518         (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
5519         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
5520         (re_search_internal, re_search_2_stub, re_search_stub)
5521         (re_copy_regs, prune_impossible_nodes, check_matching)
5522         (check_halt_state_context, update_regs, push_fail_stack, set_regs)
5523         (free_fail_stack_return, sift_states_iter_mb)
5524         (sift_states_backward, build_sifted_states)
5525         (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
5526         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
5527         (check_subexp_limits, sift_states_bkref, merge_state_array)
5528         (find_recover_state, transit_state, merge_state_with_log)
5529         (check_subexp_matching_top, transit_state_sb, transit_state_sb)
5530         (transit_state_mb, transit_state_bkref, get_subexp)
5531         (get_subexp_sub, find_subexp_node, check_arrival)
5532         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
5533         (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
5534         (check_node_accept_bytes, find_collation_sequence_value)
5535         (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
5536         (acquire_init_state_context, check_halt_node_context)
5537         (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
5538         (sub_epsilon_src_nodes): Likewise.
5539         * posix/spawn_int.h (__spawn_valid_fd): Likewise.
5540         * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
5541         * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
5542         (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
5543         (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
5544         (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
5545         (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
5546         * sysdeps/posix/ttyname.c (getttyname): Likewise.
5547         * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
5548         * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
5549         (PREADV): Likewise.
5550         * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
5551         (PREADV): Likewise.
5552         * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
5553         (PWRITEV): Likewise.
5554         * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
5555         (PWRITEV): Likewise.
5556         * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
5557         * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
5559 2017-08-31  Florian Weimer  <fweimer@redhat.com>
5561         * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
5562         (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
5563         Remove internal_function.
5564         * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
5565         * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
5566         * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
5567         (__deallocate_stack, __libc_pthread_init)
5568         (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
5569         (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
5570         (__libc_disable_asynccancel, __librt_disable_asynccancel):
5571         Likewise.
5572         * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
5573         * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
5574         * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
5575         Likewise.
5576         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
5577         (__pthread_mutex_unlock_usercnt): Likewise.
5579 2017-08-31  Florian Weimer  <fweimer@redhat.com>
5581         * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
5582         (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
5583         (fts_safe_changedir): Remove internal_function.
5584         * io/ftw.c (internal_function): Remove definition.
5585         (ftw_dir, process_entry, ftw_startup): Remove internal_function.
5587 2017-08-31  Florian Weimer  <fweimer@redhat.com>
5589         * inet/deadline.c (__deadline_current_time)
5590         (__deadline_from_timeval, __deadline_to_ms): Remove
5591         internal_function.
5592         * inet/getnameinfo.c (nrl_domainname): Likewise.
5593         * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
5594         * inet/inet6_option.c (add_pad): Likewise.
5595         * inet/net-internal.h (__deadline_current_time)
5596         (__deadline_from_timeval, __deadline_to_ms): Likewise.
5597         * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
5598         * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
5599         * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
5601 2017-08-31  Joseph Myers  <joseph@codesourcery.com>
5603         *  math/math.h [__USE_ISOC99] (NAN): Define directly here.  Do not
5604         include <bits/nan.h>.
5605         * math/Makefile (headers): Remove bits/nan.h.
5606         * bits/nan.h: Remove.
5607         * sysdeps/ieee754/bits/nan.h: Likewise.
5608         * sysdeps/mips/bits/nan.h: Likewise.
5610         * math/math.h [__USE_ISOC99] (INFINITY): Define directly here.  Do
5611         not include <bits/inf.h>.
5612         * math/Makefile (headers): Remove bits/inf.h.
5613         * bits/inf.h: Remove.
5614         * sysdeps/ieee754/bits/inf.h: Likewise.
5616         * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
5617         bits/huge_vall.h or bits/huge_val_flt128.h.
5618         (HUGE_VAL): Define directly here.
5619         [__USE_ISOC99] (HUGE_VALF): Likewise.
5620         [__USE_ISOC99] (HUGE_VALL): Likewise.
5621         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
5622         (HUGE_VAL_F128): Likewise.
5623         * math/Makefile (headers): Remove bits/huge_val.h,
5624         bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
5625         * bits/huge_val.h: Remove.
5626         * bits/huge_val_flt128.h: Likewise.
5627         * bits/huge_valf.h: Likewise.
5628         * bits/huge_vall.h: Likewise.
5629         * sysdeps/ia64/bits/huge_vall.h: Likewise.
5630         * sysdeps/ieee754/bits/huge_val.h: Likewise.
5631         * sysdeps/ieee754/bits/huge_valf.h: Likewise.
5632         * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
5633         * sysdeps/sh/bits/huge_val.h: Likewise.
5634         * sysdeps/sparc/bits/huge_vall.h: Likewise.
5635         * sysdeps/x86/bits/huge_vall.h: Likewise.
5637 2017-08-31  Florian Weimer  <fweimer@redhat.com>
5639         * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
5640         internal_function.
5641         * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
5642         Likewise.
5643         * elf/dl-debug.c (_dl_debug_initialize): Likewise.
5644         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
5645         * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
5646         * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
5647         * elf/dl-fini.c (_dl_sort_fini): Likewise.
5648         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
5649         * elf/dl-libc.c (dlerror_run): Likewise.
5650         * elf/dl-load.c (add_name_to_object, decompose_rpath)
5651         (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
5652         * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
5653         (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
5654         Likewise.
5655         * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
5656         (_dl_higher_prime_number, _dl_strtoul): Likewise.
5657         * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
5658         * elf/dl-profile.c (_dl_start_profile): Likewise.
5659         * elf/dl-reloc.c (_dl_try_allocate_static_tls)
5660         (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
5661         Likewise.
5662         * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
5663         * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
5664         * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
5665         * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
5666         (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
5667         (_dl_allocate_tls_storage): Likewise.
5668         * elf/dl-version.c (match_symbol, _dl_check_map_versions)
5669         (_dl_check_all_versions): Likewise.
5670         * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
5671         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
5672         * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
5673         * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
5674         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
5675         * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
5676         * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
5677         internal_function from __dl_start.
5678         * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
5679         * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
5680         * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
5681         (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
5682         (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
5683         (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
5684         (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
5685         (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
5686         (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
5687         (_dl_next_ld_env_entry, _dl_important_hwcaps)
5688         (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
5689         (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
5690         (_dl_determine_tlsoffset, _dl_get_tls_static_info)
5691         (_dl_allocate_static_tls, _dl_allocate_tls_storage)
5692         (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
5693         Likewise.
5694         (struct rtld_global_ro): Remove internal_function from the
5695         _dl_lookup_symbol_x member.
5696         (_dl_symbol_value): Remove.  No longer defined anywhere.
5697         * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
5698         internal_function.
5699         * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
5700         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
5701         * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
5702         * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
5703         * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
5704         * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
5705         * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
5706         * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
5707         * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
5708         * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
5709         * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
5710         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
5712 2017-08-31  Florian Weimer  <fweimer@redhat.com>
5714         * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
5715         Remove internal_function.
5716         * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
5717         Likewise.
5718         * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
5719         Likewise.
5721 2017-08-31  Florian Weimer  <fweimer@redhat.com>
5723         * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
5724         * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
5725         * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
5727 2017-08-31  Florian Weimer  <fweimer@redhat.com>
5729         * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
5730         (__gai_enqueue_request): Remove internal_function.
5731         * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
5732         (__gai_remove_request, __gai_notify, __gai_notify_only)
5733         (__gai_sigqueue): Likewise.
5734         * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
5735         * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
5736         * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
5737         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
5738         Likewise.
5740 2017-08-31  Florian Weimer  <fweimer@redhat.com>
5742         * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
5743         * include/dirent.h (__opendirat, __getdents, __getdents64)
5744         (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
5745         * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
5746         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
5747         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
5748         Likewise.
5749         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
5751 2017-08-31  Florian Weimer  <fweimer@redhat.com>
5753         * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
5754         internal_function.
5755         (GETCWD_RETURN_TYPE): Likewise.
5757 2017-08-31  Florian Weimer  <fweimer@redhat.com>
5759         * include/time.h (__tz_compute, __strptime_internal): Remove
5760         internal_function.
5761         * time/strptime_l.c (__strptime_internal): Likewise.
5762         * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
5764 2017-08-31  Florian Weimer  <fweimer@redhat.com>
5766         * iconv/gconv.c (__gconv): Remove internal_function.
5767         * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
5768         * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
5769         (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
5770         (__gconv_release_cache): Likewise.
5771         * iconv/gconv_close.c (__gconv_close): Likewise.
5772         * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
5773         (read_conf_file, __gconv_get_path): Likewise.
5774         * iconv/gconv_db.c (derivation_lookup, add_derivation)
5775         (__gconv_release_step, gen_steps, increment_counter)
5776         (find_derivation, __gconv_compare_alias, __gconv_find_transform)
5777         (__gconv_close_transform, free_modules_db): Likewise.
5778         * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
5779         Likewise.
5780         * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
5781         (__gconv_find_transform, __gconv_lookup_cache)
5782         (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
5783         (__gconv_close_transform, __gconv_release_cache)
5784         (__gconv_loaded_object, __gconv_release_shlib)
5785         (__gconv_compare_alias): Likewise.
5786         * iconv/gconv_open.c (__gconv_open): Likewise.
5787         * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
5788         * iconv/iconvconfig.c (add_module): Likewise.
5789         * intl/dcigettext.c (plural_lookup, guess_category_value)
5790         (category_to_name, get_output_charset, _nl_find_msg): Likewise.
5791         * intl/eval-plural.h (plural_eval): Likewise.
5792         * intl/finddomain.c (_nl_find_domain): Likewise.
5793         * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
5794         (_nl_load_domain, _nl_find_msg): Likewise.
5795         (internal_function): Remove definition.
5796         * intl/loadinfo.h (internal_function): Likewise.
5797         * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
5798         internal_function.
5799         * intl/localealias.c (internal_function): Remove definition.
5800         (read_alias_file): Remove internal_function.
5801         * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
5802         * intl/plural-exp.h (internal_function): Remove definition.
5803         (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
5804         internal_function.
5805         * intl/plural.c: Regenerate.
5806         * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
5807         * locale/coll-lookup.c (__collidx_table_lookup)
5808         (__collseq_table_lookup): Likewise.
5809         * locale/coll-lookup.h (__collidx_table_lookup)
5810         (__collseq_table_lookup): Likewise.
5811         * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
5812         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
5813         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
5814         (_nl_unload_locale): Likewise.
5815         * locale/localeinfo.h (struct __locale_data): Remove
5816         internal_function from cleanup member.
5817         (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
5818         (_nl_remove_locale, _nl_load_locale_from_archive)
5819         (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
5820         (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
5821         (_nl_cleanup_time): Remove internal_function.
5822         * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
5823         (_nl_parse_alt_digit): Likewise.
5824         * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
5825         (_nl_select_era_entry): Likewise.
5826         * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
5827         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
5828         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
5829         * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
5830         (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
5832 2017-08-31  Florian Weimer  <fweimer@redhat.com>
5834         * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
5835         * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
5836         * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
5837         (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
5838         Likewise.
5839         * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
5840         (__aio_find_req, __aio_find_req_fd, __aio_free_request)
5841         (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
5842         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
5843         Likewise.
5844         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
5846 2017-08-31  Florian Weimer  <fweimer@redhat.com>
5848         * misc/getttyent.c (skip, value): Remove internal_function.
5849         * misc/syslog.c (openlog_internal): Likewise.
5850         * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
5852 2017-08-31  Florian Weimer  <fweimer@redhat.com>
5854         * include/nss.h (__nss_valid_field, __nss_valid_list_field)
5855         (__nss_rewrite_field): Remove internal_function.
5856         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
5857         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
5858         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
5859         * nss/nsswitch.c (nss_parse_file, nss_getline)
5860         (nss_parse_service_list, nss_new_service): Likewise.
5861         * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
5862         * nss/valid_field.c (__nss_valid_field): Likewise.
5863         * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
5865 2017-08-31  Florian Weimer  <fweimer@redhat.com>
5867         * malloc/arena.c (__malloc_fork_lock_parent)
5868         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
5869         (next_env_entry, new_heap, heap_trim, arena_get2): Remove
5870         internal_function from defintions.
5871         * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
5872         * malloc/malloc-internal.h (__malloc_fork_lock_parent)
5873         (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
5874         internal_function from declarations.
5875         * malloc/malloc.c (internal_function): Do not define.
5876         (mem2mem_check): Remove internal_function from declaration.
5877         (munmap_chunk, mremap_chunk): Remove internal_function.
5878         * malloc/mtrace.c (tr_where): Likewise.
5880 2017-08-31  Florian Weimer  <fweimer@redhat.com>
5882         * include/rpc/pmap_clnt.h (__get_socket): Remove
5883         internal_function.
5884         * sunrpc/auth_des.c (synchronize): Likewise.
5885         * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
5886         * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
5887         * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
5888         * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
5889         (key_call): Likewise.
5890         * sunrpc/pm_getport.c (__get_socket): Likewise.
5891         * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
5892         * sunrpc/svc_unix.c (makefd_xprt): Likewise.
5893         * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
5894         * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
5895         (invalidate): Likewise.
5896         * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
5897         * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
5898         (set_input_fragment, get_input_bytes): Likewise.
5900 2017-08-31  Florian Weimer  <fweimer@redhat.com>
5902         * malloc/malloc.c (_int_free): Remove locked variable and related
5903         asserts.
5905 2017-08-31  H.J. Lu  <hongjiu.lu@intel.com>
5907         [BZ #22051]
5908         * Makerules (build-module-helper-objlist): Filter out
5909         $(elf-objpfx)sofini.os.
5910         (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
5911         needed.
5913 2017-08-31  Florian Weimer  <fweimer@redhat.com>
5915         * libio/fcloseall.c: Assume weak_alias is defined.
5916         * libio/feof.c: Likewise.
5917         * libio/fileno.c: Likewise.
5918         * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
5919         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
5920         definitions.
5921         (_IO_file_open): Call __open directly.
5922         (_IO_new_file_sync): Assume ESPIPE is defined.
5923         (_IO_file_seekoff_maybe_mmap): Call __read directly.
5924         (_IO_new_file_write): Call __write directly.
5925         * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
5926         * libio/ftello64.c (__ftello64): Assume EIO is defined.
5927         * libio/genops.c: Assume _LIBC is defined.
5928         (save_for_backup): Remove internal_function.
5929         * libio/getc.c: Assume weak_alias is defined.
5930         * libio/getwc.c: Likewise.
5931         * libio/iofclose.c: Assume _LIBC is defined.
5932         * libio/iofdopen.c: Likewise.
5933         (_IO_fcntl): Remove macro definition.
5934         (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
5935         Call __fcntl directly.
5936         * libio/iofflush.c: Assume weak_alias is defined.
5937         * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
5938         defined.
5939         * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
5940         * libio/iofgets.c: Likewise.
5941         * libio/iofopen.c: Assume _LIBC is defined.
5942         * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
5943         * libio/iofputs.c: Assume weak_alias is defined.
5944         * libio/iofread.c: Likewise.
5945         * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
5946         * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
5947         * libio/ioftell.c: Assume weak_alias is defined.
5948         (_IO_ftell): Assume EIO, EOVERFLOW are defined.
5949         * libio/iofwide.c: Assume _LIBC is defined.
5950         (_IO_fwide): Drop SHARED conditional because it is implied by
5951         SHLIB_COMPAT.
5952         * libio/iofwrite.c: Assume weak_alias is defined.
5953         * libio/iogetdelim.c: Likewise.
5954         * libio/iogets.c: Assume _LIBC, weak_alias are defined.
5955         * libio/iogetwline.c (wmemcpy): Remove macro definition.
5956         (_IO_getwline): Call __wmemcpy directly.
5957         * libio/iopopen.c: Assume _LIBC is defined.
5958         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
5959         (_IO_close): Remove macro definitions.
5960         (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
5961         _exit directly.
5962         (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
5963         directly.
5964         * libio/ioputs.c: Assume weak_alias is defined.
5965         * libio/ioseekoff.c: Assume errno, __set_errno are defined.
5966         * libio/iosetbuffer.c: Assume weak_alias is defined.
5967         * libio/iosetvbuf.c: Likewise.
5968         * libio/ioungetc.c: Likewise.
5969         * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
5970         libc_hidden_def, libc_hidden_weak, NULL are defined.
5971         (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
5972         * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
5973         defined.
5974         (_POSIX_SOURCE, open, lseek, read, write): Remove macro
5975         definitions.
5976         (_IO_old_file_init_internal): Drop SHARED conditional because it
5977         is implied by SHLIB_COMPAT.
5978         (_IO_old_file_fopen): Call __open directly.
5979         (_IO_old_file_sync): Assume ESPIPE is defined.
5980         (_IO_old_file_write): Call __write directly.
5981         * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
5982         (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
5983         Call __fcntl directly.
5984         * libio/oldiofgetpos.c: Assume weak_alias is defined.
5985         (_IO_old_fgetpos): Assume EIO is defined.
5986         * libio/oldiofgetpos64.c: Assume weak_alias is defined.
5987         (_IO_old_fgetpos64): Assume EIO is defined.
5988         * libio/oldiofsetpos.c: Assume weak_alias is defined.
5989         (_IO_old_fsetpos): Assume EIO is defined.
5990         * libio/oldiofsetpos64.c: Assume weak_alias is defined.
5991         (_IO_old_fsetpos64): Assume EIO is defined.
5992         * libio/oldiopopen.c:  Assume _LIBC is defined.
5993         (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
5994         (_IO_close): Remove macro definitions.
5995         (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
5996         directly.
5997         (_IO_old_proc_close): Call __close, __waitpid directly.
5998         * libio/put.c: Assume weak_alias is defined.
5999         * libio/stdfiles.c: Assume _LIBC is defined.
6000         * libio/stdio.c: Likewise.
6001         * libio/wfileops.c: Likewise.
6002         (_IO_wfile_sync): Assume ESPIPE is defined.
6003         * libio/wgenops.c: Assume _LIBC is defined.
6004         (save_for_wbackup): Remove internal_function.
6006 2017-08-31  Florian Weimer  <fweimer@redhat.com>
6008         * malloc/malloc.c (top_check): Change return type to void.  Remove
6009         internal_function.
6010         * malloc/hooks.c (top_check): Likewise.
6011         (malloc_check, realloc_check, memalign_check): Adjust.
6013 2017-08-30  Joseph Myers  <joseph@codesourcery.com>
6015         [BZ #21457]
6016         * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
6017         * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
6018         sigcontext and namespace requirements.
6019         * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
6020         * sysdeps/m68k/sys/ucontext.h: Likewise.
6021         * sysdeps/mips/sys/ucontext.h: Likewise.  Include <bits/types.h>.
6022         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
6023         <bits/sigcontext.h>.
6024         (__ctx): Define earlier.
6025         (mcontext_t): Define structure contents rather than using struct
6026         sigcontext.
6027         * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
6028         __glibc_reserved1 instead of __reserved.
6029         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
6030         <bits/sigcontext.h>.
6031         (__ctx): Define earlier.
6032         (mcontext_t): Define structure contents rather than using struct
6033         sigcontext.
6034         * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
6035         mcontext_t instead of struct sigcontext.
6036         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
6037         <bits/sigcontext.h>.
6038         (__ctx): Define earlier.
6039         (mcontext_t): Define structure contents rather than using struct
6040         sigcontext.
6041         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
6042         <bits/sigcontext.h>.
6043         (__ctx): Define earlier.
6044         (mcontext_t): Define structure contents rather than using struct
6045         sigcontext.
6046         * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
6047         mcontext_t instead of struct sigcontext.
6048         * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
6049         mcontext_t instead of struct sigcontext.
6050         * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
6051         <bits/sigcontext.h>.
6052         (__ctx): New macro.
6053         (struct __ia64_fpreg_mcontext): New type.
6054         (mcontext_t): Define structure contents rather than using struct
6055         sigcontext.
6056         (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
6057         (uc_sigmask): Define using __ctx.
6058         (uc_stack): Likewise.
6059         * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
6060         <bits/sigcontext.h>.
6061         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
6062         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
6063         <bits/sigcontext.h>.
6064         * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
6065         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
6066         <bits/sigcontext.h>.
6067         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
6068         <bits/sigcontext.h>.
6069         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
6070         <bits/sigcontext.h>.
6071         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
6072         <bits/sigcontext.h>.
6073         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
6074         <bits/sigcontext.h>.
6075         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
6076         <bits/sigcontext.h>.
6077         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
6078         <bits/sigcontext.h>.
6079         (__ctx): Define earlier.
6080         (mcontext_t): Define structure contents rather than using struct
6081         sigcontext.
6082         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
6083         <bits/sigcontext.h>.  Include <bits/types.h>.
6084         * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
6085         (test-xfail-XPG42/sys/wait.h/conform): Likewise.
6086         (test-xfail-XPG42/ucontext.h/conform): Likewise.
6087         (test-xfail-UNIX98/signal.h/conform): Likewise.
6088         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
6089         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
6090         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
6091         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
6092         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
6093         (test-xfail-POSIX2008/signal.h/conform): Likewise.
6094         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
6095         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
6096         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
6098 2017-08-30  Florian Weimer  <fweimer@redhat.com>
6100         * malloc/dynarray_emplace_enlarge.c
6101         (__libc_dynarray_emplace_enlarge): Set errno on overflow.
6102         * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
6103         * malloc/tst-dynarray.c (test_long_overflow): New function.
6104         (do_test): Call it.
6106 2017-08-30  Florian Weimer  <fweimer@redhat.com>
6108         * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
6109         (set_arena_corrupt): Remove definitions.
6110         (mtrim): Do not check for corrupt arena.
6111         * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
6112         Likewise.
6114 2017-08-30  Florian Weimer  <fweimer@redhat.com>
6116         [BZ #21754]
6117         * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
6118         check_action.
6119         (ptmalloc_init): Do not set or use check_action.
6120         * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
6121         call to malloc_printerr.  Remove return statement.
6122         (free_check): Likewise.  Remove arena unlock.
6123         (top_check): Update comment.  Adjust call to malloc_printerr.
6124         Remove heap repair code.
6125         * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
6126         (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
6127         (sysmalloc): Adjust call to malloc_printerr.
6128         (munmap_chunk, __libc_realloc): Likewise.  Remove return
6129         statement.
6130         (_int_malloc, int_realloc): Likewise.  Remove errstr variable.
6131         Remove errout label and corresponding gotos.
6132         (_int_free): Likewise.  Remove arena unlock.
6133         (do_set_mallopt_check): Do not set check_action.
6134         (malloc_printerr): Adjust parameter list.  Do not mark arena as
6135         corrupt.
6136         * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
6137         comment.
6138         * manual/probes.texi (Memory Allocation Probes): Remove
6139         memory_mallopt_check_action.
6141 2017-08-30  Steve Ellcey  <sellcey@cavium.com>
6143         * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
6144         Use pointer to uint64_t instead of long int for sp.
6146 2017-08-30  Florian Weimer  <fweimer@redhat.com>
6148         [BZ #21754]
6149         * malloc/malloc.c (malloc_printerr): Always terminate the process,
6150         without printing a backtrace.  Do not leak any information in the
6151         error message.
6152         * manual/memory.texi (Heap Consistency Checking): Update.
6153         * manual/tunables.texi (Memory Allocation Tunables): Likewise.
6155 2017-08-30  Florian Weimer  <fweimer@redhat.com>
6157         Do not scale NPTL tests with available number of CPUs.
6158         * nptl/tst-cond16.c (count): Set to constant value of 8.
6159         * nptl/tst-cond18.c (count): Likewise.
6161 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
6163         [BZ #22035]
6164         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
6165         Define to take a second argument that is a macro that
6166         concatentates a suffix, not the suffix itself.
6167         (__CONCAT_d): New macro.
6168         (__CONCAT_f): Likewise.
6169         (__CONCAT_l): Likewise.
6171 2017-08-29  Paul Pluzhnikov  <ppluzhnikov@google.com>
6173         * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
6174         by child.
6176 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6177             Aurelien Jarno  <aurelien@aurel32.net>
6178             Maciej W. Rozycki  <macro@imgtec.com>
6180         [BZ #21956]
6181         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
6182         [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
6183         `mips16-syscall6' and `mips16-syscall7'.
6184         (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
6185         (CFLAGS-mips16-syscall7.c): Remove.
6186         * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
6187         Remove `__mips16_syscall5', `__mips16_syscall6' and
6188         `__mips16_syscall7'.
6189         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
6190         (__mips16_syscall0): Rename `__mips16_syscall_return' to
6191         `__mips_syscall_return'.
6192         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
6193         (__mips16_syscall1): Likewise.
6194         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
6195         (__mips16_syscall2): Likewise.
6196         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
6197         (__mips16_syscall3): Likewise.
6198         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
6199         (__mips16_syscall4): Likewise.
6200         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
6201         Remove.
6202         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
6203         Remove.
6204         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
6205         Remove.
6206         * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
6207         (__mips16_syscall5): Expand to `__mips_syscall5' rather than
6208         `__mips16_syscall5'.  Remove prototype.
6209         (__mips16_syscall6): Expand to `__mips_syscall6' rather than
6210         `__mips16_syscall6'.  Remove prototype.
6211         (__mips16_syscall7): Expand to `__mips_syscall7' rather than
6212         `__mips16_syscall7'.  Remove prototype.
6213         (__nomips16, __mips16_syscall_return): Move to...
6214         * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
6215         (__nomips16, __mips_syscall_return): ... here.
6216         [__mips16] (INTERNAL_SYSCALL_NCS): Rename
6217         `__mips16_syscall_return' to `__mips_syscall_return'.
6218         [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
6219         `internal_syscall##nr'.
6220         [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
6221         `internal_syscall##nr'.
6222         (FORCE_FRAME_POINTER): Remove.
6223         (__mips_syscall5): New prototype.
6224         (internal_syscall5): Rewrite to call `__mips_syscall5'.
6225         (__mips_syscall6): New prototype.
6226         (internal_syscall6): Rewrite to call `__mips_syscall6'.
6227         (__mips_syscall7): New prototype.
6228         (internal_syscall7): Rewrite to call `__mips_syscall7'.
6229         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
6230         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
6231         * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
6232         * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
6233         (sysdep_routines): Add libc-do-syscall.
6234         * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
6235         `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
6237 2017-08-29  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6239         [BZ #21672]
6240         * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
6241         Set to use !NEED_SEPARATE_REGISTER_STACK as well.
6242         (advise_stack_range): New function.
6243         * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
6244         stack non required to advise_stack_range at allocatestack.c
6246 2017-08-29  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6248         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
6250 2017-08-29  Florian Weimer  <fweimer@redhat.com>
6252         [BZ #22026]
6253         * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
6254         __end_fct.  Mangle __end_fct after setting it to NULL.
6255         * iconv/Makefile (tests): Add tst-gconv-init-failure.
6256         (modules-names, modules-names-tests): Add
6257         tst-gconv-init-failure-mod.
6258         (gconv-modules): New target.
6259         (tst-gconv-init-failure-mod.so): Link against libsupport.
6260         (tst-gconv-init-failure): Depend on gconv-modules,
6261         tst-gconv-init-failure-mod.so.
6262         * iconv/tst-gconv-init-failure-mod.c: New file.
6263         * iconv/tst-gconv-init-failure.c: Likewise.
6264         * iconv/test-gconv-modules: Likewise.
6266 2017-08-29  Florian Weimer  <fweimer@redhat.com>
6268         [BZ #22025]
6269         * iconv/gconv_db.c (free_derivation): Remove redundant
6270         parentheses.
6271         (gen_steps): Unconditionally mangle __btowc_fct after
6272         initialization.
6273         (increment_counter): Likewise.  Do not call init_fct for internal
6274         modules.
6276 2017-08-29  Joseph Myers  <joseph@codesourcery.com>
6278         [BZ #22028]
6279         * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
6280         (_MSUF_): Remove macro.
6281         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
6282         Likewise.
6283         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
6284         (__REDIRFROM_X): New macro.
6285         [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
6286         Likewise.
6287         * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
6288         (__REDIRTO_X): Likewise.
6289         (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
6290         arguments.
6291         (__MATH_REDIRCALL_2): Likewise.
6292         (__MATH_REDIRCALL_INTERNAL): Likewise.
6293         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
6294         (__REDIRFROM (gamma, , _MSUF_)): Likweise.
6295         (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
6296         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
6297         * math/test-finite-macros.c: New file.
6298         * math/Makefile (tests): Add test-finite-macros.
6299         (CFLAGS-test-finite-macros.c): New variable.
6301 2017-08-29  Patsy Franklin  <pfrankli@redhat.com>
6302             Jeff Law  <law@redhat.com>
6304         [BZ #22025]
6305         Mangle NULL pointers in iconv/gconv.
6306         * iconv/gconv_cache.c (find_module): Demangle init_fct before
6307         checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
6308         * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
6309         is non-NULL before demangling the end_fct.  Check for NULL
6310         end_fct after demangling.
6311         (__gconv_release_step): Demangle the end_fct before checking
6312         it for NULL.   Remove assert on __shlibc_handle != NULL.
6313         (gen_steps): Don't check btowc_fct for NULL before mangling.
6314         Demangle init_fct before checking for NULL.
6315         (increment_counter): Likewise.
6316         * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
6317         end_fct for NULL before mangling.
6318         * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
6319         for NULL.
6321 2017-08-29  Akhilesh Kumar  <akhilesh.k@samsung.com>
6323         [BZ #21971]
6324         * locale/iso-639.def: add Morisyen.
6326 2017-08-28  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
6328         [BZ #21930]
6329         * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
6330         (iszero): New C++ implementation that does not use
6331         fpclassify/__MATH_TG/__builtin_types_compatible_p, when
6332         signaling nans are enabled, since __builtin_types_compatible_p
6333         is a C-only feature.
6334         * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
6335         defined, include ieee754_float128.h for access to the union and
6336         member ieee854_float128.ieee.
6337         [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
6338         [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
6339         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
6340         (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
6341         options of test-math-zero on powerpc64le.
6343 2017-08-28  H.J. Lu  <hongjiu.lu@intel.com>
6345         * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
6346         Change double to float.
6348 2017-08-28  Joseph Myers  <joseph@codesourcery.com>
6350         * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
6351         unconditional.
6352         * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
6353         conditional code; define contents only for [LIBM_SVID_COMPAT].
6355 2017-08-28  Florian Weimer  <fweimer@redhat.com>
6357         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
6358         (abi-lp64_be-options): Remove.
6359         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
6360         (abi-hard-options): Likewise.
6361         * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
6362         (abi-o32_hard-options, abi-o32_soft_2008-options)
6363         (abi-o32_hard_2008-options, abi-n32_soft-options)
6364         (abi-n32_hard-options, abi-n32_soft_2008-options)
6365         (abi-n32_hard_2008-options, abi-n64_soft-options)
6366         (abi-n64_hard-options, abi-n64_soft_2008-options)
6367         (abi-n64_hard_2008-options): Likewise.
6368         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
6369         (abi-64-v1-options, abi-64-v2-options): Likewise.
6370         * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
6371         (abi-64-options): Likewise.
6372         * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
6373         (abi-64-options): Likewise.
6374         * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
6375         (abi-64-options): Likewise.
6376         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
6377         (abi-64-options, abi-x32-options): Likewise.
6379 2017-08-28  Florian Weimer  <fweimer@redhat.com>
6381         Store supported list of SYS_* system calls in the source tree.
6382         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6383         (bits/syscall.h): Generate from list file.
6384         [$(subdir) = misc] (before-compile): Add bits/syscall.h.
6385         [$(subdir) = misc] (tests): Add tst-syscall-list.
6386         [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
6387         [$(subdir) = misc] (tst-syscall-list-macros.list)
6388         [$(subdir) = misc] (tst-syscall-list-nr.list)
6389         (tst-syscall-list-sys.list): Helper targets for new
6390         tst-syscall-list test.
6391         [$(subdir) = misc] (tst-syscall-list.out): Run test script
6392         tst-syscall-list.sh.
6393         [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
6394         target. Do not include bits/syscall.d.
6395         [$(subdir) = misc] (generated): Do not update.
6396         * sysdeps/unix/sysv/linux/syscall-names.list: New file.
6397         * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
6398         * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
6399         * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
6401 2017-08-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
6403         * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
6404         (tst-cxa_atexit, tst-on_exit): Likewise.
6405         * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
6406         tst-cxa_atexit, and tst-on_exit.
6407         * stdlib/tst-atexit-common.c: New file.
6408         * stdlib/tst-atexit.c: New file.
6409         * stdlib/tst-at_quick_exit.c: New file.
6410         * stdlib/tst-cxa_atexit.c: New file.
6411         * stdlib/tst-on_exit.c: New file.
6413 2017-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6415         * sysdeps/mach/hurd/bits/sysmacros.h: New file.
6416         * mach/stack_chk_fail_local.c: New file.
6417         * hurd/stack_chk_fail_local.c: New file.
6418         * mach/Machrules ($(interface-library)-routines): Add
6419         stack_chk_fail_local.
6420         * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
6421         CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
6422         CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
6423         CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
6424         * hurd/Makefile (CFLAGS-hurdstartup.o,
6425         CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
6427 2017-08-25  H.J. Lu  <hongjiu.lu@intel.com>
6429         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
6430         (index_cpu_*, index_arch_*): Removed.
6432 2017-08-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6434         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
6435         Use uint64_t instead of unsigned long.
6437 2017-08-25  Joseph Myers  <joseph@codesourcery.com>
6439         * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
6440         [__HAVE_DISTINCT_FLOAT128].
6442         * math/math.h (_MSUFTO_): Define and undefine for each inclusion
6443         of <bits/math-finite.h>.
6444         (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
6445         inclusion of <bits/math-finite.h>.
6446         * math/bits/math-finite.h (__REDIRTO_X): Do not define
6447         conditionally on [__MATH_DECLARING_LDOUBLE && defined
6448         __NO_LONG_DOUBLE_MATH].
6449         (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
6450         (__MATH_REDIRCALL_2): Likewise.
6451         (__MATH_REDIRCALL_INTERNAL): Likewise.
6452         (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
6453         (__REDIRFROM (gamma, , _MSUF_)): Likewise.
6454         (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
6456         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
6457         Remove file.
6458         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
6459         Likewise.
6460         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
6461         Likewise.
6462         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
6463         Likewise.
6464         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
6465         Likewise.
6466         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
6467         Likewise.
6468         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
6469         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
6470         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
6471         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
6472         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
6473         (libm-sysdep-routines): Remove w_sqrt_compat-power5,
6474         w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
6475         w_sqrtf_compat-ppc32.
6477 2017-08-24  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
6479         * math/math.h [defined __cplusplus] (issignaling): In the long
6480         double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
6481         is not defined.  Call __issignaling, otherwise.
6483 2017-08-24  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6485         * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
6486         syscall definitions and replace __builtin_expect with __glibc_likely.
6487         * sysdeps/unix/syscall-template.S: Update comment about cancellable
6488         syscall.
6489          (SYSCALL_CANCELLABLE): Removedefinition
6490         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
6491         definition.
6492         (PSEUDO_END): Likewise.
6493         [IS_IN (libpthread)] (CENABLE): Likewise.
6494         [IS_IN (libpthread)] (CDISABLE): Likewise.
6495         [IS_IN (libc)] (CENABLE): Likewise.
6496         [IS_IN (libc)] (CENABLE): Likewise.
6497         [IS_IN (librt)] (CDISABLE): Likewise.
6498         [IS_IN (librt)] (CDISABLE): Likewise.
6499         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
6500         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
6501         definition.
6502         (PSEUDO_END): Likewise.
6503         [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
6504         [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
6505         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
6506         [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
6507         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
6508         [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
6509         (CENABLE): Likewise.
6510         (CDISABLE): Likewise.
6511         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
6512         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
6513         defintion.
6514         (PSEUDO_END): Likewise.
6515         [IS_IN (libpthread)] (CENABLE): Likewise.
6516         [IS_IN (libpthread)] (CDISABLE): Likewise.
6517         [IS_IN (libc)] (CENABLE): Likewise.
6518         [IS_IN (libc)] (CENABLE): Likewise.
6519         [IS_IN (librt)] (CDISABLE): Likewise.
6520         [IS_IN (librt)] (CDISABLE): Likewise.
6521         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
6522         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
6523         definition.
6524         (PSEUDO_END): Likewise.
6525         [IS_IN (libpthread)] (CENABLE): Likewise.
6526         [IS_IN (libpthread)] (CDISABLE): Likewise.
6527         [IS_IN (libc)] (CENABLE): Likewise.
6528         [IS_IN (libc)] (CENABLE): Likewise.
6529         [IS_IN (librt)] (CDISABLE): Likewise.
6530         [IS_IN (librt)] (CDISABLE): Likewise.
6531         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
6532         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
6533         definition.
6534         (PSEUDO_END): Likewise.
6535         [IS_IN (libpthread)] (CENABLE): Likewise.
6536         [IS_IN (libpthread)] (CDISABLE): Likewise.
6537         [IS_IN (libc)] (CENABLE): Likewise.
6538         [IS_IN (libc)] (CENABLE): Likewise.
6539         [IS_IN (librt)] (CDISABLE): Likewise.
6540         [IS_IN (librt)] (CDISABLE): Likewise.
6541         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
6542         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
6543         definition.
6544         (PSEUDO_END): Likewise.
6545         [IS_IN (libpthread)] (CENABLE): Likewise.
6546         [IS_IN (libpthread)] (CDISABLE): Likewise.
6547         [IS_IN (libc)] (CENABLE): Likewise.
6548         [IS_IN (libc)] (CENABLE): Likewise.
6549         [IS_IN (librt)] (CDISABLE): Likewise.
6550         [IS_IN (librt)] (CDISABLE): Likewise.
6551         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
6552         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
6553         definition.
6554         (PSEUDO_END): Likewise.
6555         [IS_IN (libpthread)] (CENABLE): Likewise.
6556         [IS_IN (libpthread)] (CDISABLE): Likewise.
6557         [IS_IN (libc)] (CENABLE): Likewise.
6558         [IS_IN (libc)] (CENABLE): Likewise.
6559         [IS_IN (librt)] (CDISABLE): Likewise.
6560         [IS_IN (librt)] (CDISABLE): Likewise.
6561         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
6562         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
6563         definition.
6564         (PSEUDO_END): Likewise.
6565         [IS_IN (libpthread)] (CENABLE): Likewise.
6566         [IS_IN (libpthread)] (CDISABLE): Likewise.
6567         [IS_IN (libc)] (CENABLE): Likewise.
6568         [IS_IN (libc)] (CENABLE): Likewise.
6569         [IS_IN (librt)] (CDISABLE): Likewise.
6570         [IS_IN (librt)] (CDISABLE): Likewise.
6571         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
6572         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
6573         Remove definition.
6574         (PSEUDO_END): Likewise.
6575         [IS_IN (libpthread)] (CENABLE): Likewise.
6576         [IS_IN (libpthread)] (CDISABLE): Likewise.
6577         [IS_IN (libc)] (CENABLE): Likewise.
6578         [IS_IN (libc)] (CENABLE): Likewise.
6579         [IS_IN (librt)] (CDISABLE): Likewise.
6580         [IS_IN (librt)] (CDISABLE): Likewise.
6581         (SINGLE_THREAD_P): Likewise.
6582         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
6583         definition.
6584         (PSEUDO_END): Likewise.
6585         [IS_IN (libpthread)] (CENABLE): Likewise.
6586         [IS_IN (libpthread)] (CDISABLE): Likewise.
6587         [IS_IN (libc)] (CENABLE): Likewise.
6588         [IS_IN (libc)] (CENABLE): Likewise.
6589         [IS_IN (librt)] (CDISABLE): Likewise.
6590         [IS_IN (librt)] (CDISABLE): Likewise.
6591         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
6592         * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
6593         definition.
6594         (PSEUDO_END): Likewise.
6595         [IS_IN (libpthread)] (CENABLE): Likewise.
6596         [IS_IN (libpthread)] (CDISABLE): Likewise.
6597         [IS_IN (libc)] (CENABLE): Likewise.
6598         [IS_IN (libc)] (CENABLE): Likewise.
6599         [IS_IN (librt)] (CDISABLE): Likewise.
6600         [IS_IN (librt)] (CDISABLE): Likewise.
6601         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
6602         * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
6603         * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
6604         * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
6605         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
6606         definition.
6607         (PSEUDO_END): Likewise.
6608         [IS_IN (libpthread)] (CENABLE): Likewise.
6609         [IS_IN (libpthread)] (CDISABLE): Likewise.
6610         [IS_IN (libc)] (CENABLE): Likewise.
6611         [IS_IN (libc)] (CENABLE): Likewise.
6612         [IS_IN (librt)] (CDISABLE): Likewise.
6613         [IS_IN (librt)] (CDISABLE): Likewise.
6614         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
6615         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
6616         definition.
6617         (PSEUDO_END): Likewise.
6618         [IS_IN (libpthread)] (CENABLE): Likewise.
6619         [IS_IN (libpthread)] (CDISABLE): Likewise.
6620         [IS_IN (libc)] (CENABLE): Likewise.
6621         [IS_IN (libc)] (CENABLE): Likewise.
6622         [IS_IN (librt)] (CDISABLE): Likewise.
6623         [IS_IN (librt)] (CDISABLE): Likewise.
6624         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
6625         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
6626         definition.
6627         (PSEUDO_END): Likewise.
6628         [IS_IN (libpthread)] (CENABLE): Likewise.
6629         [IS_IN (libpthread)] (CDISABLE): Likewise.
6630         [IS_IN (libc)] (CENABLE): Likewise.
6631         [IS_IN (libc)] (CENABLE): Likewise.
6632         [IS_IN (librt)] (CDISABLE): Likewise.
6633         [IS_IN (librt)] (CDISABLE): Likewise.
6634         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
6635         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
6636         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
6637         * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
6638         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
6639         definition.
6640         (PSEUDO_END): Likewise.
6641         [IS_IN (libpthread)] (CENABLE): Likewise.
6642         [IS_IN (libpthread)] (CDISABLE): Likewise.
6643         [IS_IN (libc)] (CENABLE): Likewise.
6644         [IS_IN (libc)] (CENABLE): Likewise.
6645         [IS_IN (librt)] (CDISABLE): Likewise.
6646         [IS_IN (librt)] (CDISABLE): Likewise.
6647         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
6648         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
6649         definition.
6650         (PSEUDO_END): Likewise.
6651         [IS_IN (libpthread)] (CENABLE): Likewise.
6652         [IS_IN (libpthread)] (CDISABLE): Likewise.
6653         [IS_IN (libc)] (CENABLE): Likewise.
6654         [IS_IN (libc)] (CENABLE): Likewise.
6655         [IS_IN (librt)] (CDISABLE): Likewise.
6656         [IS_IN (librt)] (CDISABLE): Likewise.
6657         [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
6659 2017-08-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6661         * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
6663 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
6665         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
6667 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
6669         [BZ #21982]
6670         * string/stratcliff.c (do_test): Declare size, nchars, inner,
6671         middle and outer with size_t instead of int.  Repleace %d and
6672         %Zd with %zu in printf.  Update "MAX (0, nchars - 128)" and
6673         "MAX (outer, nchars - 64)" to support unsigned outer and
6674         nchars.  Also exit loop when outer == 0.
6676 2017-08-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6678         * include/fcntl.h (__fcntl_nocancel): Remove definition.
6679         * include/signal.h (__sigsuspend_nocancel): Likewise.
6680         * include/time.h (__nanosleep_nocancel): Likewise.
6681         * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
6682         * login/utmp_file.c: Include non cancellable syscall header.
6683         * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
6684         prototype.
6686 2017-08-23  H.J. Lu  <hongjiu.lu@intel.com>
6688         * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
6689         .byte sequences with AVX512F instructions.
6690         * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
6691         * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
6692         * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
6693         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
6694         Likewise.
6695         * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
6696         Likewise.
6698 2017-08-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6699             Steve Ellcey  <sellcey@cavium.com>
6701         * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
6702         Use PTR_REG macro in cmp instruction.
6704 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
6706         * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
6707         Change the return type of the ifunc resolver to match the return
6708         type of the target function.
6710 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6712         * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
6713         (preadv64): Likewise.
6714         (pwrite64(: Likewise.
6715         (pwritev64): Likewise.
6717         * sysdeps/unix/sysv/linux/x86_64/sysdep.h
6718         (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
6719         (LOAD_ARGS_0): Likewise.
6720         (LOAD_ARGS_1): Likewise.
6721         (LOAD_ARGS_2): Likewise.
6722         (LOAD_ARGS_3): Likewise.
6723         (LOAD_ARGS_4): Likewise.
6724         (LOAD_ARGS_5): Likewise.
6725         (LOAD_ARGS_6): Likewise.
6726         (LOAD_REGS_0): Likewise.
6727         (LOAD_REGS_1): Likewise.
6728         (LOAD_REGS_2): Likewise.
6729         (LOAD_REGS_3): Likewise.
6730         (LOAD_REGS_4): Likewise.
6731         (LOAD_REGS_5): Likewise.
6732         (LOAD_REGS_6): Likewise.
6733         (ASM_ARGS_0): Likewise.
6734         (ASM_ARGS_1): Likewise.
6735         (ASM_ARGS_2): Likewise.
6736         (ASM_ARGS_3): Likewise.
6737         (ASM_ARGS_4): Likewise.
6738         (ASM_ARGS_5): Likewise.
6739         (ASM_ARGS_6): Likewise.
6740         (LOAD_ARGS_TYPES_1): Likewise.
6741         (LOAD_ARGS_TYPES_2): Likewise.
6742         (LOAD_ARGS_TYPES_3): Likewise.
6743         (LOAD_ARGS_TYPES_4): Likewise.
6744         (LOAD_ARGS_TYPES_5): Likewise.
6745         (LOAD_ARGS_TYPES_6): Likewise.
6746         (LOAD_REGS_TYPES_1): Likewise.
6747         (LOAD_REGS_TYPES_2): Likewise.
6748         (LOAD_REGS_TYPES_3): Likewise.
6749         (LOAD_REGS_TYPES_4): Likewise.
6750         (LOAD_REGS_TYPES_5): Likewise.
6751         (LOAD_REGS_TYPES_6): Likewise.
6752         (TYPEFY): New define.
6753         (ARGIFY): Likewise.
6754         (internal_syscall0): Likewise.
6755         (internal_syscall1): Likewise.
6756         (internal_syscall2): Likewise.
6757         (internal_syscall3): Likewise.
6758         (internal_syscall4): Likewise.
6759         (internal_syscall5): Likewise.
6760         (internal_syscall6): Likewise.
6761         * sysdeps/unix/sysv/linux/x86_64/x32/times.c
6762         (INTERNAL_SYSCALL_NCS): Remove define.
6763         (internal_syscall1): Add define.
6765 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
6767         * math/w_remainder_compat.c: Remove duplicate inclusion of
6768         math-svid-compat.h.
6769         * math/w_remainderf_compat.c: Likewise.
6770         * math/w_remainderl_compat.c: Likewise.
6772 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
6774         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6776 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
6778         [BZ #21684]
6779         * math/tgmath.h (__floating_type): Simplify definitions.
6780         (__real_integer_type): New macro.
6781         (__complex_integer_type): Likewise.
6782         (__expr_is_real): Likewise.
6783         (__tgmath_real_type_sub): Update comment to describe handling of
6784         complex types.
6785         (__tgmath_complex_type_sub): New macro.
6786         (__tgmath_complex_type): Likewise.
6787         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
6788         (__TGMATH_CF128): Use __expr_is_real.
6789         (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
6790         __expr_is_real.
6791         (__TGMATH_BINARY_REAL_IMAG): Likewise.
6792         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
6793         * math/gen-tgmath-tests.py (Type.create_type): Create complex
6794         integer types.
6796 2017-08-22  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6798         * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
6799         macro.
6800         * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
6801         alias.
6802         * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
6803         Likewise.
6805         * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
6806         nanosleep_not_cancel with __nanosleep_nocancel.
6807         * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
6808         (__nanosleep_nocancel): New macro.
6809         * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
6810         function.
6811         * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
6812         macro.
6813         (__nanosleep_nocancel): New prototype.
6815         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
6816         pause_not_cancel with __pause_nocancel.
6817         * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
6818         (__pause_nocancel): New macro.
6819         * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
6820         macro.
6821         (__pause_nocancel): New prototype.
6822         * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
6824 2017-08-22  Martin Sebor  <msebor@redhat.com>
6826         * include/libc-symbols.h (__ifunc_resolver): Declare resolver
6827         to return a pointer to the same type as the target function.
6829 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
6831         [BZ #18822]
6832         [BZ #21986]
6833         * include/printf.h (__printf_fphex): Add attribute_hidden.
6834         (__guess_grouping): New prototype.
6835         * stdio-common/printf_fp.c (__guess_grouping): Removed.
6836         * stdio-common/reg-printf.c (__register_printf_specifier): Add
6837         libc_hidden_proto and libc_hidden_def.
6838         * stdlib/strfmon_l.c (__guess_grouping): Removed.
6839         (__vstrfmon_l): Remove the third argument passed to
6840         __guess_grouping.
6842 2017-08-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
6844         * math/math.h [defined __cplusplus] (issignaling): Provide a C++
6845         definition for issignaling that does not rely on __MATH_TG,
6846         since __MATH_TG uses __builtin_types_compatible_p, which is only
6847         available in C mode.
6848         (CFLAGS-test-math-issignaling.cc): New variable.
6849         * math/Makefile [CXX] (tests): Add test-math-issignaling.
6850         * math/test-math-issignaling.cc: New test for C++ implementation
6851         of type-generic issignaling.
6852         * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
6853         (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
6854         options of test-math-issignaling on powerpc64le.
6856 2017-08-22  H.J. Lu  <hongjiu.lu@intel.com>
6858         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
6859         building libc.a.
6860         (hidden_proto): Likewise.
6861         (hidden_tls_proto): Likewise.
6862         (__hidden_proto): Likewise.
6864 2017-08-22  Florian Weimer  <fweimer@redhat.com>
6866         math: Statically link tests of internal functionality.
6867         * math/Makefile (tests): Remove atest-exp, atest-sincos,
6868         atest-exp2.
6869         (tests-static): Add atest-exp, atest-sincos, atest-exp2.
6870         (gmp-objs): Remove assignment.
6871         (atest-exp, atest-sincos, atest-exp2): Remove targets.
6873 2017-08-22  Joseph Myers  <joseph@codesourcery.com>
6875         [BZ #21987]
6876         * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
6877         and copy to ...
6878         * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
6879         ... here.
6880         * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
6881         ... and here.
6883         * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
6884         variable definitions above inclusion of ../Rules.
6886 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
6888         * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
6889         case calling __builtin_unreachable.
6891 2017-08-21  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
6893         * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
6894         __waitpid_nocancel.
6895         * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
6896         (__waitpid_nocancel): New macro.
6897         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
6898         macro.
6899         (__waitpid_nocancel): Replace macro with a function.
6900         * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
6901         function.
6903         * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
6904         __fcntl_nocancel.
6905         * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
6906         * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
6908         * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
6909         __writev_nocancel_nostatus.
6910         (write_call_graph): Likewise.
6911         (write_bb_counts): Likewise.
6912         * resolv/herror.c (herror): Likewise.
6913         * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
6914         macro.
6915         (__writev_nocancel_nostatus): New macro.
6916         * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
6917         Remove macro.
6918         (__writev_nocancel_nostatus): New function.
6920 2017-08-21  Joseph Myers  <joseph@codesourcery.com>
6922         Revert:
6923         2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
6925         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
6926         building libc.a.
6927         (hidden_proto): Likewise.
6928         (hidden_tls_proto): Likewise.
6929         (__hidden_proto): Likewise.
6931         [BZ #21973]
6932         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
6933         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
6934         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
6935         Likewise.
6936         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
6937         Likewise.
6938         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
6939         Likewise.
6940         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
6941         Likewise.
6942         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
6943         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
6944         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
6945         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
6946         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
6947         GLIBC_2.0 sqrtl symbol.
6949         * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
6950         [__USE_MISC] (_LIB_VERSION): Likewise.
6951         [__USE_MISC] (struct exception): Likewise.
6952         [__USE_MISC] (matherr): Likewise.
6953         [__USE_MISC] (DOMAIN): Likewise.
6954         [__USE_MISC] (SING): Likewise.
6955         [__USE_MISC] (OVERFLOW): Likewise.
6956         [__USE_MISC] (UNDERFLOW): Likewise.
6957         [__USE_MISC] (TLOSS): Likewise.
6958         [__USE_MISC] (PLOSS): Likewise.
6959         [__USE_MISC] (HUGE): Likewise.
6960         [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
6961         * math/math-svid-compat.h: New file.
6962         * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
6963         and matherrl.
6964         * include/math.h [!_ISOMAC] (__matherr): Remove.
6965         * manual/arith.texi (FP Exceptions): Do not document matherr.
6966         * math/Makefile (tests): Change test-matherr to test-matherr-3.
6967         (tests-internal): New variable.
6968         (install-lib): Do not add libieee.a.
6969         (non-lib.a): Likewise.
6970         (extra-objs): Do not add libieee.a and ieee-math.o.
6971         (CPPFLAGS-s_lib_version.c): Remove variable.
6972         ($(objpfx)libieee.a): Remove rule.
6973         ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
6974         * math/ieee-math.c: Remove.
6975         * math/libm-test-support.c (matherr): Remove.
6976         * math/test-matherr.c: Use <support/test-driver.c>.  Add copyright
6977         and license notices.  Include <math-svid-compat.h> and
6978         <shlib-compat.h>.
6979         (matherr): Undefine as macro.  Use compat_symbol_reference.
6980         (_LIB_VERSION): Likewise.
6981         * math/test-matherr-2.c: New file.
6982         * math/test-matherr-3.c: Likewise.
6983         * sysdeps/generic/math_private.h (__kernel_standard): Remove
6984         declaration.
6985         (__kernel_standard_f): Likewise.
6986         (__kernel_standard_l): Likewise.
6987         * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
6988         <math_private.h>.  Include <math-svid-compat.h>.
6989         (_LIB_VERSION): Undefine as macro.
6990         (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_.  Define
6991         only if [LIBM_SVID_COMPAT || !defined SHARED].  If
6992         [LIBM_SVID_COMPAT], use compat_symbol.
6993         * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
6994         <math_private.h>.  Include <math-svid-compat.h>.
6995         (matherr): Undefine as macro.
6996         (__matherr): Define only if [LIBM_SVID_COMPAT].  Use
6997         compat_symbol.
6998         * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
6999         [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
7000         compat_symbol_reference.
7001         [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
7002         [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
7003         [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
7004         * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
7005         (MATHERR_D): Remove declaration.
7006         [!_LIBC] (_LIB_VERSION_TYPE): Likewise
7007         [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
7008         [LIBM_BUILD] (pmatherrf): Likewise.
7009         [LIBM_BUILD] (pmatherr): Likewise.
7010         [LIBM_BUILD] (pmatherrl): Likewise.
7011         (DOMAIN): Likewise.
7012         (SING): Likewise.
7013         (OVERFLOW): Likewise.
7014         (UNDERFLOW): Likewise.
7015         (TLOSS): Likewise.
7016         (PLOSS): Likewise.
7017         * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
7018         (__matherrf): Define only if [LIBM_SVID_COMPAT].  Use
7019         compat_symbol.
7020         * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
7021         (__matherrl): Define only if [LIBM_SVID_COMPAT].  Use
7022         compat_symbol.
7023         * math/lgamma-compat.h: Include <math-svid-compat.h>.
7024         * math/w_acos_compat.c: Likewise.
7025         * math/w_acosf_compat.c: Likewise.
7026         * math/w_acosh_compat.c: Likewise.
7027         * math/w_acoshf_compat.c: Likewise.
7028         * math/w_acoshl_compat.c: Likewise.
7029         * math/w_acosl_compat.c: Likewise.
7030         * math/w_asin_compat.c: Likewise.
7031         * math/w_asinf_compat.c: Likewise.
7032         * math/w_asinl_compat.c: Likewise.
7033         * math/w_atan2_compat.c: Likewise.
7034         * math/w_atan2f_compat.c: Likewise.
7035         * math/w_atan2l_compat.c: Likewise.
7036         * math/w_atanh_compat.c: Likewise.
7037         * math/w_atanhf_compat.c: Likewise.
7038         * math/w_atanhl_compat.c: Likewise.
7039         * math/w_cosh_compat.c: Likewise.
7040         * math/w_coshf_compat.c: Likewise.
7041         * math/w_coshl_compat.c: Likewise.
7042         * math/w_exp10_compat.c: Likewise.
7043         * math/w_exp10f_compat.c: Likewise.
7044         * math/w_exp10l_compat.c: Likewise.
7045         * math/w_exp2_compat.c: Likewise.
7046         * math/w_exp2f_compat.c: Likewise.
7047         * math/w_exp2l_compat.c: Likewise.
7048         * math/w_fmod_compat.c: Likewise.
7049         * math/w_fmodf_compat.c: Likewise.
7050         * math/w_fmodl_compat.c: Likewise.
7051         * math/w_hypot_compat.c: Likewise.
7052         * math/w_hypotf_compat.c: Likewise.
7053         * math/w_hypotl_compat.c: Likewise.
7054         * math/w_j0_compat.c: Likewise.
7055         * math/w_j0f_compat.c: Likewise.
7056         * math/w_j0l_compat.c: Likewise.
7057         * math/w_j1_compat.c: Likewise.
7058         * math/w_j1f_compat.c: Likewise.
7059         * math/w_j1l_compat.c: Likewise.
7060         * math/w_jn_compat.c: Likewise.
7061         * math/w_jnf_compat.c: Likewise.
7062         * math/w_jnl_compat.c: Likewise.
7063         * math/w_lgamma_main.c: Likewise.
7064         * math/w_lgamma_r_compat.c: Likewise.
7065         * math/w_lgammaf_main.c: Likewise.
7066         * math/w_lgammaf_r_compat.c: Likewise.
7067         * math/w_lgammal_main.c: Likewise.
7068         * math/w_lgammal_r_compat.c: Likewise.
7069         * math/w_log10_compat.c: Likewise.
7070         * math/w_log10f_compat.c: Likewise.
7071         * math/w_log10l_compat.c: Likewise.
7072         * math/w_log2_compat.c: Likewise.
7073         * math/w_log2f_compat.c: Likewise.
7074         * math/w_log2l_compat.c: Likewise.
7075         * math/w_log_compat.c: Likewise.
7076         * math/w_logf_compat.c: Likewise.
7077         * math/w_logl_compat.c: Likewise.
7078         * math/w_pow_compat.c: Likewise.
7079         * math/w_powf_compat.c: Likewise.
7080         * math/w_powl_compat.c: Likewise.
7081         * math/w_remainder_compat.c: Likewise.
7082         * math/w_remainderf_compat.c: Likewise.
7083         * math/w_remainderl_compat.c: Likewise.
7084         * math/w_scalb_compat.c: Likewise.
7085         * math/w_scalbf_compat.c: Likewise.
7086         * math/w_scalbl_compat.c: Likewise.
7087         * math/w_sinh_compat.c: Likewise.
7088         * math/w_sinhf_compat.c: Likewise.
7089         * math/w_sinhl_compat.c: Likewise.
7090         * math/w_sqrt_compat.c: Likewise.
7091         * math/w_sqrtf_compat.c: Likewise.
7092         * math/w_sqrtl_compat.c: Likewise.
7093         * math/w_tgamma_compat.c: Likewise.
7094         * math/w_tgammaf_compat.c: Likewise.
7095         * math/w_tgammal_compat.c: Likewise.
7096         * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
7097         * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
7098         * sysdeps/ieee754/k_standard.c: Likewise.
7099         * sysdeps/ieee754/k_standardf.c: Likewise.
7100         * sysdeps/ieee754/k_standardl.c: Likewise.
7101         * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
7102         * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
7103         * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
7104         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
7105         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
7106         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
7107         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
7108         * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
7109         * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
7110         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
7111         Likewise.
7112         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
7113         Likewise.
7114         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
7115         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
7116         * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
7117         * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
7119 2017-08-21  Florian Weimer  <fweimer@redhat.com>
7121         [BZ #21864]
7122         Do not compile benchmark helper objects with -DMODULE_NAME=libc.
7123         * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
7124         Move before inclusion of ../Rules.
7126 2017-08-21  Florian Weimer  <fweimer@redhat.com>
7128         [BZ #21972]
7129         * assert/assert.h (assert): Use static_cast (bool) for C++.
7130         Use the ternary operator in the warning branch for GNU C.
7131         * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
7132         (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
7133         (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
7134         (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
7135         * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
7137 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
7139         [BZ #18822]
7140         * sysdeps/unix/sysv/linux/x86_64/init-first.c
7141         (__syscall_clock_gettime): Add attribute_hidden.
7142         * sysdeps/unix/sysv/linux/x86_64/makecontext.c
7143         (__start_context): Likewise.
7145 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
7147         * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
7148         building libc.a.
7149         (hidden_proto): Likewise.
7150         (hidden_tls_proto): Likewise.
7151         (__hidden_proto): Likewise.
7153 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
7155         * include/libc-symbols.h (attribute_hidden): Enable hidden
7156         visibility in libc.a compiled with PIE.
7158 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
7160         [BZ #18822]
7161         * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
7162         Add attribute_hidden.
7164 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
7166         [BZ #21864]
7167         * Makerules (all-nonlib): Add $(others-extras).
7168         * catgets/Makefile (others-extras): New.
7169         * elf/Makefile (others-extras): Likewise.
7170         * nss/Makefile (others-extras): Likewise.
7172 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
7174         [BZ #18822]
7175         * csu/libc-start.c (__libc_multiple_libcs): Removed.
7176         * elf/dl-open.c: Include <libc-internal.h>.
7177         (__libc_multiple_libcs): Removed.
7178         * elf/dl-sysdep.c: Include <libc-internal.h> instead of
7179         <hp-timing.h>.
7180         * include/libc-internal.h (__libc_multiple_libcs): New.
7181         * misc/sbrk.c: Include <libc-internal.h>.
7182         (__libc_multiple_libcs): Removed.
7184 2017-08-21  H.J. Lu  <hongjiu.lu@intel.com>
7186         [BZ #18822]
7187         * grp/initgroups.c (__nss_group_database): Removed.
7188         (__nss_initgroups_database): Likewise.
7189         * nscd/gai.c (__nss_hosts_database): Likewise.
7190         * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
7191         * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
7192         * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
7193         * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
7194         * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
7195         * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
7196         attribute_hidden.
7197         * nss/nsswitch.c (__nss_database_custom): Define only if
7198         USE_NSCD is defined.
7199         (__nss_configure_lookup): Use __nss_database_custom only if
7200         USE_NSCD is defined.
7201         * nss/nsswitch.h (__nss_database_custom): Declare only if
7202         USE_NSCD is defined.  Add attribute_hidden.
7203         (__nss_setent): Add attribute_hidden.
7204         (__nss_endent): Likewise.
7205         (__nss_getent_r): Likewise.
7206         (__nss_getent): Likewise.
7207         (DEFINE_DATABASE): Declare __nss_##arg##_database.
7209 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
7211         [BZ #18822]
7212         * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
7213         libc_hidden_proto and libc_hidden_def.
7215 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
7217         [BZ #18822]
7218         * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
7219         Add libc_hidden_proto.
7220         * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
7221         Add libc_hidden_def.
7223 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
7225         [BZ #21974]
7226         * gmon/Makefile (routines): Remove bb_init_func and
7227         bb_exit_func.
7228         (elide-routines.os): Removed.
7229         * gmon/bb_exit_func.c: Likewise.
7230         * gmon/bb_init_func.c: Likewise.
7231         * include/sys/gmon.h (__bb): Likewise.
7232         (__bb_init_func): Likewise.
7233         (__bb_exit_func): Likewise.
7234         * sysdeps/alpha/bb_init_func.S: Likewise.
7236 2017-08-20  H.J. Lu  <hongjiu.lu@intel.com>
7238         * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
7239         * include/setjmp.h (____longjmp_chk): Here.  Add
7240         attribute_hidden.
7242 2017-08-19  H.J. Lu  <hongjiu.lu@intel.com>
7244         [BZ #18822]
7245         * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
7246         attribute_hidden.
7247         (__strspn_sse2): Likewise.
7249 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7251         * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
7252         (close_not_cancel_no_status): Likewise.
7253         (__close_nocancel): New macro.
7254         (__close_nocancel_nostatus): Likewise.
7255         * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
7256         macro.
7257         (close_not_cancel): Likewise.
7258         (close_not_cancel_no_status): Likewise.
7259         (__close_nocancel): New prototype.
7260         (__close_nocancel_nostatus): New function.
7261         * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
7262         * catgets/open_catalog.c (__open_catalog): Replace
7263         close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
7264         * gmon/gmon.c (write_gmon): Likewise.
7265         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
7266         * intl/loadmsgcat.c (close): Likewise.
7267         * io/ftw.c (open_dir_stream): Likewise.
7268         (ftw_startup): Likewise.
7269         * libio/fileops.c (_IO_file_open): Likewise.
7270         (_IO_file_close_mmap): Likewise.
7271         (_IO_file_close): Likewise.
7272         * libio/iopopen.c (_IO_dup2): Likewise.
7273         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
7274         * locale/loadlocale.c (_nl_load_locale): Likewise.
7275         * login/utmp_file.c (pututline_file): Likewise.
7276         (endutent_file): Likewise.
7277         * misc/daemon.c (daemon): Likewise.
7278         * nscd/nscd_getai.c (__nscd_getai): Likewise.
7279         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
7280         * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
7281         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
7282         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
7283         * nscd/nscd_helper.c (open_socket): Likewise.
7284         (__nscd_open_socket): Likewise.
7285         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
7286         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
7287         (__nscd_innetgr): Likewise.
7288         * nss/nss_db/db-open.c (internal_setent): Likewise.
7289         * resolv/res-close.c (__res_iclose): Likewise.
7290         * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
7291         * sysdeps/posix/closedir.c (__closedir): Likewise.
7292         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
7293         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
7294         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
7295         (opendir_tail): Likewise.
7296         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
7297         * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
7298         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
7299         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
7300         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
7301         (gethostid): Likewise.
7302         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
7303         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
7304         Likewise.
7305         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
7306         * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
7307         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
7308         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
7309         Likewise.
7310         * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
7311         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
7312         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
7313         Likewise.
7314         * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
7315         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
7316         Likewise.
7317         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
7318         Likewise.
7319         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
7320         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
7321         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
7322         __close_nocancel.
7324         * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
7325         (openat_not_cancel_3): Likewise.
7326         (openat64_not_cancel_3): Likewise).
7327         (openat_not_cancel_3): Likewise).
7328         * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
7329         macro.
7330         (openat_not_cancel_3): Likewise.
7331         (openat64_not_cancel): Likewise.
7332         (openat64_not_cancel_3): Likewise.
7333         * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
7334         * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
7335         * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
7336         __open{64}_nocancel.
7337         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
7338         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
7339         * sysdeps/posix/opendir.c (__opendirat): Likewise.
7341 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
7343         [BZ #18822]
7344         * include/argz.h (__argz_create_sep): New function prototype.
7345         (__argz_append): Likewise.
7346         (__argz_add): Likewise.
7347         (__argz_add_sep): Likewise.
7348         (__argz_delete): Likewise.
7349         (__argz_insert): Likewise.
7350         (__argz_replace): Likewise.
7351         * string/argz.h (__argz_create_sep): Removed.
7352         (__argz_append): Likewise.
7353         (__argz_add): Likewise.
7354         (__argz_add_sep): Likewise.
7355         (__argz_delete): Likewise.
7356         (__argz_insert): Likewise.
7357         (__argz_replace): Likewise.
7359 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
7361         * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
7362         (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
7363         (GNU_PROPERTY_STACK_SIZE): Likewie.
7364         (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
7365         (GNU_PROPERTY_LOPROC): Likewise.
7366         (GNU_PROPERTY_HIPROC): Likewise.
7367         (GNU_PROPERTY_LOUSER): Likewise.
7368         (GNU_PROPERTY_HIUSER): Likewise.
7369         (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
7370         (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
7371         (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
7372         (GNU_PROPERTY_X86_ISA_1_486): Likwise.
7373         (GNU_PROPERTY_X86_ISA_1_586): Likwise.
7374         (GNU_PROPERTY_X86_ISA_1_686): Likwise.
7375         (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
7376         (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
7377         (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
7378         (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
7379         (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
7380         (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
7381         (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
7382         (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
7383         (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
7384         (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
7385         (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
7386         (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
7387         (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
7388         (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
7389         (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
7390         (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
7391         (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
7393 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
7395         * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
7396         in C++ mode.
7398 2017-08-18  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
7400         [BZ #21930]
7401         * math/math.h (isinf): Check if in C or C++ mode before using
7402         __builtin_types_compatible_p, since this is a C mode feature.
7404 2017-08-18  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7406         * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
7407         (__write_nocancel): New macro.
7408         * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
7409         Rewrite as a function prototype.
7410         (write_not_cancel): Remove macro.
7411         * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
7412         * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
7413         (write_gmon): Likewise.
7414         * libio/fileops.c (_IO_new_file_write): Likewise.
7415         * login/utmp_file.c (pututline_file): Likewise.
7416         (updwtmp_file): Likewise.
7417         * stdio-common/psiginfo.c (psiginfo): Likewise.
7418         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
7419         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
7420         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
7421         Likewise.
7422         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
7423         Likewise.
7425         * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
7426         (__read_nocancel): New macro.
7427         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
7428         __read_nocancel.
7429         * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
7430         macro.
7431         (__read_nocancel): New prototype.
7432         * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
7433         * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
7434         with __read_nocancel.
7435         * intl/loadmsgcat.c (read): Likewise.
7436         * libio/fileops.c (_IO_file_read): Likewise.
7437         * locale/loadlocale.c (_nl_load_locale): Likewise.
7438         * login/utmp_file.c (getutent_r_file): Likewise.
7439         (internal_getut_r): Likewise.
7440         (getutline_r_file): Likewise.
7441         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
7442         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
7443         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
7444         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
7445         Likewise.
7446         * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
7447         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
7448         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
7449         Likewise.
7450         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
7451         Likewise.
7452         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
7453         Likewise.
7454         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
7455         Likewise.
7456         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
7458 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
7460         [BZ #21966]
7461         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
7462         (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
7463         usable.
7465 2017-08-17  DJ Delorie  <dj@redhat.com>
7467         * bug17079.c: Update to new test harness.
7468         * test-digits-dots.c: Likewise.
7469         * test-netdb.c: Likewise.
7470         * tst-field.c: Likewise.
7471         * tst-nss-getpwent.c: Likewise.
7472         * tst-nss-static.c: Likewise.
7473         * tst-nss-test1.c: Likewise.
7474         * tst-nss-test2.c: Likewise.
7475         * tst-nss-test3.c: Likewise.
7476         * tst-nss-test4.c: Likewise.
7477         * tst-nss-test5.c: Likewise.
7479 2017-08-17  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7481         * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
7482         (open_not_cancel_2): Likewise.
7483         (open_nocancel): New macro.
7484         (open64_nocancel): Likewise.
7485         * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
7486         (open_not_cancel_2): Likewise.
7487         (__open_nocancel): New prototype.
7488         (__open64_nocancel): Likewise.
7489         * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
7490         __open_nocancel.
7491         * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
7492         * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
7493         * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
7494         with __open_nocancel.
7495         * csu/check_fds.c (check_one_fd): Likewise.
7496         * gmon/gmon.c (write_gmon): Likewise.
7497         * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
7498         * intl/loadmsgcat.c (open): Likewise.
7499         * libio/fileops.c (_IO_file_open): Likewise.
7500         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
7501         * locale/loadlocale.c (_nl_load_locale): Likewise.
7502         * login/utmp_file.c (setutent_file): Likewise.
7503         * misc/daemon.c (daemon): Likewise.
7504         * nss/nss_db/db-open.c (internal_setent): Likewise.
7505         * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
7506         * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
7507         * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
7508         (__opendir): Likewise.
7509         * sysdeps/posix/spawni.c (__spawni_child): Likewise.
7510         * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
7511         * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
7512         (gethostid): Likewise.
7513         * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
7514         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
7515         Likewise.
7516         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
7517         * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
7518         * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
7519         * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
7520         Likewise.
7521         * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
7522         Likewise.
7523         * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
7524         Likewise.
7525         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
7526         Likewise.
7527         * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
7528         Likewise.
7529         * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
7530         Likewise.
7531         * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
7532         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
7534 2017-08-17  Wilco Dijkstra  <wdijkstr@arm.com>
7536         * benchtests/bench-skeleton.c (main): Add support for
7537         latency benchmarking.
7538         * benchtests/scripts/bench.py: Add support for latency benchmarking.
7540 2017-08-17  H.J. Lu  <hongjiu.lu@intel.com>
7542         * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
7543         the startup object.
7545 2017-08-17  Florian Weimer  <fweimer@redhat.com>
7547         * include/sys/socket.h (__opensock): Remove internal_function.
7548         * socket/opensock.c (__opensock): Likewise.
7549         * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
7551 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
7553         [BZ #21944]
7554         * signal/bits/types/__sigval_t.h: New file.
7555         * signal/Makefile (headers): Add bits/types/__sigval_t.h.
7556         * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
7557         and define sigval_t using __sigval_t.
7558         * include/bits/types/__sigval_t.h: New file.
7559         * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
7560         instead of <bits/types/__sigval_t.h>.
7561         (struct sigevent): Use __sigval_t instead of sigval_t.
7562         * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
7563         instead of <bits/types/__sigval_t.h>.
7564         (siginfo_t): Use __sigval_t instead of sigval_t.
7565         * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
7566         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
7567         (struct sigevent): Use __sigval_t instead of sigval_t.
7568         * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
7569         <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
7570         (siginfo_t): Use __sigval_t instead of sigval_t.
7571         * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
7573 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
7575         * NEWS: Remove "[Add new features here]" for 2.27.
7577 2017-08-16  Joseph Myers  <joseph@codesourcery.com>
7579         * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
7580         libc.so.
7582 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
7584         * NEWS: Mention x86-64 FMA optimization.
7586 2017-08-16  H.J. Lu  <hongjiu.lu@intel.com>
7588         [BZ #21912]
7589         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
7590         Add e_expf-fma.
7591         * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
7592         * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
7593         * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
7595 2017-08-16  Andreas Schwab  <schwab@suse.de>
7597         [BZ #16750]
7598         CVE-2009-5064
7599         * elf/ldd.bash.in: Never run file directly.
7601 2017-08-15  H.J. Lu  <hongjiu.lu@intel.com>
7603         [BZ #21955]
7604         * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
7605         (L(SP_INF_0)): Likewise.
7607 2017-08-15  Florian Weimer  <fweimer@redhat.com>
7609         * gmon/Makefile (tests-special): Add tst-gmon-prof only if
7610         run-built-tests.
7612 2017-08-15  Florian Weimer  <fweimer@redhat.com>
7614         Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
7615         * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
7616         BROKEN_THREAD_SIGNALS code.
7617         * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
7618         request_list): Remove caller_pid member used for
7619         BROKEN_THREAD_SIGNALS.
7620         [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
7621         * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
7622         Remove BROKEN_THREAD_SIGNALS support.
7623         * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
7624         * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
7626 2017-08-15  Florian Weimer  <fweimer@redhat.com>
7628         * gmon/Makefile (tests): Add tst-gmon.
7629         (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
7630         Set.
7631         (tests-special): Add tst-gmon-prof.out.
7632         (tst-gmon.out): Depend on clean-tst-gmon-data.
7633         (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
7634         * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
7635         * Makeconfig (+link-before-libc): Add CRT-* hook to override the
7636         startup object.
7637         * aclocal.m4 (GPROF): Set and substitute.
7638         * config.amke.in (GPROF): Set.
7639         * configure: Regenerate.
7641 2017-08-15  Gustavo Romero  <gromero@linux.vnet.ibm.com>
7643         * elf/elf.h A (NT_PPC_TAR): New macro.
7644         (NT_PPC_PPR): Likewise.
7645         (NT_PPC_DSCR): Likewise.
7646         (NT_PPC_EBB): Likewise.
7647         (NT_PPC_PMU): Likewise.
7648         (NT_PPC_TM_CGPR): Likewise.
7649         (NT_PPC_TM_CFPR): Likewise.
7650         (NT_PPC_TM_CVMX): Likewise.
7651         (NT_PPC_TM_CVSX): Likewise.
7652         (NT_PPC_TM_SPR): Likewise.
7653         (NT_PPC_TM_CTAR): Likewise.
7654         (NT_PPC_TM_CPPR): Likewise.
7655         (NT_PPC_TM_CDSCR): Likewise.
7657 2017-08-15  Florian Weimer  <fweimer@redhat.com>
7659         * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
7660         regparm (2) instead of internal_function.
7661         (_MCOUNT_DECL): Adjust.
7663 2017-08-15  Stefan Liebler  <stli@linux.vnet.ibm.com>
7665         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
7666         * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
7668 2017-08-14  Joseph Myers  <joseph@codesourcery.com>
7670         * conform/data/sys/wait.h-data (si_value): Do not expect for
7671         XPG42.
7673 2017-08-14  Florian Weimer  <fweimer@redhat.com>
7675         [BZ #21962]
7676         NSS: Create stubs for accidentally exported lookup functions.
7677         * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
7678         Remove declaration.
7679         * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
7680         (ether_hostton): Call __nss_ethers_lookup2 instead.
7681         * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
7682         (ether_ntohost): Call __nss_ethers_lookup2 instead.
7683         * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
7684         (setup): Call __nss_netgroup_lookup2 instead.
7685         * nss/Makefile (routines): Add compat-lookup.
7686         * nss/Versions (GLIBC_2.27): Add symbol version.
7687         * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration.  Now provided by <nsswitch.h>.
7688         (DB_COMPAT_FCT): Remove.
7689         * nss/compat-lookup.c: New file.
7690         * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
7691         from databases.def.
7692         * nss/service-lookup.c (NO_COMPAT): Remove definition.
7693         * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
7694         (netname2user): Call __nss_publickey_lookup2 instead.
7695         * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
7696         (getpublickey, getsecretkey): Call __nss_publickey_lookup2
7697         instead.
7699 2017-08-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
7700             Sergei Trofimovich  <slyfox@inbox.ru>
7702         [BZ #21908]
7703         * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
7704         Rename to MMAP2_PAGE_UNIT.
7705         * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
7706         __OFF_T_MATCHES_OFF64_T is not defined.
7707         * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
7708         uint64_t.
7709         (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
7710         (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
7712 2017-08-14  Florian Weimer  <fweimer@redhat.com>
7714         i386: Do not set internal_function.
7715         * config.h.in (USE_REGPARMS, internal_function): Remove.
7716         * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
7717         * sysdeps/i386/configure (USE_REGPARMS): Likewise.
7719 2017-08-14  Florian Weimer  <fweimer@redhat.com>
7721         * elf/dl-init.c (_dl_init): Remove internal_function.
7722         * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
7723         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
7725 2017-08-14  Florian Weimer  <fweimer@redhat.com>
7727         * elf/rtld.c (_dl_start): Remove internal_function.
7728         * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
7729         _dl_start.
7731 2017-08-14  Florian Weimer  <fweimer@redhat.com>
7733         * elf/dl-fini.c (_dl_fini): Remove internal_function
7734         * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
7736 2017-08-14  H.J. Lu  <hongjiu.lu@intel.com>
7738         * sysdeps/x86/cpu-features.h (bit_cpu_BIT): New.
7739         (bit_cpu_SHSTK): Likewise.
7740         (index_cpu_IBT): Likewise.
7741         (index_cpu_SHSTK): Likewise.
7742         (reg_IBT): Likewise.
7743         (reg_SHSTK): Likewise.
7744         * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
7745         Handle index_cpu_IBT and index_cpu_SHSTK.
7747 2017-08-14  Mike FABIAN  <mfabian@redhat.com>
7749         [BZ #19982]
7750         * po/fr.po: Fix spelling mistake.
7752 2017-08-13  Florian Weimer  <fweimer@redhat.com>
7754         * elf/dl-addr.c (_dl_addr): Remove internal_function.
7755         * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
7756         (_dl_catch_error, _dl_receive_error): Likewise.
7757         * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
7758         * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
7759         (_dl_deallocate_tls): Likewise.
7760         * include/dlfcn.h (_dl_addr): Likewise.
7761         * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
7762         (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
7763         (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
7764         Likewise.
7766 2017-08-13  Florian Weimer  <fweimer@redhat.com>
7768         * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
7769         (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
7770         internal_function.
7771         * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
7773 2017-08-13  Florian Weimer  <fweimer@redhat.com>
7775         * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
7776         internal_function.
7777         * nptl/allocatestack.c (__make_stacks_executable): Likewise.
7778         * nptl/pthreadP.h (__make_stacks_executable): Likewise.
7779         * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
7780         internal_function from _dl_make_stack_executable_hook member.
7781         (_dl_make_stack_executable): Remove internal_function.
7782         * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
7783         Likewise.
7784         * sysdeps/unix/sysv/linux/dl-execstack.c
7785         (_dl_make_stack_executable): Likewise.
7787 2017-08-13  Florian Weimer  <fweimer@redhat.com>
7789         * sysdeps/unix/sysv/linux/netlinkaccess.h
7790         (__netlink_assert_response): Remove internal_function.
7791         * sysdeps/unix/sysv/linux/netlink_assert_response.c
7792         (__netlink_assert_response): Likewise.
7794 2017-08-13  Florian Weimer  <fweimer@redhat.com>
7796         * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
7797         internal_function.
7798         * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
7800 2017-08-13  Florian Weimer  <fweimer@redhat.com>
7802         * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
7803         internal_function.
7804         * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
7805         * inet/netgroup.h (__internal_setnetgrent)
7806         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
7807         * inet/getnetgrent_r.c (__internal_setnetgrent)
7808         (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
7809         * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
7810         * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
7811         * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
7812         * nss/nsswitch.h (db_lookup_function): Likewise.
7814 2017-08-13  Florian Weimer  <fweimer@redhat.com>
7816         * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
7817         Remove internal_function.
7818         * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
7819         * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
7820         message argument on the stack.
7821         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
7822         Likeweise.
7824 2017-08-12  Mike FABIAN  <mfabian@redhat.com>
7826         Adapt test case data to the changes in the thousands
7827         separators.
7829         [BZ #20756]
7830         * localedata/tst-langinfo.sh: Adapt test case data.
7831         * stdlib/tst-strfmon_l.c: Likewise.
7832         * stdlib/tst-strtod4.c: Likewise.
7833         * stdlib/tst-strtod5i.c: Likewise.
7835 2017-08-11  Florian Weimer  <fweimer@redhat.com>
7837         [BZ #21242]
7838         * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
7839         Suppress pedantic warning resulting from statement expression.
7840         (__ASSERT_FUNCTION): Add missing __extension__.
7842 2017-08-11  Siddhesh Poyarekar  <siddhesh@sourceware.org>
7844         * benchtests/bench-memmove-large.c: Print output in JSON
7845         format.
7846         * benchtests/bench-memmove.c: Likewise.
7848         * benchtests/bench-memccpy.c (do_one_test): Remove checks.
7849         * benchtests/bench-memchr.c (do_one_test): Likewise.
7850         * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
7851         * benchtests/bench-memcpy.c (do_one_test): Likewise.
7852         * benchtests/bench-memmove-large.c (do_one_test): Likewise.
7853         * benchtests/bench-memmove.c (do_one_test): Likewise.
7854         * benchtests/bench-memset-large.c (do_one_test): Likewise.
7855         * benchtests/bench-memset.c (do_one_test): Likewise.
7856         * benchtests/bench-string.h (test_init): Remove memsets.
7858 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
7860         * manual/lang.texi
7861         (Computing the Width of an Integer Data Type): Rename section to
7862         "Width of an Integer Type".  Remove inaccurate statement regarding
7863         lack of C language facilities for determining width of integer
7864         types, and reorder content to improve flow and context of
7865         discussion.
7867 2017-08-10  Rical Jasan  <ricaljasan@pacific.net>
7869         * lang.texi (va_copy): Change standard from ISO to C99.
7870         (__va_copy): Add standard and header annotation.
7871         Update description for clarity of origins and current use.
7873 2017-08-10  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
7875         [BZ #21941]
7876         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
7877         xssqrtqp requires operands to be in Vector Registers
7878         (Altivec/VMX), replace the register constraint 'wq' with 'v'.
7879         * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
7880         (__ieee754_sqrtf128): Likewise.
7882 2017-08-10  Wilco Dijkstra  <wdijkstr@arm.com>
7884         * sysdeps/aarch64/memcmp.S (memcmp):
7885         Rewrite of optimized memcmp.
7887 2017-08-10  Florian Weimer  <fweimer@redhat.com>
7889         Introduce ld.so exceptions.
7890         * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
7891         (_dl_exception_create, _dl_exception_create_format)
7892         (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
7893         (_dl_catch_exception): Declare.
7894         (_dl_catch_error): Update comment.
7895         * elf/dl-error-skeleton.c (struct catch): Replace objname,
7896         errstring, malloced members with exception member.
7897         (_dl_out_of_memory): Remove.
7898         (fatal_error): New function, extracted from _dl_signal_error.
7899         (_dl_signal_exception, _dl_signal_cexception): New functions.
7900         (_dl_signal_error): Call _dl_exception_create to allocate an
7901         exception object.
7902         (_dl_catch_exception): New function, based on _dl_catch_error.
7903         (_dl_catch_error): Implement using _dl_catch_exception.
7904         * elf/dl-exception.c: New file.
7905         * elf/Makefile (dl-routines): Add dl-exception.
7906         (elide-routines.os): Likewise.
7907         * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
7908         _dl_exception_create_format, _dl_exception_free.
7909         * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
7910         _dl_signal_exception.
7911         * elf/dl-lookup.c (make_string): Remove.
7912         (_dl_lookup_symbol_x): Use _dl_exception_create_format,
7913         _dl_signal_cexception, _dl_exception_free.
7914         * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
7915         _dl_signal_exception.
7916         * elf/dl-sym.c (do_sym): Likewise.
7917         * elf/dl-version.c (make_string): Remove.
7918         (match_symbol): Use _dl_exception_create_format,
7919         _dl_signal_cexception, _dl_exception_free.
7920         (_dl_check_map_versions): Likewise.
7921         * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
7922         _dl_catch_exception.
7923         * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
7924         * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
7925         * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
7926         * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
7927         * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
7928         * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
7929         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
7930         * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
7931         Likewise.
7932         * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
7933         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
7934         (ld.so): Likewise.
7935         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
7936         (ld.so): Likewise.
7937         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
7938         Likewise.
7939         * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
7940         * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
7941         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
7942         Likewise.
7943         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
7944         Likewise.
7945         * sysdeps/x86_64/localplt.data (ld.so): Likewise.
7947 2017-08-10  Florian Weimer  <fweimer@redhat.com>
7949         * inet/net-internal.h (__inet6_scopeid_pton): Remove
7950         attribute_hidden, internal_function.
7951         * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
7952         internal_function.
7954 2017-08-10  Florian Weimer  <fweimer@redhat.com>
7956         * malloc/malloc.c (get_max_fast): Reimplement as an inline
7957         function which calls __builtin_unreachable.
7959 2017-08-10  Mike FABIAN  <mfabian@redhat.com>
7961         * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
7962         Indian monetary formatting
7963         * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
7964         test cases.
7966 2017-08-09  Dmitry V. Levin  <ldv@altlinux.org>
7968         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
7969         Fix typo in comment.
7971         [BZ #21928]
7972         * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
7973         PTRACE_SEIZE_DEVEL): Remove.
7974         * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
7975         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
7976         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
7977         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
7978         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
7980 2017-08-09  Joseph Myers  <joseph@codesourcery.com>
7982         * posix/bits/types.h (__qaddr_t): Remove.
7984         [BZ #21457]
7985         * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
7986         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
7987         __glibc_reserved1.
7988         * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
7989         (ucontext_t): Use __ctx with uc_flags.
7990         * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
7991         (__ctxt): Likewise.
7992         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
7993         __glibc_reserved1.
7994         * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
7995         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
7996         __glibc_reserved1.
7997         * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
7998         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
7999         __glibc_reserved1.
8000         * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
8001         macro.
8002         (ucontext_t): Use __ctx with uc_flags.
8003         * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
8004         (ucontext_t): Use __ctx with uc_flags.
8005         * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
8006         (ucontext_t): Use __ctx with uc_flags and uc_regspace.
8007         * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
8008         (ucontext_t): Use __ctx with uc_flags.
8009         * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
8010         undefine further down.
8011         (ucontext_t): Use __ctx with uc_flags.  Rename uc_filler to
8012         __glibc_reserved1.
8013         * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
8014         undefine further down.
8015         (ucontext_t): Use __ctx with uc_flags.
8016         * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
8017         undefine further down.
8018         (ucontext_t): Use __ctx with uc_flags.
8019         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
8020         __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
8021         Rename uc_pad to __glibc_reserved1.
8022         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
8023         undefine further down.
8024         (ucontext_t): Use __ctx with uc_flags.
8025         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
8026         further down.
8027         (ucontext_t): Use __ctx with uc_flags.
8028         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
8029         __ctx with uc_flags.
8030         * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
8031         (ucontext_t): Use __ctx with uc_flags.
8032         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
8033         __ctx with uc_flags.
8035 2017-08-09  Florian Weimer  <fweimer@redhat.com>
8037         [BZ #21932]
8038         * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
8039         before early return.
8041 2017-08-09  Andreas Schwab  <schwab@suse.de>
8043         [BZ #21041]
8044         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
8045         renamed alias.
8047         [BZ #21041]
8048         * nptl/Makefile (tests) [$(build-shared) = yes]: Add
8049         tst-compat-forwarder.
8050         (modules-names): Add tst-compat-forwarder-mod.
8051         ($(objpfx)tst-compat-forwarder): Depend on
8052         $(objpfx)tst-compat-forwarder-mod.so.
8053         * nptl/tst-compat-forwarder.c: New file.
8054         * nptl/tst-compat-forwarder-mod.c: New file.
8056 2017-08-09  Siddhesh Poyarekar  <siddhesh@sourceware.org>
8058         * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
8059         comments.
8061         * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
8062         * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
8063         memcpy_falkor.
8064         * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
8065         Bump.
8066         (__libc_ifunc_impl_list): Add __memcpy_falkor.
8067         * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
8068         * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
8069         * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
8070         Add falkor.
8071         * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
8072         New macro.
8074 2017-08-08  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8076         [BZ #759]
8077         * manual/setjmp.texi (getcontex): Document uc_stack value
8078         compatibility differences.
8080 2017-08-08  Joseph Myers  <joseph@codesourcery.com>
8082         * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
8083         (old_malloc_hook): Likewise.
8084         (old_memalign_hook): Likewise.
8085         (old_realloc_hook): Likewise.
8086         (struct hdr): Likewise.
8087         (flood): Likewise.
8088         (freehook): Likewise.
8089         (mallochook): Likewise.
8090         (memalignhook): Likewise.
8091         (reallochook): Likewise.
8092         (mprobe): Likewise.
8093         * malloc/mtrace.c (mallwatch): Likewise.
8094         (tr_old_free_hook): Likewise.
8095         (tr_old_malloc_hook): Likewise.
8096         (tr_old_realloc_hook): Likewise.
8097         (tr_old_memalign_hook): Likewise.
8098         (tr_where): Likewise.
8099         (lock_and_info): Likewise.
8100         (tr_freehook): Likewise.
8101         (tr_mallochook): Likewise.
8102         (tr_reallochook): Likewise.
8103         (tr_memalignhook): Likewise.
8104         * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
8105         * misc/mmap.c (__mmap): Likewise.
8106         * misc/mmap64.c (__mmap64): Likewise.
8107         * misc/mprotect.c (__mprotect): Likewise.
8108         * misc/msync.c (msync): Likewise.
8109         * misc/munmap.c (__munmap): Likewise.
8110         * posix/posix_madvise.c (posix_madvise): Likewise.
8111         * socket/send.c (__send): Likewise.
8112         * socket/sendto.c (__sendto): Likewise.
8113         * socket/setsockopt.c (__setsockopt): Likewise.
8114         * string/memcmp.c (__ptr_t): Remove macro.
8115         (MEMCMP): Use void * instead of ptr_t.
8116         * string/memrchr.c (__ptr_t): Remove macro.
8117         (__memrchr): Use void * instead of ptr_t.
8118         * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
8119         * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
8120         * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
8121         * sysdeps/mach/mprotect.c (__mprotect): Likewise.
8122         * sysdeps/mach/msync.c (msync): Likewise.
8123         * sysdeps/mach/munmap.c (__munmap): Likewise.
8124         * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
8125         Likewise.
8126         * sysdeps/posix/getcwd.c (__getcwd): Likewise.
8127         * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
8128         * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
8129         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
8130         * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
8131         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
8132         * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
8133         * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
8134         Likewise.
8135         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
8136         * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
8137         * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
8138         * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
8139         * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
8140         * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
8141         * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
8142         * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
8143         * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
8144         Likewise.
8145         * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
8146         * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
8147         * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
8148         (MEMCMP): Use void * instead of ptr_t.
8149         * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
8150         * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
8152 2017-08-08  Florian Weimer  <fweimer@redhat.com>
8154         * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
8155         return statement.
8157 2017-08-08  H.J. Lu  <hongjiu.lu@intel.com>
8159         [BZ #21913]
8160         * csu/libc-tls.c: Include <startup.h> first.
8161         (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
8162         * elf/dl-tunables.c: Include <startup.h> first.
8163         * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
8164         * sysdeps/generic/startup.h: New file.
8165         * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
8166         * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
8167         (I386_USE_SYSENTER): New.  Defined to 0.
8169 2017-08-08  Andreas Schwab  <schwab@suse.de>
8171         [BZ #21041]
8172         * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
8173         * nptl/pt-system.c (system): Likewise.
8175 2017-08-07  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
8177         [BZ #21780]
8178         * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
8179         EOPNOTSUPP.
8180         * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
8181         * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
8182         * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
8183         * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
8184         * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
8185         * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
8186         * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
8188 2017-08-07  Joseph Myers  <joseph@codesourcery.com>
8190         [BZ #21899]
8191         * bits/sigaction.h (struct sigaction): Define sa_handler and
8192         sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
8193         (SA_ONSTACK): Change [__USE_UNIX98] condition to
8194         [__USE_XOPEN_EXTENDED].
8195         (SA_RESTART): Likewise.
8196         (SA_NODEFER): Likewise.
8197         (SA_RESETHAND): Likewise.
8198         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
8199         (struct sigaction): Define sa_handler and sa_sigaction using union
8200         also for [__USE_XOPEN_EXTENDED].
8201         (SA_ONSTACK): Change [__USE_UNIX98] condition to
8202         [__USE_XOPEN_EXTENDED].
8203         (SA_RESTART): Likewise.
8204         (SA_NODEFER): Likewise.
8205         (SA_RESETHAND): Likewise.
8206         * sysdeps/unix/sysv/linux/bits/sigaction.h
8207         (struct sigaction): Define sa_handler and sa_sigaction using union
8208         also for [__USE_XOPEN_EXTENDED].
8209         (SA_ONSTACK): Change [__USE_UNIX98] condition to
8210         [__USE_XOPEN_EXTENDED].
8211         (SA_RESTART): Likewise.
8212         (SA_NODEFER): Likewise.
8213         (SA_RESETHAND): Likewise.
8214         * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
8215         (struct sigaction): Define sa_handler and sa_sigaction using union
8216         also for [__USE_XOPEN_EXTENDED].
8217         (SA_ONSTACK): Change [__USE_UNIX98] condition to
8218         [__USE_XOPEN_EXTENDED].
8219         (SA_RESTART): Likewise.
8220         (SA_NODEFER): Likewise.
8221         (SA_RESETHAND): Likewise.
8222         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
8223         (struct sigaction): Define sa_handler and sa_sigaction using union
8224         also for [__USE_XOPEN_EXTENDED].
8225         (SA_ONSTACK): Change [__USE_UNIX98] condition to
8226         [__USE_XOPEN_EXTENDED].
8227         (SA_RESTART): Likewise.
8228         (SA_NODEFER): Likewise.
8229         (SA_RESETHAND): Likewise.
8230         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
8231         (struct sigaction): Define sa_handler and sa_sigaction using union
8232         also for [__USE_XOPEN_EXTENDED].
8233         (SA_ONSTACK): Change [__USE_UNIX98] condition to
8234         [__USE_XOPEN_EXTENDED].
8235         (SA_RESTART): Likewise.
8236         (SA_NODEFER): Likewise.
8237         (SA_RESETHAND): Likewise.
8238         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
8239         (struct sigaction): Define sa_handler and sa_sigaction using union
8240         also for [__USE_XOPEN_EXTENDED].
8241         (SA_ONSTACK): Change [__USE_UNIX98] condition to
8242         [__USE_XOPEN_EXTENDED].
8243         (SA_RESTART): Likewise.
8244         (SA_NODEFER): Likewise.
8245         (SA_RESETHAND): Likewise.
8246         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
8247         (struct sigaction): Define sa_handler and sa_sigaction using union
8248         also for [__USE_XOPEN_EXTENDED].
8249         (SA_ONSTACK): Change [__USE_UNIX98] condition to
8250         [__USE_XOPEN_EXTENDED].
8251         (SA_RESTART): Likewise.
8252         (SA_NODEFER): Likewise.  Define directly rather than as alias.
8253         (SA_RESETHAND): Likewise.
8254         (SA_INTERRUPT): Define only for [__USE_MISC].
8255         (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
8256         (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
8257         [__USE_MISC].
8258         (SA_STACK): Define only for [__USE_MISC].
8259         * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
8260         (struct sigaction): Define sa_handler and sa_sigaction using union
8261         also for [__USE_XOPEN_EXTENDED].
8262         (SA_ONSTACK): Change [__USE_UNIX98] condition to
8263         [__USE_XOPEN_EXTENDED].
8264         (SA_RESTART): Likewise.
8265         (SA_NODEFER): Likewise.
8266         (SA_RESETHAND): Likewise.
8267         (SA_NOPTRACE): Define only for [__USE_MISC].
8269         * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
8270         * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
8271         (struct catalog_info): Likewise.
8272         * inet/htontest.c (lo): Likewise.
8273         (foo): Likewise.
8274         * inet/inet_lnaof.c (inet_lnaof): Likewise.
8275         * inet/inet_net.c (inet_network): Likewise.
8276         * inet/inet_netof.c (inet_netof): Likewise.
8277         * inet/rcmd.c (__ivaliduser): Likewise.
8278         (iruserok): Likewise.
8279         * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
8280         * locale/programs/locale-spec.c (locale_special): Likewise.
8281         * nis/nis_findserv.c (struct findserv_req): Likewise.
8282         (__nis_findfastest_with_timeout): Likewise.
8283         * nss/test-netdb.c (test_network): Likewise.
8284         * resolv/inet_neta.c (inet_neta): Likewise.
8285         * resolv/ns_date.c (ns_datetosecs): Likewise.
8286         (SECS_PER_DAY): Likewise.
8287         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
8288         Likewise.
8289         * resolv/res_comp.c (__putlong): Likewise.
8290         (__putshort): Likewise.
8291         (_getlong): Likewise.
8292         (_getshort): Likewise.
8293         * resolv/res_debug.c (p_time): Likewise.
8294         (precsize_ntoa): Likewise.
8295         (precsize_aton): Likewise.
8296         (latlon2ul): Likewise.
8297         (loc_aton): Likewise.
8298         (loc_ntoa): Likewise.
8299         * resolv/res_hconf.c (struct netaddr): Likewise.
8300         (_res_hconf_reorder_addrs): Likewise.
8301         * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
8302         (clnttcp_control): Likewise.
8303         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
8304         (clntudp_control): Likewise.
8305         * sunrpc/clnt_unix.c (clntunix_call): Likewise.
8306         (clntunix_control): Likewise.
8307         * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
8308         * sunrpc/rpc/auth.h (union des_block): Likewise.
8309         * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
8310         * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
8311         (xdrrec_create): Likewise.
8312         (xdrrec_endofrecord): Likewise.
8313         (flush_out): Likewise.
8314         * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
8315         (xdrstdio_putlong): Likewise.
8316         * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
8317         Likewise.
8319         * misc/sys/cdefs.h (__long_double_t): Remove.
8320         * stdio-common/printf_fp.c (__printf_fp_l): Use long double
8321         instead of __long_double_t,
8322         * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
8324 2017-08-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
8326         * benchtests/scripts/compare_strings.py: Avoid display error when
8327         running on a text terminal.
8329         * benchtests/scripts/compare_strings.py (main): Add an
8330         optional -base option.
8331         (process_results): New argument base_func.
8333         * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
8334         hardcoding memcpy.
8335         * benchtests/bench-memcpy-large.c (test_name): Likewise.
8336         * benchtests/bench-memcpy-random.c (test_name): Likewise.
8338 2017-08-07  Andreas Schwab  <schwab@suse.de>
8340         * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
8341         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
8342         * intl/Makefile ($(objpfx)tst-gettext.out)
8343         ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
8344         ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
8345         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
8346         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
8347         * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
8348         * posix/Makefile ($(objpfx)globtest.out)
8349         ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
8350         * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
8351         ($(objpfx)tst-printf.out): Likewise.
8352         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
8353         ($(objpfx)tst-setcontext3.out): Likewise.
8355 2017-08-07  H.J. Lu  <hongjiu.lu@intel.com>
8357         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
8358         Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
8359         e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
8360         slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
8361         halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
8362         and mptan-fma.
8363         (CFLAGS-doasin-fma.c): New.
8364         (CFLAGS-dosincos-fma.c): Likewise.
8365         (CFLAGS-e_asin-fma.c): Likewise.
8366         (CFLAGS-e_atan2-fma.c): Likewise.
8367         (CFLAGS-e_exp-fma.c): Likewise.
8368         (CFLAGS-e_log-fma.c): Likewise.
8369         (CFLAGS-e_pow-fma.c): Likewise.
8370         (CFLAGS-halfulp-fma.c): Likewise.
8371         (CFLAGS-mpa-fma.c): Likewise.
8372         (CFLAGS-mpatan-fma.c): Likewise.
8373         (CFLAGS-mpatan2-fma.c): Likewise.
8374         (CFLAGS-mpexp-fma.c): Likewise.
8375         (CFLAGS-mplog-fma.c): Likewise.
8376         (CFLAGS-mpsqrt-fma.c): Likewise.
8377         (CFLAGS-mptan-fma.c): Likewise.
8378         (CFLAGS-s_atan-fma.c): Likewise.
8379         (CFLAGS-sincos32-fma.c): Likewise.
8380         (CFLAGS-slowexp-fma.c): Likewise.
8381         (CFLAGS-slowpow-fma.c): Likewise.
8382         (CFLAGS-s_sin-fma.c): Likewise.
8383         (CFLAGS-s_tan-fma.c): Likewise.
8384         * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
8385         * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
8386         * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
8387         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
8388         * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
8389         * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
8390         * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
8391         * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
8392         * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
8393         * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
8394         * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
8395         * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
8396         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
8397         * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
8398         * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
8399         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
8400         * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
8401         * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
8402         * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
8403         * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
8404         * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
8405         * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
8406         * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
8407         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
8408         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
8409         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
8410         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
8411         * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
8412         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
8413         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
8414         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
8416 2017-08-04  Joseph Myers  <joseph@codesourcery.com>
8418         * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
8419         (min_of_type_f): New macro.
8420         (min_of_type_): Likewise.
8421         (min_of_type_l): Likewise.
8422         (min_of_type_f128): Likewise.
8423         (min_of_type): Define using __MATH_TG and taking an expression
8424         argument.
8425         (math_check_force_underflow): Pass expression instead of type to
8426         min_of_type.
8427         (math_check_force_underflow_nonneg): Likewise.
8429 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
8431         * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
8432         (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
8433         HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
8435 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
8437         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
8438         bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
8439         memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
8440         memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
8441         strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
8442         strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
8443         memcpy_chk-nonshared, mempcpy_chk-nonshared,
8444         memmove_chk-nonshared and memset_chk-nonshared
8445         * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
8446         * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
8447         * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
8448         * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
8449         * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
8450         * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
8451         * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
8452         * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
8453         * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
8454         * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
8455         * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
8456         * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
8457         * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
8458         * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
8459         * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
8460         * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
8461         * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
8462         * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
8463         * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
8464         * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
8465         * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
8466         * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
8467         * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
8468         * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
8469         * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
8470         * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
8471         * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
8472         * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
8473         * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
8474         * sysdeps/i386/i686/multiarch/memset.c: Likewise.
8475         * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
8476         * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
8477         * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
8478         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
8479         * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
8480         * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
8481         * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
8482         * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
8483         * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
8484         * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
8485         * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
8486         * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
8487         * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
8488         * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
8489         * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
8490         * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
8491         * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
8492         * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
8493         * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
8494         * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
8495         * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
8496         * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
8497         * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
8498         * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
8499         * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
8500         * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
8501         * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
8502         * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
8503         * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
8504         * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
8505         * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
8506         * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
8507         * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
8508         * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
8509         * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
8510         * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
8511         * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
8512         * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
8513         * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
8514         * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
8515         * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
8516         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
8517         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
8518         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
8519         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
8520         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
8521         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
8522         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
8523         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
8524         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
8525         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
8526         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
8527         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
8528         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
8529         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
8530         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
8531         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
8532         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
8533         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
8534         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
8535         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
8536         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
8537         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
8538         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
8539         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
8540         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
8541         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
8542         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
8543         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
8544         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
8545         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
8546         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
8547         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
8548         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
8549         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
8550         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
8551         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
8552         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
8554 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
8556         * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
8557         Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
8558         svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
8559         svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
8560         svml_d_log2_core-sse2, svml_d_log4_core-sse,
8561         svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
8562         svml_d_pow4_core-sse, svml_d_pow8_core-avx2
8563         svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
8564         svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
8565         svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
8566         svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
8567         svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
8568         svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
8569         svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
8570         svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
8571         svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
8572         svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
8573         svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
8574         svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
8575         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
8576         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
8577         * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
8578         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
8579         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
8580         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
8581         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
8582         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
8583         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
8584         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
8585         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
8586         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
8587         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
8588         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
8589         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
8590         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
8591         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
8592         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
8593         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
8594         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
8595         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
8596         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
8597         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
8598         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
8599         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
8600         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
8601         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
8602         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
8603         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
8604         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
8605         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
8606         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
8607         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
8608         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
8609         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
8610         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
8611         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
8612         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
8613         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
8614         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S:  Renamed to
8615         ...
8616         * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
8617         Don't include <sysdep.h> nor <init-arch.h>.
8618         (_ZGVbN2v_cos): Removed.
8619         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S:  Renamed to
8620         ...
8621         * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
8622         Don't include <sysdep.h> nor <init-arch.h>.
8623         (_ZGVdN4v_cos): Removed.
8624         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S:  Renamed to
8625         ...
8626         * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
8627         Don't include <sysdep.h> nor <init-arch.h>.
8628         (_ZGVeN8v_cos): Removed.
8629         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S:  Renamed to
8630         ...
8631         * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
8632         Don't include <sysdep.h> nor <init-arch.h>.
8633         (_ZGVbN2v_exp): Removed.
8634         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S:  Renamed to
8635         ...
8636         * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
8637         Don't include <sysdep.h> nor <init-arch.h>.
8638         (_ZGVdN4v_exp): Removed.
8639         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S:  Renamed to
8640         ...
8641         * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
8642         Don't include <sysdep.h> nor <init-arch.h>.
8643         (_ZGVeN8v_exp): Removed.
8644         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S:  Renamed to
8645         ...
8646         * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
8647         Don't include <sysdep.h> nor <init-arch.h>.
8648         (_ZGVbN2v_log): Removed.
8649         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S:  Renamed to
8650         ...
8651         * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
8652         Don't include <sysdep.h> nor <init-arch.h>.
8653         (_ZGVdN4v_log): Removed.
8654         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S:  Renamed to
8655         ...
8656         * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
8657         Don't include <sysdep.h> nor <init-arch.h>.
8658         (_ZGVeN8v_log): Removed.
8659         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S:  Renamed to
8660         ...
8661         * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
8662         Don't include <sysdep.h> nor <init-arch.h>.
8663         (_ZGVbN2vv_pow): Removed.
8664         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S:  Renamed to
8665         ...
8666         * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
8667         Don't include <sysdep.h> nor <init-arch.h>.
8668         (_ZGVdN4vv_pow): Removed.
8669         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S:  Renamed to
8670         ...
8671         * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
8672         Don't include <sysdep.h> nor <init-arch.h>.
8673         (_ZGVeN8vv_pow): Removed.
8674         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S:  Renamed to
8675         ...
8676         * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
8677         Don't include <sysdep.h> nor <init-arch.h>.
8678         (_ZGVbN2v_sin): Removed.
8679         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S:  Renamed to
8680         ...
8681         * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
8682         Don't include <sysdep.h> nor <init-arch.h>.
8683         (_ZGVbN4v_sin): Removed.
8684         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S:  Renamed to
8685         ...
8686         * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
8687         Don't include <sysdep.h> nor <init-arch.h>.
8688         (_ZGVbN8v_sin): Removed.
8689         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S:  Renamed to
8690         ...
8691         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
8692         Don't include <sysdep.h> nor <init-arch.h>.
8693         (_ZGVbN2vvv_sincos): Removed.
8694         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S:  Renamed to
8695         ...
8696         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
8697         Don't include <sysdep.h> nor <init-arch.h>.
8698         (_ZGVdN4vvv_sincos): Removed.
8699         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S:  Renamed to
8700         ...
8701         * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
8702         Don't include <sysdep.h> nor <init-arch.h>.
8703         (_ZGVeN8vvv_sincos): Removed.
8704         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S:  Renamed to
8705         ...
8706         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
8707         Don't include <sysdep.h> nor <init-arch.h>.
8708         (_ZGVeN16v_cosf): Removed.
8709         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S:  Renamed to
8710         ...
8711         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
8712         Don't include <sysdep.h> nor <init-arch.h>.
8713         (_ZGVbN4v_cosf): Removed.
8714         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S:  Renamed to
8715         ...
8716         * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
8717         Don't include <sysdep.h> nor <init-arch.h>.
8718         (_ZGVdN8v_cosf): Removed.
8719         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S:  Renamed to
8720         ...
8721         * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
8722         Don't include <sysdep.h> nor <init-arch.h>.
8723         (_ZGVeN16v_expf): Removed.
8724         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S:  Renamed to
8725         ...
8726         * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
8727         Don't include <sysdep.h> nor <init-arch.h>.
8728         (_ZGVbN4v_expf): Removed.
8729         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S:  Renamed to
8730         ...
8731         * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
8732         Don't include <sysdep.h> nor <init-arch.h>.
8733         (_ZGVdN8v_expf): Removed.
8734         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S:  Renamed to
8735         ...
8736         * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
8737         Don't include <sysdep.h> nor <init-arch.h>.
8738         (_ZGVeN16v_logf): Removed.
8739         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S:  Renamed to
8740         ...
8741         * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
8742         Don't include <sysdep.h> nor <init-arch.h>.
8743         (_ZGVbN4v_logf): Removed.
8744         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S:  Renamed to
8745         ...
8746         * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
8747         Don't include <sysdep.h> nor <init-arch.h>.
8748         (_ZGVdN8v_logf): Removed.
8749         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S:  Renamed to
8750         ...
8751         * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
8752         Don't include <sysdep.h> nor <init-arch.h>.
8753         (_ZGVeN16vv_powf): Removed.
8754         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S:  Renamed to
8755         ...
8756         * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
8757         Don't include <sysdep.h> nor <init-arch.h>.
8758         (_ZGVbN4vv_powf): Removed.
8759         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S:  Renamed to
8760         ...
8761         * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
8762         Don't include <sysdep.h> nor <init-arch.h>.
8763         (_ZGVdN8vv_powf): Removed.
8764         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S:  Renamed to
8765         ...
8766         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
8767         Don't include <sysdep.h> nor <init-arch.h>.
8768         (_ZGVeN16vvv_sincosf): Removed.
8769         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S:  Renamed to
8770         ...
8771         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
8772         Don't include <sysdep.h> nor <init-arch.h>.
8773         (_ZGVbN4vvv_sincosf): Removed.
8774         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S:  Renamed to
8775         ...
8776         * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
8777         Don't include <sysdep.h> nor <init-arch.h>.
8778         (_ZGVdN8vvv_sincosf): Removed.
8779         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S:  Renamed to
8780         ...
8781         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
8782         Don't include <sysdep.h> nor <init-arch.h>.
8783         (_ZGVeN16v_sinf): Removed.
8784         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S:  Renamed to
8785         ...
8786         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
8787         Don't include <sysdep.h> nor <init-arch.h>.
8788         (_ZGVbN4v_sinf): Removed.
8789         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S:  Renamed to
8790         ...
8791         * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
8792         Don't include <sysdep.h> nor <init-arch.h>.
8793         (_ZGVdN8v_sinf): Removed.
8795 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
8797         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
8798         Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
8799         s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
8800         s_rint-sse4_1 and s_rintf-sse4_1.
8801         * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
8802         * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
8803         * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
8804         * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
8805         * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
8806         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
8807         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
8808         * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
8809         * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
8810         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
8811         * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This.  Don't
8812         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
8813         (__ceil): Removed.
8814         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
8815         * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This.  Don't
8816         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
8817         (__ceilf): Removed.
8818         * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
8819         * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This.  Don't
8820         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
8821         (__floor): Removed.
8822         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
8823         * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This.  Don't
8824         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
8825         (__floorf): Removed.
8826         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
8827         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This.  Don't
8828         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
8829         (__nearbyint): Removed.
8830         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
8831         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This.  Don't
8832         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
8833         (__nearbyintf): Removed.
8834         * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
8835         * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This.  Don't
8836         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
8837         (__rint): Removed.
8838         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
8839         * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This.  Don't
8840         include <machine/asm.h> nor <init-arch.h>.  Include <sysdep.h>.
8841         (__rintf): Removed.
8843 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
8845         * sysdeps/i386/start.S (_start): Check Check PIC instead of
8846         SHARED.  Avoid dynamic relocation against main in static PIE.
8848 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
8850         [BZ #21815]
8851         * elf/Makefile (CFLAGS-tst-prelink.c): New.
8852         (LDFLAGS-tst-prelink): Likewise.
8854 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
8856         * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
8857         Define to I386_USE_SYSENTER to 0 or 1 if not defined.
8858         (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
8859         (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
8860         (INTERNAL_SYSCALL_NCS): Likewise.
8861         (LOADARGS_1): Likewise.
8862         (LOADARGS_5): Likewise.
8863         (RESTOREARGS_1): Likewise.
8864         (RESTOREARGS_5): Likewise.
8866 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
8868         * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
8869         (MEMPCPY_SYMBOL): Likewise.
8870         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
8871         (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
8872         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
8873         in libc.a.
8874         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
8875         * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
8876         Likewise.
8877         * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
8878         (__hidden_ver1): Don't use in libc.a.
8879         * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
8880         (__mempcpy): Don't create a weak alias in libc.a.
8881         * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
8882         libc.a.
8883         * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
8884         (__hidden_ver1): Don't use in libc.a.
8886 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
8888         * config.make.in (have-insert): New.
8889         * configure.ac (libc_cv_insert): New.  Set to yes if linker
8890         supports INSERT in linker script.
8891         (AC_SUBST(libc_cv_insert): New.
8892         * configure: Regenerated.
8893         * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
8894         if $(have-insert) == yes.
8896 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
8898         * elf/Makefile (tests): Add vismain only if
8899         $(have-protected-data) == yes.
8900         (tests-pie): Likewise.
8902 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
8904         [BZ #21871]
8905         * sysdeps/x86/cpu-features.c (init_cpu_features): Set
8906         bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
8908 2017-08-04  H.J. Lu  <hongjiu.lu@intel.com>
8910         [BZ #21790]
8911         * sysdeps/i386/i586/memset.S
8912         (__memset_zero_constant_len_parameter): Removed.
8913         * sysdeps/i386/i686/memset.S
8914         (__memset_zero_constant_len_parameter): Likewise.
8915         * sysdeps/i386/i686/multiarch/memset_chk.S
8916         (__memset_zero_constant_len_parameter): Likewise.
8917         * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
8918         Likewise.
8920 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
8922         * stdlib/getentropy.c (getentropy): Change return type to int.
8924 2017-08-03  Aurelien Jarno  <aurelien@aurel32.net>
8926         * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
8928 2017-08-03  Joseph Myers  <joseph@codesourcery.com>
8930         * math/s_nextafter.c (__nextafter): Use uintN_t instead of
8931         u_intN_t.
8932         * math/s_nexttowardf.c (__nexttowardf): Likewise.
8933         * sysdeps/generic/math_private.h (ieee_double_shape_type):
8934         Likewise.
8935         (ieee_float_shape_type): Likewise.
8936         * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
8937         * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
8938         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
8939         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
8940         * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
8941         * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
8942         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
8943         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
8944         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
8945         Likewise.
8946         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
8947         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
8948         (__ieee754_yn): Likewise.
8949         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
8950         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
8951         * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
8952         Likewise.
8953         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
8954         * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
8955         * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
8956         * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
8957         (__erfc): Likewise.
8958         * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
8959         * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
8960         * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
8961         * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
8962         * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
8963         * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
8964         Likewise.
8965         * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
8966         * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
8967         * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
8968         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
8969         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
8970         * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
8971         * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
8972         * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
8973         * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
8974         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
8975         (__issignaling): Likewise.
8976         * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
8977         * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
8978         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
8979         Likewise.
8980         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
8981         * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
8982         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
8983         * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
8984         Likewise.
8985         * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
8986         Likewise.
8987         * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
8988         * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
8989         * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
8990         * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
8991         (__erfcf): Likewise.
8992         * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
8993         * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
8994         * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
8995         * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
8996         Likewise.
8997         * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
8998         * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
8999         Likewise.
9000         * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
9001         * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
9002         * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
9003         * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
9004         * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
9005         * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
9006         * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
9007         * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
9008         Likewise.
9009         * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
9010         Likewise.
9011         * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
9012         Likewise.
9013         * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
9014         * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
9015         Likewise.
9016         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
9017         Likewise.
9018         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
9019         (__ieee754_ynl): Likewise.
9020         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
9021         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
9022         Likewise.
9023         * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
9024         Likewise.
9025         * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
9026         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
9027         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
9028         Likewise.
9029         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
9030         * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
9031         * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
9032         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
9033         * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
9034         * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
9035         * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
9036         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
9037         Likewise.
9038         * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
9039         * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
9040         * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
9041         Likewise.
9042         * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
9043         * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
9044         * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
9045         * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
9046         * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
9047         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
9048         Likewise.
9049         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
9050         Likewise.
9051         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
9052         Likewise.
9053         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
9054         Likewise.
9055         * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
9056         * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
9057         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
9058         * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
9059         * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
9060         * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
9061         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
9062         Likewise.
9063         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
9064         Likewise.
9065         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
9066         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
9067         Likewise.
9068         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
9069         (__ieee754_remainderl): Likewise.
9070         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
9071         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
9072         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
9073         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
9074         Likewise.
9075         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
9076         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
9077         Likewise.
9078         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
9079         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
9080         * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
9081         * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
9082         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
9083         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
9084         Likewise.
9085         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
9086         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
9087         (__ieee754_y0l): Likewise.
9088         (pzero): Likewise.
9089         (qzero): Likewise.
9090         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
9091         (__ieee754_y1l): Likewise.
9092         (pone): Likewise.
9093         (qone): Likewise.
9094         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
9095         (__ieee754_ynl): Likewise.
9096         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
9097         (__ieee754_lgammal_r): Likewise.
9098         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
9099         Likewise.
9100         * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
9101         * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
9102         * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
9103         (__erfcl): Likewise.
9104         * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
9105         * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
9106         Likewise.
9107         * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
9108         * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
9109         * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
9110         * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
9111         * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
9112         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
9113         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
9114         Likewise.
9115         * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
9116         * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
9117         * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
9118         * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
9119         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
9120         Likewise.
9121         * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
9122         * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
9123         Likewise.
9124         * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
9125         * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
9126         * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
9127         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
9128         * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
9130 2017-08-03  Florian Weimer  <fweimer@redhat.com>
9132         [BZ #21885]
9133         * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
9134         on memory allocation failure.
9136 2017-08-03  Alan Modra  <amodra@gmail.com>
9138         * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
9139         tst-tlsopt-powerpc.c with function name change and no test harness.
9140         * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
9141         Call tls_get_addr_opt_test.
9142         * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
9143         (modules-names): Add mod-tlsopt-powerpc.
9144         (mod-tlsopt-powerpc.so-no-z-defs): Define.
9145         (tst-tlsopt-powerpc): Depend on .so.
9146         * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
9147         define.  Expand use in TLS_GD and TLS_LD.
9149 2017-08-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9151         * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
9152         function.
9153         * sysdeps/posix/shm_open.c: Include <pthread.h>.
9155 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
9157         [BZ #21686]
9158         * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
9159         comparing size with that of double.
9160         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
9161         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
9162         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
9163         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
9164         (__TGMATH_BINARY_REAL_IMAG): Likewise.
9165         * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
9166         unsigned __int128 types.
9168 2017-08-02  Steve Ellcey  <sellcey@cavium.com>
9170         * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
9171         CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
9172         CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
9173         CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
9174         CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
9176 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
9178         * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
9180 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
9182         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
9183         of SHARED.
9184         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
9185         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
9186         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
9187         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
9188         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
9189         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
9190         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
9192 2017-08-02  Joseph Myers  <joseph@codesourcery.com>
9194         [BZ #21685]
9195         * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
9196         bit-field expressions passed to sizeof or typeof.
9197         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
9198         (__TGMATH_F128): Likewise.
9199         [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
9200         (__TGMATH_CF128): Likewise.
9201         (__TGMATH_UNARY_REAL_ONLY): Likewise.
9202         (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
9203         (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
9204         (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
9205         (__TGMATH_BINARY_REAL_ONLY): Likewise.
9206         (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
9207         (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
9208         (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
9209         (__TGMATH_TERNARY_REAL_ONLY): Likewise.
9210         (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
9211         (__TGMATH_UNARY_REAL_IMAG): Likewise.
9212         (__TGMATH_UNARY_IMAG): Likewise.
9213         (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
9214         (__TGMATH_BINARY_REAL_IMAG): Likewise.
9215         * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
9216         type.
9217         (define_vars_for_type): Handle bit_field type specially.
9218         (Tests.__init__): Declare structure with bit-field element.
9220 2017-08-02  H.J. Lu  <hongjiu.lu@intel.com>
9222         [BZ #21791]
9223         * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
9224         (MEMCPY_CHK): Define only if SHARED is defined.
9225         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
9226         Likewise.
9227         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
9228         Likewise.
9230 See ChangeLog.18 for earlier changes.